SAP MASTERIDOC_CREATE_DLPSETS Function Module for POS-Schnittstelle: IDOC-Sätze für Set-Artikel selektieren und schreiben
MASTERIDOC_CREATE_DLPSETS is a standard masteridoc create dlpsets SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for POS-Schnittstelle: IDOC-Sätze für Set-Artikel selektieren und schreiben 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 masteridoc create dlpsets FM, simply by entering the name MASTERIDOC_CREATE_DLPSETS into the relevant SAP transaction such as SE37 or SE38.
Function Group: WPDA
Program Name: SAPLWPDA
Main Program: SAPLWPDA
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MASTERIDOC_CREATE_DLPSETS 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 'MASTERIDOC_CREATE_DLPSETS'"POS-Schnittstelle: IDOC-Sätze für Set-Artikel selektieren und schreiben.
EXPORTING
PI_ARTNR = "Set-Artikelnummer
* PI_LOESCHEN = ' ' "'X': sel.Daten löschen, ' ': sel. Daten übertrag
PI_MODE = "'I': Initialisierung, 'A': Direkte Anforderung
PI_E1WPS02 = "= 'X', wenn Segment E1WPS02 versend. werden soll
PI_VRKME = "Verkaufsmengeneinheit des Artikels
PX_SEGMENT_COUNTER = "Segmentzähler
PI_FILIA_CONST = "
PI_DATUM_AB = "Anfang des Betrachtungs- oder Selektionsbereichs
* PI_DATBI_LIST = '00000000' "Ende des Listungsbereichs
PI_DATUM_BIS = "Ende des Betrachtungs- oder Selektionsbereichs
* PI_DEBUG = ' ' "'X': Letzten Key in Pos wird immer akualisiert
PX_DLDLFDNR = "Lfd.-Nr. der Positionszeile für Statusverfolgung
PI_DLDNR = "Downloadnummer für Statusverfolgung
* PI_EXPRESS = ' ' "'X': sofort versenden, ' ': später versenden
PI_FILIA = "Filiale
IMPORTING
PX_SEGMENT_COUNTER = "Segmentzähler
CHANGING
PXT_IDOC_DATA = "POS-Ausgang: Verkürzte EDIDD für IDOC-Daten
TABLES
PIT_LISTUNG = "Listungen des Artikels
* PIT_OT3_SETS = "Set-Artikel (Nur für Änderungs-und Restart-Fall)
PIT_WORKDAYS = "Tabelle der Arbeitstage
EXCEPTIONS
DOWNLOAD_EXIT = 1
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLWPDA_001 POS Interface: Modification of the IDoc Data Material Groups
EXIT_SAPLWPDA_002 POS Interface: Modification of IDoc Data for Material Master
EXIT_SAPLWPDA_003 POS Interface: Modification of IDoc Data for EAN/UPC References
EXIT_SAPLWPDA_004 POS Interface: Modification of IDoc Data for Set Assignments
EXIT_SAPLWPDA_005 POS Interface: Modification of IDoc Data for Follow-On Items
EXIT_SAPLWPDA_006 POS Interface: Modification of IDoc Data for Exchange Rates
EXIT_SAPLWPDA_007 POS Interface: Modification of IDoc Data for Taxes
EXIT_SAPLWPDA_008 POS Interface: Modification of IDoc Data for Personal Data
EXIT_SAPLWPDA_009 POS Interface: Additional Change Pointer Analysis for WP_PLU
EXIT_SAPLWPDA_010 POS Interface: Additional Change Pointer Analysis for WPDSET
EXIT_SAPLWPDA_011 POS Interface: Additional Change Pointer Analysis for WPDNAC
EXIT_SAPLWPDA_012 POS Interface: Additional Change Pointer Analysis for WPDWGR
EXIT_SAPLWPDA_013 POS Interface: Additional Change Pointer Analysis for WP_PER
EXIT_SAPLWPDA_015 POS Outbound: Additional Filter Option in Condition Pointer Analysis
EXIT_SAPLWPDA_016 POS Interface: Modification of IDoc Data for Promotion Discounts
EXIT_SAPLWPDA_017 POS Interface: Additional Change Pointer Analysis for WPDREB
IMPORTING Parameters details for MASTERIDOC_CREATE_DLPSETS
PI_ARTNR - Set-Artikelnummer
Data type: WLK1-ARTNROptional: No
Call by Reference: No ( called with pass by value option)
PI_LOESCHEN - 'X': sel.Daten löschen, ' ': sel. Daten übertrag
Data type: WPSTRUC-MODUSDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_MODE - 'I': Initialisierung, 'A': Direkte Anforderung
Data type: WPSTRUC-MODUSOptional: No
Call by Reference: No ( called with pass by value option)
PI_E1WPS02 - = 'X', wenn Segment E1WPS02 versend. werden soll
Data type: WPSTRUC-MODUSOptional: No
Call by Reference: No ( called with pass by value option)
PI_VRKME - Verkaufsmengeneinheit des Artikels
Data type: WLK1-VRKMEOptional: No
Call by Reference: No ( called with pass by value option)
PX_SEGMENT_COUNTER - Segmentzähler
Data type: WDLSP-ANSEGOptional: No
Call by Reference: No ( called with pass by value option)
PI_FILIA_CONST -
Data type: WPFILCONSTOptional: No
Call by Reference: No ( called with pass by value option)
PI_DATUM_AB - Anfang des Betrachtungs- oder Selektionsbereichs
Data type: WPSTRUC-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
PI_DATBI_LIST - Ende des Listungsbereichs
Data type: WPSTRUC-DATUMDefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_DATUM_BIS - Ende des Betrachtungs- oder Selektionsbereichs
Data type: WPSTRUC-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
PI_DEBUG - 'X': Letzten Key in Pos wird immer akualisiert
Data type: WPSTRUC-MODUSDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
PX_DLDLFDNR - Lfd.-Nr. der Positionszeile für Statusverfolgung
Data type: WDLSP-LFDNROptional: No
Call by Reference: No ( called with pass by value option)
PI_DLDNR - Downloadnummer für Statusverfolgung
Data type: WDLS-DLDNROptional: No
Call by Reference: No ( called with pass by value option)
PI_EXPRESS - 'X': sofort versenden, ' ': später versenden
Data type: WPSTRUC-MODUSDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_FILIA - Filiale
Data type: T001W-WERKSOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MASTERIDOC_CREATE_DLPSETS
PX_SEGMENT_COUNTER - Segmentzähler
Data type: WDLSP-ANSEGOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for MASTERIDOC_CREATE_DLPSETS
PXT_IDOC_DATA - POS-Ausgang: Verkürzte EDIDD für IDOC-Daten
Data type: SHORT_EDIDDOptional: No
Call by Reference: Yes
TABLES Parameters details for MASTERIDOC_CREATE_DLPSETS
PIT_LISTUNG - Listungen des Artikels
Data type: WPWLK1Optional: No
Call by Reference: No ( called with pass by value option)
PIT_OT3_SETS - Set-Artikel (Nur für Änderungs-und Restart-Fall)
Data type: WPAOT3Optional: Yes
Call by Reference: No ( called with pass by value option)
PIT_WORKDAYS - Tabelle der Arbeitstage
Data type: WPWORKDAYSOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
DOWNLOAD_EXIT - Es sind Fehler beim Download aufgetreten
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MASTERIDOC_CREATE_DLPSETS 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_pi_artnr | TYPE WLK1-ARTNR, " | |||
| lt_pit_listung | TYPE STANDARD TABLE OF WPWLK1, " | |||
| lv_download_exit | TYPE WPWLK1, " | |||
| lv_pxt_idoc_data | TYPE SHORT_EDIDD, " | |||
| lv_px_segment_counter | TYPE WDLSP-ANSEG, " | |||
| lv_pi_loeschen | TYPE WPSTRUC-MODUS, " ' ' | |||
| lv_pi_mode | TYPE WPSTRUC-MODUS, " | |||
| lv_pi_e1wps02 | TYPE WPSTRUC-MODUS, " | |||
| lv_pi_vrkme | TYPE WLK1-VRKME, " | |||
| lv_px_segment_counter | TYPE WDLSP-ANSEG, " | |||
| lv_pi_filia_const | TYPE WPFILCONST, " | |||
| lv_pi_datum_ab | TYPE WPSTRUC-DATUM, " | |||
| lt_pit_ot3_sets | TYPE STANDARD TABLE OF WPAOT3, " | |||
| lt_pit_workdays | TYPE STANDARD TABLE OF WPWORKDAYS, " | |||
| lv_pi_datbi_list | TYPE WPSTRUC-DATUM, " '00000000' | |||
| lv_pi_datum_bis | TYPE WPSTRUC-DATUM, " | |||
| lv_pi_debug | TYPE WPSTRUC-MODUS, " ' ' | |||
| lv_px_dldlfdnr | TYPE WDLSP-LFDNR, " | |||
| lv_pi_dldnr | TYPE WDLS-DLDNR, " | |||
| lv_pi_express | TYPE WPSTRUC-MODUS, " ' ' | |||
| lv_pi_filia | TYPE T001W-WERKS. " |
|   CALL FUNCTION 'MASTERIDOC_CREATE_DLPSETS' "POS-Schnittstelle: IDOC-Sätze für Set-Artikel selektieren und schreiben |
| EXPORTING | ||
| PI_ARTNR | = lv_pi_artnr | |
| PI_LOESCHEN | = lv_pi_loeschen | |
| PI_MODE | = lv_pi_mode | |
| PI_E1WPS02 | = lv_pi_e1wps02 | |
| PI_VRKME | = lv_pi_vrkme | |
| PX_SEGMENT_COUNTER | = lv_px_segment_counter | |
| PI_FILIA_CONST | = lv_pi_filia_const | |
| PI_DATUM_AB | = lv_pi_datum_ab | |
| PI_DATBI_LIST | = lv_pi_datbi_list | |
| PI_DATUM_BIS | = lv_pi_datum_bis | |
| PI_DEBUG | = lv_pi_debug | |
| PX_DLDLFDNR | = lv_px_dldlfdnr | |
| PI_DLDNR | = lv_pi_dldnr | |
| PI_EXPRESS | = lv_pi_express | |
| PI_FILIA | = lv_pi_filia | |
| IMPORTING | ||
| PX_SEGMENT_COUNTER | = lv_px_segment_counter | |
| CHANGING | ||
| PXT_IDOC_DATA | = lv_pxt_idoc_data | |
| TABLES | ||
| PIT_LISTUNG | = lt_pit_listung | |
| PIT_OT3_SETS | = lt_pit_ot3_sets | |
| PIT_WORKDAYS | = lt_pit_workdays | |
| EXCEPTIONS | ||
| DOWNLOAD_EXIT = 1 | ||
| . " MASTERIDOC_CREATE_DLPSETS | ||
ABAP code using 7.40 inline data declarations to call FM MASTERIDOC_CREATE_DLPSETS
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.| "SELECT single ARTNR FROM WLK1 INTO @DATA(ld_pi_artnr). | ||||
| "SELECT single ANSEG FROM WDLSP INTO @DATA(ld_px_segment_counter). | ||||
| "SELECT single MODUS FROM WPSTRUC INTO @DATA(ld_pi_loeschen). | ||||
| DATA(ld_pi_loeschen) | = ' '. | |||
| "SELECT single MODUS FROM WPSTRUC INTO @DATA(ld_pi_mode). | ||||
| "SELECT single MODUS FROM WPSTRUC INTO @DATA(ld_pi_e1wps02). | ||||
| "SELECT single VRKME FROM WLK1 INTO @DATA(ld_pi_vrkme). | ||||
| "SELECT single ANSEG FROM WDLSP INTO @DATA(ld_px_segment_counter). | ||||
| "SELECT single DATUM FROM WPSTRUC INTO @DATA(ld_pi_datum_ab). | ||||
| "SELECT single DATUM FROM WPSTRUC INTO @DATA(ld_pi_datbi_list). | ||||
| DATA(ld_pi_datbi_list) | = '00000000'. | |||
| "SELECT single DATUM FROM WPSTRUC INTO @DATA(ld_pi_datum_bis). | ||||
| "SELECT single MODUS FROM WPSTRUC INTO @DATA(ld_pi_debug). | ||||
| DATA(ld_pi_debug) | = ' '. | |||
| "SELECT single LFDNR FROM WDLSP INTO @DATA(ld_px_dldlfdnr). | ||||
| "SELECT single DLDNR FROM WDLS INTO @DATA(ld_pi_dldnr). | ||||
| "SELECT single MODUS FROM WPSTRUC INTO @DATA(ld_pi_express). | ||||
| DATA(ld_pi_express) | = ' '. | |||
| "SELECT single WERKS FROM T001W INTO @DATA(ld_pi_filia). | ||||
Search for further information about these or an SAP related objects