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

regarding checkbox

Former Member
0 Likes
472

hello friends,

my question is suppose i have one parameter & one check box on the selection screen, if i select check box ,the value can directly displayed in the selection screen parameter & if not the value can be clear with out using the execution button.

can you help me.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
454

Hi Sreekanth,

you have first to indicate the check box with user-command

PARAMETERS: p_box AS CHECKBOX USER-COMMAND abc.

then at selection-screen output,

AT SELECTION-SCREEN OUTPUT.

IF p_box IS INITIAL.

CLEAR: p_param

ELSE.

p_param = 'TEST'.

ENDIF.

thanks,

M

4 REPLIES 4
Read only

Former Member
0 Likes
454

Hi,

Yes you can do that

p_clear AS CHECKBOX.

IF p_clear = ' '.

w_text2 = 'and appended to the end of existing data'.

ELSE.

w_text2 = 'Existing Data will be deleted'.

ENDIF.

Do it this way will surely help you.

Read only

Former Member
0 Likes
455

Hi Sreekanth,

you have first to indicate the check box with user-command

PARAMETERS: p_box AS CHECKBOX USER-COMMAND abc.

then at selection-screen output,

AT SELECTION-SCREEN OUTPUT.

IF p_box IS INITIAL.

CLEAR: p_param

ELSE.

p_param = 'TEST'.

ENDIF.

thanks,

M

Read only

Former Member
0 Likes
454

Hi,

We can do it by declaring the Parameters as mentioned below

PARAMETERS: p_check AS CHECKBOX user-command test,

p_test type char10.

at selection-screen on p_test.

IF p_check = 'X'.

p_test = 'checked'.

ELSE.

p_test = 'Unchecked'.

ENDIF.

Hope this is useful.

Regards,

Sravanthi

Read only

Former Member
0 Likes
454

thanks for giving solution.