SAP CIF_ORDER_CONVERT Function Module for NOTRANSL: Übernahme der Daten aus R3-Tabellen in APO-Tabellen
CIF_ORDER_CONVERT is a standard cif order convert 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: Übernahme der Daten aus R3-Tabellen in APO-Tabellen 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 cif order convert FM, simply by entering the name CIF_ORDER_CONVERT into the relevant SAP transaction such as SE37 or SE38.
Function Group: CORD
Program Name: SAPLCORD
Main Program: SAPLCORD
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CIF_ORDER_CONVERT 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 'CIF_ORDER_CONVERT'"NOTRANSL: Übernahme der Daten aus R3-Tabellen in APO-Tabellen.
EXPORTING
* IV_OBJECTTYPE = GC_PROD_ORDER "
* IV_METHOD = G_METH_NEW_CON "
* IV_CIFTRIGGER = "
* IV_ORDERTRIGGER = "
TABLES
* IT_R3ORD = "
* IT_R3OPR_X = "
* IT_R3ACT_X = "
* IT_R3REQ_X = "
* IT_R3RES_X = "
* IT_R3REL_X = "
* ET_APOORD = "
* ET_APOOPR = "
* ET_APOACT = "
* ET_APOREQ = "
* ET_APOINP = "
* IT_R3POS = "
* ET_APOOUT = "
* ET_APOREL = "
* ET_APOORD_X = "
* ET_APOOPR_X = "
* ET_APOACT_X = "
* ET_APOREQ_X = "
* ET_APOINP_X = "
* ET_APOOUT_X = "
* ET_APOREL_X = "
* ET_R3PLORD = "
* IT_R3OPR = "
* ET_ORD_CAMP = "Orders for APO in R/3 Format
* ET_R3OPR_TXT = "
* IT_R3ACT = "
* IT_R3REQ = "
* IT_R3RES = "
* IT_R3REL = "
* IT_R3ORD_X = "
* IT_R3POS_X = "
EXCEPTIONS
TIME_CONVERSION_FAILED = 1 QUANTITY_CONVERSION_FAILED = 2 DURATION_CONVERSION_FAILED = 3
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_SAPLCORD_001 User Exit for Order Type Mapping
EXIT_SAPLCORD_002 User Exit for Order Type Mapping
EXIT_SAPLCORD_004 Customer Exit f. Selection of Customer-Specific Data During Initial Trans.
EXIT_SAPLCORD_005 User Exit for Inbound Processing of In-House Production (from APO30A)
IMPORTING Parameters details for CIF_ORDER_CONVERT
IV_OBJECTTYPE -
Data type: CIF_APOORD-OBJECTTYPEDefault: GC_PROD_ORDER
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_METHOD -
Data type: CIF_APOORD-METHODDefault: G_METH_NEW_CON
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_CIFTRIGGER -
Data type: CIFCTRLPAR-CIFTRIGGEROptional: Yes
Call by Reference: No ( called with pass by value option)
IV_ORDERTRIGGER -
Data type: CIFCTRLPAR-CIFTRIGGEROptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CIF_ORDER_CONVERT
IT_R3ORD -
Data type: CIF_R3ORDOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_R3OPR_X -
Data type: CIF_R3OPRXOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_R3ACT_X -
Data type: CIF_R3ACTXOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_R3REQ_X -
Data type: CIF_R3REQXOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_R3RES_X -
Data type: CIF_R3RESXOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_R3REL_X -
Data type: CIF_R3RELXOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_APOORD -
Data type: CIF_APOORDOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_APOOPR -
Data type: CIF_APOOPROptional: Yes
Call by Reference: No ( called with pass by value option)
ET_APOACT -
Data type: CIF_APOACTOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_APOREQ -
Data type: CIF_APOREQOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_APOINP -
Data type: CIF_APOINPOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_R3POS -
Data type: CIF_R3POSOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_APOOUT -
Data type: CIF_APOOUTOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_APOREL -
Data type: CIF_APORELOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_APOORD_X -
Data type: CIF_APOORXOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_APOOPR_X -
Data type: CIF_APOOPXOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_APOACT_X -
Data type: CIF_APOACXOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_APOREQ_X -
Data type: CIF_APORQXOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_APOINP_X -
Data type: CIF_APOINXOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_APOOUT_X -
Data type: CIF_APOOUXOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_APOREL_X -
Data type: CIF_APORLXOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_R3PLORD -
Data type: CIF_R3PLPOOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_R3OPR -
Data type: CIF_R3OPROptional: Yes
Call by Reference: No ( called with pass by value option)
ET_ORD_CAMP - Orders for APO in R/3 Format
Data type: CIF_R3ORDOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_R3OPR_TXT -
Data type: CIF_OPR_TXTOptional: Yes
Call by Reference: Yes
IT_R3ACT -
Data type: CIF_R3ACTOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_R3REQ -
Data type: CIF_R3REQOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_R3RES -
Data type: CIF_R3RESOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_R3REL -
Data type: CIF_R3RELOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_R3ORD_X -
Data type: CIF_R3ORDXOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_R3POS_X -
Data type: CIF_R3POSXOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
TIME_CONVERSION_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
QUANTITY_CONVERSION_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DURATION_CONVERSION_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CIF_ORDER_CONVERT 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: | ||||
| lt_it_r3ord | TYPE STANDARD TABLE OF CIF_R3ORD, " | |||
| lv_iv_objecttype | TYPE CIF_APOORD-OBJECTTYPE, " GC_PROD_ORDER | |||
| lv_time_conversion_failed | TYPE CIF_APOORD, " | |||
| lt_it_r3opr_x | TYPE STANDARD TABLE OF CIF_R3OPRX, " | |||
| lt_it_r3act_x | TYPE STANDARD TABLE OF CIF_R3ACTX, " | |||
| lt_it_r3req_x | TYPE STANDARD TABLE OF CIF_R3REQX, " | |||
| lt_it_r3res_x | TYPE STANDARD TABLE OF CIF_R3RESX, " | |||
| lt_it_r3rel_x | TYPE STANDARD TABLE OF CIF_R3RELX, " | |||
| lt_et_apoord | TYPE STANDARD TABLE OF CIF_APOORD, " | |||
| lt_et_apoopr | TYPE STANDARD TABLE OF CIF_APOOPR, " | |||
| lt_et_apoact | TYPE STANDARD TABLE OF CIF_APOACT, " | |||
| lt_et_aporeq | TYPE STANDARD TABLE OF CIF_APOREQ, " | |||
| lt_et_apoinp | TYPE STANDARD TABLE OF CIF_APOINP, " | |||
| lt_it_r3pos | TYPE STANDARD TABLE OF CIF_R3POS, " | |||
| lv_iv_method | TYPE CIF_APOORD-METHOD, " G_METH_NEW_CON | |||
| lv_quantity_conversion_failed | TYPE CIF_APOORD, " | |||
| lt_et_apoout | TYPE STANDARD TABLE OF CIF_APOOUT, " | |||
| lt_et_aporel | TYPE STANDARD TABLE OF CIF_APOREL, " | |||
| lt_et_apoord_x | TYPE STANDARD TABLE OF CIF_APOORX, " | |||
| lt_et_apoopr_x | TYPE STANDARD TABLE OF CIF_APOOPX, " | |||
| lt_et_apoact_x | TYPE STANDARD TABLE OF CIF_APOACX, " | |||
| lt_et_aporeq_x | TYPE STANDARD TABLE OF CIF_APORQX, " | |||
| lt_et_apoinp_x | TYPE STANDARD TABLE OF CIF_APOINX, " | |||
| lt_et_apoout_x | TYPE STANDARD TABLE OF CIF_APOOUX, " | |||
| lt_et_aporel_x | TYPE STANDARD TABLE OF CIF_APORLX, " | |||
| lt_et_r3plord | TYPE STANDARD TABLE OF CIF_R3PLPO, " | |||
| lt_it_r3opr | TYPE STANDARD TABLE OF CIF_R3OPR, " | |||
| lv_iv_ciftrigger | TYPE CIFCTRLPAR-CIFTRIGGER, " | |||
| lv_duration_conversion_failed | TYPE CIFCTRLPAR, " | |||
| lt_et_ord_camp | TYPE STANDARD TABLE OF CIF_R3ORD, " | |||
| lt_et_r3opr_txt | TYPE STANDARD TABLE OF CIF_OPR_TXT, " | |||
| lt_it_r3act | TYPE STANDARD TABLE OF CIF_R3ACT, " | |||
| lv_iv_ordertrigger | TYPE CIFCTRLPAR-CIFTRIGGER, " | |||
| lt_it_r3req | TYPE STANDARD TABLE OF CIF_R3REQ, " | |||
| lt_it_r3res | TYPE STANDARD TABLE OF CIF_R3RES, " | |||
| lt_it_r3rel | TYPE STANDARD TABLE OF CIF_R3REL, " | |||
| lt_it_r3ord_x | TYPE STANDARD TABLE OF CIF_R3ORDX, " | |||
| lt_it_r3pos_x | TYPE STANDARD TABLE OF CIF_R3POSX. " |
|   CALL FUNCTION 'CIF_ORDER_CONVERT' "NOTRANSL: Übernahme der Daten aus R3-Tabellen in APO-Tabellen |
| EXPORTING | ||
| IV_OBJECTTYPE | = lv_iv_objecttype | |
| IV_METHOD | = lv_iv_method | |
| IV_CIFTRIGGER | = lv_iv_ciftrigger | |
| IV_ORDERTRIGGER | = lv_iv_ordertrigger | |
| TABLES | ||
| IT_R3ORD | = lt_it_r3ord | |
| IT_R3OPR_X | = lt_it_r3opr_x | |
| IT_R3ACT_X | = lt_it_r3act_x | |
| IT_R3REQ_X | = lt_it_r3req_x | |
| IT_R3RES_X | = lt_it_r3res_x | |
| IT_R3REL_X | = lt_it_r3rel_x | |
| ET_APOORD | = lt_et_apoord | |
| ET_APOOPR | = lt_et_apoopr | |
| ET_APOACT | = lt_et_apoact | |
| ET_APOREQ | = lt_et_aporeq | |
| ET_APOINP | = lt_et_apoinp | |
| IT_R3POS | = lt_it_r3pos | |
| ET_APOOUT | = lt_et_apoout | |
| ET_APOREL | = lt_et_aporel | |
| ET_APOORD_X | = lt_et_apoord_x | |
| ET_APOOPR_X | = lt_et_apoopr_x | |
| ET_APOACT_X | = lt_et_apoact_x | |
| ET_APOREQ_X | = lt_et_aporeq_x | |
| ET_APOINP_X | = lt_et_apoinp_x | |
| ET_APOOUT_X | = lt_et_apoout_x | |
| ET_APOREL_X | = lt_et_aporel_x | |
| ET_R3PLORD | = lt_et_r3plord | |
| IT_R3OPR | = lt_it_r3opr | |
| ET_ORD_CAMP | = lt_et_ord_camp | |
| ET_R3OPR_TXT | = lt_et_r3opr_txt | |
| IT_R3ACT | = lt_it_r3act | |
| IT_R3REQ | = lt_it_r3req | |
| IT_R3RES | = lt_it_r3res | |
| IT_R3REL | = lt_it_r3rel | |
| IT_R3ORD_X | = lt_it_r3ord_x | |
| IT_R3POS_X | = lt_it_r3pos_x | |
| EXCEPTIONS | ||
| TIME_CONVERSION_FAILED = 1 | ||
| QUANTITY_CONVERSION_FAILED = 2 | ||
| DURATION_CONVERSION_FAILED = 3 | ||
| . " CIF_ORDER_CONVERT | ||
ABAP code using 7.40 inline data declarations to call FM CIF_ORDER_CONVERT
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.| "SELECT single OBJECTTYPE FROM CIF_APOORD INTO @DATA(ld_iv_objecttype). | ||||
| DATA(ld_iv_objecttype) | = GC_PROD_ORDER. | |||
| "SELECT single METHOD FROM CIF_APOORD INTO @DATA(ld_iv_method). | ||||
| DATA(ld_iv_method) | = G_METH_NEW_CON. | |||
| "SELECT single CIFTRIGGER FROM CIFCTRLPAR INTO @DATA(ld_iv_ciftrigger). | ||||
| "SELECT single CIFTRIGGER FROM CIFCTRLPAR INTO @DATA(ld_iv_ordertrigger). | ||||
Search for further information about these or an SAP related objects