SAP DOWNLOAD_STATUS_READ Function Module for NOTRANSL: POS-Ausgang Status-Tabellen WDLS und WDLSP lesen









DOWNLOAD_STATUS_READ is a standard download status read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: POS-Ausgang Status-Tabellen WDLS und WDLSP lesen 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 download status read FM, simply by entering the name DOWNLOAD_STATUS_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: WDLD
Program Name: SAPLWDLD
Main Program: SAPLWDLD
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function DOWNLOAD_STATUS_READ 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 'DOWNLOAD_STATUS_READ'"NOTRANSL: POS-Ausgang Status-Tabellen WDLS und WDLSP lesen
EXPORTING
* PI_DLDNR = '' "Download number
* PI_SYSTP = ' ' "Communication application
* PI_SBTYP = ' ' "Application subtype
* PI_READ_EDIDS = ' ' "Check sending status
* PI_DLMOD = ' ' "Download Mode
* PI_DOCNUM = '' "IDoc Number
* PI_GESST = ' ' "Status of IDOC generation
* PI_ITEMS_ALL = ' ' "Flag, read all items
* PI_ITEMS_ONLY = ' ' "Flag, read items only
* PI_ITEM_LAST_ONLY = ' ' "Flag, only read the last item
* PI_LAST_ONLY_FLAG = ' ' "Flag, only read the latest status record
* PI_LFDNR = '' "Item number

IMPORTING
PE_I_WDLS = "Download status record for single access
PE_I_WDLSP = "Download status item for single access

TABLES
* PE_T_WDLS = "Download status records
* PE_T_WDLSP = "Outbound status items
* PI_SO_DATES = "Selection structure for days
* PI_SO_TIMES = "Selection structure for times
* PI_T_KUNNR = "Customers

EXCEPTIONS
NO_STATUS_FOUND = 1 STATUS_ITEM_NOT_FOUND = 2 STATUS_NOT_FOUND = 3 NO_STORES_SPECIFIED = 4
.



IMPORTING Parameters details for DOWNLOAD_STATUS_READ

PI_DLDNR - Download number

Data type: WDLS-DLDNR
Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_SYSTP - Communication application

Data type: WDLS-SYSTP
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_SBTYP - Application subtype

Data type: WDLS-SBTYP
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_READ_EDIDS - Check sending status

Data type: WDL_FLAG-XFLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_DLMOD - Download Mode

Data type: WDLS-DLMOD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_DOCNUM - IDoc Number

Data type: WDLSP-DOCNUM
Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_GESST - Status of IDOC generation

Data type: WDLS-GESST
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_ITEMS_ALL - Flag, read all items

Data type: WDLS-DLMOD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_ITEMS_ONLY - Flag, read items only

Data type: WDLS-DLMOD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_ITEM_LAST_ONLY - Flag, only read the last item

Data type: WDLS-DLMOD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_LAST_ONLY_FLAG - Flag, only read the latest status record

Data type: WDLS-DLMOD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_LFDNR - Item number

Data type: WDLSP-LFDNR
Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for DOWNLOAD_STATUS_READ

PE_I_WDLS - Download status record for single access

Data type: WDLS
Optional: No
Call by Reference: No ( called with pass by value option)

PE_I_WDLSP - Download status item for single access

Data type: WDLSP
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for DOWNLOAD_STATUS_READ

PE_T_WDLS - Download status records

Data type: WDLS
Optional: Yes
Call by Reference: No ( called with pass by value option)

PE_T_WDLSP - Outbound status items

Data type: WDLSP
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_SO_DATES - Selection structure for days

Data type: WDL_DAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_SO_TIMES - Selection structure for times

Data type: WDL_TIM
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_T_KUNNR - Customers

Data type: WDL_KUNNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_STATUS_FOUND - No status record found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

STATUS_ITEM_NOT_FOUND - Status record - item not found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

STATUS_NOT_FOUND - Status record not found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_STORES_SPECIFIED - No sites transferred

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for DOWNLOAD_STATUS_READ 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_dldnr  TYPE WDLS-DLDNR, "   ''
lv_pe_i_wdls  TYPE WDLS, "   
lt_pe_t_wdls  TYPE STANDARD TABLE OF WDLS, "   
lv_no_status_found  TYPE WDLS, "   
lv_pi_systp  TYPE WDLS-SYSTP, "   ' '
lv_pi_sbtyp  TYPE WDLS-SBTYP, "   ' '
lv_pi_read_edids  TYPE WDL_FLAG-XFLAG, "   ' '
lv_pi_dlmod  TYPE WDLS-DLMOD, "   ' '
lv_pe_i_wdlsp  TYPE WDLSP, "   
lt_pe_t_wdlsp  TYPE STANDARD TABLE OF WDLSP, "   
lv_status_item_not_found  TYPE WDLSP, "   
lv_pi_docnum  TYPE WDLSP-DOCNUM, "   ''
lt_pi_so_dates  TYPE STANDARD TABLE OF WDL_DAT, "   
lv_status_not_found  TYPE WDL_DAT, "   
lv_pi_gesst  TYPE WDLS-GESST, "   ' '
lt_pi_so_times  TYPE STANDARD TABLE OF WDL_TIM, "   
lv_no_stores_specified  TYPE WDL_TIM, "   
lt_pi_t_kunnr  TYPE STANDARD TABLE OF WDL_KUNNR, "   
lv_pi_items_all  TYPE WDLS-DLMOD, "   ' '
lv_pi_items_only  TYPE WDLS-DLMOD, "   ' '
lv_pi_item_last_only  TYPE WDLS-DLMOD, "   ' '
lv_pi_last_only_flag  TYPE WDLS-DLMOD, "   ' '
lv_pi_lfdnr  TYPE WDLSP-LFDNR. "   ''

  CALL FUNCTION 'DOWNLOAD_STATUS_READ'  "NOTRANSL: POS-Ausgang Status-Tabellen WDLS und WDLSP lesen
    EXPORTING
         PI_DLDNR = lv_pi_dldnr
         PI_SYSTP = lv_pi_systp
         PI_SBTYP = lv_pi_sbtyp
         PI_READ_EDIDS = lv_pi_read_edids
         PI_DLMOD = lv_pi_dlmod
         PI_DOCNUM = lv_pi_docnum
         PI_GESST = lv_pi_gesst
         PI_ITEMS_ALL = lv_pi_items_all
         PI_ITEMS_ONLY = lv_pi_items_only
         PI_ITEM_LAST_ONLY = lv_pi_item_last_only
         PI_LAST_ONLY_FLAG = lv_pi_last_only_flag
         PI_LFDNR = lv_pi_lfdnr
    IMPORTING
         PE_I_WDLS = lv_pe_i_wdls
         PE_I_WDLSP = lv_pe_i_wdlsp
    TABLES
         PE_T_WDLS = lt_pe_t_wdls
         PE_T_WDLSP = lt_pe_t_wdlsp
         PI_SO_DATES = lt_pi_so_dates
         PI_SO_TIMES = lt_pi_so_times
         PI_T_KUNNR = lt_pi_t_kunnr
    EXCEPTIONS
        NO_STATUS_FOUND = 1
        STATUS_ITEM_NOT_FOUND = 2
        STATUS_NOT_FOUND = 3
        NO_STORES_SPECIFIED = 4
. " DOWNLOAD_STATUS_READ




ABAP code using 7.40 inline data declarations to call FM DOWNLOAD_STATUS_READ

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 DLDNR FROM WDLS INTO @DATA(ld_pi_dldnr).
DATA(ld_pi_dldnr) = ''.
 
 
 
 
"SELECT single SYSTP FROM WDLS INTO @DATA(ld_pi_systp).
DATA(ld_pi_systp) = ' '.
 
"SELECT single SBTYP FROM WDLS INTO @DATA(ld_pi_sbtyp).
DATA(ld_pi_sbtyp) = ' '.
 
"SELECT single XFLAG FROM WDL_FLAG INTO @DATA(ld_pi_read_edids).
DATA(ld_pi_read_edids) = ' '.
 
"SELECT single DLMOD FROM WDLS INTO @DATA(ld_pi_dlmod).
DATA(ld_pi_dlmod) = ' '.
 
 
 
 
"SELECT single DOCNUM FROM WDLSP INTO @DATA(ld_pi_docnum).
DATA(ld_pi_docnum) = ''.
 
 
 
"SELECT single GESST FROM WDLS INTO @DATA(ld_pi_gesst).
DATA(ld_pi_gesst) = ' '.
 
 
 
 
"SELECT single DLMOD FROM WDLS INTO @DATA(ld_pi_items_all).
DATA(ld_pi_items_all) = ' '.
 
"SELECT single DLMOD FROM WDLS INTO @DATA(ld_pi_items_only).
DATA(ld_pi_items_only) = ' '.
 
"SELECT single DLMOD FROM WDLS INTO @DATA(ld_pi_item_last_only).
DATA(ld_pi_item_last_only) = ' '.
 
"SELECT single DLMOD FROM WDLS INTO @DATA(ld_pi_last_only_flag).
DATA(ld_pi_last_only_flag) = ' '.
 
"SELECT single LFDNR FROM WDLSP INTO @DATA(ld_pi_lfdnr).
DATA(ld_pi_lfdnr) = ''.
 


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!