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

Using dynamic variants in ABAP

Former Member
0 Likes
429

Hi,

I have an issue. I want to use dynamic variants in my program. On the selection screen of my program, I have a parameter called Planning date which takes in the current week of the year as input value, i.e lets say today we are Monday 14th of May 2007, so the current week is 20. I want to make this parameter dynamic, i.e to change automatically so that next week the value is week 21.

Also is setting dynamic variants version dependent? My version is 5.0 SR1 and I don't have the option of save my variant using the 'D' traffic signal.

Please help me out.

Thanks

2 REPLIES 2
Read only

kostas_tsioubris
Contributor
0 Likes
410

Hi,

you can fill your parameter in the initialization event of your report. In order to get the week you can use the function DATE_GET_WEEK.

Kostas

Read only

0 Likes
410

Thx for the answer. But I would like to have a solution which does not entail changing my current code.

Thx again.