SAP Knowledge Base Article - Public

3496945 - State code missing in JSON file

Symptom

Unable to generate IRN in an Invoice Document due to State code missing in JSON file.

Environment

SAP Business ByDesign

Reproducing the Issue

  1. Go to Customer Invoicing work center
  2. Select Invoice Documents view
  3. In the drop-down select All Invoice Documents
  4. Search for Invoice ID ABC (Where ABC represents the Invoice ID)
  5. Click in Edit and View All
  6. 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

Product

SAP Business ByDesign all versions