Symptom
Unable to generate IRN in an Invoice Document due to State code missing in JSON file.
Environment
SAP Business ByDesign
Reproducing the Issue
- Go to Customer Invoicing work center
- Select Invoice Documents view
- In the drop-down select All Invoice Documents
- Search for Invoice ID ABC (Where ABC represents the Invoice ID)
- Click in Edit and View All
- Go to Attachments section and open the JSON file
State code appears as NIL: "Stcd": "NI"
Legal Approval Status is still In Approval
Cause
When checking the account master data we can see that the State is maintained, however, when checking the Changes tab, we can see that the State has been deleted before the creation of the Customer Invoice, as a result the system cannot fetch the XML.
Resolution
To solve the issue, kindly change the JSON file to add the State Code and proceed with Legal Approval Process.
Keywords
Missing, NIL, India, does not appear, invoice, not available, does not exist. , KBA , SRD-CRM-INV , Customer Invoicing , Problem