Skip to Content
author's profile photo Former Member
Former Member

Dialog Screen and WRITE.

Hi,

I have create an ABAP program.. which CALL SCREEN 100. This screen 100 is design using Graphical Screen Painter. I have create an push button on it. When the button is press, I try to do some logic behind and want to do a WRITE statement but somehow.. the screen never print out the WRITE statement. Is there anyway to do it?

Regards,

Rayden

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 13, 2007 at 03:29 AM

    You can't use write statement in Dialog programs..eventhough if you want to use then use below syntax :

    case sy-ucomm.

    when 'PUSH'.

    <b>leave to list-processing</b> . " If it is not working then try <b>leave list-processing.</b>

    write:/ 'Push is selected'.

    endcase.

    Thanks

    Seshu

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 13, 2007 at 03:23 AM

    Check the sample program <b>demo_dynpro_push_button</b>

    Regards

    Gopi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 13, 2007 at 03:20 AM

    Hi,

    WRITE statement wont work on screen painter.

    Create a LABEL i.e. a TEXT FIELD and assign a name to it say 'RESULT' in Screen Layout.

    Acitvate the screen.

    In the PAI, when Push button is pressed

    CASE l_OKCODE.

    WHEN 'HIT'.

    v_flag = 'X'.

    ENDCASE.

    In the PBO, when Push button is pressed.

    IF V_FLAG = 'X'.

    LOOP AT SCREEN.

    if SCREEN-NAME = 'RESULT'.

    RESULT = 'Hit button pressed'.

    ENDIF.

    ENDLOOP.

    else.

    clear RESULT.

    endif.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.