2007 Sep 28 8:32 AM
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.
2007 Sep 28 9:10 AM
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.
2007 Sep 28 9:09 AM
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
2007 Sep 28 9:10 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |