cancel
Showing results for 
Search instead for 
Did you mean: 

Assign Tcode to the Push Button

ninad18
Explorer
0 Kudos
318

MODULE USER_COMMAND_0110 INPUT. DATA : FCT_CREATE TYPE SY-UCOMM. IF SY-UCOMM = FCT_CREATE. CALL TRANSACTION 'T-CODE'. ENDIF. ENDMODULE.

 

Not going to that T-CODE please Guide me.
Thank You.

View Entire Topic
Ehsan_Ghasemi
Explorer
0 Kudos

You must initialized FCT_CRAEATE. IF statement is not execute

MODULE USER_COMMAND_0110 INPUT.
 DATA : FCT_CREATE TYPE SY-UCOMM.
 FCT_CRAEATE = 'XXXX'. " You must initialized FCT_CRAEATE.
 IF SY-UCOMM = FCT_CREATE.
     CALL TRANSACTION 'T-CODE'.
 ENDIF.
 ENDMODULE.

or use 

SUBMIT ZPROGRAM  WITH PARAMETER = 'VAL'  AND RETURN VIA SELECTION-SCREEN.

 

ninad18
Explorer
0 Kudos
MODULE USER_COMMAND_0110 INPUT. DATA : FCT_CREATE TYPE SY-UCOMM. FCT_CRAEATE = 'XXXX'. " You must initialized FCT_CRAEATE. IF SY-UCOMM = FCT_CREATE. CALL TRANSACTION 'T-CODE'. ENDIF. ENDMODULE.
ninad18
Explorer
0 Kudos

@Ehsan_Ghasemi 

FCT_CREATE = 'XXXX' .
what i replace XXXX in below image.

ninad18_0-1721486770882.png

Thanks

Ehsan_Ghasemi
Explorer
0 Kudos

@ninad18You choose fctType as T(transaction) so you must replace FCT_CRAEATE with a transaction in FctCode ( for example MM03 or ZXX) 

or change fctType to <none> then use FctCode (in your program FCT_CRAEATE  ) in PAI

MODULE USER_COMMAND_0110 INPUT.
 CASE SY-UCOMM.
 WHEN 'FCT_CREATE'.
     CALL TRANSACTION 'T-CODE'.
 ENDCASE.
ENDMODULE.