‎2007 May 29 7:44 AM
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.
‎2007 May 29 8:09 AM
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
‎2007 May 29 7:52 AM
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
‎2007 May 29 7:59 AM
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.
‎2007 May 29 8:09 AM
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
‎2007 May 29 8:54 AM
Hi Arun,
Nice Idea...!!!
Tried and its working... Thnank you very much.
Best Regards,
Phani