Ansicht
Dokumentation

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

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

ABAP Short Reference   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Description

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. The report uses the function modules of the function module group ARCH of the Archive Development Kit (ADK) with a corresponding standard class hierarchical structure contained in an archiving object which is always defined for a complete set of archiving tools (i.e. archiving, deletion, reload and read program). The archiving object for fiscal documents is J_1BNF.

Requirements

In the Selection Criteria for Fiscal Document section, enter the criteria to specify the fiscal documents you want to archive.

SAP recommends that you always use the same selection criteria for the archiving. You can change the selection criteria later on, but this might make reloading certain files from the archive more complicated than if you maintain the original selection criteria.

When the archiving program is executed in batch and the customizing is set accordingly, it calls a deletion program after each archiving session or after individual archive files have been written. You have to specify the deletion program in the customizing of the archiving object.

SAP recommends that you delete the archived data as soon as possible to prevent data from being changed after a version has been created in the archive, leading to inconsistencies.

In the online mode, you have to start the deletion program separately since there is no automatic start of deletion.

Using the Delete Program (Test Run) and the Create Archive File checkboxes, you can switch the deletion program to test mode and switch off the creation of archive files (test mode of the archiving program). The deletion is then carried out using a test run variant in which you can specify if deletion actually takes place. This variant can be accessed via the customizing of the archiving object. If not in test mode the deletion program uses the productive variant which can also be maintained in the customizing settings.

Output

If you select the Create Archive File checkbox, the report creates archive files containing the selected records from the database. In batch mode it can automatically start a deletion program to remove the archived records from the database.

If the report is executed in online mode, the output is a list of the archived data on the screen.

Results

The execution of the report results in the creation of an archive file that contains the fiscal documents that you specified with the selection criteria. If you execute the report in batch mode, when the fiscal documents are archived, they are also deleted from the database in case you have customized the system to call the deletion program automatically.






General Data in Customer Master   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 3282 Date: 20240520 Time: 044219     sap01-206 ( 77 ms )