SAP Function Modules

J_1B_NF_OBJECT_READ SAP Function module - Nota Fiscal System - Read object







J_1B_NF_OBJECT_READ is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name J_1B_NF_OBJECT_READ into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: J1BB
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM J_1B_NF_OBJECT_READ - J 1B NF OBJECT READ





CALL FUNCTION 'J_1B_NF_OBJECT_READ' "Nota Fiscal System - Read object
  EXPORTING
    obj_number =                " j_1binterf-nfobjn  Nota Fiscal object number
  IMPORTING
    obj_header =                " j_1bnfdoc     Nota Fiscal object header
  TABLES
    obj_partner =               " j_1bnfnad     Nota Fiscal object partner
    obj_item =                  " j_1bnflin     Nota Fiscal object item
    obj_item_tax =              " j_1bnfstx     Nota Fiscal object item tax
    obj_header_msg =            " j_1bnfftx     Nota Fiscal object header message
    obj_refer_msg =             " j_1bnfref     Nota Fiscal message references
*   obj_ot_partner =            " j_1bnfcpd     Nota Fiscal one-time account data
*   obj_import_di =             " j_1bnfimport_di  Nota Fiscal Data for Import Documents
*   obj_import_adi =            " j_1bnfimport_adi  Nota Fiscal Data for Additions to Import Documents
*   obj_cte_res =               " j_1bcte_d_res  Information about resource
*   obj_cte_docref =            " j_1bcte_d_docref  Reference to the NF-e being transported
*   obj_trans_volumes =         " j_1bnftransvol  Transported Volumes
*   obj_trailer_info =          " j_1bnftrailer  Trailer Information
*   obj_trade_notes =           " j_1bnftradenotes  Trade Notes
*   obj_add_info =              " j_1bnfadd_info  Free Usage Fields for Additional Information
*   obj_ref_proc =              " j_1bnfrefproc  Additional Information: Referenced Processes
*   obj_sugar_suppl =           " j_1bnfsugarsuppl  Daily Supply of Sugarcane
*   obj_sugar_deduc =           " j_1bnfsugardeduc  Taxes and Contributions on Sugarcane
*   obj_vehicle =               " j_1bnfvehicle  Nota Fiscal: Vehicle Details
*   obj_pharmaceut =            " j_1bnfpharmaceut  Nota Fiscal: Pharmaceutical
*   obj_fuel =                  " j_1bnffuel    Nota Fiscal:  Fuel Details
  EXCEPTIONS
    OBJECT_NOT_FOUND = 1        "               Object not found in the work area
    .  "  J_1B_NF_OBJECT_READ

ABAP code example for Function Module J_1B_NF_OBJECT_READ





The ABAP code below is a full code listing to execute function module J_1B_NF_OBJECT_READ including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_obj_header  TYPE J_1BNFDOC ,
it_obj_partner  TYPE STANDARD TABLE OF J_1BNFNAD,"TABLES PARAM
wa_obj_partner  LIKE LINE OF it_obj_partner ,
it_obj_item  TYPE STANDARD TABLE OF J_1BNFLIN,"TABLES PARAM
wa_obj_item  LIKE LINE OF it_obj_item ,
it_obj_item_tax  TYPE STANDARD TABLE OF J_1BNFSTX,"TABLES PARAM
wa_obj_item_tax  LIKE LINE OF it_obj_item_tax ,
it_obj_header_msg  TYPE STANDARD TABLE OF J_1BNFFTX,"TABLES PARAM
wa_obj_header_msg  LIKE LINE OF it_obj_header_msg ,
it_obj_refer_msg  TYPE STANDARD TABLE OF J_1BNFREF,"TABLES PARAM
wa_obj_refer_msg  LIKE LINE OF it_obj_refer_msg ,
it_obj_ot_partner  TYPE STANDARD TABLE OF J_1BNFCPD,"TABLES PARAM
wa_obj_ot_partner  LIKE LINE OF it_obj_ot_partner ,
it_obj_import_di  TYPE STANDARD TABLE OF J_1BNFIMPORT_DI,"TABLES PARAM
wa_obj_import_di  LIKE LINE OF it_obj_import_di ,
it_obj_import_adi  TYPE STANDARD TABLE OF J_1BNFIMPORT_ADI,"TABLES PARAM
wa_obj_import_adi  LIKE LINE OF it_obj_import_adi ,
it_obj_cte_res  TYPE STANDARD TABLE OF J_1BCTE_D_RES,"TABLES PARAM
wa_obj_cte_res  LIKE LINE OF it_obj_cte_res ,
it_obj_cte_docref  TYPE STANDARD TABLE OF J_1BCTE_D_DOCREF,"TABLES PARAM
wa_obj_cte_docref  LIKE LINE OF it_obj_cte_docref ,
it_obj_trans_volumes  TYPE STANDARD TABLE OF J_1BNFTRANSVOL,"TABLES PARAM
wa_obj_trans_volumes  LIKE LINE OF it_obj_trans_volumes ,
it_obj_trailer_info  TYPE STANDARD TABLE OF J_1BNFTRAILER,"TABLES PARAM
wa_obj_trailer_info  LIKE LINE OF it_obj_trailer_info ,
it_obj_trade_notes  TYPE STANDARD TABLE OF J_1BNFTRADENOTES,"TABLES PARAM
wa_obj_trade_notes  LIKE LINE OF it_obj_trade_notes ,
it_obj_add_info  TYPE STANDARD TABLE OF J_1BNFADD_INFO,"TABLES PARAM
wa_obj_add_info  LIKE LINE OF it_obj_add_info ,
it_obj_ref_proc  TYPE STANDARD TABLE OF J_1BNFREFPROC,"TABLES PARAM
wa_obj_ref_proc  LIKE LINE OF it_obj_ref_proc ,
it_obj_sugar_suppl  TYPE STANDARD TABLE OF J_1BNFSUGARSUPPL,"TABLES PARAM
wa_obj_sugar_suppl  LIKE LINE OF it_obj_sugar_suppl ,
it_obj_sugar_deduc  TYPE STANDARD TABLE OF J_1BNFSUGARDEDUC,"TABLES PARAM
wa_obj_sugar_deduc  LIKE LINE OF it_obj_sugar_deduc ,
it_obj_vehicle  TYPE STANDARD TABLE OF J_1BNFVEHICLE,"TABLES PARAM
wa_obj_vehicle  LIKE LINE OF it_obj_vehicle ,
it_obj_pharmaceut  TYPE STANDARD TABLE OF J_1BNFPHARMACEUT,"TABLES PARAM
wa_obj_pharmaceut  LIKE LINE OF it_obj_pharmaceut ,
it_obj_fuel  TYPE STANDARD TABLE OF J_1BNFFUEL,"TABLES PARAM
wa_obj_fuel  LIKE LINE OF it_obj_fuel .


DATA(ld_obj_number) = Check type of data required

"populate fields of struture and append to itab
append wa_obj_partner to it_obj_partner.

"populate fields of struture and append to itab
append wa_obj_item to it_obj_item.

"populate fields of struture and append to itab
append wa_obj_item_tax to it_obj_item_tax.

"populate fields of struture and append to itab
append wa_obj_header_msg to it_obj_header_msg.

"populate fields of struture and append to itab
append wa_obj_refer_msg to it_obj_refer_msg.

"populate fields of struture and append to itab
append wa_obj_ot_partner to it_obj_ot_partner.

"populate fields of struture and append to itab
append wa_obj_import_di to it_obj_import_di.

"populate fields of struture and append to itab
append wa_obj_import_adi to it_obj_import_adi.

"populate fields of struture and append to itab
append wa_obj_cte_res to it_obj_cte_res.

"populate fields of struture and append to itab
append wa_obj_cte_docref to it_obj_cte_docref.

"populate fields of struture and append to itab
append wa_obj_trans_volumes to it_obj_trans_volumes.

"populate fields of struture and append to itab
append wa_obj_trailer_info to it_obj_trailer_info.

"populate fields of struture and append to itab
append wa_obj_trade_notes to it_obj_trade_notes.

"populate fields of struture and append to itab
append wa_obj_add_info to it_obj_add_info.

"populate fields of struture and append to itab
append wa_obj_ref_proc to it_obj_ref_proc.

"populate fields of struture and append to itab
append wa_obj_sugar_suppl to it_obj_sugar_suppl.

"populate fields of struture and append to itab
append wa_obj_sugar_deduc to it_obj_sugar_deduc.

"populate fields of struture and append to itab
append wa_obj_vehicle to it_obj_vehicle.

"populate fields of struture and append to itab
append wa_obj_pharmaceut to it_obj_pharmaceut.

"populate fields of struture and append to itab
append wa_obj_fuel to it_obj_fuel. . CALL FUNCTION 'J_1B_NF_OBJECT_READ' EXPORTING obj_number = ld_obj_number IMPORTING obj_header = ld_obj_header TABLES obj_partner = it_obj_partner obj_item = it_obj_item obj_item_tax = it_obj_item_tax obj_header_msg = it_obj_header_msg obj_refer_msg = it_obj_refer_msg * obj_ot_partner = it_obj_ot_partner * obj_import_di = it_obj_import_di * obj_import_adi = it_obj_import_adi * obj_cte_res = it_obj_cte_res * obj_cte_docref = it_obj_cte_docref * obj_trans_volumes = it_obj_trans_volumes * obj_trailer_info = it_obj_trailer_info * obj_trade_notes = it_obj_trade_notes * obj_add_info = it_obj_add_info * obj_ref_proc = it_obj_ref_proc * obj_sugar_suppl = it_obj_sugar_suppl * obj_sugar_deduc = it_obj_sugar_deduc * obj_vehicle = it_obj_vehicle * obj_pharmaceut = it_obj_pharmaceut * obj_fuel = it_obj_fuel EXCEPTIONS OBJECT_NOT_FOUND = 1 . " J_1B_NF_OBJECT_READ
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_obj_header  TYPE J_1BNFDOC ,
ld_obj_number  TYPE J_1BINTERF-NFOBJN ,
it_obj_partner  TYPE STANDARD TABLE OF J_1BNFNAD ,
wa_obj_partner  LIKE LINE OF it_obj_partner,
it_obj_item  TYPE STANDARD TABLE OF J_1BNFLIN ,
wa_obj_item  LIKE LINE OF it_obj_item,
it_obj_item_tax  TYPE STANDARD TABLE OF J_1BNFSTX ,
wa_obj_item_tax  LIKE LINE OF it_obj_item_tax,
it_obj_header_msg  TYPE STANDARD TABLE OF J_1BNFFTX ,
wa_obj_header_msg  LIKE LINE OF it_obj_header_msg,
it_obj_refer_msg  TYPE STANDARD TABLE OF J_1BNFREF ,
wa_obj_refer_msg  LIKE LINE OF it_obj_refer_msg,
it_obj_ot_partner  TYPE STANDARD TABLE OF J_1BNFCPD ,
wa_obj_ot_partner  LIKE LINE OF it_obj_ot_partner,
it_obj_import_di  TYPE STANDARD TABLE OF J_1BNFIMPORT_DI ,
wa_obj_import_di  LIKE LINE OF it_obj_import_di,
it_obj_import_adi  TYPE STANDARD TABLE OF J_1BNFIMPORT_ADI ,
wa_obj_import_adi  LIKE LINE OF it_obj_import_adi,
it_obj_cte_res  TYPE STANDARD TABLE OF J_1BCTE_D_RES ,
wa_obj_cte_res  LIKE LINE OF it_obj_cte_res,
it_obj_cte_docref  TYPE STANDARD TABLE OF J_1BCTE_D_DOCREF ,
wa_obj_cte_docref  LIKE LINE OF it_obj_cte_docref,
it_obj_trans_volumes  TYPE STANDARD TABLE OF J_1BNFTRANSVOL ,
wa_obj_trans_volumes  LIKE LINE OF it_obj_trans_volumes,
it_obj_trailer_info  TYPE STANDARD TABLE OF J_1BNFTRAILER ,
wa_obj_trailer_info  LIKE LINE OF it_obj_trailer_info,
it_obj_trade_notes  TYPE STANDARD TABLE OF J_1BNFTRADENOTES ,
wa_obj_trade_notes  LIKE LINE OF it_obj_trade_notes,
it_obj_add_info  TYPE STANDARD TABLE OF J_1BNFADD_INFO ,
wa_obj_add_info  LIKE LINE OF it_obj_add_info,
it_obj_ref_proc  TYPE STANDARD TABLE OF J_1BNFREFPROC ,
wa_obj_ref_proc  LIKE LINE OF it_obj_ref_proc,
it_obj_sugar_suppl  TYPE STANDARD TABLE OF J_1BNFSUGARSUPPL ,
wa_obj_sugar_suppl  LIKE LINE OF it_obj_sugar_suppl,
it_obj_sugar_deduc  TYPE STANDARD TABLE OF J_1BNFSUGARDEDUC ,
wa_obj_sugar_deduc  LIKE LINE OF it_obj_sugar_deduc,
it_obj_vehicle  TYPE STANDARD TABLE OF J_1BNFVEHICLE ,
wa_obj_vehicle  LIKE LINE OF it_obj_vehicle,
it_obj_pharmaceut  TYPE STANDARD TABLE OF J_1BNFPHARMACEUT ,
wa_obj_pharmaceut  LIKE LINE OF it_obj_pharmaceut,
it_obj_fuel  TYPE STANDARD TABLE OF J_1BNFFUEL ,
wa_obj_fuel  LIKE LINE OF it_obj_fuel.


ld_obj_number = Check type of data required

"populate fields of struture and append to itab
append wa_obj_partner to it_obj_partner.

"populate fields of struture and append to itab
append wa_obj_item to it_obj_item.

"populate fields of struture and append to itab
append wa_obj_item_tax to it_obj_item_tax.

"populate fields of struture and append to itab
append wa_obj_header_msg to it_obj_header_msg.

"populate fields of struture and append to itab
append wa_obj_refer_msg to it_obj_refer_msg.

"populate fields of struture and append to itab
append wa_obj_ot_partner to it_obj_ot_partner.

"populate fields of struture and append to itab
append wa_obj_import_di to it_obj_import_di.

"populate fields of struture and append to itab
append wa_obj_import_adi to it_obj_import_adi.

"populate fields of struture and append to itab
append wa_obj_cte_res to it_obj_cte_res.

"populate fields of struture and append to itab
append wa_obj_cte_docref to it_obj_cte_docref.

"populate fields of struture and append to itab
append wa_obj_trans_volumes to it_obj_trans_volumes.

"populate fields of struture and append to itab
append wa_obj_trailer_info to it_obj_trailer_info.

"populate fields of struture and append to itab
append wa_obj_trade_notes to it_obj_trade_notes.

"populate fields of struture and append to itab
append wa_obj_add_info to it_obj_add_info.

"populate fields of struture and append to itab
append wa_obj_ref_proc to it_obj_ref_proc.

"populate fields of struture and append to itab
append wa_obj_sugar_suppl to it_obj_sugar_suppl.

"populate fields of struture and append to itab
append wa_obj_sugar_deduc to it_obj_sugar_deduc.

"populate fields of struture and append to itab
append wa_obj_vehicle to it_obj_vehicle.

"populate fields of struture and append to itab
append wa_obj_pharmaceut to it_obj_pharmaceut.

"populate fields of struture and append to itab
append wa_obj_fuel to it_obj_fuel.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name J_1B_NF_OBJECT_READ or its description.