SAP CO_XT_ORDER_PREPARE_COMMIT Function Module for NOTRANSL: Auftrag COMMIT vorbereiten
CO_XT_ORDER_PREPARE_COMMIT is a standard co xt order prepare commit SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Auftrag COMMIT vorbereiten processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for co xt order prepare commit FM, simply by entering the name CO_XT_ORDER_PREPARE_COMMIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: COXT
Program Name: SAPLCOXT
Main Program: SAPLCOXT
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CO_XT_ORDER_PREPARE_COMMIT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'CO_XT_ORDER_PREPARE_COMMIT'"NOTRANSL: Auftrag COMMIT vorbereiten.
IMPORTING
E_ORDER_KEY = "
ES_BAPIRETURN = "
E_ERROR_OCCURRED = "Generic Type
TABLES
* ET_ORD_KEY_MAP = "
* ET_BAPIRETURN = "
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLCOXT_001 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLCOXT_002 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXPORTING Parameters details for CO_XT_ORDER_PREPARE_COMMIT
E_ORDER_KEY -
Data type: COXT_ORD_KEYOptional: No
Call by Reference: No ( called with pass by value option)
ES_BAPIRETURN -
Data type: COXT_BAPIRETURNOptional: No
Call by Reference: No ( called with pass by value option)
E_ERROR_OCCURRED - Generic Type
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CO_XT_ORDER_PREPARE_COMMIT
ET_ORD_KEY_MAP -
Data type: COXT_T_ORD_KEY_MAPOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_BAPIRETURN -
Data type: COXT_T_BAPIRETURNOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CO_XT_ORDER_PREPARE_COMMIT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_e_order_key | TYPE COXT_ORD_KEY, " | |||
lt_et_ord_key_map | TYPE STANDARD TABLE OF COXT_T_ORD_KEY_MAP, " | |||
lv_es_bapireturn | TYPE COXT_BAPIRETURN, " | |||
lt_et_bapireturn | TYPE STANDARD TABLE OF COXT_T_BAPIRETURN, " | |||
lv_e_error_occurred | TYPE C. " |
  CALL FUNCTION 'CO_XT_ORDER_PREPARE_COMMIT' "NOTRANSL: Auftrag COMMIT vorbereiten |
IMPORTING | ||
E_ORDER_KEY | = lv_e_order_key | |
ES_BAPIRETURN | = lv_es_bapireturn | |
E_ERROR_OCCURRED | = lv_e_error_occurred | |
TABLES | ||
ET_ORD_KEY_MAP | = lt_et_ord_key_map | |
ET_BAPIRETURN | = lt_et_bapireturn | |
. " CO_XT_ORDER_PREPARE_COMMIT |
ABAP code using 7.40 inline data declarations to call FM CO_XT_ORDER_PREPARE_COMMIT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects