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

variants in selection screen

Former Member
0 Likes
554

hello everybody.

in a selection-screen if i take a variant with 5 fields.in the output i should get the information of the fields in the variant as per the <u>current date</u>.how to do it.

3 REPLIES 3
Read only

Former Member
0 Likes
523

Can you please explain in detail about the requirement.

Best Regards,

Vibha

Read only

0 Likes
523

hi vibha,

the requirement is that in the selection criteria i have 5 fields of a particular customer.these 5 fields are taken in a variant.one of the field in the variant is the date field.so when i use this variant i should get information of current date.

Read only

Former Member
0 Likes
523

You can not achieve this by saving it in a variant.

But you can do it programmatically. You save a variant with remaining 4 fields and in your report write a code so that if that data field is empty then its default value should be sy-datum.

For creation of variant have a look at below link.

http://help.sap.com/saphelp_nw2004s/helpdata/en/c0/980389e58611d194cc00a0c94260a5/content.htm

Best Regards,

Vibha

*Please mark all the helpful answers