SAP Reports / Programs | Financial Accounting | Localization(FI-LOC) SAP FI

J_1B_NFE_CREATE_TXT_FILE SAP ABAP Report - NF-e TXT File Creation







J_1B_NFE_CREATE_TXT_FILE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this report to create a TXT file in ASCII format that contains nota fiscal database records for a given period...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter J_1B_NFE_CREATE_TXT_FILE into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT J_1B_NFE_CREATE_TXT_FILE. "Basic submit
SUBMIT J_1B_NFE_CREATE_TXT_FILE AND RETURN. "Return to original report after report execution complete
SUBMIT J_1B_NFE_CREATE_TXT_FILE VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: FILE = TXT File
Selection Text: TESTRUN = ALV List
Title: NF-e TXT File Creation
Text Symbol: 001 = Output
Text Symbol: 100 = Doc. No.
Text Symbol: 101 = File Records


INCLUDES used within this REPORT J_1B_NFE_CREATE_TXT_FILE

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

J_1BREAD_BRANCH_DATA CALL FUNCTION 'J_1BREAD_BRANCH_DATA' EXPORTING branch = j5_brnch bukrs = j5_bukrs IMPORTING address = wa_branch_adr branch_data = wa_branch.

J_1B_NF_CUSTOMER_READ CALL FUNCTION 'J_1B_NF_CUSTOMER_READ' EXPORTING partner_id = j_1bnfdoc-parid partner_fn = j_1bnfdoc-parvw "1324538 doc_number = j_1bnfdoc-docnum "1324538 read_address = 'X' IMPORTING parnad = wa_partner address1 = wa_address1 EXCEPTIONS partner_not_found = 1.

J_1B_NF_VENDOR_READ CALL FUNCTION 'J_1B_NF_VENDOR_READ' "1714931 EXPORTING "1714931 partner_id = j_1bnfdoc-parid "1714931 read_address = 'X' "1714931 IMPORTING "1714931 parnad = wa_partner "1714931 address1 = wa_address1 "1714931 EXCEPTIONS "1714931 partner_not_found = 1 "1714931 address_not_found = 2 "1714931 others = 3. "1714931

ADDR_SELECT_ADR6_SINGLE CALL FUNCTION 'ADDR_SELECT_ADR6_SINGLE' EXPORTING addrnumber = wa_address1-addrnumber TABLES et_adr6 = it_email EXCEPTIONS comm_data_not_exist = 1 OTHERS = 4.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING it_fieldcat = it_fieldcatalog_list TABLES t_outtab = it_nfe_alv EXCEPTIONS program_error = 1 OTHERS = 2.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = gv_fullpath filetype = 'ASC' TABLES data_tab = it_nfe_file EXCEPTIONS file_write_error = 1 disk_full = 17 OTHERS = 22.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name J_1B_NFE_CREATE_TXT_FILE or its description.