SAP IS_OIH01_SINGLE_READ Function Module for Buffered read of excise duty rate table
IS_OIH01_SINGLE_READ is a standard is oih01 single 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 Buffered read of excise duty rate table 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 is oih01 single read FM, simply by entering the name IS_OIH01_SINGLE_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIHS
Program Name: SAPLOIHS
Main Program: SAPLOIHS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function IS_OIH01_SINGLE_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 'IS_OIH01_SINGLE_READ'"Buffered read of excise duty rate table.
EXPORTING
I_BUKRS = "Company Code
I_WERKS = "Plant
I_TAXGRP = "Excise duty tax group for material(s)
I_HANTYP = "Excise Duty Handling Type (Denotes Use of Material)
I_DATUV = "Excise duty rate valid from date
* I_DATUV_OPTION = 'EQ' "Type of OPTION: EQ+GE supported
* I_BYPASSING_BUFFER = ' ' "A=only fr.DB;B=only fr.buffer(no DB); X=read DB,fill buffer ;T=transfer to buff
* I_REFRESH_BUFFER = "
* I_PREFETCH_ALL = "Prefetch all records, if internal buffer is empty
IMPORTING
E_OIH01 = "Excise Duty Rates Table
TABLES
* TE_OIH01 = "Excise Duty Rates Table
EXCEPTIONS
RECORD_NOT_FOUND = 1 INVALID_CALL = 2
IMPORTING Parameters details for IS_OIH01_SINGLE_READ
I_BUKRS - Company Code
Data type: OIH01-BUKRSOptional: No
Call by Reference: Yes
I_WERKS - Plant
Data type: OIH01-WERKSOptional: No
Call by Reference: Yes
I_TAXGRP - Excise duty tax group for material(s)
Data type: OIH01-TAXGRPOptional: No
Call by Reference: Yes
I_HANTYP - Excise Duty Handling Type (Denotes Use of Material)
Data type: OIH01-HANTYPOptional: No
Call by Reference: Yes
I_DATUV - Excise duty rate valid from date
Data type: OIH01-DATUVOptional: No
Call by Reference: Yes
I_DATUV_OPTION - Type of OPTION: EQ+GE supported
Data type: DDOPTIONDefault: 'EQ'
Optional: Yes
Call by Reference: Yes
I_BYPASSING_BUFFER - A=only fr.DB;B=only fr.buffer(no DB); X=read DB,fill buffer ;T=transfer to buff
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_REFRESH_BUFFER -
Data type: COptional: Yes
Call by Reference: Yes
I_PREFETCH_ALL - Prefetch all records, if internal buffer is empty
Data type: XFELDOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for IS_OIH01_SINGLE_READ
E_OIH01 - Excise Duty Rates Table
Data type: OIH01Optional: No
Call by Reference: Yes
TABLES Parameters details for IS_OIH01_SINGLE_READ
TE_OIH01 - Excise Duty Rates Table
Data type: OIH01Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
RECORD_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_CALL -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for IS_OIH01_SINGLE_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_e_oih01 | TYPE OIH01, " | |||
| lv_i_bukrs | TYPE OIH01-BUKRS, " | |||
| lt_te_oih01 | TYPE STANDARD TABLE OF OIH01, " | |||
| lv_record_not_found | TYPE OIH01, " | |||
| lv_i_werks | TYPE OIH01-WERKS, " | |||
| lv_invalid_call | TYPE OIH01, " | |||
| lv_i_taxgrp | TYPE OIH01-TAXGRP, " | |||
| lv_i_hantyp | TYPE OIH01-HANTYP, " | |||
| lv_i_datuv | TYPE OIH01-DATUV, " | |||
| lv_i_datuv_option | TYPE DDOPTION, " 'EQ' | |||
| lv_i_bypassing_buffer | TYPE C, " SPACE | |||
| lv_i_refresh_buffer | TYPE C, " | |||
| lv_i_prefetch_all | TYPE XFELD. " |
|   CALL FUNCTION 'IS_OIH01_SINGLE_READ' "Buffered read of excise duty rate table |
| EXPORTING | ||
| I_BUKRS | = lv_i_bukrs | |
| I_WERKS | = lv_i_werks | |
| I_TAXGRP | = lv_i_taxgrp | |
| I_HANTYP | = lv_i_hantyp | |
| I_DATUV | = lv_i_datuv | |
| I_DATUV_OPTION | = lv_i_datuv_option | |
| I_BYPASSING_BUFFER | = lv_i_bypassing_buffer | |
| I_REFRESH_BUFFER | = lv_i_refresh_buffer | |
| I_PREFETCH_ALL | = lv_i_prefetch_all | |
| IMPORTING | ||
| E_OIH01 | = lv_e_oih01 | |
| TABLES | ||
| TE_OIH01 | = lt_te_oih01 | |
| EXCEPTIONS | ||
| RECORD_NOT_FOUND = 1 | ||
| INVALID_CALL = 2 | ||
| . " IS_OIH01_SINGLE_READ | ||
ABAP code using 7.40 inline data declarations to call FM IS_OIH01_SINGLE_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 BUKRS FROM OIH01 INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single WERKS FROM OIH01 INTO @DATA(ld_i_werks). | ||||
| "SELECT single TAXGRP FROM OIH01 INTO @DATA(ld_i_taxgrp). | ||||
| "SELECT single HANTYP FROM OIH01 INTO @DATA(ld_i_hantyp). | ||||
| "SELECT single DATUV FROM OIH01 INTO @DATA(ld_i_datuv). | ||||
| DATA(ld_i_datuv_option) | = 'EQ'. | |||
| DATA(ld_i_bypassing_buffer) | = ' '. | |||
Search for further information about these or an SAP related objects