SAP /SAPAPO/DM_SL_DOC_EXTRACT Function Module for Extractor for VMI Sales Data for CIF Outbound
/SAPAPO/DM_SL_DOC_EXTRACT is a standard /sapapo/dm sl doc extract SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Extractor for VMI Sales Data for CIF Outbound 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 sl doc extract FM, simply by entering the name /SAPAPO/DM_SL_DOC_EXTRACT into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SAPAPO/DM_CUST_ORDER
Program Name: /SAPAPO/SAPLDM_CUST_ORDER
Main Program: /SAPAPO/SAPLDM_CUST_ORDER
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SAPAPO/DM_SL_DOC_EXTRACT 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_SL_DOC_EXTRACT'"Extractor for VMI Sales Data for CIF Outbound.
EXPORTING
IT_CP = "Veröffentlichung von APO-Aufträgen
* IV_VMI_SPECIAL_DATES = ' ' "Zusatztermine für VMI-Logik bestimmen
* IV_BAPI = ' ' "allgemeines flag
* IV_SIMVERSION = "Name of Planning Version
IMPORTING
ET_SL_DOC_HEAD = "Schnittstellen-Struktur für Vertriebsbelege Kopf(APO -> R/3)
ET_SL_DOC_HEADX = "Ankreuzliste für /SAPAPO/CIF_SL_DOC_HEAD_TAB
ET_SL_DOC = "Schnittstellen-Struktur für Vertriebsbelege (APO -> R/3)
ET_SL_DOCX = "Ankreuzliste für /SAPAPO/CIF_SL_DOC_EX_TAB
ET_CP_PROCESSED = "Tabellentyp für dm_cp
ET_RETURN = "ATP: Tabelle der Struktur BAPIRET2
ET_SCHEDULE = "Tabelle für Fremdbeschaffungs-Einteilung
ET_ORDKEY = "Table of ordkeys
IMPORTING Parameters details for /SAPAPO/DM_SL_DOC_EXTRACT
IT_CP - Veröffentlichung von APO-Aufträgen
Data type: /SAPAPO/DM_CP_TABOptional: No
Call by Reference: Yes
IV_VMI_SPECIAL_DATES - Zusatztermine für VMI-Logik bestimmen
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: Yes
IV_BAPI - allgemeines flag
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: Yes
IV_SIMVERSION - Name of Planning Version
Data type: /SAPAPO/OM_VRSIOIDOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for /SAPAPO/DM_SL_DOC_EXTRACT
ET_SL_DOC_HEAD - Schnittstellen-Struktur für Vertriebsbelege Kopf(APO -> R/3)
Data type: /SAPAPO/CIF_SL_DOC_HEAD_TABOptional: No
Call by Reference: Yes
ET_SL_DOC_HEADX - Ankreuzliste für /SAPAPO/CIF_SL_DOC_HEAD_TAB
Data type: /SAPAPO/CIF_SL_DOC_HEAD_X_TABOptional: No
Call by Reference: Yes
ET_SL_DOC - Schnittstellen-Struktur für Vertriebsbelege (APO -> R/3)
Data type: /SAPAPO/CIF_SL_DOC_EX_TABOptional: No
Call by Reference: Yes
ET_SL_DOCX - Ankreuzliste für /SAPAPO/CIF_SL_DOC_EX_TAB
Data type: /SAPAPO/CIF_SL_DOC_EX_X_TABOptional: No
Call by Reference: Yes
ET_CP_PROCESSED - Tabellentyp für dm_cp
Data type: /SAPAPO/DM_CP_TABOptional: No
Call by Reference: Yes
ET_RETURN - ATP: Tabelle der Struktur BAPIRET2
Data type: /SAPAPO/TBL_BAPIRET2Optional: No
Call by Reference: Yes
ET_SCHEDULE - Tabelle für Fremdbeschaffungs-Einteilung
Data type: /SAPAPO/DM_PO_SCHED_TABOptional: No
Call by Reference: Yes
ET_ORDKEY - Table of ordkeys
Data type: /SAPAPO/ORDKEY_TABOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SAPAPO/DM_SL_DOC_EXTRACT 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_it_cp | TYPE /SAPAPO/DM_CP_TAB, " | |||
| lv_et_sl_doc_head | TYPE /SAPAPO/CIF_SL_DOC_HEAD_TAB, " | |||
| lv_et_sl_doc_headx | TYPE /SAPAPO/CIF_SL_DOC_HEAD_X_TAB, " | |||
| lv_iv_vmi_special_dates | TYPE FLAG, " SPACE | |||
| lv_iv_bapi | TYPE FLAG, " SPACE | |||
| lv_et_sl_doc | TYPE /SAPAPO/CIF_SL_DOC_EX_TAB, " | |||
| lv_et_sl_docx | TYPE /SAPAPO/CIF_SL_DOC_EX_X_TAB, " | |||
| lv_iv_simversion | TYPE /SAPAPO/OM_VRSIOID, " | |||
| lv_et_cp_processed | TYPE /SAPAPO/DM_CP_TAB, " | |||
| lv_et_return | TYPE /SAPAPO/TBL_BAPIRET2, " | |||
| lv_et_schedule | TYPE /SAPAPO/DM_PO_SCHED_TAB, " | |||
| lv_et_ordkey | TYPE /SAPAPO/ORDKEY_TAB. " |
|   CALL FUNCTION '/SAPAPO/DM_SL_DOC_EXTRACT' "Extractor for VMI Sales Data for CIF Outbound |
| EXPORTING | ||
| IT_CP | = lv_it_cp | |
| IV_VMI_SPECIAL_DATES | = lv_iv_vmi_special_dates | |
| IV_BAPI | = lv_iv_bapi | |
| IV_SIMVERSION | = lv_iv_simversion | |
| IMPORTING | ||
| ET_SL_DOC_HEAD | = lv_et_sl_doc_head | |
| ET_SL_DOC_HEADX | = lv_et_sl_doc_headx | |
| ET_SL_DOC | = lv_et_sl_doc | |
| ET_SL_DOCX | = lv_et_sl_docx | |
| ET_CP_PROCESSED | = lv_et_cp_processed | |
| ET_RETURN | = lv_et_return | |
| ET_SCHEDULE | = lv_et_schedule | |
| ET_ORDKEY | = lv_et_ordkey | |
| . " /SAPAPO/DM_SL_DOC_EXTRACT | ||
ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_SL_DOC_EXTRACT
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_vmi_special_dates) | = ' '. | |||
| DATA(ld_iv_bapi) | = ' '. | |||
Search for further information about these or an SAP related objects