Do you have any question about this error?
Message type: E = Error
Message class: J1B_NFE - Message class for NF-e
Message number: 397
Message text: Error in BAdI implementation; invalid delivery date
The logic in your implementation of the <ZK>Conversions for Incoming
NF-e Automation</> Business Add-In (BAdI) has determined a different
delivery date for the inbound delivery. However, the delivery date is
not valid.
The system does not create a new inbound delivery.
Check your implementation of the <ZH>Change Header Data in Inbound
Delivery</> (<ZH>INBOUND_DELIV_CHANGE_HEADER</>) method in the
<DS:SIMG.J_1BNFE_IN>Conversions for Incoming NF-e Automation</> (
<ZH>J_1BNFE_IN</>) BAdI.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Error message extract from SAP system. Copyright SAP SE.
J1B_NFE397
- Error in BAdI implementation; invalid delivery date ?The SAP error message J1B_NFE397: Error in BAdI implementation; invalid delivery date typically occurs in the context of Brazil's Nota Fiscal Eletrônica (NF-e) processing. This error indicates that there is an issue with the delivery date being used in the BAdI (Business Add-In) implementation related to the NF-e process.
Cause:
Invalid Delivery Date: The delivery date provided in the transaction does not meet the required format or is outside the acceptable range. This could be due to:
- The date being in the past or future beyond acceptable limits.
- Incorrect date format (e.g., DD/MM/YYYY vs. MM/DD/YYYY).
- The date not being aligned with the fiscal regulations in Brazil.
BAdI Implementation Issues: There may be a problem in the custom implementation of the BAdI that is supposed to handle the delivery date logic. This could be due to:
- Missing or incorrect logic in the BAdI implementation.
- The BAdI not being activated or properly configured.
Solution:
Check Delivery Date:
- Verify the delivery date being used in the transaction. Ensure it is in the correct format and falls within the acceptable range as per Brazilian fiscal regulations.
- If the date is dynamically generated, check the logic that sets this date.
Review BAdI Implementation:
- Go to the BAdI implementation (transaction SE19) and check the code for any logical errors or missing checks related to the delivery date.
- Ensure that the BAdI is properly activated and that the implementation is correctly assigned to the relevant application.
Consult Documentation:
- Review SAP notes and documentation related to the specific BAdI and NF-e processing to ensure compliance with the latest requirements and best practices.
Testing:
- After making changes, test the transaction again to ensure that the error is resolved.
SAP Support:
- If the issue persists, consider reaching out to SAP support for further assistance, especially if it involves complex customizations.
Related Information:
By following these steps, you should be able to identify and resolve the error related to the invalid delivery date in the BAdI implementation.
Get instant SAP help. Start your 7-day free trial now.
J1B_NFE396
Invoice &1 already exists for NF-e &2
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
J1B_NFE395
Valuation type &1 does not exist yet for material &2 (PO item &3 &4)
What causes this issue? You are trying to use the NF-e incoming automation for purchase order item &3 &4 and batch &1. The valuation cate...
J1B_NFE398
Material origin in XML &1 differs from determined origin &2
What causes this issue? The material origin informed in the XML does not match to the material origin that the system has retrieved from the purchase...
J1B_NFE399
Material origin in XML &1 differs from origin &2 in reference nota fiscal
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.