SAP /SAPAPO/DM_ORDER_CONVERT_REL Function Module for Change CIF Relationships to OM Constraints
/SAPAPO/DM_ORDER_CONVERT_REL is a standard /sapapo/dm order convert rel SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Change CIF Relationships to OM Constraints 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 /sapapo/dm order convert rel FM, simply by entering the name /SAPAPO/DM_ORDER_CONVERT_REL into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SAPAPO/DM_ORDER
Program Name: /SAPAPO/SAPLDM_ORDER
Main Program: /SAPAPO/SAPLDM_ORDER
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SAPAPO/DM_ORDER_CONVERT_REL 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 '/SAPAPO/DM_ORDER_CONVERT_REL'"Change CIF Relationships to OM Constraints.
EXPORTING
IV_ORDERID = "
IV_ORDNR = "
IT_ACTIVITIES = "
* IT_OPERATIONS = "Tabelle mit Dialogdaten der Vorgänge
* IT_MODES = "Tabelle mit Daten fuer den Modus-Split
* IS_ORDKEY = "Order Header Data of Application
IMPORTING
EV_FIRST_ACTIVITY = "
EV_LAST_ACTIVITY = "
CHANGING
* CT_CONSTRAINTS_INT = "Tabelle mit Constraints (Anordnungsbeziehungen)
* CT_CAPREQS = "Tabelle mit Kapazitätsbedarfsdaten fuer Auftrags- /AVO-Split
* CT_MODES = "Tabelle mit Daten fuer den Modus-Split
* CV_MODIFY = "Dummy Datenlement für Boolean-Felder
TABLES
IT_REL = "
IT_REL_X = "Ankreuzliste für Struktur /SAPAPO/CIF_ORDER_REL
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_/SAPAPO/SAPLDM_ORDER_001 Post User-Specific Order Fields
EXIT_/SAPAPO/SAPLDM_ORDER_002 Control Reupdate to R/3 On a Customer-Specific Basis
IMPORTING Parameters details for /SAPAPO/DM_ORDER_CONVERT_REL
IV_ORDERID -
Data type: /SAPAPO/ORDERUIDOptional: No
Call by Reference: No ( called with pass by value option)
IV_ORDNR -
Data type: /SAPAPO/DELNROptional: No
Call by Reference: No ( called with pass by value option)
IT_ACTIVITIES -
Data type: /SAPAPO/OM_TAB_ACTOptional: No
Call by Reference: Yes
IT_OPERATIONS - Tabelle mit Dialogdaten der Vorgänge
Data type: /SAPAPO/DM_OPR_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_MODES - Tabelle mit Daten fuer den Modus-Split
Data type: /SAPAPO/OM_MODE_SPLIT_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_ORDKEY - Order Header Data of Application
Data type: /SAPAPO/ORDKEYOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for /SAPAPO/DM_ORDER_CONVERT_REL
EV_FIRST_ACTIVITY -
Data type: /SAPAPO/ACTIDOptional: No
Call by Reference: No ( called with pass by value option)
EV_LAST_ACTIVITY -
Data type: /SAPAPO/ACTIDOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for /SAPAPO/DM_ORDER_CONVERT_REL
CT_CONSTRAINTS_INT - Tabelle mit Constraints (Anordnungsbeziehungen)
Data type: /SAPAPO/OM_CONSTRAINT_TABOptional: Yes
Call by Reference: Yes
CT_CAPREQS - Tabelle mit Kapazitätsbedarfsdaten fuer Auftrags- /AVO-Split
Data type: /SAPAPO/OM_CAP_REQS_SPLIT_TABOptional: Yes
Call by Reference: Yes
CT_MODES - Tabelle mit Daten fuer den Modus-Split
Data type: /SAPAPO/OM_MODE_SPLIT_TABOptional: Yes
Call by Reference: Yes
CV_MODIFY - Dummy Datenlement für Boolean-Felder
Data type: /SAPAPO/BOOLEANOptional: Yes
Call by Reference: Yes
TABLES Parameters details for /SAPAPO/DM_ORDER_CONVERT_REL
IT_REL -
Data type: /SAPAPO/CIF_ORDER_RELATIONOptional: No
Call by Reference: No ( called with pass by value option)
IT_REL_X - Ankreuzliste für Struktur /SAPAPO/CIF_ORDER_REL
Data type: /SAPAPO/CIF_ORDER_REL_XOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SAPAPO/DM_ORDER_CONVERT_REL 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_rel | TYPE STANDARD TABLE OF /SAPAPO/CIF_ORDER_RELATION, " | |||
| lv_iv_orderid | TYPE /SAPAPO/ORDERUID, " | |||
| lv_ev_first_activity | TYPE /SAPAPO/ACTID, " | |||
| lv_ct_constraints_int | TYPE /SAPAPO/OM_CONSTRAINT_TAB, " | |||
| lt_it_rel_x | TYPE STANDARD TABLE OF /SAPAPO/CIF_ORDER_REL_X, " | |||
| lv_iv_ordnr | TYPE /SAPAPO/DELNR, " | |||
| lv_ct_capreqs | TYPE /SAPAPO/OM_CAP_REQS_SPLIT_TAB, " | |||
| lv_ev_last_activity | TYPE /SAPAPO/ACTID, " | |||
| lv_ct_modes | TYPE /SAPAPO/OM_MODE_SPLIT_TAB, " | |||
| lv_it_activities | TYPE /SAPAPO/OM_TAB_ACT, " | |||
| lv_cv_modify | TYPE /SAPAPO/BOOLEAN, " | |||
| lv_it_operations | TYPE /SAPAPO/DM_OPR_TAB, " | |||
| lv_it_modes | TYPE /SAPAPO/OM_MODE_SPLIT_TAB, " | |||
| lv_is_ordkey | TYPE /SAPAPO/ORDKEY. " |
|   CALL FUNCTION '/SAPAPO/DM_ORDER_CONVERT_REL' "Change CIF Relationships to OM Constraints |
| EXPORTING | ||
| IV_ORDERID | = lv_iv_orderid | |
| IV_ORDNR | = lv_iv_ordnr | |
| IT_ACTIVITIES | = lv_it_activities | |
| IT_OPERATIONS | = lv_it_operations | |
| IT_MODES | = lv_it_modes | |
| IS_ORDKEY | = lv_is_ordkey | |
| IMPORTING | ||
| EV_FIRST_ACTIVITY | = lv_ev_first_activity | |
| EV_LAST_ACTIVITY | = lv_ev_last_activity | |
| CHANGING | ||
| CT_CONSTRAINTS_INT | = lv_ct_constraints_int | |
| CT_CAPREQS | = lv_ct_capreqs | |
| CT_MODES | = lv_ct_modes | |
| CV_MODIFY | = lv_cv_modify | |
| TABLES | ||
| IT_REL | = lt_it_rel | |
| IT_REL_X | = lt_it_rel_x | |
| . " /SAPAPO/DM_ORDER_CONVERT_REL | ||
ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_ORDER_CONVERT_REL
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