SAP Knowledge Base Article - Public

2944958 - Material document API MATERIALDOCUMENTCREATEREQUEST1 gives error AA001

Symptom

Using API MATERIALDOCUMENTCREATEREQUEST1 results in error AA001 "Asset & & not in company code &".

Environment

SAP S/4HANA Cloud.

Reproducing the Issue

  1. Execute the API.
  2. Check the Message Dashboard.
  3. Error is in the log.

Cause

The asset and asset sub number need to include leading zeros.

Resolution

Enter the zeros. 
E.g. asset number 20000017 would be entered as

<MasterFixedAsset>000020000017</MasterFixedAsset>
<FixedAsset>0000</FixedAsset>

Keywords

MATERIALDOCUMENTCREATEREQUEST1  SAP_COM_0108 , KBA , FI-AA-AA-A , Master Data , MM-IM-GF-ES , Enterprise Services in Inventory Management , Problem

Product

SAP S/4HANA Cloud all versions