Skip to Content
author's profile photo Former Member
Former Member

making field mandatory while using 'Submit Report'

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2004 at 08:31 AM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.