SAP AD15_DLIS_FOR_OBJECTS_READ_BLK Function Module for NOTRANSL: Dynamische Posten zu Objekten ermitteln - Blockweise lesen
AD15_DLIS_FOR_OBJECTS_READ_BLK is a standard ad15 dlis for objects read blk 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: Dynamische Posten zu Objekten ermitteln - Blockweise 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 ad15 dlis for objects read blk FM, simply by entering the name AD15_DLIS_FOR_OBJECTS_READ_BLK into the relevant SAP transaction such as SE37 or SE38.
Function Group: AD15
Program Name: SAPLAD15
Main Program: SAPLAD15
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function AD15_DLIS_FOR_OBJECTS_READ_BLK 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 'AD15_DLIS_FOR_OBJECTS_READ_BLK'"NOTRANSL: Dynamische Posten zu Objekten ermitteln - Blockweise lesen.
EXPORTING
* I_VBELN = "
* I_PSPNR = "WBS Element
* I_NO_SURCHARGE = ' ' "
* I_NO_MATERIAL_DETERMINATION = ' ' "
* I_VBPOS = "
* I_AUFNR = "Service Order
I_KOKRS = "Controlling Area
I_PROFNR = "DIP Profile
I_USAGE = "Usage of DIP Profile
* I_DATE_TO = "To Date
* I_FLAG_ERROR_POPUP = ' ' "
* I_FLAG_RESULTS_ANAL = ' ' "Flag: Results Analysis
IMPORTING
E_DLINR_EXCEPTION = "
TABLES
IT_OBJECTS = "Objects
* IT_COSEL = "
* ET_DLIA = "DI Characteristics
* ET_DLIV1 = "DI Values from the Sources
* ET_DLIV2 = "DI Values from the DI Flow
* ET_DLIM = "DI Processing Information
EXCEPTIONS
INPUT_ERROR = 1 PROF_NOT_FOUND = 2 MATERIAL_DETERMINATION_ERROR = 3 COST_AND_FEE_FLOW_ERROR = 4 KSTAR_NOT_FOUND = 5
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_SAPLAD15_001 Change Object List and Hierarchy
EXIT_SAPLAD15_005 Read User-Defined Sources
EXIT_SAPLAD15_010 Source Filter (Not Available For All Sources)
EXIT_SAPLAD15_015 Change DI Processing Information
IMPORTING Parameters details for AD15_DLIS_FOR_OBJECTS_READ_BLK
I_VBELN -
Data type: VBAK-VBELNOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PSPNR - WBS Element
Data type: PRPS-PSPNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_SURCHARGE -
Data type: SY-BATCHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_MATERIAL_DETERMINATION -
Data type: SY-BATCHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VBPOS -
Data type: VBAP-POSNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_AUFNR - Service Order
Data type: AUFK-AUFNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_KOKRS - Controlling Area
Data type: AUFK-KOKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_PROFNR - DIP Profile
Data type: AD01C_PROF-PROFNROptional: No
Call by Reference: No ( called with pass by value option)
I_USAGE - Usage of DIP Profile
Data type: AD01C_PROF-DPUSOptional: No
Call by Reference: No ( called with pass by value option)
I_DATE_TO - To Date
Data type: COBK-BUDATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLAG_ERROR_POPUP -
Data type: SY-BATCHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLAG_RESULTS_ANAL - Flag: Results Analysis
Data type: SY-BATCHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for AD15_DLIS_FOR_OBJECTS_READ_BLK
E_DLINR_EXCEPTION -
Data type: AD01DLI-DLINROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for AD15_DLIS_FOR_OBJECTS_READ_BLK
IT_OBJECTS - Objects
Data type: AD01OBJOptional: No
Call by Reference: No ( called with pass by value option)
IT_COSEL -
Data type: COSELOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_DLIA - DI Characteristics
Data type: AD01DLIAOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_DLIV1 - DI Values from the Sources
Data type: AD01DLIV1Optional: Yes
Call by Reference: No ( called with pass by value option)
ET_DLIV2 - DI Values from the DI Flow
Data type: AD01DLIV2Optional: Yes
Call by Reference: No ( called with pass by value option)
ET_DLIM - DI Processing Information
Data type: AD01DLIMOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INPUT_ERROR - Entry Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PROF_NOT_FOUND - Profile does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MATERIAL_DETERMINATION_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
COST_AND_FEE_FLOW_ERROR -
Data type:Optional: No
Call by Reference: Yes
KSTAR_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for AD15_DLIS_FOR_OBJECTS_READ_BLK 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_i_vbeln | TYPE VBAK-VBELN, " | |||
| lt_it_objects | TYPE STANDARD TABLE OF AD01OBJ, " | |||
| lv_input_error | TYPE AD01OBJ, " | |||
| lv_e_dlinr_exception | TYPE AD01DLI-DLINR, " | |||
| lv_i_pspnr | TYPE PRPS-PSPNR, " | |||
| lv_i_no_surcharge | TYPE SY-BATCH, " SPACE | |||
| lv_i_no_material_determination | TYPE SY-BATCH, " SPACE | |||
| lv_i_vbpos | TYPE VBAP-POSNR, " | |||
| lt_it_cosel | TYPE STANDARD TABLE OF COSEL, " | |||
| lv_prof_not_found | TYPE COSEL, " | |||
| lt_et_dlia | TYPE STANDARD TABLE OF AD01DLIA, " | |||
| lv_i_aufnr | TYPE AUFK-AUFNR, " | |||
| lv_material_determination_error | TYPE AUFK, " | |||
| lv_i_kokrs | TYPE AUFK-KOKRS, " | |||
| lt_et_dliv1 | TYPE STANDARD TABLE OF AD01DLIV1, " | |||
| lv_cost_and_fee_flow_error | TYPE AD01DLIV1, " | |||
| lt_et_dliv2 | TYPE STANDARD TABLE OF AD01DLIV2, " | |||
| lv_i_profnr | TYPE AD01C_PROF-PROFNR, " | |||
| lv_kstar_not_found | TYPE AD01C_PROF, " | |||
| lt_et_dlim | TYPE STANDARD TABLE OF AD01DLIM, " | |||
| lv_i_usage | TYPE AD01C_PROF-DPUS, " | |||
| lv_i_date_to | TYPE COBK-BUDAT, " | |||
| lv_i_flag_error_popup | TYPE SY-BATCH, " SPACE | |||
| lv_i_flag_results_anal | TYPE SY-BATCH. " SPACE |
|   CALL FUNCTION 'AD15_DLIS_FOR_OBJECTS_READ_BLK' "NOTRANSL: Dynamische Posten zu Objekten ermitteln - Blockweise lesen |
| EXPORTING | ||
| I_VBELN | = lv_i_vbeln | |
| I_PSPNR | = lv_i_pspnr | |
| I_NO_SURCHARGE | = lv_i_no_surcharge | |
| I_NO_MATERIAL_DETERMINATION | = lv_i_no_material_determination | |
| I_VBPOS | = lv_i_vbpos | |
| I_AUFNR | = lv_i_aufnr | |
| I_KOKRS | = lv_i_kokrs | |
| I_PROFNR | = lv_i_profnr | |
| I_USAGE | = lv_i_usage | |
| I_DATE_TO | = lv_i_date_to | |
| I_FLAG_ERROR_POPUP | = lv_i_flag_error_popup | |
| I_FLAG_RESULTS_ANAL | = lv_i_flag_results_anal | |
| IMPORTING | ||
| E_DLINR_EXCEPTION | = lv_e_dlinr_exception | |
| TABLES | ||
| IT_OBJECTS | = lt_it_objects | |
| IT_COSEL | = lt_it_cosel | |
| ET_DLIA | = lt_et_dlia | |
| ET_DLIV1 | = lt_et_dliv1 | |
| ET_DLIV2 | = lt_et_dliv2 | |
| ET_DLIM | = lt_et_dlim | |
| EXCEPTIONS | ||
| INPUT_ERROR = 1 | ||
| PROF_NOT_FOUND = 2 | ||
| MATERIAL_DETERMINATION_ERROR = 3 | ||
| COST_AND_FEE_FLOW_ERROR = 4 | ||
| KSTAR_NOT_FOUND = 5 | ||
| . " AD15_DLIS_FOR_OBJECTS_READ_BLK | ||
ABAP code using 7.40 inline data declarations to call FM AD15_DLIS_FOR_OBJECTS_READ_BLK
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 VBELN FROM VBAK INTO @DATA(ld_i_vbeln). | ||||
| "SELECT single DLINR FROM AD01DLI INTO @DATA(ld_e_dlinr_exception). | ||||
| "SELECT single PSPNR FROM PRPS INTO @DATA(ld_i_pspnr). | ||||
| "SELECT single BATCH FROM SY INTO @DATA(ld_i_no_surcharge). | ||||
| DATA(ld_i_no_surcharge) | = ' '. | |||
| "SELECT single BATCH FROM SY INTO @DATA(ld_i_no_material_determination). | ||||
| DATA(ld_i_no_material_determination) | = ' '. | |||
| "SELECT single POSNR FROM VBAP INTO @DATA(ld_i_vbpos). | ||||
| "SELECT single AUFNR FROM AUFK INTO @DATA(ld_i_aufnr). | ||||
| "SELECT single KOKRS FROM AUFK INTO @DATA(ld_i_kokrs). | ||||
| "SELECT single PROFNR FROM AD01C_PROF INTO @DATA(ld_i_profnr). | ||||
| "SELECT single DPUS FROM AD01C_PROF INTO @DATA(ld_i_usage). | ||||
| "SELECT single BUDAT FROM COBK INTO @DATA(ld_i_date_to). | ||||
| "SELECT single BATCH FROM SY INTO @DATA(ld_i_flag_error_popup). | ||||
| DATA(ld_i_flag_error_popup) | = ' '. | |||
| "SELECT single BATCH FROM SY INTO @DATA(ld_i_flag_results_anal). | ||||
| DATA(ld_i_flag_results_anal) | = ' '. | |||
Search for further information about these or an SAP related objects