‎2007 Jun 21 12:04 PM
Hi Experts,
I have enhanced a report to get only executed on Monday & Thursday.Based on screen date parameter P_DT.Based on P_dt day will be identified as monday and thursday.
We want to backround schedule the job,I am facing the problem while saving variant.We want to save the variant as blank as the report is periodically scheduled weekly basis.
The date parameter in the screen is causing the problem
I have written code in the following way
AT SELECTION-SCREEN.
IF P_DT IS INITIAL.
P_DT = SY-DATUM.
ENDIF.
When I am entering other parameter , with P_dt as balnk value, while saving variant it is getting populated with sy-datum.
Thanks In Advacne.
Regards,
IFF
‎2007 Jun 21 12:32 PM
Hello,
Change the code like this.
START-OF-SELECTION.
IF P_DT IS INITIAL.
P_DT = SY-DATUM.
ENDIF.Regards,
VAsanth
‎2007 Jun 21 12:17 PM
If u want to schedule then the right way is to use sm35 session
‎2007 Jun 21 12:26 PM
Hi,
We are scheduling through SM 36, only facing problem with respect to saving variant.
Regards,
IFF
‎2007 Jun 21 12:32 PM
Hello,
Change the code like this.
START-OF-SELECTION.
IF P_DT IS INITIAL.
P_DT = SY-DATUM.
ENDIF.Regards,
VAsanth