以下汇总了项目中使用过的跳转事务码语法&函数
1. 使用语法跳转 LEAVE TO TRANSACTION ‘TCODE’ AND SKIP FIRST SCREEN.
2. 跳转MIGO CALL FUNCTION ‘MIGO_DIALOG’.
3. 跳转ME23N CALL FUNCTION ‘ME_DISPLAY_PURCHASE_DOCUMENT’.
4. 跳转到CODE编辑器 CALL FUNCTION ‘EDITOR_PROGRAM’.
5. 跳转维护视图 CALL FUNCTION ‘VIEW_MAINTENANCE_CALL’.
6. 跳转显示物料视图 CALL FUNCTION ‘CP_08_MATERIAL_SHOW’.
7. 用BDC的方式跳转事务码的函数 CALL FUNCTION ‘ABAP4_CALL_TRANSACTION’.
代码语言:javascript复制 代码BDC方式跳转
DATA:lt_bdcdata TYPE TABLE OF bdcdata,
ls_bdcdata LIKE LINE OF lt_bdcdata.
DATA:lt_bdcmsgcoll TYPE TABLE OF bdcmsgcoll.
CLEAR: ls_bdcdata.
ls_bdcdata-program = 'SAPMM06E'.
ls_bdcdata-dynpro = 0205.
ls_bdcdata-dynbegin = 'X'.
APPEND ls_bdcdata TO lt_bdcdata.
CLEAR: ls_bdcdata.
ls_bdcdata-fnam = 'RM06E-EVRTN'.
ls_bdcdata-fval = gs_alv2-ebeln.
APPEND ls_bdcdata TO lt_bdcdata.
CLEAR: ls_bdcdata.
ls_bdcdata-fnam = 'BDC_OKCODE'.
ls_bdcdata-fval = '/00'.
APPEND ls_bdcdata TO lt_bdcdata.
CALL TRANSACTION 'ME33L' USING lt_bdcdata MODE 'E' UPDATE 'S'.
8. 调用SE16查询 RS_TABLE_LIST_CREATE