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

how i can get current date dynamically in selection screen dynamically

Former Member
0 Likes
2,349

how i can get current date dynamically in selection screen dynamically using varients

5 REPLIES 5
Read only

Former Member
0 Likes
1,299

put like this

PARAMETERS p_DATUM LIKE SY-DATUM DEFAULT sy-datum.

regards

Prabhu

Read only

Former Member
0 Likes
1,299

Hi !

When you're saveing your variant you'll have to do the following.

Mark your variable with type 'L' (=Selection Variable).

Press the button "Selection Variables".

Mark the "D" Traffic-Light (It's for the Dates !!).

Click the "Arrow" below the "T".

Select i.e. "Current Date".

Continiue saveing your variant as usual.

Then your variant will automatically set the correct date.

Regards

Rainer

Some points would be nice if that helped.

Read only

0 Likes
1,299
Read only

Former Member
0 Likes
1,299

hi,

PARAMETERS: p_date TYPE sy-datum,

for local date use sy-datlo

Hope this helps.

Regards,

Naveen

Read only

Former Member
0 Likes
1,299

Hi,

You can do it as follows:

After executing create the variant

Step1: Click on save

Step2: Enter variant name

Step3: In 'Field attributes' select/Click 'Selection variable (i.e 'L') related checkbox.

Step4: Click on 'Selection Variable' button

Step5: Then select 'Selection criterion' as 'D' (the middle one)

Step6: Click on down arrow and select 'Current Date'.

This will set system date variant.I think this will solve your problem.

<b>Kindly reward points if helpful, and close the thread if your Q has been answered</b>

Regards,

Shakuntala