SAP CHVW_ARCHIVE_INDEX_READ Function Module for NOTRANSL: Archivindex zu Chargenverwendungsdaten lesen
CHVW_ARCHIVE_INDEX_READ is a standard chvw archive index 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: Archivindex zu Chargenverwendungsdaten 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 chvw archive index read FM, simply by entering the name CHVW_ARCHIVE_INDEX_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: CHVW
Program Name: SAPLCHVW
Main Program: SAPLCHVW
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CHVW_ARCHIVE_INDEX_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 'CHVW_ARCHIVE_INDEX_READ'"NOTRANSL: Archivindex zu Chargenverwendungsdaten lesen.
EXPORTING
MODE = "Session for reading indices (CHVW)
* WERK = "
* MATERIAL = "
* CHARGE = "
* AUFTRAG = "
* EINK_BELEG = "
TABLES
* ICHVW_ARC_1 = "
* ICHVW_ARC_2 = "
* ICHVW_ARC_3 = "
EXCEPTIONS
WRONG_MODE = 1 WRONG_FKT_CALL = 2 NO_DATA_FOUND = 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_SAPLCHVW_001 BWUL: Fill fields in append CHVWSHADOW_Z
IMPORTING Parameters details for CHVW_ARCHIVE_INDEX_READ
MODE - Session for reading indices (CHVW)
Data type: MODUS_IDX_CHVWOptional: No
Call by Reference: Yes
WERK -
Data type: CHVW-WERKSOptional: Yes
Call by Reference: Yes
MATERIAL -
Data type: CHVW-MATNROptional: Yes
Call by Reference: Yes
CHARGE -
Data type: CHVW-CHARGOptional: Yes
Call by Reference: Yes
AUFTRAG -
Data type: CHVW-AUFNROptional: Yes
Call by Reference: Yes
EINK_BELEG -
Data type: CHVW-EBELNOptional: Yes
Call by Reference: Yes
TABLES Parameters details for CHVW_ARCHIVE_INDEX_READ
ICHVW_ARC_1 -
Data type: CHVW_ARC_1Optional: Yes
Call by Reference: Yes
ICHVW_ARC_2 -
Data type: CHVW_ARC_2Optional: Yes
Call by Reference: Yes
ICHVW_ARC_3 -
Data type: CHVW_ARC_3Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
WRONG_MODE -
Data type:Optional: No
Call by Reference: Yes
WRONG_FKT_CALL -
Data type:Optional: No
Call by Reference: Yes
NO_DATA_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CHVW_ARCHIVE_INDEX_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_mode | TYPE MODUS_IDX_CHVW, " | |||
| lv_wrong_mode | TYPE MODUS_IDX_CHVW, " | |||
| lt_ichvw_arc_1 | TYPE STANDARD TABLE OF CHVW_ARC_1, " | |||
| lv_werk | TYPE CHVW-WERKS, " | |||
| lt_ichvw_arc_2 | TYPE STANDARD TABLE OF CHVW_ARC_2, " | |||
| lv_wrong_fkt_call | TYPE CHVW_ARC_2, " | |||
| lv_material | TYPE CHVW-MATNR, " | |||
| lt_ichvw_arc_3 | TYPE STANDARD TABLE OF CHVW_ARC_3, " | |||
| lv_no_data_found | TYPE CHVW_ARC_3, " | |||
| lv_charge | TYPE CHVW-CHARG, " | |||
| lv_auftrag | TYPE CHVW-AUFNR, " | |||
| lv_eink_beleg | TYPE CHVW-EBELN. " |
|   CALL FUNCTION 'CHVW_ARCHIVE_INDEX_READ' "NOTRANSL: Archivindex zu Chargenverwendungsdaten lesen |
| EXPORTING | ||
| MODE | = lv_mode | |
| WERK | = lv_werk | |
| MATERIAL | = lv_material | |
| CHARGE | = lv_charge | |
| AUFTRAG | = lv_auftrag | |
| EINK_BELEG | = lv_eink_beleg | |
| TABLES | ||
| ICHVW_ARC_1 | = lt_ichvw_arc_1 | |
| ICHVW_ARC_2 | = lt_ichvw_arc_2 | |
| ICHVW_ARC_3 | = lt_ichvw_arc_3 | |
| EXCEPTIONS | ||
| WRONG_MODE = 1 | ||
| WRONG_FKT_CALL = 2 | ||
| NO_DATA_FOUND = 3 | ||
| . " CHVW_ARCHIVE_INDEX_READ | ||
ABAP code using 7.40 inline data declarations to call FM CHVW_ARCHIVE_INDEX_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 WERKS FROM CHVW INTO @DATA(ld_werk). | ||||
| "SELECT single MATNR FROM CHVW INTO @DATA(ld_material). | ||||
| "SELECT single CHARG FROM CHVW INTO @DATA(ld_charge). | ||||
| "SELECT single AUFNR FROM CHVW INTO @DATA(ld_auftrag). | ||||
| "SELECT single EBELN FROM CHVW INTO @DATA(ld_eink_beleg). | ||||
Search for further information about these or an SAP related objects