SAP Reports / Programs

J_1BNFAW SAP ABAP Report - Archiving of Fiscal Documents: Write Program (Brazil)







J_1BNFAW 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 archive fiscal documents of Brazil (such as Notas Fiscais (NF), Electronic Notas Fiscais (NF-e), conhecimento de transporte eletrĂ´nico (CT-e)) after they are no longer needed in the database...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_1BNFAW 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_1BNFAW. "Basic submit
SUBMIT J_1BNFAW AND RETURN. "Return to original report after report execution complete
SUBMIT J_1BNFAW 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: BRANCHSX = Business Place
Selection Text: BUKRSX = Company Code
Selection Text: CREATE = Create Archive File
Selection Text: GJAHRSX = Fiscal Year
Selection Text: NFE_ONLY = NF-e Data Only (Obsolete)
Selection Text: NO_NFE = Do Not Incl. NF-e (Obsolete)
Selection Text: PSTDATSX = Posting Date
Selection Text: TESTRUN = Delete Program (Test Run)
Selection Text: WITH_NFE = All Tables in Archiving Object
Title: Archiving of Fiscal Documents: Write Program (Brazil)
Text Symbol: 001 = Opening a New Archive File
Text Symbol: 010 = Selection Criteria for Fiscal Document
Text Symbol: 020 = Selection Criteria for Database Tables
Text Symbol: 030 = Archive NF-e Data Only
Text Symbol: 031 = Do Not Include NF-e Data


INCLUDES used within this REPORT J_1BNFAW

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:

ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = testrun comments = text-001 create_archive_file = create object = arch_obj "1874366 IMPORTING archive_handle = handle EXCEPTIONS internal_error = 1 object_not_found = 2.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = handle object_id = objectid EXCEPTIONS internal_error = 01.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = handle EXCEPTIONS internal_error = 01.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = handle EXCEPTIONS internal_error = 01.



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_1BNFAW or its description.