Skip to Content

Screen field invisible...

Hi all,

My requirment is as follows:

I have two radiobuttons...

one input parameters...

...the reqmnt is ..whn we select rad1 the input parameter must be mandatory...

and for rad2 the input parameter should be invisible...

i hav to do validation for input parameter also.....

so plz let me know under which event i should write and wt shld i write..

thnx

Rohit

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 18, 2008 at 11:36 AM

    Hi Rohit,

    At selection-screen on field will be useful for your requirement.

    Reward points if useful.

    thanks & regards,

    Khan.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 18, 2008 at 09:27 AM

    Check this sample code:

    PARAMETERS: pa_logic RADIOBUTTON GROUP e1 USER-COMMAND inv DEFAULT 'X',
    pa_equip RADIOBUTTON GROUP e1,
    pa_ob RADIOBUTTON GROUP e1.
    PARAMETERS: pa_zpms AS CHECKBOX MODIF ID i1.
    PARAMETERS :
    pa_pex1 TYPE rlgrap-filename MODIF ID i2, " buyers list PC
    pa_uex1(200) LOWER CASE MODIF ID i2. " buyers list Unix

    AT SELECTION-SCREEN OUTPUT.
    
    
    IF pa_equip <> 'X'.
    LOOP AT SCREEN.
    IF screen-group1 = 'I1'.
    screen-active = 0.  " raise a error message to enter the value in field
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ENDIF.
    
    IF pa_logic <> 'X'.
    LOOP AT SCREEN.
    IF screen-group1 = 'I2'.
    screen-active = 0. 
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

    • if you want to validate a particular field, I would choose the ON input_field option.

      AT SELECTION-SCREEN ON field

      event is triggered. The input field field can be checked in the corresponding event block. If an error message occurs within this event block, the corresponding field is made ready for input again on the selection screen.

      But this depends on if you want to validate one or more fields at the same time. In the ON input_field option from above, all fields, except the input_field will be disabled (non-editable). If you do not want this, you should choose other option.

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.