SAP /SAPAPO/DM_CHAR_CONFR_FILL Function Module for Fill LC with Configuration
/SAPAPO/DM_CHAR_CONFR_FILL is a standard /sapapo/dm char confr fill SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Fill LC with Configuration 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 char confr fill FM, simply by entering the name /SAPAPO/DM_CHAR_CONFR_FILL into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SAPAPO/DM_CHAR_CONFR
Program Name: /SAPAPO/SAPLDM_CHAR_CONFR
Main Program: /SAPAPO/SAPLDM_CHAR_CONFR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SAPAPO/DM_CHAR_CONFR_FILL 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_CHAR_CONFR_FILL'"Fill LC with Configuration.
EXPORTING
IV_MATID = "interne Nummer (UID) für Produkt
* IV_LOCID = "interne Nummer der Lokation (Kunde, Lieferant oder Werk)
* IV_INPUT_NODE = 'X' "Flag fuer Input-Knoten
IV_SIMVERSION = "GUID zur Identifikation transaktionale Simulations-Session
* IV_ACT_PLOBJ = "Planungsobjekt: Zur Laufzeit vergebene ID/Nummer
IT_PLOB_VALUES = "Tabelle von Merkmalsausprägungen zum Plob
* IS_SETTINGS = "Planungsdetails zu Bedarfsplan
* IV_UPDATE = "R/3-DD: Flag (X oder Blank)
* IV_STRATEGY = "Planungsstrategie
IMPORTING
EV_CUOBJ = "Konfiguration (interne Objektnummer)
EV_SCENARIO = "Planauflösung
CHANGING
CT_SCHEDULE = "Tabelle mit Einteilungen für Bestell-/ Kundenaufträge
EXCEPTIONS
CONFIGURATION_NOT_STORED = 1 PRODUCT_NOT_FOUND = 2 WRONG_STRATEGY = 3 FCST_WITHOUT_CONFIG = 4
IMPORTING Parameters details for /SAPAPO/DM_CHAR_CONFR_FILL
IV_MATID - interne Nummer (UID) für Produkt
Data type: /SAPAPO/MATIDOptional: No
Call by Reference: Yes
IV_LOCID - interne Nummer der Lokation (Kunde, Lieferant oder Werk)
Data type: /SAPAPO/LOCIDOptional: Yes
Call by Reference: Yes
IV_INPUT_NODE - Flag fuer Input-Knoten
Data type: /SAPAPO/OM_IS_INPUT_NODEDefault: 'X'
Optional: Yes
Call by Reference: Yes
IV_SIMVERSION - GUID zur Identifikation transaktionale Simulations-Session
Data type: /SAPAPO/VRSIOIDOptional: No
Call by Reference: Yes
IV_ACT_PLOBJ - Planungsobjekt: Zur Laufzeit vergebene ID/Nummer
Data type: /SAPAPO/TS_PLOBJOptional: Yes
Call by Reference: Yes
IT_PLOB_VALUES - Tabelle von Merkmalsausprägungen zum Plob
Data type: /SAPAPO/TS_PLOB_VALUES_TABOptional: No
Call by Reference: Yes
IS_SETTINGS - Planungsdetails zu Bedarfsplan
Data type: /SAPAPO/DM_ORDER_SETTINGSOptional: Yes
Call by Reference: Yes
IV_UPDATE - R/3-DD: Flag (X oder Blank)
Data type: /SAPAPO/AS400FLAGOptional: Yes
Call by Reference: Yes
IV_STRATEGY - Planungsstrategie
Data type: /SAPAPO/STRA1Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for /SAPAPO/DM_CHAR_CONFR_FILL
EV_CUOBJ - Konfiguration (interne Objektnummer)
Data type: /SAPAPO/CUOBJOptional: No
Call by Reference: Yes
EV_SCENARIO - Planauflösung
Data type: /SAPAPO/CL_MASTER_SWITCHOptional: No
Call by Reference: Yes
CHANGING Parameters details for /SAPAPO/DM_CHAR_CONFR_FILL
CT_SCHEDULE - Tabelle mit Einteilungen für Bestell-/ Kundenaufträge
Data type: /SAPAPO/OM_SCHEDULE_LINE_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
CONFIGURATION_NOT_STORED - configuration_not_stored
Data type:Optional: No
Call by Reference: Yes
PRODUCT_NOT_FOUND - product_not_found
Data type:Optional: No
Call by Reference: Yes
WRONG_STRATEGY - WRONG_STRATEGY
Data type:Optional: No
Call by Reference: Yes
FCST_WITHOUT_CONFIG - forecast_without_configuration
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SAPAPO/DM_CHAR_CONFR_FILL 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_ev_cuobj | TYPE /SAPAPO/CUOBJ, " | |||
| lv_iv_matid | TYPE /SAPAPO/MATID, " | |||
| lv_ct_schedule | TYPE /SAPAPO/OM_SCHEDULE_LINE_TAB, " | |||
| lv_configuration_not_stored | TYPE /SAPAPO/OM_SCHEDULE_LINE_TAB, " | |||
| lv_iv_locid | TYPE /SAPAPO/LOCID, " | |||
| lv_ev_scenario | TYPE /SAPAPO/CL_MASTER_SWITCH, " | |||
| lv_product_not_found | TYPE /SAPAPO/CL_MASTER_SWITCH, " | |||
| lv_iv_input_node | TYPE /SAPAPO/OM_IS_INPUT_NODE, " 'X' | |||
| lv_wrong_strategy | TYPE /SAPAPO/OM_IS_INPUT_NODE, " | |||
| lv_iv_simversion | TYPE /SAPAPO/VRSIOID, " | |||
| lv_fcst_without_config | TYPE /SAPAPO/VRSIOID, " | |||
| lv_iv_act_plobj | TYPE /SAPAPO/TS_PLOBJ, " | |||
| lv_it_plob_values | TYPE /SAPAPO/TS_PLOB_VALUES_TAB, " | |||
| lv_is_settings | TYPE /SAPAPO/DM_ORDER_SETTINGS, " | |||
| lv_iv_update | TYPE /SAPAPO/AS400FLAG, " | |||
| lv_iv_strategy | TYPE /SAPAPO/STRA1. " |
|   CALL FUNCTION '/SAPAPO/DM_CHAR_CONFR_FILL' "Fill LC with Configuration |
| EXPORTING | ||
| IV_MATID | = lv_iv_matid | |
| IV_LOCID | = lv_iv_locid | |
| IV_INPUT_NODE | = lv_iv_input_node | |
| IV_SIMVERSION | = lv_iv_simversion | |
| IV_ACT_PLOBJ | = lv_iv_act_plobj | |
| IT_PLOB_VALUES | = lv_it_plob_values | |
| IS_SETTINGS | = lv_is_settings | |
| IV_UPDATE | = lv_iv_update | |
| IV_STRATEGY | = lv_iv_strategy | |
| IMPORTING | ||
| EV_CUOBJ | = lv_ev_cuobj | |
| EV_SCENARIO | = lv_ev_scenario | |
| CHANGING | ||
| CT_SCHEDULE | = lv_ct_schedule | |
| EXCEPTIONS | ||
| CONFIGURATION_NOT_STORED = 1 | ||
| PRODUCT_NOT_FOUND = 2 | ||
| WRONG_STRATEGY = 3 | ||
| FCST_WITHOUT_CONFIG = 4 | ||
| . " /SAPAPO/DM_CHAR_CONFR_FILL | ||
ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_CHAR_CONFR_FILL
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_input_node) | = 'X'. | |||
Search for further information about these or an SAP related objects