SAP /SAPAPO/DM_PROD_SNP_EXPLODE Function Module for Explode SNP PPM









/SAPAPO/DM_PROD_SNP_EXPLODE is a standard /sapapo/dm prod snp explode SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Explode SNP PPM 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 prod snp explode FM, simply by entering the name /SAPAPO/DM_PROD_SNP_EXPLODE into the relevant SAP transaction such as SE37 or SE38.

Function Group: /SAPAPO/DM_PROD
Program Name: /SAPAPO/SAPLDM_PROD
Main Program: /SAPAPO/SAPLDM_PROD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function /SAPAPO/DM_PROD_SNP_EXPLODE 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_PROD_SNP_EXPLODE'"Explode SNP PPM
EXPORTING
IV_PEGID = "Interne Nummer des Pegging-Bereichs
* IT_COLS = "Tabellentyp: Externer Spaltenindex Planungsmatrix
* IF_MODE = "Einstelliges Kennzeichen
* IV_ACCID = "
* IV_SEQ_DEP_EXPLOSION = "Sequence Dependent Explosion switch
* IV_SIMSESSION = "GUID for Identifying Transactional Simulation Session

IMPORTING
ET_ORDERS = "Tabelle mit Orderinformationen
ET_PROT = "Returnparameter
ET_PROD_PAST = "SNP results table - Production
ES_PROMO = "Strukur zur Auswertung eines Produktionsmodells
ET_ACTIVITIES = "Tabelle mit Aktivitäteninformationen
ET_MODES = "Tabelle mit Modusinformationen
ET_CAP_REQS = "Tabelle mit Kapazitätsbedarfen (Capacity Requirements)
ET_CAP_REQS_FIX = "Tabelle mit Kapazitätsbedarfen (Capacity Requirements)
ET_INPUTS = "Tabelle mit Daten zu I/O-Interface-Knoten
ET_OUTPUTS = "Tabelle mit Daten zu I/O-Interface-Knoten
ET_INTERN_CONSTRAINTS = "Tabelle mit Constraints (Anordnungsbeziehungen)
ET_RES_PLAN_INTERVALLS = "Tabelle mit Planungsintervallen für Ressourcen

CHANGING
CS_PROD = "SNP: Produktion in den Lokationen

EXCEPTIONS
ERROR_OCCURRED = 1
.



IMPORTING Parameters details for /SAPAPO/DM_PROD_SNP_EXPLODE

IV_PEGID - Interne Nummer des Pegging-Bereichs

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

IT_COLS - Tabellentyp: Externer Spaltenindex Planungsmatrix

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

IF_MODE - Einstelliges Kennzeichen

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

IV_ACCID -

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

IV_SEQ_DEP_EXPLOSION - Sequence Dependent Explosion switch

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

IV_SIMSESSION - GUID for Identifying Transactional Simulation Session

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

EXPORTING Parameters details for /SAPAPO/DM_PROD_SNP_EXPLODE

ET_ORDERS - Tabelle mit Orderinformationen

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

ET_PROT - Returnparameter

Data type: BAPIRETTAB
Optional: No
Call by Reference: Yes

ET_PROD_PAST - SNP results table - Production

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

ES_PROMO - Strukur zur Auswertung eines Produktionsmodells

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

ET_ACTIVITIES - Tabelle mit Aktivitäteninformationen

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

ET_MODES - Tabelle mit Modusinformationen

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

ET_CAP_REQS - Tabelle mit Kapazitätsbedarfen (Capacity Requirements)

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

ET_CAP_REQS_FIX - Tabelle mit Kapazitätsbedarfen (Capacity Requirements)

Data type: /SAPAPO/OM_CAP_REQ_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_INTERN_CONSTRAINTS - Tabelle mit Constraints (Anordnungsbeziehungen)

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

ET_RES_PLAN_INTERVALLS - Tabelle mit Planungsintervallen für Ressourcen

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

CHANGING Parameters details for /SAPAPO/DM_PROD_SNP_EXPLODE

CS_PROD - SNP: Produktion in den Lokationen

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

EXCEPTIONS details

ERROR_OCCURRED - Fehler in der PPM Aufloesung aufgetreten

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for /SAPAPO/DM_PROD_SNP_EXPLODE 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_cs_prod  TYPE /SAPAPO/MSNP_PROD, "   
lv_iv_pegid  TYPE /SAPAPO/PEGID, "   
lv_et_orders  TYPE /SAPAPO/OM_ORDER_TAB, "   
lv_error_occurred  TYPE /SAPAPO/OM_ORDER_TAB, "   
lv_et_prot  TYPE BAPIRETTAB, "   
lv_et_prod_past  TYPE /SAPAPO/MSNP_PROD_TAB, "   
lv_es_promo  TYPE /SAPAPO/PPM_SNP_PLAN_TRPROD, "   
lv_it_cols  TYPE /SAPAPO/TS_COLS_EXT_TAB, "   
lv_et_activities  TYPE /SAPAPO/OM_TAB_ACT, "   
lv_if_mode  TYPE CHAR1, "   
lv_et_modes  TYPE /SAPAPO/OM_MODE_TAB, "   
lv_iv_accid  TYPE /SAPAPO/ACCID, "   
lv_et_cap_reqs  TYPE /SAPAPO/OM_CAP_REQ_TAB, "   
lv_et_cap_reqs_fix  TYPE /SAPAPO/OM_CAP_REQ_TAB, "   
lv_iv_seq_dep_explosion  TYPE /SAPAPO/BOOLEAN, "   
lv_et_inputs  TYPE /SAPAPO/OM_IO_TAB, "   
lv_iv_simsession  TYPE /SAPAPO/OM_SIMSESSION, "   
lv_et_outputs  TYPE /SAPAPO/OM_IO_TAB, "   
lv_et_intern_constraints  TYPE /SAPAPO/OM_CONSTRAINT_TAB, "   
lv_et_res_plan_intervalls  TYPE /SAPAPO/OM_RES_PLAN_INT_TAB. "   

  CALL FUNCTION '/SAPAPO/DM_PROD_SNP_EXPLODE'  "Explode SNP PPM
    EXPORTING
         IV_PEGID = lv_iv_pegid
         IT_COLS = lv_it_cols
         IF_MODE = lv_if_mode
         IV_ACCID = lv_iv_accid
         IV_SEQ_DEP_EXPLOSION = lv_iv_seq_dep_explosion
         IV_SIMSESSION = lv_iv_simsession
    IMPORTING
         ET_ORDERS = lv_et_orders
         ET_PROT = lv_et_prot
         ET_PROD_PAST = lv_et_prod_past
         ES_PROMO = lv_es_promo
         ET_ACTIVITIES = lv_et_activities
         ET_MODES = lv_et_modes
         ET_CAP_REQS = lv_et_cap_reqs
         ET_CAP_REQS_FIX = lv_et_cap_reqs_fix
         ET_INPUTS = lv_et_inputs
         ET_OUTPUTS = lv_et_outputs
         ET_INTERN_CONSTRAINTS = lv_et_intern_constraints
         ET_RES_PLAN_INTERVALLS = lv_et_res_plan_intervalls
    CHANGING
         CS_PROD = lv_cs_prod
    EXCEPTIONS
        ERROR_OCCURRED = 1
. " /SAPAPO/DM_PROD_SNP_EXPLODE




ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_PROD_SNP_EXPLODE

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



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!