SAP ADS2KIP_READ Function Module for SPEC2000: IP Data Read from Archive Files
ADS2KIP_READ is a standard ads2kip 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 SPEC2000: IP Data Read from Archive Files 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 ads2kip read FM, simply by entering the name ADS2KIP_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: ADS2KIPARCH
Program Name: SAPLADS2KIPARCH
Main Program: SAPLADS2KIPARCH
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ADS2KIP_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 'ADS2KIP_READ'"SPEC2000: IP Data Read from Archive Files.
EXPORTING
* I_READ_ALL = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
TABLES
* I_SQNBR = "Sequence Number Ranges
* TAB_SPCIPCSN = "Locations
* TAB_SPCIPEFF = "Effectivity Range
* TAB_SPCIPUOA = "Used On Assemblies
* TAB_SPCIPRPDE = "Replacing Parts / Replaced Parts
* I_PNR = "Part Number Ranges
* I_MFR = "Manufacturer Code Ranges
TAB_SPCIPPDR = "Spare parts / End items
* TAB_SPCIPPARTS = "Other parts that can be used
* TAB_SPCIPPDS = "SPEC2000: Procurement Data Segment
* TAB_SPCIPOSDS = "Optional Suppliers and Distributors
* TAB_SPCIPPQA = "Price Break - Quantity & Amount
* TAB_SPCIPOCH = "Other Charges - Code & Amount
EXCEPTIONS
ERROR_IN_ARCHIVE_FILE = 1 NO_RECORDS_FOUND = 2
IMPORTING Parameters details for ADS2KIP_READ
I_READ_ALL - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DOptional: Yes
Call by Reference: Yes
TABLES Parameters details for ADS2KIP_READ
I_SQNBR - Sequence Number Ranges
Data type: ADSPC_SQNBR_RANGEOptional: Yes
Call by Reference: Yes
TAB_SPCIPCSN - Locations
Data type: SPCIPCSNOptional: Yes
Call by Reference: Yes
TAB_SPCIPEFF - Effectivity Range
Data type: SPCIPEFFOptional: Yes
Call by Reference: Yes
TAB_SPCIPUOA - Used On Assemblies
Data type: SPCIPUOAOptional: Yes
Call by Reference: Yes
TAB_SPCIPRPDE - Replacing Parts / Replaced Parts
Data type: SPCIPRPDEOptional: Yes
Call by Reference: Yes
I_PNR - Part Number Ranges
Data type: ADSPC_PNR_RANGEOptional: Yes
Call by Reference: Yes
I_MFR - Manufacturer Code Ranges
Data type: ADSPC_MFR_RANGEOptional: Yes
Call by Reference: Yes
TAB_SPCIPPDR - Spare parts / End items
Data type: SPCIPPDROptional: No
Call by Reference: Yes
TAB_SPCIPPARTS - Other parts that can be used
Data type: SPCIPPARTSOptional: Yes
Call by Reference: Yes
TAB_SPCIPPDS - SPEC2000: Procurement Data Segment
Data type: SPCIPPDSOptional: Yes
Call by Reference: Yes
TAB_SPCIPOSDS - Optional Suppliers and Distributors
Data type: SPCIPOSDSOptional: Yes
Call by Reference: Yes
TAB_SPCIPPQA - Price Break - Quantity & Amount
Data type: SPCIPPQAOptional: Yes
Call by Reference: Yes
TAB_SPCIPOCH - Other Charges - Code & Amount
Data type: SPCIPOCHOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ERROR_IN_ARCHIVE_FILE - When an error occurs while reading the archive file
Data type:Optional: No
Call by Reference: Yes
NO_RECORDS_FOUND - When no records are found
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ADS2KIP_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: | ||||
| lt_i_sqnbr | TYPE STANDARD TABLE OF ADSPC_SQNBR_RANGE, " | |||
| lv_i_read_all | TYPE BOOLE_D, " | |||
| lv_error_in_archive_file | TYPE BOOLE_D, " | |||
| lt_tab_spcipcsn | TYPE STANDARD TABLE OF SPCIPCSN, " | |||
| lt_tab_spcipeff | TYPE STANDARD TABLE OF SPCIPEFF, " | |||
| lt_tab_spcipuoa | TYPE STANDARD TABLE OF SPCIPUOA, " | |||
| lt_tab_spciprpde | TYPE STANDARD TABLE OF SPCIPRPDE, " | |||
| lt_i_pnr | TYPE STANDARD TABLE OF ADSPC_PNR_RANGE, " | |||
| lv_no_records_found | TYPE ADSPC_PNR_RANGE, " | |||
| lt_i_mfr | TYPE STANDARD TABLE OF ADSPC_MFR_RANGE, " | |||
| lt_tab_spcippdr | TYPE STANDARD TABLE OF SPCIPPDR, " | |||
| lt_tab_spcipparts | TYPE STANDARD TABLE OF SPCIPPARTS, " | |||
| lt_tab_spcippds | TYPE STANDARD TABLE OF SPCIPPDS, " | |||
| lt_tab_spciposds | TYPE STANDARD TABLE OF SPCIPOSDS, " | |||
| lt_tab_spcippqa | TYPE STANDARD TABLE OF SPCIPPQA, " | |||
| lt_tab_spcipoch | TYPE STANDARD TABLE OF SPCIPOCH. " |
|   CALL FUNCTION 'ADS2KIP_READ' "SPEC2000: IP Data Read from Archive Files |
| EXPORTING | ||
| I_READ_ALL | = lv_i_read_all | |
| TABLES | ||
| I_SQNBR | = lt_i_sqnbr | |
| TAB_SPCIPCSN | = lt_tab_spcipcsn | |
| TAB_SPCIPEFF | = lt_tab_spcipeff | |
| TAB_SPCIPUOA | = lt_tab_spcipuoa | |
| TAB_SPCIPRPDE | = lt_tab_spciprpde | |
| I_PNR | = lt_i_pnr | |
| I_MFR | = lt_i_mfr | |
| TAB_SPCIPPDR | = lt_tab_spcippdr | |
| TAB_SPCIPPARTS | = lt_tab_spcipparts | |
| TAB_SPCIPPDS | = lt_tab_spcippds | |
| TAB_SPCIPOSDS | = lt_tab_spciposds | |
| TAB_SPCIPPQA | = lt_tab_spcippqa | |
| TAB_SPCIPOCH | = lt_tab_spcipoch | |
| EXCEPTIONS | ||
| ERROR_IN_ARCHIVE_FILE = 1 | ||
| NO_RECORDS_FOUND = 2 | ||
| . " ADS2KIP_READ | ||
ABAP code using 7.40 inline data declarations to call FM ADS2KIP_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.Search for further information about these or an SAP related objects