SAP BAPI_J_1B_NF_CREATEFROMDATA Function Module for Nota Fiscal System - Create Object from data









BAPI_J_1B_NF_CREATEFROMDATA is a standard bapi j 1b nf createfromdata 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 System - Create Object from data 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 createfromdata FM, simply by entering the name BAPI_J_1B_NF_CREATEFROMDATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: J1BB
Program Name: SAPLJ1BB
Main Program: SAPLJ1BB
Appliation area:
Release date: 02-Aug-2004
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_J_1B_NF_CREATEFROMDATA 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_CREATEFROMDATA'"Nota Fiscal System - Create Object from data
EXPORTING
OBJ_HEADER = "Kopf Nota Fiscal
* OBJ_HEADER_ADD = "Übergabestruktur Kopfdaten Nota Fiscal - Ergänzung
* NFCHECK = "Check control for Business Object BUS2143 - Nota Fiscal

IMPORTING
E_DOCNUM = "Document number

TABLES
* OBJ_PARTNER = "Nota Fiscal Partner
* OBJ_TRANS_VOLUMES = "Transported Volumes
* OBJ_TRAILER_INFO = "Trailer Information
* OBJ_TRADE_NOTES = "Trade Notes
* OBJ_ADD_INFO = "Free Usage Fields for Additional Information
* OBJ_REF_PROC = "Additional Information: Referenced Processes
* OBJ_SUGAR_SUPPL = "Daily Supply of Sugarcane
* OBJ_SUGAR_DEDUC = "Taxes and Contributions on Sugarcane
* OBJ_VEHICLE = "Nota Fiscal: Vehicle Details
* OBJ_PHARMACEUT = "Nota Fiscal: Pharmaceutical
* OBJ_FUEL = "Nota Fiscal: Fuel Details
OBJ_ITEM = "Einzelposten Nota Fiscal
* OBJ_HEADER_TEXT = "NFe Header Texts
* OBJ_ITEM_TEXT = "NFe Header Texts
RETURN = "Returnparameter
* OBJ_ITEM_ADD = "Übergabestruktur Einzelposten Nota Fiscal - Ergänzung
OBJ_ITEM_TAX = "Nota Fiscal Steuer pro Position
* OBJ_HEADER_MSG = "Kopfnachricht Nota Fiscal
* OBJ_REFER_MSG = "Nota Fiscal Verweis auf Kopfnachricht
* OBJ_OT_PARTNER = "Nota Fiscal CpD-Konten
* OBJ_IMPORT_DI = "Transfer Structure: Nota Fiscal Data for Import Documents
* OBJ_IMPORT_ADI = "Transfer Structure:NF Data for Additions to Import Documents
.



IMPORTING Parameters details for BAPI_J_1B_NF_CREATEFROMDATA

OBJ_HEADER - Kopf Nota Fiscal

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

OBJ_HEADER_ADD - Übergabestruktur Kopfdaten Nota Fiscal - Ergänzung

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

NFCHECK - Check control for Business Object BUS2143 - Nota Fiscal

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

EXPORTING Parameters details for BAPI_J_1B_NF_CREATEFROMDATA

E_DOCNUM - Document number

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

TABLES Parameters details for BAPI_J_1B_NF_CREATEFROMDATA

OBJ_PARTNER - Nota Fiscal Partner

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

OBJ_TRANS_VOLUMES - Transported Volumes

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

OBJ_TRAILER_INFO - Trailer Information

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

OBJ_TRADE_NOTES - Trade Notes

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

OBJ_ADD_INFO - Free Usage Fields for Additional Information

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

OBJ_REF_PROC - Additional Information: Referenced Processes

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

OBJ_SUGAR_SUPPL - Daily Supply of Sugarcane

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

OBJ_SUGAR_DEDUC - Taxes and Contributions on Sugarcane

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

OBJ_VEHICLE - Nota Fiscal: Vehicle Details

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

OBJ_PHARMACEUT - Nota Fiscal: Pharmaceutical

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

OBJ_FUEL - Nota Fiscal: Fuel Details

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

OBJ_ITEM - Einzelposten Nota Fiscal

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

OBJ_HEADER_TEXT - NFe Header Texts

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

OBJ_ITEM_TEXT - NFe Header Texts

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

RETURN - Returnparameter

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

OBJ_ITEM_ADD - Übergabestruktur Einzelposten Nota Fiscal - Ergänzung

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

OBJ_ITEM_TAX - Nota Fiscal Steuer pro Position

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

OBJ_HEADER_MSG - Kopfnachricht Nota Fiscal

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

OBJ_REFER_MSG - Nota Fiscal Verweis auf Kopfnachricht

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

OBJ_OT_PARTNER - Nota Fiscal CpD-Konten

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

OBJ_IMPORT_DI - Transfer Structure: Nota Fiscal Data for Import Documents

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

OBJ_IMPORT_ADI - Transfer Structure:NF Data for Additions to Import Documents

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

Copy and paste ABAP code example for BAPI_J_1B_NF_CREATEFROMDATA 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_docnum  TYPE BAPI_J_1BNFDOC-DOCNUM, "   
lv_obj_header  TYPE BAPI_J_1BNFDOC, "   
lt_obj_partner  TYPE STANDARD TABLE OF BAPI_J_1BNFNAD, "   
lt_obj_trans_volumes  TYPE STANDARD TABLE OF BAPI_J_1BNFTRANSVOL, "   
lt_obj_trailer_info  TYPE STANDARD TABLE OF BAPI_J_1BNFTRAILER, "   
lt_obj_trade_notes  TYPE STANDARD TABLE OF BAPI_J_1BNFTRADENOTES, "   
lt_obj_add_info  TYPE STANDARD TABLE OF BAPI_J_1BNFADD_INFO, "   
lt_obj_ref_proc  TYPE STANDARD TABLE OF BAPI_J_1BNFREFPROC, "   
lt_obj_sugar_suppl  TYPE STANDARD TABLE OF BAPI_J_1BNFSUGARSUPPL, "   
lt_obj_sugar_deduc  TYPE STANDARD TABLE OF BAPI_J_1BNFSUGARDEDUC, "   
lt_obj_vehicle  TYPE STANDARD TABLE OF BAPI_J_1BNFVEHICLE, "   
lt_obj_pharmaceut  TYPE STANDARD TABLE OF BAPI_J_1BNFPHARMACEUT, "   
lt_obj_fuel  TYPE STANDARD TABLE OF BAPI_J_1BNFFUEL, "   
lt_obj_item  TYPE STANDARD TABLE OF BAPI_J_1BNFLIN, "   
lv_obj_header_add  TYPE BAPI_J_1BNFDOC_ADD, "   
lt_obj_header_text  TYPE STANDARD TABLE OF BAPI_J_1BNFTEXTHEADER, "   
lt_obj_item_text  TYPE STANDARD TABLE OF BAPI_J_1BNFTEXTITEM, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_nfcheck  TYPE BAPI_J_1BNFCHECK, "   
lt_obj_item_add  TYPE STANDARD TABLE OF BAPI_J_1BNFLIN_ADD, "   
lt_obj_item_tax  TYPE STANDARD TABLE OF BAPI_J_1BNFSTX, "   
lt_obj_header_msg  TYPE STANDARD TABLE OF BAPI_J_1BNFFTX, "   
lt_obj_refer_msg  TYPE STANDARD TABLE OF BAPI_J_1BNFREF, "   
lt_obj_ot_partner  TYPE STANDARD TABLE OF BAPI_J_1BNFCPD, "   
lt_obj_import_di  TYPE STANDARD TABLE OF BAPI_J_1BNFIMPORT_DI, "   
lt_obj_import_adi  TYPE STANDARD TABLE OF BAPI_J_1BNFIMPORT_ADI. "   

  CALL FUNCTION 'BAPI_J_1B_NF_CREATEFROMDATA'  "Nota Fiscal System - Create Object from data
    EXPORTING
         OBJ_HEADER = lv_obj_header
         OBJ_HEADER_ADD = lv_obj_header_add
         NFCHECK = lv_nfcheck
    IMPORTING
         E_DOCNUM = lv_e_docnum
    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
         RETURN = lt_return
         OBJ_ITEM_ADD = lt_obj_item_add
         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
         OBJ_IMPORT_DI = lt_obj_import_di
         OBJ_IMPORT_ADI = lt_obj_import_adi
. " BAPI_J_1B_NF_CREATEFROMDATA




ABAP code using 7.40 inline data declarations to call FM BAPI_J_1B_NF_CREATEFROMDATA

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_e_docnum).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!