SAP AD15_GET_DLISRC_ARCHIVED_TO Function Module for Determine until which period DIP sources were archived
AD15_GET_DLISRC_ARCHIVED_TO is a standard ad15 get dlisrc archived to SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine until which period DIP sources were archived 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 get dlisrc archived to FM, simply by entering the name AD15_GET_DLISRC_ARCHIVED_TO into the relevant SAP transaction such as SE37 or SE38.
Function Group: AD15
Program Name: SAPLAD15
Main Program: SAPLAD15
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function AD15_GET_DLISRC_ARCHIVED_TO 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_GET_DLISRC_ARCHIVED_TO'"Determine until which period DIP sources were archived.
EXPORTING
I_DLISRC = "Dynamic item source
* I_KOKRS = "Controlling Area
* I_OBART = "Object Type
* I_OBJNR = "Object Number
IMPORTING
E_ARCHIVED_POPER_TO = "Posting Period
E_ARCHIVED_GJAHR_TO = "Fiscal Year
EXCEPTIONS
NO_DATA_MAINTAINED = 1 OBART_NOT_RELEVANT = 2 INTERFACE_ERROR = 3
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_GET_DLISRC_ARCHIVED_TO
I_DLISRC - Dynamic item source
Data type: AD01SRCARC-DLISRCOptional: No
Call by Reference: Yes
I_KOKRS - Controlling Area
Data type: AD01SRCARC-KOKRSOptional: Yes
Call by Reference: Yes
I_OBART - Object Type
Data type: AD01SRCARC-OBARTOptional: Yes
Call by Reference: Yes
I_OBJNR - Object Number
Data type: J_OBJNROptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for AD15_GET_DLISRC_ARCHIVED_TO
E_ARCHIVED_POPER_TO - Posting Period
Data type: POPEROptional: No
Call by Reference: Yes
E_ARCHIVED_GJAHR_TO - Fiscal Year
Data type: GJAHROptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_DATA_MAINTAINED - No Data Maintained
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OBART_NOT_RELEVANT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERFACE_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for AD15_GET_DLISRC_ARCHIVED_TO 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_dlisrc | TYPE AD01SRCARC-DLISRC, " | |||
| lv_no_data_maintained | TYPE AD01SRCARC, " | |||
| lv_e_archived_poper_to | TYPE POPER, " | |||
| lv_i_kokrs | TYPE AD01SRCARC-KOKRS, " | |||
| lv_obart_not_relevant | TYPE AD01SRCARC, " | |||
| lv_e_archived_gjahr_to | TYPE GJAHR, " | |||
| lv_i_obart | TYPE AD01SRCARC-OBART, " | |||
| lv_interface_error | TYPE AD01SRCARC, " | |||
| lv_i_objnr | TYPE J_OBJNR. " |
|   CALL FUNCTION 'AD15_GET_DLISRC_ARCHIVED_TO' "Determine until which period DIP sources were archived |
| EXPORTING | ||
| I_DLISRC | = lv_i_dlisrc | |
| I_KOKRS | = lv_i_kokrs | |
| I_OBART | = lv_i_obart | |
| I_OBJNR | = lv_i_objnr | |
| IMPORTING | ||
| E_ARCHIVED_POPER_TO | = lv_e_archived_poper_to | |
| E_ARCHIVED_GJAHR_TO | = lv_e_archived_gjahr_to | |
| EXCEPTIONS | ||
| NO_DATA_MAINTAINED = 1 | ||
| OBART_NOT_RELEVANT = 2 | ||
| INTERFACE_ERROR = 3 | ||
| . " AD15_GET_DLISRC_ARCHIVED_TO | ||
ABAP code using 7.40 inline data declarations to call FM AD15_GET_DLISRC_ARCHIVED_TO
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 DLISRC FROM AD01SRCARC INTO @DATA(ld_i_dlisrc). | ||||
| "SELECT single KOKRS FROM AD01SRCARC INTO @DATA(ld_i_kokrs). | ||||
| "SELECT single OBART FROM AD01SRCARC INTO @DATA(ld_i_obart). | ||||
Search for further information about these or an SAP related objects