SAP /SAPAPO/DM_CONF_QUANTITY_COMP Function Module for Recalculates the Operation Quantities for a Confirmation
/SAPAPO/DM_CONF_QUANTITY_COMP is a standard /sapapo/dm conf quantity comp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Recalculates the Operation Quantities for a Confirmation 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 conf quantity comp FM, simply by entering the name /SAPAPO/DM_CONF_QUANTITY_COMP into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SAPAPO/DM_CONFIRMATION
Program Name: /SAPAPO/SAPLDM_CONFIRMATION
Main Program: /SAPAPO/SAPLDM_CONFIRMATION
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SAPAPO/DM_CONF_QUANTITY_COMP 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_CONF_QUANTITY_COMP'"Recalculates the Operation Quantities for a Confirmation.
EXPORTING
IT_ACTIVITIES = "
* IS_CONF_ORD = "Auftragsbezogene Rückmeldedaten für Propagation
* IS_ORDKEY = "Schlüssel und beschreibende Daten zum Auftrag
* IV_FINAL_CONF = "Verknüpfungsfeld für View-Query
IT_RELATIONS = "
IV_OPRCOUNTER = "
IV_DELTA_SCRAP = "
IV_DELTA_RCPT = "
* IT_INPUTS = "
* IT_OUTPUTS = "
IT_MODES = "Tabelle mit Modusinformationen
* IT_CONF_OPR = "Vorgangsbezogene Rückmeldedaten für Propagation
CHANGING
CT_DELTA_INPUTS = "Tabelle mit zu ändernden I/O-Knoten
CT_DELTA_OUTPUTS = "Tabelle mit zu ändernden I/O-Knoten
CT_DELTA_MODES = "Tabelle mit neuen Modidaten
TABLES
CT_OPERATIONS = "
CT_A_DELTAS = "Tabelle mit neuen Aktivitätsdaten
IMPORTING Parameters details for /SAPAPO/DM_CONF_QUANTITY_COMP
IT_ACTIVITIES -
Data type: /SAPAPO/OM_TAB_ACTOptional: No
Call by Reference: Yes
IS_CONF_ORD - Auftragsbezogene Rückmeldedaten für Propagation
Data type: /SAPAPO/DM_CONF_ORD_STROptional: Yes
Call by Reference: Yes
IS_ORDKEY - Schlüssel und beschreibende Daten zum Auftrag
Data type: /SAPAPO/ORDKEYOptional: Yes
Call by Reference: Yes
IV_FINAL_CONF - Verknüpfungsfeld für View-Query
Data type: BOOLOptional: Yes
Call by Reference: Yes
IT_RELATIONS -
Data type: /SAPAPO/OM_CONSTRAINT_TABOptional: No
Call by Reference: Yes
IV_OPRCOUNTER -
Data type: /SAPAPO/OPR_COUNTEROptional: No
Call by Reference: Yes
IV_DELTA_SCRAP -
Data type: /SAPAPO/AUSMGOptional: No
Call by Reference: Yes
IV_DELTA_RCPT -
Data type: /SAPAPO/MENGEOptional: No
Call by Reference: Yes
IT_INPUTS -
Data type: /SAPAPO/OM_IO_PP_TABOptional: Yes
Call by Reference: Yes
IT_OUTPUTS -
Data type: /SAPAPO/OM_IO_PP_TABOptional: Yes
Call by Reference: Yes
IT_MODES - Tabelle mit Modusinformationen
Data type: /SAPAPO/OM_MODE_TABOptional: No
Call by Reference: Yes
IT_CONF_OPR - Vorgangsbezogene Rückmeldedaten für Propagation
Data type: /SAPAPO/DM_CONF_OPR_TABOptional: Yes
Call by Reference: Yes
CHANGING Parameters details for /SAPAPO/DM_CONF_QUANTITY_COMP
CT_DELTA_INPUTS - Tabelle mit zu ändernden I/O-Knoten
Data type: /SAPAPO/OM_IO_ATTR_TABOptional: No
Call by Reference: Yes
CT_DELTA_OUTPUTS - Tabelle mit zu ändernden I/O-Knoten
Data type: /SAPAPO/OM_IO_ATTR_TABOptional: No
Call by Reference: Yes
CT_DELTA_MODES - Tabelle mit neuen Modidaten
Data type: /SAPAPO/OM_MODE_DELTA_TABOptional: No
Call by Reference: Yes
TABLES Parameters details for /SAPAPO/DM_CONF_QUANTITY_COMP
CT_OPERATIONS -
Data type: /SAPAPO/DM_OPR_TABOptional: No
Call by Reference: No ( called with pass by value option)
CT_A_DELTAS - Tabelle mit neuen Aktivitätsdaten
Data type: /SAPAPO/OM_ACT_DELTA_TABOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SAPAPO/DM_CONF_QUANTITY_COMP 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_ct_operations | TYPE STANDARD TABLE OF /SAPAPO/DM_OPR_TAB, " | |||
| lv_it_activities | TYPE /SAPAPO/OM_TAB_ACT, " | |||
| lv_ct_delta_inputs | TYPE /SAPAPO/OM_IO_ATTR_TAB, " | |||
| lv_is_conf_ord | TYPE /SAPAPO/DM_CONF_ORD_STR, " | |||
| lv_is_ordkey | TYPE /SAPAPO/ORDKEY, " | |||
| lv_iv_final_conf | TYPE BOOL, " | |||
| lt_ct_a_deltas | TYPE STANDARD TABLE OF /SAPAPO/OM_ACT_DELTA_TAB, " | |||
| lv_it_relations | TYPE /SAPAPO/OM_CONSTRAINT_TAB, " | |||
| lv_ct_delta_outputs | TYPE /SAPAPO/OM_IO_ATTR_TAB, " | |||
| lv_iv_oprcounter | TYPE /SAPAPO/OPR_COUNTER, " | |||
| lv_ct_delta_modes | TYPE /SAPAPO/OM_MODE_DELTA_TAB, " | |||
| lv_iv_delta_scrap | TYPE /SAPAPO/AUSMG, " | |||
| lv_iv_delta_rcpt | TYPE /SAPAPO/MENGE, " | |||
| lv_it_inputs | TYPE /SAPAPO/OM_IO_PP_TAB, " | |||
| lv_it_outputs | TYPE /SAPAPO/OM_IO_PP_TAB, " | |||
| lv_it_modes | TYPE /SAPAPO/OM_MODE_TAB, " | |||
| lv_it_conf_opr | TYPE /SAPAPO/DM_CONF_OPR_TAB. " |
|   CALL FUNCTION '/SAPAPO/DM_CONF_QUANTITY_COMP' "Recalculates the Operation Quantities for a Confirmation |
| EXPORTING | ||
| IT_ACTIVITIES | = lv_it_activities | |
| IS_CONF_ORD | = lv_is_conf_ord | |
| IS_ORDKEY | = lv_is_ordkey | |
| IV_FINAL_CONF | = lv_iv_final_conf | |
| IT_RELATIONS | = lv_it_relations | |
| IV_OPRCOUNTER | = lv_iv_oprcounter | |
| IV_DELTA_SCRAP | = lv_iv_delta_scrap | |
| IV_DELTA_RCPT | = lv_iv_delta_rcpt | |
| IT_INPUTS | = lv_it_inputs | |
| IT_OUTPUTS | = lv_it_outputs | |
| IT_MODES | = lv_it_modes | |
| IT_CONF_OPR | = lv_it_conf_opr | |
| CHANGING | ||
| CT_DELTA_INPUTS | = lv_ct_delta_inputs | |
| CT_DELTA_OUTPUTS | = lv_ct_delta_outputs | |
| CT_DELTA_MODES | = lv_ct_delta_modes | |
| TABLES | ||
| CT_OPERATIONS | = lt_ct_operations | |
| CT_A_DELTAS | = lt_ct_a_deltas | |
| . " /SAPAPO/DM_CONF_QUANTITY_COMP | ||
ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_CONF_QUANTITY_COMP
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