ABAP – Adding one day to date

For getting next day of the date we can use the following code:

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE text-001.

SELECTION-SCREEN SKIP 1.
PARAMETERS p_date TYPE  sy-datum.
SELECTION-SCREEN END OF BLOCK B1.

WRITE:’Before’, p_date.
p_date = p_date + 1.
WRITE:/ ‘After’, p_date.

Input:

30.04.2013

Output:

Before 30.04.2013
After 01.05.2013

0 Comments

Leave A Reply