在新窗口中打开T-CODE

方法1:
CALL  FUNCTION  'ABAP4_CALL_TRANSACTION'
   STARTING  NEW  TASK  'A'
   EXPORTING
    TCODE                          'MM01'
*   SKIP_SCREEN                   = ' '
*   MODE_VAL                      = 'A'
*   UPDATE_VAL                    = 'A'
* IMPORTING
*   SUBRC                         =
* TABLES
*   USING_TAB                     =
*   SPAGPA_TAB                    =
*   MESS_TAB                      =
* EXCEPTIONS
*   CALL_TRANSACTION_DENIED       = 1
*   TCODE_INVALID                 = 2
*   OTHERS                        = 3

          .



方法2:

CALL FUNCTION 'NAVIGATION_EXECUTE_OBJECT'
  EXPORTING
    OBJECT_NAME           'MM01' "T-CODE
    REPORTTYPE            'TR' " Transaction
    SAP_GUID              ' '
    NEW_WINDOW            'X'
    NO_PROGRESS_INDICATOR 'X'
    REPLACE_RFC_VARIABLES 'X'.

你可能感兴趣的:(在新窗口中打开T-CODE)