SAP J_1B_READ_TXIC2 Function Module for Read ICMS Exception Rate Table









J_1B_READ_TXIC2 is a standard j 1b read txic2 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 ICMS 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 txic2 FM, simply by entering the name J_1B_READ_TXIC2 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_TXIC2 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_TXIC2'"Read ICMS Exception Rate Table
EXPORTING
COUNTRY = "Tax departure country
STATE_FROM = "Tax Region
STATE_TO = "Tax Region
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
CONVEN100 = "Product Subject to Convenio 100
.



IMPORTING Parameters details for J_1B_READ_TXIC2

COUNTRY - Tax departure country

Data type: COM_TAX-COUNTRY
Optional: No
Call by Reference: No ( called with pass by value option)

STATE_FROM - Tax Region

Data type: J_1BTAXJUR-STATE
Optional: No
Call by Reference: No ( called with pass by value option)

STATE_TO - Tax Region

Data type: J_1BTAXJUR-STATE
Optional: No
Call by Reference: No ( called with pass by value option)

MATERIAL - Material Number

Data type: MARA-MATNR
Optional: No
Call by Reference: No ( called with pass by value option)

DATE - Date from which the tax rule is valid

Data type: J_1BTXIC1-VALIDFROM
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for J_1B_READ_TXIC2

RATE - Tax rate

Data type: J_1BTXIC2-RATE
Optional: No
Call by Reference: No ( called with pass by value option)

BASE - Tax rate for freight (%)

Data type: J_1BTXIC2-BASE
Optional: No
Call by Reference: No ( called with pass by value option)

EXEMPT - No ICMS calculation - Other base

Data type: J_1BTXIC2-EXEMPT
Optional: No
Call by Reference: No ( called with pass by value option)

TAXLAW - Tax law: ICMS

Data type: J_1BTXIC2-TAXLAW
Optional: No
Call by Reference: No ( called with pass by value option)

CONVEN100 - Product Subject to Convenio 100

Data type: J_1BTXIC2-CONVEN100
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for J_1B_READ_TXIC2 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_1BTXIC2-RATE, "   
lv_country  TYPE COM_TAX-COUNTRY, "   
lv_base  TYPE J_1BTXIC2-BASE, "   
lv_state_from  TYPE J_1BTAXJUR-STATE, "   
lv_exempt  TYPE J_1BTXIC2-EXEMPT, "   
lv_state_to  TYPE J_1BTAXJUR-STATE, "   
lv_taxlaw  TYPE J_1BTXIC2-TAXLAW, "   
lv_material  TYPE MARA-MATNR, "   
lv_date  TYPE J_1BTXIC1-VALIDFROM, "   
lv_conven100  TYPE J_1BTXIC2-CONVEN100. "   

  CALL FUNCTION 'J_1B_READ_TXIC2'  "Read ICMS Exception Rate Table
    EXPORTING
         COUNTRY = lv_country
         STATE_FROM = lv_state_from
         STATE_TO = lv_state_to
         MATERIAL = lv_material
         DATE = lv_date
    IMPORTING
         RATE = lv_rate
         BASE = lv_base
         EXEMPT = lv_exempt
         TAXLAW = lv_taxlaw
         CONVEN100 = lv_conven100
. " J_1B_READ_TXIC2




ABAP code using 7.40 inline data declarations to call FM J_1B_READ_TXIC2

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_1BTXIC2 INTO @DATA(ld_rate).
 
"SELECT single COUNTRY FROM COM_TAX INTO @DATA(ld_country).
 
"SELECT single BASE FROM J_1BTXIC2 INTO @DATA(ld_base).
 
"SELECT single STATE FROM J_1BTAXJUR INTO @DATA(ld_state_from).
 
"SELECT single EXEMPT FROM J_1BTXIC2 INTO @DATA(ld_exempt).
 
"SELECT single STATE FROM J_1BTAXJUR INTO @DATA(ld_state_to).
 
"SELECT single TAXLAW FROM J_1BTXIC2 INTO @DATA(ld_taxlaw).
 
"SELECT single MATNR FROM MARA INTO @DATA(ld_material).
 
"SELECT single VALIDFROM FROM J_1BTXIC1 INTO @DATA(ld_date).
 
"SELECT single CONVEN100 FROM J_1BTXIC2 INTO @DATA(ld_conven100).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!