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

Checkbox for dialog

Former Member
0 Likes
767

Hi

i got this code where the checkbox can dynamic change the textbox field after the checkbox is check. But it is in selection screen. I need it to be in dialog screen.

Any help?

REPORT ZGARY_CHECKBOX.

parameters: p_chk1 as checkbox user-command rusr.

selection-screen: begin of block blk1 with frame.

parameters: p_text(20) modif id ABC.

selection-screen: end of block blk1.

AT SELECTION-SCREEN output.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'ABC'.

IF p_chk1 = 'X'.

p_text = 'Hello'.

ELSE.

p_text = 'World'.

ENDIF.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
551

Hi

In PAI write a module which checks if teh check box is checked or not.

if it is checked, then give reuired value to the field(text box) and set a flag.

Now call the screen once again.

In PBO if taht flag is set then set thye field(textbox ) to the required value

Regards

vasu

Hi

i got this code where the checkbox can dynamic change the textbox field after the checkbox is check. But it is in selection screen. I need it to be in dialog screen.

Any help?

REPORT ZGARY_CHECKBOX.

parameters: p_chk1 as checkbox user-command rusr.

selection-screen: begin of block blk1 with frame.

parameters: p_text(20) modif id ABC.

selection-screen: end of block blk1.

AT SELECTION-SCREEN output.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'ABC'.

IF p_chk1 = 'X'.

p_text = 'Hello'.

ELSE.

p_text = 'World'.

ENDIF.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

2 REPLIES 2
Read only

Former Member
0 Likes
551

Hi,

Check boxes and Radiobuttons refer the following demo program

the standard programme name is demo_dynpro_check_radio.

for Dialog programming

Use ABAPDOCU Transaction code=>ABAP User Dialogs=>Screens=>Processing screens.

Thanks and Regards,

dharani kumar.g

Read only

Former Member
0 Likes
552

Hi

In PAI write a module which checks if teh check box is checked or not.

if it is checked, then give reuired value to the field(text box) and set a flag.

Now call the screen once again.

In PBO if taht flag is set then set thye field(textbox ) to the required value

Regards

vasu