SAP J_1B_NF_OBJECT_ADD Function Module for Nota Fiscal System - Add object









J_1B_NF_OBJECT_ADD is a standard j 1b nf object add 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 - Add object 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 nf object add FM, simply by entering the name J_1B_NF_OBJECT_ADD 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): Normal Function Module
Update:



Function J_1B_NF_OBJECT_ADD 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_NF_OBJECT_ADD'"Nota Fiscal System - Add object
EXPORTING
OBJ_HEADER = "Nota Fiscal object header

IMPORTING
OBJ_NUMBER = "Nota Fiscal object number

TABLES
OBJ_PARTNER = "Nota Fiscal object partner
* OBJ_CTE_RES = "Information about resource
* 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_ITEM = "Nota Fiscal object item
* OBJ_FUEL = "Nota Fiscal: Fuel Details
OBJ_ITEM_TAX = "Nota Fiscal object item tax
OBJ_HEADER_MSG = "Nota Fiscal object header message
OBJ_REFER_MSG = "Nota Fiscal message references
* OBJ_OT_PARTNER = "Nota Fiscal one-time account data
* OBJ_IMPORT_DI = "Nota Fiscal Data for Import Documents
* OBJ_IMPORT_ADI = "Nota Fiscal Data for Additions to Import Documents
* OBJ_CTE_DOCREF = "Reference to the NF-e being transported
.



IMPORTING Parameters details for J_1B_NF_OBJECT_ADD

OBJ_HEADER - Nota Fiscal object header

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

EXPORTING Parameters details for J_1B_NF_OBJECT_ADD

OBJ_NUMBER - Nota Fiscal object number

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

TABLES Parameters details for J_1B_NF_OBJECT_ADD

OBJ_PARTNER - Nota Fiscal object partner

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

OBJ_CTE_RES - Information about resource

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

OBJ_TRANS_VOLUMES - Transported Volumes

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

OBJ_TRAILER_INFO - Trailer Information

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

OBJ_TRADE_NOTES - Trade Notes

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

OBJ_ADD_INFO - Free Usage Fields for Additional Information

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

OBJ_REF_PROC - Additional Information: Referenced Processes

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

OBJ_SUGAR_SUPPL - Daily Supply of Sugarcane

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

OBJ_SUGAR_DEDUC - Taxes and Contributions on Sugarcane

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

OBJ_VEHICLE - Nota Fiscal: Vehicle Details

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

OBJ_PHARMACEUT - Nota Fiscal: Pharmaceutical

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

OBJ_ITEM - Nota Fiscal object item

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

OBJ_FUEL - Nota Fiscal: Fuel Details

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

OBJ_ITEM_TAX - Nota Fiscal object item tax

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

OBJ_HEADER_MSG - Nota Fiscal object header message

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

OBJ_REFER_MSG - Nota Fiscal message references

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

OBJ_OT_PARTNER - Nota Fiscal one-time account data

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

OBJ_IMPORT_DI - Nota Fiscal Data for Import Documents

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

OBJ_IMPORT_ADI - Nota Fiscal Data for Additions to Import Documents

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

OBJ_CTE_DOCREF - Reference to the NF-e being transported

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

Copy and paste ABAP code example for J_1B_NF_OBJECT_ADD 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_obj_header  TYPE J_1BNFDOC, "   
lv_obj_number  TYPE J_1BINTERF-NFOBJN, "   
lt_obj_partner  TYPE STANDARD TABLE OF J_1BNFNAD, "   
lt_obj_cte_res  TYPE STANDARD TABLE OF J_1BCTE_D_RES, "   
lt_obj_trans_volumes  TYPE STANDARD TABLE OF J_1BNFTRANSVOL, "   
lt_obj_trailer_info  TYPE STANDARD TABLE OF J_1BNFTRAILER, "   
lt_obj_trade_notes  TYPE STANDARD TABLE OF J_1BNFTRADENOTES, "   
lt_obj_add_info  TYPE STANDARD TABLE OF J_1BNFADD_INFO, "   
lt_obj_ref_proc  TYPE STANDARD TABLE OF J_1BNFREFPROC, "   
lt_obj_sugar_suppl  TYPE STANDARD TABLE OF J_1BNFSUGARSUPPL, "   
lt_obj_sugar_deduc  TYPE STANDARD TABLE OF J_1BNFSUGARDEDUC, "   
lt_obj_vehicle  TYPE STANDARD TABLE OF J_1BNFVEHICLE, "   
lt_obj_pharmaceut  TYPE STANDARD TABLE OF J_1BNFPHARMACEUT, "   
lt_obj_item  TYPE STANDARD TABLE OF J_1BNFLIN, "   
lt_obj_fuel  TYPE STANDARD TABLE OF J_1BNFFUEL, "   
lt_obj_item_tax  TYPE STANDARD TABLE OF J_1BNFSTX, "   
lt_obj_header_msg  TYPE STANDARD TABLE OF J_1BNFFTX, "   
lt_obj_refer_msg  TYPE STANDARD TABLE OF J_1BNFREF, "   
lt_obj_ot_partner  TYPE STANDARD TABLE OF J_1BNFCPD, "   
lt_obj_import_di  TYPE STANDARD TABLE OF J_1BNFIMPORT_DI, "   
lt_obj_import_adi  TYPE STANDARD TABLE OF J_1BNFIMPORT_ADI, "   
lt_obj_cte_docref  TYPE STANDARD TABLE OF J_1BCTE_D_DOCREF. "   

  CALL FUNCTION 'J_1B_NF_OBJECT_ADD'  "Nota Fiscal System - Add object
    EXPORTING
         OBJ_HEADER = lv_obj_header
    IMPORTING
         OBJ_NUMBER = lv_obj_number
    TABLES
         OBJ_PARTNER = lt_obj_partner
         OBJ_CTE_RES = lt_obj_cte_res
         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_ITEM = lt_obj_item
         OBJ_FUEL = lt_obj_fuel
         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
         OBJ_CTE_DOCREF = lt_obj_cte_docref
. " J_1B_NF_OBJECT_ADD




ABAP code using 7.40 inline data declarations to call FM J_1B_NF_OBJECT_ADD

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 NFOBJN FROM J_1BINTERF INTO @DATA(ld_obj_number).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!