SAP /SAPAPO/DM_INP_CHANGE Function Module for Create/Change/Delete Sales Orders
/SAPAPO/DM_INP_CHANGE is a standard /sapapo/dm inp change SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create/Change/Delete Sales Orders 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 inp change FM, simply by entering the name /SAPAPO/DM_INP_CHANGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SAPAPO/DM_RESERVATION
Program Name: /SAPAPO/SAPLDM_RESERVATION
Main Program: /SAPAPO/SAPLDM_RESERVATION
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SAPAPO/DM_INP_CHANGE 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_INP_CHANGE'"Create/Change/Delete Sales Orders.
EXPORTING
* IV_SIMSESSION = ' ' "
* IV_ATP_UPDATE_MODE = ' ' "
IT_INPUTS = "Tabelle mit Kundenauftragseinteilungen
IS_GEN_PARAMS = "Allgemeine Parameter für FBs aus /SAPAPO/OM
* IT_OUTPUTS = "Tabelle mit zu ändernden I/O-Knoten
IMPORTING
ET_RC = "Tabelle mit Fehlercodes (falls vorhanden)
EXCEPTIONS
LC_CONNECT_FAILED = 1 LC_COM_ERROR = 2 LC_APPL_ERROR = 3 INVALID_ORDER_TYPE = 4
IMPORTING Parameters details for /SAPAPO/DM_INP_CHANGE
IV_SIMSESSION -
Data type: /SAPAPO/OM_SIMSESSIONDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_ATP_UPDATE_MODE -
Data type: /SAPAPO/OM_ATP_UPDATE_MODEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_INPUTS - Tabelle mit Kundenauftragseinteilungen
Data type: /SAPAPO/OM_IO_ATTR_TABOptional: No
Call by Reference: Yes
IS_GEN_PARAMS - Allgemeine Parameter für FBs aus /SAPAPO/OM
Data type: /SAPAPO/OM_GEN_PARAMSOptional: No
Call by Reference: Yes
IT_OUTPUTS - Tabelle mit zu ändernden I/O-Knoten
Data type: /SAPAPO/OM_IO_ATTR_TABOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for /SAPAPO/DM_INP_CHANGE
ET_RC - Tabelle mit Fehlercodes (falls vorhanden)
Data type: /SAPAPO/OM_LC_RC_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
LC_CONNECT_FAILED - Verbindungsaufbau zum liveCache gescheitert
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LC_COM_ERROR - COM-Routinen-Aufruf mit Systemfehler gescheitert
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LC_APPL_ERROR - COM-Routine mit eigenem Fehlercode beendet
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_ORDER_TYPE - Unzulässiger Auftragstyp
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for /SAPAPO/DM_INP_CHANGE 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_rc | TYPE /SAPAPO/OM_LC_RC_TAB, " | |||
| lv_iv_simsession | TYPE /SAPAPO/OM_SIMSESSION, " SPACE | |||
| lv_lc_connect_failed | TYPE /SAPAPO/OM_SIMSESSION, " | |||
| lv_lc_com_error | TYPE /SAPAPO/OM_SIMSESSION, " | |||
| lv_iv_atp_update_mode | TYPE /SAPAPO/OM_ATP_UPDATE_MODE, " SPACE | |||
| lv_it_inputs | TYPE /SAPAPO/OM_IO_ATTR_TAB, " | |||
| lv_lc_appl_error | TYPE /SAPAPO/OM_IO_ATTR_TAB, " | |||
| lv_is_gen_params | TYPE /SAPAPO/OM_GEN_PARAMS, " | |||
| lv_invalid_order_type | TYPE /SAPAPO/OM_GEN_PARAMS, " | |||
| lv_it_outputs | TYPE /SAPAPO/OM_IO_ATTR_TAB. " |
|   CALL FUNCTION '/SAPAPO/DM_INP_CHANGE' "Create/Change/Delete Sales Orders |
| EXPORTING | ||
| IV_SIMSESSION | = lv_iv_simsession | |
| IV_ATP_UPDATE_MODE | = lv_iv_atp_update_mode | |
| IT_INPUTS | = lv_it_inputs | |
| IS_GEN_PARAMS | = lv_is_gen_params | |
| IT_OUTPUTS | = lv_it_outputs | |
| IMPORTING | ||
| ET_RC | = lv_et_rc | |
| EXCEPTIONS | ||
| LC_CONNECT_FAILED = 1 | ||
| LC_COM_ERROR = 2 | ||
| LC_APPL_ERROR = 3 | ||
| INVALID_ORDER_TYPE = 4 | ||
| . " /SAPAPO/DM_INP_CHANGE | ||
ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_INP_CHANGE
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_simsession) | = ' '. | |||
| DATA(ld_iv_atp_update_mode) | = ' '. | |||
Search for further information about these or an SAP related objects