Symptom
- CDS view I_PurchasingInfoRecordApi01 displays empty material group column for a certain purchasing info record.
- It is not clear why Material Group(EINA-MATKL) field is not filled in CDS view I_PurchasingInfoRecordApi01 but the material group is displayed within App Display Purchasing Info Record and App Manage Purchasing Info Records.
Environment
SAP S/4HANA Cloud Public Edition
Cause
Two scenarios exists:
- Info records with material and supplier pair can be created: in this case the material group (EINA-MATKL) in the EINA database table is empty.
If the info record displayed in App Display Purchasing Info Record, the material group is just displayed from the material master database table(MARA-MATKL). Same happens at info record creation and edit. This logic is due to the possibility of changing the material group in the material master. - Info records with material group and supplier pair can be created: in this case the EINA-MATKL field stores the material group (as in this case there is no material master to read from).
Info records in App Create Purchasing Info Record without material number can be created. After entering the relevant data on the start screen, enter the material group on the next screen. This is mainly useful when creating free text purchase requisitions and a source is required.
Resolution
This is SAP standard design. The CDS view I_PurchasingInfoRecordApi01 will display material group, if the info record does not contain material, but only material group, as this CDS view read the database table EINA.
In API API_INFORECORD_PROCESS_SRV Get method, if the "Material Group" field as a filter to get data, only the purchasing info record in database table EINA that only have material group but no material will be extracted based on the current standard API logic. Since cloud users are unable to view the database table EINA, the CDS view I_PurchasingInfoRecordApi01 can be used to view the material group field and material field of purchasing info record.
Keywords
MARA-MATKL, EINA, MARA, purchasing info record, I_PurchasingInfoRecordApi01, API_INFORECORD_PROCESS_SRV, material group , KBA , MM-PUR-VM-REC-2CL , Info Record (Public Cloud) , Problem
SAP Knowledge Base Article - Public