Ansicht
Dokumentation

NFE_SITUATION_CODE - BAdI: Define Situation Code for NF-e

NFE_SITUATION_CODE - BAdI: Define Situation Code for NF-e

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

This Business Add-In (BAdI) is used in S/4HANA Cloud. You use this BAdI to define the Status Code of the electronic fiscal document.

After creating the BAdI implementation, you enter the nfheaderparameter.

As a result, the system returns the status code of the electronic fiscal document in the NFESITUATIONCODE parameter.

SAP delivers the following example logic:

IF nfeheader-nfe IS NOT INITIAL.
    IF nfeheader-docstat = '1'.
      nfesituationcode = '00'.
    ELSE.
      nfesituationcode = '02'.
    ENDIF.
  ENDIF.






rdisp/max_wprun_time - Maximum work process run time   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 805 Date: 20240523 Time: 200313     sap01-206 ( 15 ms )