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

Dynamic Variant for Report

Former Member
0 Likes
1,036

Hi,

How to put current date in report output through variants.

I should not use events, when user selects variants then i should place the current date in my selection-screen.

help full information will be appreciated.

Hi,

How to put current date in report output through variants.

I should not use events, when user selects variants then i should place the current date in my selection-screen.

help full information will be appreciated.

5 REPLIES 5
Read only

Former Member
0 Likes
783

Hi.

Whenever you save variant ,you need to check box in "Save field without values" of the field name that you

default values or don't want to change it. The field contents are ignored when the variant is imported.

Hope it help.

Sayan.

Read only

Former Member
0 Likes
783

hi,

call the variant fm and pass sy-datum parametre to it

regards,

pavan t.

Read only

Former Member
0 Likes
783

Hi,

See this link

http://www.saptechnical.com/Tutorials/ABAP/DynamicVariant/Procedure.htm

Hope it would help you

Cheers,

Venkatram

Read only

vinod_vemuru2
Active Contributor
0 Likes
783

Hi Rams,

U have to create a dynamic variant for this.

Fallow these steps.

1. Fill all the selection screen values including date(Current date).

2. Save it as variant(ctrl+S), give variant name and description.

3. In the same screen u can see some check boxes corrosponding to each selection screen parameter.

Now for the date field select the check box under

L Selection variable and then press the push button selection variables in the tool bar.

4. Now u will get the date range in the next screen.

5. Here press the yellow light under D, it will become green colour.

5. Next press drop down(Small arrow pointing down at the end of date)

6. Now u will get a list of options for calculations.

7. Here select current date.

8. Now save the variant.

This completes setting up of dynamic variant.

Now when ever u select this variant it will populate the selection screen with current date and remaining fields with the data u save while creating the variant.

Hope this will solve ur problem.

Thanks,

Vinod.

Read only

Former Member
0 Likes
783

We are able to resolve this problem, thanks for replies