Scenario:
ref.2).
Give a name to the project (1), create (2) and
save the project. Then assign an
enhancement RSR00001 to your project and
save. (In this step an error message “SAP enhancement RSR00001
already belongs to project NAME” may appear. That means an active
project with the enhancement RSR00001 already exists. If this is the case,
you do not need to create your own project and may terminate this step
and go to the step 4). Activate the project.
Code Example:
WHEN 'ZCMTD'.
* you variable name
data: ZCMTD_LOW like sy-datum.
*defining variable for using as a starting date of the interval
ZCMTD_LOW = sy-datum.
*initializing it with the current date
ZCMTD_LOW+6(2) = '01'.
*replacing last two symbols (day) in the current date with '01'(see ref.1)
CLEAR L_S_RANGE.
L_S_RANGE-LOW = ZCMTD_LOW.
*initializing low interval limit
L_S_RANGE-HIGH = SY-DATUM.
*initializing high interval limit
L_S_RANGE-SIGN = 'I'.
*defining interval as inclusive
L_S_RANGE-OPT = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
ENDCASE.
The result of this will be an interval from the first day of the current month till
the current system date.