Skip to Content
0
Former Member
Oct 29, 2005 at 12:19 PM

Individual Program running ok but not thru Calling Program.

13 Views

I Get Fcode for push button as 'ONLI', When I call aprogram from Other program. If I run the program standalone it gives correct fcode 'FLAG' as defined.

I do not know why the fcode is 'ONLI' when it is defined as 'FLAG' in selection screen of called program.

<b>Calling Program ZIFI_BACS_MENU</b>

module user_command_0100 input.

case ok_code.

when 'EXIT' or 'BACK'.

leave program.

when 'AUTOEXTRACT'.

submit zifi_bacs_auto and return.

when 'MANUEXTRACT'.

submit zifi_bacs_manu and return.

endcase.

endmodule. " USER_COMMAND_0100 INPUT

<b>CALLED PROGRAM zifi_bacs_auto OR zifi_bacs_manu</b>

SELECTION-SCREEN: BEGIN OF BLOCK flag WITH FRAME.

SELECTION-SCREEN PUSHBUTTON /1(50) button USER-COMMAND flag.

SELECTION-SCREEN END OF BLOCK flag.

AT SELECTION-SCREEN.

IF sscrfields-ucomm = 'FLAG'.

CALL TRANSACTION 'SM30' USING bdcdata MODE 'E'.

ENDIF.