Skip to Content
author's profile photo
Former Member

Checkbox for dialog

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 08: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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 08: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

    Add comment
    10|10000 characters needed characters exceeded