SAP OIH_CONVERT_EDGRP_TO_PRODTXGR Function Module for Convert Excise Tax Group into Product Tax Group
OIH_CONVERT_EDGRP_TO_PRODTXGR is a standard oih convert edgrp to prodtxgr SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Convert Excise Tax Group into Product Tax Group 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 oih convert edgrp to prodtxgr FM, simply by entering the name OIH_CONVERT_EDGRP_TO_PRODTXGR into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIH_ETAX_CONVERSION
Program Name: SAPLOIH_ETAX_CONVERSION
Main Program: SAPLOIH_ETAX_CONVERSION
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIH_CONVERT_EDGRP_TO_PRODTXGR 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 'OIH_CONVERT_EDGRP_TO_PRODTXGR'"Convert Excise Tax Group into Product Tax Group.
EXPORTING
I_TAX_COUNTRY = "Departure country (country from which the goods are sent)
I_TAX_REGION = "Region (State, Province, County)
I_ED_GROUP = "Excise duty tax group for material(s)
IMPORTING
E_TAX_COUNTRY = "Departure country (country from which the goods are sent)
E_TAX_REGION = "Region (State, Province, County)
E_ETAX_GROUP = "Product Tax Group
E_ETAX_TYPE = "Tax Classification: Tax Type
EXCEPTIONS
TAX_GROUP_NOT_VALID = 1
IMPORTING Parameters details for OIH_CONVERT_EDGRP_TO_PRODTXGR
I_TAX_COUNTRY - Departure country (country from which the goods are sent)
Data type: OIH_ETAX_GRP_MAP-TAX_COUNTRYOptional: No
Call by Reference: Yes
I_TAX_REGION - Region (State, Province, County)
Data type: OIH_ETAX_GRP_MAP-TAX_REGIONOptional: No
Call by Reference: Yes
I_ED_GROUP - Excise duty tax group for material(s)
Data type: OIH_ETAX_GRP_MAP-ED_GROUPOptional: No
Call by Reference: Yes
EXPORTING Parameters details for OIH_CONVERT_EDGRP_TO_PRODTXGR
E_TAX_COUNTRY - Departure country (country from which the goods are sent)
Data type: OIH_ETAX_GRP_MAP-TAX_COUNTRYOptional: No
Call by Reference: Yes
E_TAX_REGION - Region (State, Province, County)
Data type: OIH_ETAX_GRP_MAP-TAX_REGIONOptional: No
Call by Reference: Yes
E_ETAX_GROUP - Product Tax Group
Data type: OIH_ETAX_GRP_MAP-ETAX_GROUPOptional: No
Call by Reference: Yes
E_ETAX_TYPE - Tax Classification: Tax Type
Data type: OIH_ETAX_GRP_MAP-ETAX_TYPEOptional: No
Call by Reference: Yes
EXCEPTIONS details
TAX_GROUP_NOT_VALID - Invalid ED Group
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for OIH_CONVERT_EDGRP_TO_PRODTXGR 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_tax_country | TYPE OIH_ETAX_GRP_MAP-TAX_COUNTRY, " | |||
| lv_i_tax_country | TYPE OIH_ETAX_GRP_MAP-TAX_COUNTRY, " | |||
| lv_tax_group_not_valid | TYPE OIH_ETAX_GRP_MAP, " | |||
| lv_e_tax_region | TYPE OIH_ETAX_GRP_MAP-TAX_REGION, " | |||
| lv_i_tax_region | TYPE OIH_ETAX_GRP_MAP-TAX_REGION, " | |||
| lv_i_ed_group | TYPE OIH_ETAX_GRP_MAP-ED_GROUP, " | |||
| lv_e_etax_group | TYPE OIH_ETAX_GRP_MAP-ETAX_GROUP, " | |||
| lv_e_etax_type | TYPE OIH_ETAX_GRP_MAP-ETAX_TYPE. " |
|   CALL FUNCTION 'OIH_CONVERT_EDGRP_TO_PRODTXGR' "Convert Excise Tax Group into Product Tax Group |
| EXPORTING | ||
| I_TAX_COUNTRY | = lv_i_tax_country | |
| I_TAX_REGION | = lv_i_tax_region | |
| I_ED_GROUP | = lv_i_ed_group | |
| IMPORTING | ||
| E_TAX_COUNTRY | = lv_e_tax_country | |
| E_TAX_REGION | = lv_e_tax_region | |
| E_ETAX_GROUP | = lv_e_etax_group | |
| E_ETAX_TYPE | = lv_e_etax_type | |
| EXCEPTIONS | ||
| TAX_GROUP_NOT_VALID = 1 | ||
| . " OIH_CONVERT_EDGRP_TO_PRODTXGR | ||
ABAP code using 7.40 inline data declarations to call FM OIH_CONVERT_EDGRP_TO_PRODTXGR
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 TAX_COUNTRY FROM OIH_ETAX_GRP_MAP INTO @DATA(ld_e_tax_country). | ||||
| "SELECT single TAX_COUNTRY FROM OIH_ETAX_GRP_MAP INTO @DATA(ld_i_tax_country). | ||||
| "SELECT single TAX_REGION FROM OIH_ETAX_GRP_MAP INTO @DATA(ld_e_tax_region). | ||||
| "SELECT single TAX_REGION FROM OIH_ETAX_GRP_MAP INTO @DATA(ld_i_tax_region). | ||||
| "SELECT single ED_GROUP FROM OIH_ETAX_GRP_MAP INTO @DATA(ld_i_ed_group). | ||||
| "SELECT single ETAX_GROUP FROM OIH_ETAX_GRP_MAP INTO @DATA(ld_e_etax_group). | ||||
| "SELECT single ETAX_TYPE FROM OIH_ETAX_GRP_MAP INTO @DATA(ld_e_etax_type). | ||||
Search for further information about these or an SAP related objects