Hi,
I have got 2 reports,namely R1 & R2.
R2 has got a selection screen where parameter say PA is optional,when it is executed stand alone .
When R2 is submitted from R1 ,I need to make parameter PA as mandatory.
But I have acess to code of only R1 so i cannot make any change in R2's code.
How can I go about this ...
Any ideas pals...
Thanks in advance..
regards,
Gaurav
Hi Gaurav,
Follow these steps:
1. Create a selection screen variant for report R2 (simply press the save button, when on the selection screen).
2. Inside the definition part you'll see an option column behind each parameter/select-option field with the name "Required field".
3. Simply check the checkbox behind the field you wish to become mandatory and give it a name (i.e. 'VAR2').
4. In report R1 call the R2 report with the submit command like this: SUBMIT r2 USING SELECTION-SET 'VAR2' and for additional (pré-)selections use the WITH option for each field you must fill with values.
See ABAP help on the SUBMIT command (and the chapter Passing parameters in SUBMIT).
Hope this helps you,
Regards,
Rob.
Add a comment