hi,
I have a requirement to create a variable which its default value is current month and the range of the variable is only one year before. That's mean, F4 should display one year before and not all the period.
I think it possible to do by customer exit, but how I can define the default value?
Best Regards,
below is the sample code for your requirement.
-
IF I_STEP = 1.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
I_DATE = SY-DATUM
I_MONMIT = 00
I_PERIV = 'Z4'
IMPORTING
E_BUPER = ZPER
E_GJAHR = ZYR.
ENDIF.
-
ZPER is the the current period and ZYR is the current year.
concatenate zper and zyr and pass it to L_S_RANGE-HIGH
concatenate zper and ZYR1(substract one year ZYR-1) and pass it to L_S_RANGE-LOW.
assign points if it helps.
Mohamad,
make setting in infoobject "F4 values from Master data tablesin Bex Tab".
go to SPRO>BIW>Reporting Relevant Settings-->Set F4 help and Hierarchy for time char.
change the time interval from last to year future date.
Hope this helps.
all the best.
Regards,
Nagesh Ganisetti.
Add a comment