SAP OIURV_MTAH_READ_SINGLE Function Module for Select single record from OIUVL_MTAH/ D based on key
OIURV_MTAH_READ_SINGLE is a standard oiurv mtah read single SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Select single record from OIUVL_MTAH/ D based on key 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 oiurv mtah read single FM, simply by entering the name OIURV_MTAH_READ_SINGLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIURV_TAX_EXEMPT_ALLOWANCE
Program Name: SAPLOIURV_TAX_EXEMPT_ALLOWANCE
Main Program: SAPLOIURV_TAX_EXEMPT_ALLOWANCE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIURV_MTAH_READ_SINGLE 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 'OIURV_MTAH_READ_SINGLE'"Select single record from OIUVL_MTAH/ D based on key.
EXPORTING
BUKRS = "Company code
VNAME = "Joint Venture
DOI_NO = "Division of Interest
OWN_NO = "E&P Owner
MAJPD_CD = "Major Product Code
MATNR = "E&P Product
EFF_FROM_DT = "Effective From Date
IMPORTING
MTAH = "Marketing Cost Tax Exemption - Header
TABLES
MTAD = "Marketing Cost Tax Exemption - Detail
EXCEPTIONS
NOT_FOUND = 1
IMPORTING Parameters details for OIURV_MTAH_READ_SINGLE
BUKRS - Company code
Data type: BUKRSOptional: No
Call by Reference: Yes
VNAME - Joint Venture
Data type: JV_NAMEOptional: No
Call by Reference: Yes
DOI_NO - Division of Interest
Data type: OIU_DOI_NOOptional: No
Call by Reference: Yes
OWN_NO - E&P Owner
Data type: OIU_OWN_NOOptional: No
Call by Reference: Yes
MAJPD_CD - Major Product Code
Data type: OIU_MAJPD_CDOptional: No
Call by Reference: Yes
MATNR - E&P Product
Data type: MATNROptional: No
Call by Reference: Yes
EFF_FROM_DT - Effective From Date
Data type: OIU_EFF_FROM_DTOptional: No
Call by Reference: Yes
EXPORTING Parameters details for OIURV_MTAH_READ_SINGLE
MTAH - Marketing Cost Tax Exemption - Header
Data type: OIUVL_MTAHOptional: No
Call by Reference: Yes
TABLES Parameters details for OIURV_MTAH_READ_SINGLE
MTAD - Marketing Cost Tax Exemption - Detail
Data type: OIUVL_MTADOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND - NO SUITABLE RECORD WAS FOUND
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for OIURV_MTAH_READ_SINGLE 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_mtad | TYPE STANDARD TABLE OF OIUVL_MTAD, " | |||
| lv_mtah | TYPE OIUVL_MTAH, " | |||
| lv_bukrs | TYPE BUKRS, " | |||
| lv_not_found | TYPE BUKRS, " | |||
| lv_vname | TYPE JV_NAME, " | |||
| lv_doi_no | TYPE OIU_DOI_NO, " | |||
| lv_own_no | TYPE OIU_OWN_NO, " | |||
| lv_majpd_cd | TYPE OIU_MAJPD_CD, " | |||
| lv_matnr | TYPE MATNR, " | |||
| lv_eff_from_dt | TYPE OIU_EFF_FROM_DT. " |
|   CALL FUNCTION 'OIURV_MTAH_READ_SINGLE' "Select single record from OIUVL_MTAH/ D based on key |
| EXPORTING | ||
| BUKRS | = lv_bukrs | |
| VNAME | = lv_vname | |
| DOI_NO | = lv_doi_no | |
| OWN_NO | = lv_own_no | |
| MAJPD_CD | = lv_majpd_cd | |
| MATNR | = lv_matnr | |
| EFF_FROM_DT | = lv_eff_from_dt | |
| IMPORTING | ||
| MTAH | = lv_mtah | |
| TABLES | ||
| MTAD | = lt_mtad | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| . " OIURV_MTAH_READ_SINGLE | ||
ABAP code using 7.40 inline data declarations to call FM OIURV_MTAH_READ_SINGLE
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