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

Parameter problem

I have below parameters defined in report.

******Entry for code*******

Select-options :

s_bukrs for bseg-bukrs memory id buk obligatory.

***Entry for biz area*******


p_gjahr like bkpf-gjahr obligatory.

selection-screen skip 1.


s_hkont for bseg-hkont

s_gsber for bseg-gsber

*******Entry for display this code in screen*******

parameters :

v_bukrs like t001-bukrs obligatory.

at selection-screen on v_bukrs.

if not v_bukrs in s_bukrs.

message e106.


Problem here is, User cant select multiple value

at s_bukrs parameter before entering v_bukrs value.

STATUS INFO says we have to first input mandatory fields.

this is uncomfortable for us. how to avoid this.


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 Feb 08, 2005 at 08:11 AM

    Hi ambi,

    you could define obligatory parameters as non-obligatory (that is, remove the "obligatory" clause), and then check them out at the "at selection-screen" or "start-of-selection" events. That is:

      if v_bukrs is initial.
        message e037(68).   "for instance

    Please let me know if it helped. BR,


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Ambichan,

      The code given by Alvaro would work, provided the user hits the F9 button / Execute in Background button on the selection-screen.

      When you say that the condition has to be checked only in the background, then the above condition does not always get checked. For example, if the user goes to the initial screen of SE38 and follows the menu path Program >Execute >Background, then the condition will never get checked.

      So if you think that is a possibility, then I would advise that you rather use the following condition.

      tables sscrfields.
      at selection-screen.
        if sy-batch = 'X' or sscrfields-ucomm = 'SJOB'.
          message e106.


      Anand Mandalika.

      at selection-screen.

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.