Ansicht
Dokumentation

NFE_FILE_HANDLER - BAdI: Retrieve and Display Electronic Documents in J1BNFE

NFE_FILE_HANDLER - BAdI: Retrieve and Display Electronic Documents in J1BNFE

ABAP Short Reference   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the SLH - NFe: Electronic Nota Fiscal Services (LOD-LH-NFE) component. You can use this BAdI to retrieve electronic documents from your own storage service, and then display them in the NF-e/CT-e Monitor (J1BNFE) transaction.

The system calls this BAdI when you choose the BAdI as source on the Upload Files to Cloud - outbound invoicing option for Brazil (NFE_CLOUD_UPLOAD_DOC) transaction, whenever a specific document is not found in the SAP-administered storage service, and therefore cannot be displayed in the J1BNFE transaction.

The IF_NFE_FILE_HANDLER interface is composed by the Get the electronic document file(GET_FILE) method. For each of the method parameters, enter the following information:

  • IS_ACTIVE: enter the structure that corresponds to an entry in the Electronic Nota Fiscal: Actual Status (J_1BNFE_ACTIVE) table.
  • IV_EVENT_TYPE: enter the event type, if you want to retrieve the electronic file for an event.
  • IV_EVNT_SEQ_NUM: enter the event sequence number, if you want to retrieve the electronic file for an event.

When the BAdI is called, the method returns the following information:

  • The electronic document from your own storage service
  • The errors generated during the search for the electronic documents from your own storage service
Note
If you execute the NFE_CLOUD_UPLOAD_DOC transaction in background, ensure that the BAdI implementation has a remote reading of files, which doesn't depend on SAP GUI (for example, GUI_UPLOAD, BROWSER_FILE).






PERFORM Short Reference   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 2113 Date: 20240523 Time: 221242     sap01-206 ( 37 ms )