Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

at selection-screen for checkbox

moniabap_moni
Explorer
0 Likes
708

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..

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
660

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

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..

3 REPLIES 3
Read only

naimesh_patel
Active Contributor
0 Likes
661

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

Read only

Former Member
0 Likes
660

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

Read only

Former Member
0 Likes
660

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