SAP J_1BNFE_GET_TAX_CODES Function Module for Get valid tax codes
J_1BNFE_GET_TAX_CODES is a standard j 1bnfe get tax codes SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get valid tax codes 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 1bnfe get tax codes FM, simply by entering the name J_1BNFE_GET_TAX_CODES into the relevant SAP transaction such as SE37 or SE38.
Function Group: J_1B_NFE_IN
Program Name: SAPLJ_1B_NFE_IN
Main Program: SAPLJ_1B_NFE_IN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function J_1BNFE_GET_TAX_CODES 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_1BNFE_GET_TAX_CODES'"Get valid tax codes.
EXPORTING
* I_LANGU = SY-LANGU "Language Key
* I_J_1BISS = "Tax Calculation: Material Usage
TABLES
IT_EKPO_KEY = "Structure for Array Fetch (Table EKPO)
* ET_TAXCODES = "Tax Code Names
* ET_BAPIRET2 = "Table with BAPI Return Information
IMPORTING Parameters details for J_1BNFE_GET_TAX_CODES
I_LANGU - Language Key
Data type: SPRASDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_J_1BISS - Tax Calculation: Material Usage
Data type: J_1BTXMMISOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for J_1BNFE_GET_TAX_CODES
IT_EKPO_KEY - Structure for Array Fetch (Table EKPO)
Data type: EKPO_KEYOptional: No
Call by Reference: Yes
ET_TAXCODES - Tax Code Names
Data type: J_1BNFE_TAXCODE_TABOptional: Yes
Call by Reference: Yes
ET_BAPIRET2 - Table with BAPI Return Information
Data type: BAPIRETTABOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for J_1BNFE_GET_TAX_CODES 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_i_langu | TYPE SPRAS, " SY-LANGU | |||
| lt_it_ekpo_key | TYPE STANDARD TABLE OF EKPO_KEY, " | |||
| lv_i_j_1biss | TYPE J_1BTXMMIS, " | |||
| lt_et_taxcodes | TYPE STANDARD TABLE OF J_1BNFE_TAXCODE_TAB, " | |||
| lt_et_bapiret2 | TYPE STANDARD TABLE OF BAPIRETTAB. " |
|   CALL FUNCTION 'J_1BNFE_GET_TAX_CODES' "Get valid tax codes |
| EXPORTING | ||
| I_LANGU | = lv_i_langu | |
| I_J_1BISS | = lv_i_j_1biss | |
| TABLES | ||
| IT_EKPO_KEY | = lt_it_ekpo_key | |
| ET_TAXCODES | = lt_et_taxcodes | |
| ET_BAPIRET2 | = lt_et_bapiret2 | |
| . " J_1BNFE_GET_TAX_CODES | ||
ABAP code using 7.40 inline data declarations to call FM J_1BNFE_GET_TAX_CODES
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.| DATA(ld_i_langu) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects