SAP BAPI_J_1B_NF_READDATA Function Module for Nota Fiscal: List details of a Nota Fiscal









BAPI_J_1B_NF_READDATA is a standard bapi j 1b nf readdata SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Nota Fiscal: List details of a Nota Fiscal 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 bapi j 1b nf readdata FM, simply by entering the name BAPI_J_1B_NF_READDATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: J1BB
Program Name: SAPLJ1BB
Main Program: SAPLJ1BB
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_J_1B_NF_READDATA 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 'BAPI_J_1B_NF_READDATA'"Nota Fiscal: List details of a Nota Fiscal
EXPORTING
* DOCNUM = "Document number
* REFTYP = "Reference type
* REFKEY = "Reference to source document
* AWSYS = "Logical System

IMPORTING
OBJ_HEADER = "Übergabestruktur Kopfdaten Nota Fiscal

TABLES
* OBJ_PARTNER = "Übergabestruktur Nota Fiscal Partner
* OBJ_TRANS_VOLUMES = "Nota Fiscal Data for Transported Volumes
* OBJ_TRAILER_INFO = "Nota Fiscal Data for Trailer Information
* OBJ_TRADE_NOTES = "Nota Fiscal Data for Trade Notes
* OBJ_ADD_INFO = "Nota Fiscal Data for Free Usage Fields for Additional Inform
* OBJ_REF_PROC = "Nota Fiscal Data for Additional Information: Referenced Proc
* OBJ_SUGAR_SUPPL = "Nota Fiscal Data for Daily Supply of Sugarcane
* OBJ_SUGAR_DEDUC = "Nota Fiscal Data for Taxes and Contributions on Sugarcane
* OBJ_VEHICLE = "Nota Fiscal Data for Vehicle Details
* OBJ_PHARMACEUT = "Nota Fiscal Data for Pharmaceutical Material
* OBJ_FUEL = "Nota Fiscal Data for Fuel Details
OBJ_ITEM = "Übergabestruktur Einzelposten Nota Fiscal
* OBJ_HEADER_TEXT = "NFe Header Texts
* OBJ_ITEM_TEXT = "NFe Item Texts
* OBJ_EXPORT = "Exportation Control
* OBJ_NVE = "BAPI NVE Structure
* OBJ_PHARMA = "BAPI Structure for Pharma details - NF-e 4.00
* OBJ_TRACE = "BAPI Structure for item traceability - NF-e 4.00
* OBJ_PAYMENT = "BAPI Structure for Payment information - NF-e 4.00
* OBJ_TEC_RESP = "BAPI Structure for Read Technical Responsible Data
* OBJ_TEXTS = "Nota Fiscal texts
* OBJ_DUE = "BAPI Structure for Export Declaration in NF-e
OBJ_ITEM_TAX = "Übergabestruktur Nota Fiscal Steuer pro Position
* OBJ_HEADER_MSG = "Übergabestruktur Kopfnachricht Nota Fiscal
* OBJ_REFER_MSG = "Übergabestruktur Nota Fiscal Verweis auf Kopfnachricht
* OBJ_OT_PARTNER = "Übergabestruktur Nota Fiscal CpD-Konten
RETURN = "Returnparameter
* OBJ_IMPORT_DI = "Nota Fiscal Data for Import Documents
* OBJ_IMPORT_ADI = "Assignment of NF Items to Import Documents and Additions
.



IMPORTING Parameters details for BAPI_J_1B_NF_READDATA

DOCNUM - Document number

Data type: BAPI_J_1BNFDOC-DOCNUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

REFTYP - Reference type

Data type: BAPI_J_1BNFLIN-REFTYP
Optional: Yes
Call by Reference: No ( called with pass by value option)

REFKEY - Reference to source document

Data type: BAPI_J_1BNFLIN-REFKEY
Optional: Yes
Call by Reference: No ( called with pass by value option)

AWSYS - Logical System

Data type: BAPI_J_1BNFDOC-AWSYS
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BAPI_J_1B_NF_READDATA

OBJ_HEADER - Übergabestruktur Kopfdaten Nota Fiscal

Data type: BAPI_J_1BNFDOC_READDATA
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BAPI_J_1B_NF_READDATA

OBJ_PARTNER - Übergabestruktur Nota Fiscal Partner

Data type: BAPI_J_1BNFNAD_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_TRANS_VOLUMES - Nota Fiscal Data for Transported Volumes

Data type: BAPI_J_1BNFTRANSVOL_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_TRAILER_INFO - Nota Fiscal Data for Trailer Information

Data type: BAPI_J_1BNFTRAILER_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_TRADE_NOTES - Nota Fiscal Data for Trade Notes

Data type: BAPI_J_1BNFTRADENOTES_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_ADD_INFO - Nota Fiscal Data for Free Usage Fields for Additional Inform

Data type: BAPI_J_1BNFADD_INFO_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_REF_PROC - Nota Fiscal Data for Additional Information: Referenced Proc

Data type: BAPI_J_1BNFREFPROC_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_SUGAR_SUPPL - Nota Fiscal Data for Daily Supply of Sugarcane

Data type: BAPI_J_1BNFSUGARSUPPL_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_SUGAR_DEDUC - Nota Fiscal Data for Taxes and Contributions on Sugarcane

Data type: BAPI_J_1BNFSUGARDEDUC_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_VEHICLE - Nota Fiscal Data for Vehicle Details

Data type: BAPI_J_1BNFVEHICLE_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_PHARMACEUT - Nota Fiscal Data for Pharmaceutical Material

Data type: BAPI_J_1BNFPHARMACEUT_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_FUEL - Nota Fiscal Data for Fuel Details

Data type: BAPI_J_1BNFFUEL_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_ITEM - Übergabestruktur Einzelposten Nota Fiscal

Data type: BAPI_J_1BNFLIN_READDATA
Optional: No
Call by Reference: Yes

OBJ_HEADER_TEXT - NFe Header Texts

Data type: BAPI_J_1BNFTEXTHEADER_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_ITEM_TEXT - NFe Item Texts

Data type: BAPI_J_1BNFTEXTITEM_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_EXPORT - Exportation Control

Data type: BAPI_J_1BNFE_EXPORT_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_NVE - BAPI NVE Structure

Data type: BAPI_J_1BNFE_NVE_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_PHARMA - BAPI Structure for Pharma details - NF-e 4.00

Data type: BAPI_J_1BNFE_PHARMA_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_TRACE - BAPI Structure for item traceability - NF-e 4.00

Data type: BAPI_J_1BNFE_TRACE_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_PAYMENT - BAPI Structure for Payment information - NF-e 4.00

Data type: BAPI_J_1BNFE_PAYMENT_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_TEC_RESP - BAPI Structure for Read Technical Responsible Data

Data type: BAPI_J_1BNFE_TEC_RES_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_TEXTS - Nota Fiscal texts

Data type: LOGBR_NF_TEXTS_COMPATIBILITY
Optional: Yes
Call by Reference: Yes

OBJ_DUE - BAPI Structure for Export Declaration in NF-e

Data type: BAPI_LOGBR_NF_DUE_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_ITEM_TAX - Übergabestruktur Nota Fiscal Steuer pro Position

Data type: BAPI_J_1BNFSTX_READDATA
Optional: No
Call by Reference: Yes

OBJ_HEADER_MSG - Übergabestruktur Kopfnachricht Nota Fiscal

Data type: BAPI_J_1BNFFTX_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_REFER_MSG - Übergabestruktur Nota Fiscal Verweis auf Kopfnachricht

Data type: BAPI_J_1BNFREF_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_OT_PARTNER - Übergabestruktur Nota Fiscal CpD-Konten

Data type: BAPI_J_1BNFCPD_READDATA
Optional: Yes
Call by Reference: Yes

RETURN - Returnparameter

Data type: BAPIRET2
Optional: No
Call by Reference: Yes

OBJ_IMPORT_DI - Nota Fiscal Data for Import Documents

Data type: BAPI_J_1BNFIMPORT_DI_READDATA
Optional: Yes
Call by Reference: Yes

OBJ_IMPORT_ADI - Assignment of NF Items to Import Documents and Additions

Data type: BAPI_J_1BNFIMPORT_ADI_READDATA
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for BAPI_J_1B_NF_READDATA 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_docnum  TYPE BAPI_J_1BNFDOC-DOCNUM, "   
lv_obj_header  TYPE BAPI_J_1BNFDOC_READDATA, "   
lt_obj_partner  TYPE STANDARD TABLE OF BAPI_J_1BNFNAD_READDATA, "   
lt_obj_trans_volumes  TYPE STANDARD TABLE OF BAPI_J_1BNFTRANSVOL_READDATA, "   
lt_obj_trailer_info  TYPE STANDARD TABLE OF BAPI_J_1BNFTRAILER_READDATA, "   
lt_obj_trade_notes  TYPE STANDARD TABLE OF BAPI_J_1BNFTRADENOTES_READDATA, "   
lt_obj_add_info  TYPE STANDARD TABLE OF BAPI_J_1BNFADD_INFO_READDATA, "   
lt_obj_ref_proc  TYPE STANDARD TABLE OF BAPI_J_1BNFREFPROC_READDATA, "   
lt_obj_sugar_suppl  TYPE STANDARD TABLE OF BAPI_J_1BNFSUGARSUPPL_READDATA, "   
lt_obj_sugar_deduc  TYPE STANDARD TABLE OF BAPI_J_1BNFSUGARDEDUC_READDATA, "   
lt_obj_vehicle  TYPE STANDARD TABLE OF BAPI_J_1BNFVEHICLE_READDATA, "   
lt_obj_pharmaceut  TYPE STANDARD TABLE OF BAPI_J_1BNFPHARMACEUT_READDATA, "   
lt_obj_fuel  TYPE STANDARD TABLE OF BAPI_J_1BNFFUEL_READDATA, "   
lv_reftyp  TYPE BAPI_J_1BNFLIN-REFTYP, "   
lt_obj_item  TYPE STANDARD TABLE OF BAPI_J_1BNFLIN_READDATA, "   
lt_obj_header_text  TYPE STANDARD TABLE OF BAPI_J_1BNFTEXTHEADER_READDATA, "   
lt_obj_item_text  TYPE STANDARD TABLE OF BAPI_J_1BNFTEXTITEM_READDATA, "   
lt_obj_export  TYPE STANDARD TABLE OF BAPI_J_1BNFE_EXPORT_READDATA, "   
lt_obj_nve  TYPE STANDARD TABLE OF BAPI_J_1BNFE_NVE_READDATA, "   
lt_obj_pharma  TYPE STANDARD TABLE OF BAPI_J_1BNFE_PHARMA_READDATA, "   
lt_obj_trace  TYPE STANDARD TABLE OF BAPI_J_1BNFE_TRACE_READDATA, "   
lt_obj_payment  TYPE STANDARD TABLE OF BAPI_J_1BNFE_PAYMENT_READDATA, "   
lt_obj_tec_resp  TYPE STANDARD TABLE OF BAPI_J_1BNFE_TEC_RES_READDATA, "   
lt_obj_texts  TYPE STANDARD TABLE OF LOGBR_NF_TEXTS_COMPATIBILITY, "   
lt_obj_due  TYPE STANDARD TABLE OF BAPI_LOGBR_NF_DUE_READDATA, "   
lv_refkey  TYPE BAPI_J_1BNFLIN-REFKEY, "   
lt_obj_item_tax  TYPE STANDARD TABLE OF BAPI_J_1BNFSTX_READDATA, "   
lv_awsys  TYPE BAPI_J_1BNFDOC-AWSYS, "   
lt_obj_header_msg  TYPE STANDARD TABLE OF BAPI_J_1BNFFTX_READDATA, "   
lt_obj_refer_msg  TYPE STANDARD TABLE OF BAPI_J_1BNFREF_READDATA, "   
lt_obj_ot_partner  TYPE STANDARD TABLE OF BAPI_J_1BNFCPD_READDATA, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_obj_import_di  TYPE STANDARD TABLE OF BAPI_J_1BNFIMPORT_DI_READDATA, "   
lt_obj_import_adi  TYPE STANDARD TABLE OF BAPI_J_1BNFIMPORT_ADI_READDATA. "   

  CALL FUNCTION 'BAPI_J_1B_NF_READDATA'  "Nota Fiscal: List details of a Nota Fiscal
    EXPORTING
         DOCNUM = lv_docnum
         REFTYP = lv_reftyp
         REFKEY = lv_refkey
         AWSYS = lv_awsys
    IMPORTING
         OBJ_HEADER = lv_obj_header
    TABLES
         OBJ_PARTNER = lt_obj_partner
         OBJ_TRANS_VOLUMES = lt_obj_trans_volumes
         OBJ_TRAILER_INFO = lt_obj_trailer_info
         OBJ_TRADE_NOTES = lt_obj_trade_notes
         OBJ_ADD_INFO = lt_obj_add_info
         OBJ_REF_PROC = lt_obj_ref_proc
         OBJ_SUGAR_SUPPL = lt_obj_sugar_suppl
         OBJ_SUGAR_DEDUC = lt_obj_sugar_deduc
         OBJ_VEHICLE = lt_obj_vehicle
         OBJ_PHARMACEUT = lt_obj_pharmaceut
         OBJ_FUEL = lt_obj_fuel
         OBJ_ITEM = lt_obj_item
         OBJ_HEADER_TEXT = lt_obj_header_text
         OBJ_ITEM_TEXT = lt_obj_item_text
         OBJ_EXPORT = lt_obj_export
         OBJ_NVE = lt_obj_nve
         OBJ_PHARMA = lt_obj_pharma
         OBJ_TRACE = lt_obj_trace
         OBJ_PAYMENT = lt_obj_payment
         OBJ_TEC_RESP = lt_obj_tec_resp
         OBJ_TEXTS = lt_obj_texts
         OBJ_DUE = lt_obj_due
         OBJ_ITEM_TAX = lt_obj_item_tax
         OBJ_HEADER_MSG = lt_obj_header_msg
         OBJ_REFER_MSG = lt_obj_refer_msg
         OBJ_OT_PARTNER = lt_obj_ot_partner
         RETURN = lt_return
         OBJ_IMPORT_DI = lt_obj_import_di
         OBJ_IMPORT_ADI = lt_obj_import_adi
. " BAPI_J_1B_NF_READDATA




ABAP code using 7.40 inline data declarations to call FM BAPI_J_1B_NF_READDATA

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 DOCNUM FROM BAPI_J_1BNFDOC INTO @DATA(ld_docnum).
 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single REFTYP FROM BAPI_J_1BNFLIN INTO @DATA(ld_reftyp).
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single REFKEY FROM BAPI_J_1BNFLIN INTO @DATA(ld_refkey).
 
 
"SELECT single AWSYS FROM BAPI_J_1BNFDOC INTO @DATA(ld_awsys).
 
 
 
 
 
 
 


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!