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

at selection-screen for checkbox

HI Experts,

I want to have 4 checkboxes in a selection-screen like cb1,cb2cb3,cb4, and if iam selecting any checkbox like cb2 or cb3 or cb4 or even all 3 checkboxes the first checkbox cb1 has to check automatically? how to do it? rewarded if helpful..

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Apr 30, 2008 at 01:54 PM

    Try this type of code:

    parameters: p_ch1 as checkbox,
                p_ch2 as checkbox user-command usr1,
                p_ch3 as checkbox user-command usr1,
                p_ch4 as checkbox user-command usr1.
    
    at selection-screen.
      if p_ch2 = 'X' or p_ch3 = 'X' or p_ch4 = 'X'.
        p_ch1 = 'X'.
      endif.
    

    Regards,

    Naimesh Patel

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 30, 2008 at 01:55 PM

    hi,

     at selection-screen output.
     if c2 = 'X' or c3 = 'X' or c4 = 'X'. 
      loop at screen.
        if screen-name = 'C1'.
            screen-input = '1'.
            modify screen. 
        endif.
      endloop.
    endif. 

    Regards,

    Santosh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 30, 2008 at 01:56 PM

    Hi,

    To check cb1, use the FM:

    REFRESH DYNPFIELDS.

    CLEAR DYNPFIELDS.

    MOVE 'field name' TO DYNPFIELDS-FIELDNAME.

    MOVE 'X' TO DYNPFIELDS-FIELDVALUE.

    APPEND DYNPFIELDS.

    CALL FUNCTION 'DYNP_VALUES_UPDATE'

    EXPORTING

    DYNAME = 'Name program'

    DYNUMB = 'Screen'

    TABLES

    DYNPFIELDS = DYNPFIELDS

    EXCEPTIONS

    OTHERS = 0.

    Regards,

    Fernando

    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.