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

Back/Exit/Cancel button not working for Module Programing

Former Member
0 Likes
492

Hi,

I have written the following code of module program. After describing GUI status and title when I tried to Execute my program (also written complete Flow logic for these) my back or exist or cancel button is not working.

Please let me know, how I am going to resolve this issue.

*& Include MZ_TEST_UTUBE_1TOP                                Module Pool      SAPMZ_TEST_UTUBE_1

*&

*&---------------------------------------------------------------------*

PROGRAM  SAPMZ_TEST_UTUBE_1.

DATA : OK_CODE TYPE SY-UCOMM.

PBO:

***INCLUDE MZ_TEST_UTUBE_1_STATUS_9001O01 .

*----------------------------------------------------------------------*

*&---------------------------------------------------------------------*

*&      Module  STATUS_9001  OUTPUT

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

MODULE STATUS_9001 OUTPUT.

  SET PF-STATUS 'Z_STATUS_UTUBE'.

  SET TITLEBAR 'ZTITLE'.

ENDMODULE.                 " STATUS_9001  OUTPUT

PAI:

MODULE USER_COMMAND_9001 INPUT.

CASE OK_CODE.

  WHEN 'BACK' OR 'EXIT' OR 'CANC'.

    LEAVE PROGRAM.

ENDCASE.

ENDMODULE.     

Regards

Shafali Jain

1 REPLY 1
Read only

VenkatRamesh_V
Active Contributor
0 Likes
449

Hi,

Check  Gui Status  Active  or  not .

Create a  user  command     ok_code  is triggering in Debugger.

Hope it helpful,

Regards,

Venkat.