SAP Function Modules

MASTERIDOC_CREATE_DLPSTEUERN SAP Function module - POS-Schnittstelle: IDOC-Sätze für Steuern selektieren und schreiben







MASTERIDOC_CREATE_DLPSTEUERN is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name MASTERIDOC_CREATE_DLPSTEUERN into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: WPDA
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM MASTERIDOC_CREATE_DLPSTEUERN - MASTERIDOC CREATE DLPSTEUERN





CALL FUNCTION 'MASTERIDOC_CREATE_DLPSTEUERN' "POS-Schnittstelle: IDOC-Sätze für Steuern selektieren und schreiben
  EXPORTING
*   pi_datum_ab =               " wpstruc-datum  Verwendung erst nach Rel. 3.0
    pi_aktivdat =               " wpstruc-datum  Versendedatum
*   pi_datum_bis =              " wpstruc-datum  Verwendung erst nach Rel. 3.0
    pi_dldlfdnr =               " wdlsp-lfdnr   Lfd.-Nr. der Positionszeile für Statusverfolgung
    pi_dldnr =                  " wdls-dldnr    Downloadnummer für Statusverfolgung
*   pi_express = ' '            " wpstruc-modus  'X': sofort versenden, ' ': später versenden
    pi_filia =                  " t001w-werks   Filiale
*   pi_loeschen = ' '           " wpstruc-modus  'X': sel.Daten löschen, ' ': sel. Daten übertrag
    pi_e1wpt02 =                " wpstruc-modus  = 'X', wenn Segment E1WPT02 versend. werden soll
    px_segment_counter =        " wdlsp-anseg   Segmentzähler
    pi_filia_const =            " wpfilconst
  IMPORTING
    px_segment_counter =        " wdlsp-anseg   Segmentzähler
* TABLES
*   pit_workdays =              " wpworkdays    Verwendung erst nach Rel. 3.0
  CHANGING
    pxt_idoc_data =             " short_edidd   POS-Ausgang: Verkürzte EDIDD für IDOC-Daten
  EXCEPTIONS
    DOWNLOAD_EXIT = 1           "               Es sind Fehler beim Download aufgetreten
    .  "  MASTERIDOC_CREATE_DLPSTEUERN

ABAP code example for Function Module MASTERIDOC_CREATE_DLPSTEUERN





The ABAP code below is a full code listing to execute function module MASTERIDOC_CREATE_DLPSTEUERN including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_px_segment_counter  TYPE WDLSP-ANSEG ,
it_pit_workdays  TYPE STANDARD TABLE OF WPWORKDAYS,"TABLES PARAM
wa_pit_workdays  LIKE LINE OF it_pit_workdays .

DATA(ld_pxt_idoc_data) = 'Check type of data required'.

DATA(ld_pi_datum_ab) = 20210129

DATA(ld_pi_aktivdat) = 20210129

DATA(ld_pi_datum_bis) = 20210129

SELECT single LFDNR
FROM WDLSP
INTO @DATA(ld_pi_dldlfdnr).


SELECT single DLDNR
FROM WDLS
INTO @DATA(ld_pi_dldnr).


DATA(ld_pi_express) = some text here

SELECT single WERKS
FROM T001W
INTO @DATA(ld_pi_filia).


DATA(ld_pi_loeschen) = some text here

DATA(ld_pi_e1wpt02) = some text here

SELECT single ANSEG
FROM WDLSP
INTO @DATA(ld_px_segment_counter).

DATA(ld_pi_filia_const) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_pit_workdays to it_pit_workdays. . CALL FUNCTION 'MASTERIDOC_CREATE_DLPSTEUERN' EXPORTING * pi_datum_ab = ld_pi_datum_ab pi_aktivdat = ld_pi_aktivdat * pi_datum_bis = ld_pi_datum_bis pi_dldlfdnr = ld_pi_dldlfdnr pi_dldnr = ld_pi_dldnr * pi_express = ld_pi_express pi_filia = ld_pi_filia * pi_loeschen = ld_pi_loeschen pi_e1wpt02 = ld_pi_e1wpt02 px_segment_counter = ld_px_segment_counter pi_filia_const = ld_pi_filia_const IMPORTING px_segment_counter = ld_px_segment_counter * TABLES * pit_workdays = it_pit_workdays CHANGING pxt_idoc_data = ld_pxt_idoc_data EXCEPTIONS DOWNLOAD_EXIT = 1 . " MASTERIDOC_CREATE_DLPSTEUERN
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_pxt_idoc_data  TYPE SHORT_EDIDD ,
ld_px_segment_counter  TYPE WDLSP-ANSEG ,
ld_pi_datum_ab  TYPE WPSTRUC-DATUM ,
it_pit_workdays  TYPE STANDARD TABLE OF WPWORKDAYS ,
wa_pit_workdays  LIKE LINE OF it_pit_workdays,
ld_pi_aktivdat  TYPE WPSTRUC-DATUM ,
ld_pi_datum_bis  TYPE WPSTRUC-DATUM ,
ld_pi_dldlfdnr  TYPE WDLSP-LFDNR ,
ld_pi_dldnr  TYPE WDLS-DLDNR ,
ld_pi_express  TYPE WPSTRUC-MODUS ,
ld_pi_filia  TYPE T001W-WERKS ,
ld_pi_loeschen  TYPE WPSTRUC-MODUS ,
ld_pi_e1wpt02  TYPE WPSTRUC-MODUS ,
ld_px_segment_counter  TYPE WDLSP-ANSEG ,
ld_pi_filia_const  TYPE WPFILCONST .

ld_pxt_idoc_data = 'Check type of data required'.

ld_pi_datum_ab = 20210129

"populate fields of struture and append to itab
append wa_pit_workdays to it_pit_workdays.

ld_pi_aktivdat = 20210129

ld_pi_datum_bis = 20210129

SELECT single LFDNR
FROM WDLSP
INTO ld_pi_dldlfdnr.


SELECT single DLDNR
FROM WDLS
INTO ld_pi_dldnr.


ld_pi_express = some text here

SELECT single WERKS
FROM T001W
INTO ld_pi_filia.


ld_pi_loeschen = some text here

ld_pi_e1wpt02 = some text here

SELECT single ANSEG
FROM WDLSP
INTO ld_px_segment_counter.

ld_pi_filia_const = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name MASTERIDOC_CREATE_DLPSTEUERN or its description.