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 selection screen variant

PS_1978
Active Participant
0 Likes
1,027

Hi Gurus,

There are two parameters in the selection screen of a report. One for Date, whose format is ww.yyyy and purchasing organization. Both the fields are mandatory fields.

I have to create variants for this report in such a way that when user selects the variant, it should give current week in combination with year in Date parameter and Purchasing organization from the saved variant list.

Suppose there are two variants created with purchasing organizations 0001 and 0002, if i select 1st variant today then date should be 22.2007 and purchasing organization as 0001... if i select 1st variant in next week then date should be 23.2007 with purchasing organization 0001...

Thanks in Advance,

Phani.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
628

Hi Sivapuram ,

I am not sure we can create a varaint where we have some processing involved .

What i would suggest is if you want this to be done for a specific varaint , then you will have to write the processing code in the at selection-screen output event .

This code must include the logic to calcuate the value as per your requirement , the code must be executed when the specific variant is loaded , the current varaint loaded in the system is stored in the system varaible sy-SLSET.

This is a solution which is very specific to a varaint and not a generic solution.

Regards

Arun

4 REPLIES 4
Read only

Former Member
0 Likes
628

Hi

Use the fun module VRM_SET_VALUES and create the variants

Please go through this link:

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/linking%2bdrop-down%2blists

Reward points if useful

Regards

Anji

Read only

0 Likes
628

Hi Anji Reddy,

Thanks for the reply. But planning date and purchasing organization are not drop down lists. Those are just two simple parameters in selection screen of an executable program.

Please suggest me based on this info.

Best Regards,

Phani.

Read only

Former Member
0 Likes
629

Hi Sivapuram ,

I am not sure we can create a varaint where we have some processing involved .

What i would suggest is if you want this to be done for a specific varaint , then you will have to write the processing code in the at selection-screen output event .

This code must include the logic to calcuate the value as per your requirement , the code must be executed when the specific variant is loaded , the current varaint loaded in the system is stored in the system varaible sy-SLSET.

This is a solution which is very specific to a varaint and not a generic solution.

Regards

Arun

Read only

0 Likes
628

Hi Arun,

Nice Idea...!!!

Tried and its working... Thnank you very much.

Best Regards,

Phani