Skip to Content
0
Former Member
May 22, 2016 at 01:06 PM

Back/Exit/Cancel button not working for Module Programing

32 Views

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