Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem Saving Variant

Former Member
0 Likes
426

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
408

Hello,

Change the code like this.

START-OF-SELECTION.
IF P_DT IS INITIAL.
P_DT = SY-DATUM.
ENDIF.

Regards,

VAsanth

3 REPLIES 3
Read only

Former Member
0 Likes
408

If u want to schedule then the right way is to use sm35 session

Read only

0 Likes
408

Hi,

We are scheduling through SM 36, only facing problem with respect to saving variant.

Regards,

IFF

Read only

Former Member
0 Likes
409

Hello,

Change the code like this.

START-OF-SELECTION.
IF P_DT IS INITIAL.
P_DT = SY-DATUM.
ENDIF.

Regards,

VAsanth