SAP ISU_ARCHIVE_BILL_HEAD_SELECT Function Module for Read Billing Document Lines from Archiving
ISU_ARCHIVE_BILL_HEAD_SELECT is a standard isu archive bill head select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Billing Document Lines from Archiving 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 isu archive bill head select FM, simply by entering the name ISU_ARCHIVE_BILL_HEAD_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: E26_ERCH
Program Name: SAPLE26_ERCH
Main Program: SAPLE26_ERCH
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISU_ARCHIVE_BILL_HEAD_SELECT 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 'ISU_ARCHIVE_BILL_HEAD_SELECT'"Read Billing Document Lines from Archiving.
EXPORTING
* X_BELNR = "Number of a billing document
* X_ARCHIVEKEY = "Key for Archive File
* X_OFFSET = "Offset of data object in archive file
* X_DIALOG = "
IMPORTING
Y_ERCH = "Bill Document Data
Y_ARCHIVE_ANSWER = "Indicator
Y_REQUEST = "TOU Request
TABLES
YT_ERCHC = "Standard table for structure ERCHC
YT_ERCHO = "Standard table for structure ERCHO
YT_ERCHP = "Standard table for structure ERCHP
YT_ERCHV = "Standard table for structure ERCHV
EXCEPTIONS
PARAMETER_ERROR = 1 OBJECT_NOT_IN_ARCHIVE = 2 ARCHIVE_READ_ERROR = 3 CANCELLED = 4
IMPORTING Parameters details for ISU_ARCHIVE_BILL_HEAD_SELECT
X_BELNR - Number of a billing document
Data type: ERCH-BELNROptional: Yes
Call by Reference: Yes
X_ARCHIVEKEY - Key for Archive File
Data type: ADMI_FILES-ARCHIV_KEYOptional: Yes
Call by Reference: Yes
X_OFFSET - Offset of data object in archive file
Data type: ARCH_IDX-OFFSETOptional: Yes
Call by Reference: Yes
X_DIALOG -
Data type: COptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ISU_ARCHIVE_BILL_HEAD_SELECT
Y_ERCH - Bill Document Data
Data type: ERCHOptional: No
Call by Reference: Yes
Y_ARCHIVE_ANSWER - Indicator
Data type: REGEN-KENNZXOptional: No
Call by Reference: Yes
Y_REQUEST - TOU Request
Data type: EMDUSRQOptional: No
Call by Reference: Yes
TABLES Parameters details for ISU_ARCHIVE_BILL_HEAD_SELECT
YT_ERCHC - Standard table for structure ERCHC
Data type: ERCHC_TABOptional: No
Call by Reference: Yes
YT_ERCHO - Standard table for structure ERCHO
Data type: ERCHO_TABOptional: No
Call by Reference: Yes
YT_ERCHP - Standard table for structure ERCHP
Data type: ERCHP_TABOptional: No
Call by Reference: Yes
YT_ERCHV - Standard table for structure ERCHV
Data type: ERCHV_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
PARAMETER_ERROR -
Data type:Optional: No
Call by Reference: Yes
OBJECT_NOT_IN_ARCHIVE - Not Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ARCHIVE_READ_ERROR - Could Not Read Archive
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CANCELLED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISU_ARCHIVE_BILL_HEAD_SELECT 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_y_erch | TYPE ERCH, " | |||
| lv_x_belnr | TYPE ERCH-BELNR, " | |||
| lt_yt_erchc | TYPE STANDARD TABLE OF ERCHC_TAB, " | |||
| lv_parameter_error | TYPE ERCHC_TAB, " | |||
| lt_yt_ercho | TYPE STANDARD TABLE OF ERCHO_TAB, " | |||
| lv_x_archivekey | TYPE ADMI_FILES-ARCHIV_KEY, " | |||
| lv_y_archive_answer | TYPE REGEN-KENNZX, " | |||
| lv_object_not_in_archive | TYPE REGEN, " | |||
| lv_x_offset | TYPE ARCH_IDX-OFFSET, " | |||
| lt_yt_erchp | TYPE STANDARD TABLE OF ERCHP_TAB, " | |||
| lv_y_request | TYPE EMDUSRQ, " | |||
| lv_archive_read_error | TYPE EMDUSRQ, " | |||
| lv_x_dialog | TYPE C, " | |||
| lt_yt_erchv | TYPE STANDARD TABLE OF ERCHV_TAB, " | |||
| lv_cancelled | TYPE ERCHV_TAB. " |
|   CALL FUNCTION 'ISU_ARCHIVE_BILL_HEAD_SELECT' "Read Billing Document Lines from Archiving |
| EXPORTING | ||
| X_BELNR | = lv_x_belnr | |
| X_ARCHIVEKEY | = lv_x_archivekey | |
| X_OFFSET | = lv_x_offset | |
| X_DIALOG | = lv_x_dialog | |
| IMPORTING | ||
| Y_ERCH | = lv_y_erch | |
| Y_ARCHIVE_ANSWER | = lv_y_archive_answer | |
| Y_REQUEST | = lv_y_request | |
| TABLES | ||
| YT_ERCHC | = lt_yt_erchc | |
| YT_ERCHO | = lt_yt_ercho | |
| YT_ERCHP | = lt_yt_erchp | |
| YT_ERCHV | = lt_yt_erchv | |
| EXCEPTIONS | ||
| PARAMETER_ERROR = 1 | ||
| OBJECT_NOT_IN_ARCHIVE = 2 | ||
| ARCHIVE_READ_ERROR = 3 | ||
| CANCELLED = 4 | ||
| . " ISU_ARCHIVE_BILL_HEAD_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM ISU_ARCHIVE_BILL_HEAD_SELECT
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 BELNR FROM ERCH INTO @DATA(ld_x_belnr). | ||||
| "SELECT single ARCHIV_KEY FROM ADMI_FILES INTO @DATA(ld_x_archivekey). | ||||
| "SELECT single KENNZX FROM REGEN INTO @DATA(ld_y_archive_answer). | ||||
| "SELECT single OFFSET FROM ARCH_IDX INTO @DATA(ld_x_offset). | ||||
Search for further information about these or an SAP related objects