SAP J_1B_READ_TXIP2 Function Module for Read IPI Exception Rate Table
J_1B_READ_TXIP2 is a standard j 1b read txip2 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 IPI Exception 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 j 1b read txip2 FM, simply by entering the name J_1B_READ_TXIP2 into the relevant SAP transaction such as SE37 or SE38.
Function Group: J1BR
Program Name: SAPLJ1BR
Main Program: SAPLJ1BR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function J_1B_READ_TXIP2 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 'J_1B_READ_TXIP2'"Read IPI Exception Rate Table.
EXPORTING
MATERIAL = "Material Number
DATE = "Date from which the tax rule is valid
IMPORTING
RATE = "Tax rate
BASE = "Tax rate for freight (%)
EXEMPT = "No ICMS calculation - Other base
TAXLAW = "Tax law: ICMS
AMOUNT = "Product Subject to Convenio 100
FACTOR = "IPI Number of units
UNIT = "IPI Pauta Unit
WAERS = "Currency Key
IMPORTING Parameters details for J_1B_READ_TXIP2
MATERIAL - Material Number
Data type: MARA-MATNROptional: No
Call by Reference: No ( called with pass by value option)
DATE - Date from which the tax rule is valid
Data type: J_1BTXIC1-VALIDFROMOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for J_1B_READ_TXIP2
RATE - Tax rate
Data type: J_1BTXIP2-RATEOptional: No
Call by Reference: No ( called with pass by value option)
BASE - Tax rate for freight (%)
Data type: J_1BTXIP2-BASEOptional: No
Call by Reference: No ( called with pass by value option)
EXEMPT - No ICMS calculation - Other base
Data type: J_1BTXIP2-EXEMPTOptional: No
Call by Reference: No ( called with pass by value option)
TAXLAW - Tax law: ICMS
Data type: J_1BTXIP2-TAXLAWOptional: No
Call by Reference: No ( called with pass by value option)
AMOUNT - Product Subject to Convenio 100
Data type: J_1BTXIP2-AMOUNTOptional: No
Call by Reference: No ( called with pass by value option)
FACTOR - IPI Number of units
Data type: J_1BTXIP2-FACTOROptional: No
Call by Reference: No ( called with pass by value option)
UNIT - IPI Pauta Unit
Data type: J_1BTXIP2-UNITOptional: No
Call by Reference: No ( called with pass by value option)
WAERS - Currency Key
Data type: J_1BTXIP2-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for J_1B_READ_TXIP2 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_rate | TYPE J_1BTXIP2-RATE, " | |||
| lv_material | TYPE MARA-MATNR, " | |||
| lv_base | TYPE J_1BTXIP2-BASE, " | |||
| lv_date | TYPE J_1BTXIC1-VALIDFROM, " | |||
| lv_exempt | TYPE J_1BTXIP2-EXEMPT, " | |||
| lv_taxlaw | TYPE J_1BTXIP2-TAXLAW, " | |||
| lv_amount | TYPE J_1BTXIP2-AMOUNT, " | |||
| lv_factor | TYPE J_1BTXIP2-FACTOR, " | |||
| lv_unit | TYPE J_1BTXIP2-UNIT, " | |||
| lv_waers | TYPE J_1BTXIP2-WAERS. " |
|   CALL FUNCTION 'J_1B_READ_TXIP2' "Read IPI Exception Rate Table |
| EXPORTING | ||
| MATERIAL | = lv_material | |
| DATE | = lv_date | |
| IMPORTING | ||
| RATE | = lv_rate | |
| BASE | = lv_base | |
| EXEMPT | = lv_exempt | |
| TAXLAW | = lv_taxlaw | |
| AMOUNT | = lv_amount | |
| FACTOR | = lv_factor | |
| UNIT | = lv_unit | |
| WAERS | = lv_waers | |
| . " J_1B_READ_TXIP2 | ||
ABAP code using 7.40 inline data declarations to call FM J_1B_READ_TXIP2
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 RATE FROM J_1BTXIP2 INTO @DATA(ld_rate). | ||||
| "SELECT single MATNR FROM MARA INTO @DATA(ld_material). | ||||
| "SELECT single BASE FROM J_1BTXIP2 INTO @DATA(ld_base). | ||||
| "SELECT single VALIDFROM FROM J_1BTXIC1 INTO @DATA(ld_date). | ||||
| "SELECT single EXEMPT FROM J_1BTXIP2 INTO @DATA(ld_exempt). | ||||
| "SELECT single TAXLAW FROM J_1BTXIP2 INTO @DATA(ld_taxlaw). | ||||
| "SELECT single AMOUNT FROM J_1BTXIP2 INTO @DATA(ld_amount). | ||||
| "SELECT single FACTOR FROM J_1BTXIP2 INTO @DATA(ld_factor). | ||||
| "SELECT single UNIT FROM J_1BTXIP2 INTO @DATA(ld_unit). | ||||
| "SELECT single WAERS FROM J_1BTXIP2 INTO @DATA(ld_waers). | ||||
Search for further information about these or an SAP related objects