SAP /SAPAPO/DM_ORDER_CONVERT Function Module for Change Order from CIF Tables to DM and OM Tables









/SAPAPO/DM_ORDER_CONVERT is a standard /sapapo/dm 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 Change Order from CIF Tables to DM and OM Tables 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 FM, simply by entering the name /SAPAPO/DM_ORDER_CONVERT 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: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function /SAPAPO/DM_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 '/SAPAPO/DM_ORDER_CONVERT'"Change Order from CIF Tables to DM and OM Tables
EXPORTING
IV_LOGSYS = "Logisches System
IS_CIFORD = "
IS_ORDER = "
* IV_SIMID = '000' "Name der Planversion
* IT_MODES = "Tabelle mit Daten fuer den Modus-Split
* IS_ORDKEY = "Order Header Data of Application
* IV_EXPLODED = "General Flag

IMPORTING
ET_MODES = "Tabelle mit Daten fuer den Modus-Split
ET_INPUTS = "Tabelle mit Daten zu I/O-Interface-Knoten
ET_OUTPUTS = "Tabelle mit Daten zu I/O-Interface-Knoten
ET_CONSTR_EXT = "Tabelle mit Constraints (Anordnungsbeziehungen)

CHANGING
* CT_OPERATIONS = "Tabelle mit Dialogdaten der Vorgänge
* CT_ACTIVITIES = "Tabelle mit Aktivitäteninformationen
* CT_CONSTR_INT = "Tabelle mit Constraints (Anordnungsbeziehungen)
* CT_CAPREQS = "Tabelle mit Kapazitätsbedarfsdaten fuer Auftrags- /AVO-Split
* CT_OPR_FIRSTLAST_ACT = "Tabelle mit ersten und letzten Aktivitäten zu Vorgängen

TABLES
IT_CIFOPR = "
IT_CIFREQ = "
IT_CIFINP = "
IT_CIFOUT = "
IT_CIFREL = "
* IT_REL_X = "Ankreuzliste für Struktur /SAPAPO/CIF_ORDER_REL
* IT_OPRCUS = "Kundenerweiterungsstruktur zu /SAPAPO/CIF_ORDER_OPR
* IT_SEQMAP = "Mapping information of alternate sequence from R/3
* IT_CIFOPRALT = "

EXCEPTIONS
CONVERSION_FAILED = 1
.




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

IV_LOGSYS - Logisches System

Data type: LOGSYS
Optional: No
Call by Reference: No ( called with pass by value option)

IS_CIFORD -

Data type: /SAPAPO/CIF_ORDER_HEAD
Optional: No
Call by Reference: No ( called with pass by value option)

IS_ORDER -

Data type: /SAPAPO/OM_ORDER
Optional: No
Call by Reference: No ( called with pass by value option)

IV_SIMID - Name der Planversion

Data type: /SAPAPO/VRSIOID
Default: '000'
Optional: Yes
Call by Reference: Yes

IT_MODES - Tabelle mit Daten fuer den Modus-Split

Data type: /SAPAPO/OM_MODE_SPLIT_TAB
Optional: Yes
Call by Reference: Yes

IS_ORDKEY - Order Header Data of Application

Data type: /SAPAPO/ORDKEY
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_EXPLODED - General Flag

Data type: FLAG
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for /SAPAPO/DM_ORDER_CONVERT

ET_MODES - Tabelle mit Daten fuer den Modus-Split

Data type: /SAPAPO/OM_MODE_SPLIT_TAB
Optional: No
Call by Reference: Yes

ET_INPUTS - Tabelle mit Daten zu I/O-Interface-Knoten

Data type: /SAPAPO/OM_IO_TAB
Optional: No
Call by Reference: Yes

ET_OUTPUTS - Tabelle mit Daten zu I/O-Interface-Knoten

Data type: /SAPAPO/OM_IO_TAB
Optional: No
Call by Reference: Yes

ET_CONSTR_EXT - Tabelle mit Constraints (Anordnungsbeziehungen)

Data type: /SAPAPO/OM_CONSTRAINT_TAB
Optional: No
Call by Reference: Yes

CHANGING Parameters details for /SAPAPO/DM_ORDER_CONVERT

CT_OPERATIONS - Tabelle mit Dialogdaten der Vorgänge

Data type: /SAPAPO/DM_OPR_TAB
Optional: Yes
Call by Reference: Yes

CT_ACTIVITIES - Tabelle mit Aktivitäteninformationen

Data type: /SAPAPO/OM_TAB_ACT
Optional: Yes
Call by Reference: Yes

CT_CONSTR_INT - Tabelle mit Constraints (Anordnungsbeziehungen)

Data type: /SAPAPO/OM_CONSTRAINT_TAB
Optional: Yes
Call by Reference: Yes

CT_CAPREQS - Tabelle mit Kapazitätsbedarfsdaten fuer Auftrags- /AVO-Split

Data type: /SAPAPO/OM_CAP_REQS_SPLIT_TAB
Optional: Yes
Call by Reference: Yes

CT_OPR_FIRSTLAST_ACT - Tabelle mit ersten und letzten Aktivitäten zu Vorgängen

Data type: /SAPAPO/DM_ORDER_OPR_FL_TAB
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for /SAPAPO/DM_ORDER_CONVERT

IT_CIFOPR -

Data type: /SAPAPO/CIF_ORDER_OPR
Optional: No
Call by Reference: No ( called with pass by value option)

IT_CIFREQ -

Data type: /SAPAPO/CIF_ORDER_CAPREQ
Optional: No
Call by Reference: Yes

IT_CIFINP -

Data type: /SAPAPO/CIF_ORDER_INPUT
Optional: No
Call by Reference: Yes

IT_CIFOUT -

Data type: /SAPAPO/CIF_ORDER_OUTPUT
Optional: No
Call by Reference: Yes

IT_CIFREL -

Data type: /SAPAPO/CIF_ORDER_RELATION
Optional: No
Call by Reference: Yes

IT_REL_X - Ankreuzliste für Struktur /SAPAPO/CIF_ORDER_REL

Data type: /SAPAPO/CIF_ORDER_REL_X
Optional: Yes
Call by Reference: Yes

IT_OPRCUS - Kundenerweiterungsstruktur zu /SAPAPO/CIF_ORDER_OPR

Data type: /SAPAPO/CIF_OPRCUS
Optional: Yes
Call by Reference: Yes

IT_SEQMAP - Mapping information of alternate sequence from R/3

Data type: /SAPAPO/SEQMAP
Optional: Yes
Call by Reference: Yes

IT_CIFOPRALT -

Data type: /SAPAPO/CIF_ORDER_OPR
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

CONVERSION_FAILED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for /SAPAPO/DM_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:
lv_et_modes  TYPE /SAPAPO/OM_MODE_SPLIT_TAB, "   
lt_it_cifopr  TYPE STANDARD TABLE OF /SAPAPO/CIF_ORDER_OPR, "   
lv_iv_logsys  TYPE LOGSYS, "   
lv_ct_operations  TYPE /SAPAPO/DM_OPR_TAB, "   
lv_conversion_failed  TYPE /SAPAPO/DM_OPR_TAB, "   
lv_et_inputs  TYPE /SAPAPO/OM_IO_TAB, "   
lv_is_ciford  TYPE /SAPAPO/CIF_ORDER_HEAD, "   
lt_it_cifreq  TYPE STANDARD TABLE OF /SAPAPO/CIF_ORDER_CAPREQ, "   
lv_ct_activities  TYPE /SAPAPO/OM_TAB_ACT, "   
lv_is_order  TYPE /SAPAPO/OM_ORDER, "   
lt_it_cifinp  TYPE STANDARD TABLE OF /SAPAPO/CIF_ORDER_INPUT, "   
lv_et_outputs  TYPE /SAPAPO/OM_IO_TAB, "   
lv_ct_constr_int  TYPE /SAPAPO/OM_CONSTRAINT_TAB, "   
lv_iv_simid  TYPE /SAPAPO/VRSIOID, "   '000'
lt_it_cifout  TYPE STANDARD TABLE OF /SAPAPO/CIF_ORDER_OUTPUT, "   
lv_ct_capreqs  TYPE /SAPAPO/OM_CAP_REQS_SPLIT_TAB, "   
lv_et_constr_ext  TYPE /SAPAPO/OM_CONSTRAINT_TAB, "   
lv_it_modes  TYPE /SAPAPO/OM_MODE_SPLIT_TAB, "   
lt_it_cifrel  TYPE STANDARD TABLE OF /SAPAPO/CIF_ORDER_RELATION, "   
lv_ct_opr_firstlast_act  TYPE /SAPAPO/DM_ORDER_OPR_FL_TAB, "   
lt_it_rel_x  TYPE STANDARD TABLE OF /SAPAPO/CIF_ORDER_REL_X, "   
lv_is_ordkey  TYPE /SAPAPO/ORDKEY, "   
lt_it_oprcus  TYPE STANDARD TABLE OF /SAPAPO/CIF_OPRCUS, "   
lv_iv_exploded  TYPE FLAG, "   
lt_it_seqmap  TYPE STANDARD TABLE OF /SAPAPO/SEQMAP, "   
lt_it_cifopralt  TYPE STANDARD TABLE OF /SAPAPO/CIF_ORDER_OPR. "   

  CALL FUNCTION '/SAPAPO/DM_ORDER_CONVERT'  "Change Order from CIF Tables to DM and OM Tables
    EXPORTING
         IV_LOGSYS = lv_iv_logsys
         IS_CIFORD = lv_is_ciford
         IS_ORDER = lv_is_order
         IV_SIMID = lv_iv_simid
         IT_MODES = lv_it_modes
         IS_ORDKEY = lv_is_ordkey
         IV_EXPLODED = lv_iv_exploded
    IMPORTING
         ET_MODES = lv_et_modes
         ET_INPUTS = lv_et_inputs
         ET_OUTPUTS = lv_et_outputs
         ET_CONSTR_EXT = lv_et_constr_ext
    CHANGING
         CT_OPERATIONS = lv_ct_operations
         CT_ACTIVITIES = lv_ct_activities
         CT_CONSTR_INT = lv_ct_constr_int
         CT_CAPREQS = lv_ct_capreqs
         CT_OPR_FIRSTLAST_ACT = lv_ct_opr_firstlast_act
    TABLES
         IT_CIFOPR = lt_it_cifopr
         IT_CIFREQ = lt_it_cifreq
         IT_CIFINP = lt_it_cifinp
         IT_CIFOUT = lt_it_cifout
         IT_CIFREL = lt_it_cifrel
         IT_REL_X = lt_it_rel_x
         IT_OPRCUS = lt_it_oprcus
         IT_SEQMAP = lt_it_seqmap
         IT_CIFOPRALT = lt_it_cifopralt
    EXCEPTIONS
        CONVERSION_FAILED = 1
. " /SAPAPO/DM_ORDER_CONVERT




ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_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.

 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_iv_simid) = '000'.
 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!