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

GUI-status

HOW to display text in application toolbar of a gui status

dynamically.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 08:19 AM

    hi

    Check this thread with the same topic, this will help you.

    dynamic-pf--status

    http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba99935c111d1829f0000e829fbfe/content.htm

    Dynamic screen modifications.

    REPORT demo_dynpro_modify_simple.

    DATA: ok_code TYPE sy-ucomm,

    save_ok TYPE sy-ucomm.

    DATA flag(1) TYPE c.

    CALL SCREEN 100.

    MODULE status_0100 OUTPUT.

    SET PF-STATUS 'SCREEN_100'.

    LOOP AT SCREEN.

    IF screen-group1 = 'MOD'.

    IF flag = ' '.

    screen-input = '0'.

    ELSEIF flag = 'X'.

    screen-input = '1'.

    ENDIF.

    MODIFY SCREEN.

    ENDIF.

    ENDLOOP.

    ENDMODULE.

    MODULE cancel.

    LEAVE PROGRAM.

    ENDMODULE.

    MODULE user_command_0100 INPUT.

    save_ok = ok_code.

    CLEAR ok_code.

    CASE save_ok.

    WHEN 'TOGGLE'.

    IF flag = ' '.

    flag = 'X'.

    ELSEIF flag = 'X'.

    flag = ' '.

    ENDIF.

    ENDCASE.

    ENDMODULE.

    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.