1 DATA:ls_return TYPE bapireturn1, 2 ls_plaf TYPE plaf. 3 4 CALL FUNCTION 'BAPI_PLANNEDORDER_DELETE' 5 EXPORTING 6 plannedorder = ls_plaf-plnum 7 * USE_COLL_UPDATE = ' ' 8 * LAST_ORDER = ' ' 9 IMPORTING 10 return = ls_return. 11 12 IF ls_return-type = 'S' . 13 14 CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' 15 EXPORTING 16 wait = 'X'. 17 18 ELSE . 19 20 CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'. 21 22 ENDIF .标签:FUNCTION,BAPI,return,删除,ABAP,CALL,ls,plaf,MD12 From: https://www.cnblogs.com/TigerMan/p/17416768.html