cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to pass External ID for product in SAP C4C using ODATA?

0 Likes
1,512

Hi Experts,

We are trying to create product in SAP C4C from 3rd party external system using SAP C4C ODATA API,

But External ID,External Reference is not mentioned as property for product creation in the ODATA guide.

So is there anyway we can acheive this?

Thanks in advance.

Regards,

Shruthi

Accepted Solutions (1)

Accepted Solutions (1)

former_member226
Employee
Employee
0 Likes

Hi,

As mentioned in SAP KBA https://launchpad.support.sap.com/#/notes/2687413 , External ID is not exposed in Products entity of C4CODATAAPI. Rather you need to refer ObjectIdentifierMappingCollection to determine or create external ID mapping.

In case you just want to read the ID mapping from C4C via Odata then please refer to https://answers.sap.com/questions/12985558/article-number-stored-within-c4c.html .

For creating new ID mapping please check the official documentation https://help.sap.com/doc/d0f9ba822c08405da7d88174b304df84/CLOUD/en-US/index.html#/topic/ObjectIdenti.... ON very high level you can simply use following URL https://my3XXXXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/ObjectIdentifierMappingCollection with POST method and following payload.

{
  "LocalObjectID": "PTC30-1790",   // C4C ID
  "RemoteObjectID": "PTC-1790",    // ERP ID
  "RemoteIdentifierDefiningSchemeCode": "20",  // Object Type 'Material ID'
  "RemoteBusinessSystemID": "HYBRIS" //Comm System ID
}

BR

0 Likes

Hi Saurabh,

Thanks for your quick and detailed response. It totally worked 🙂

Regards,

Shruthi

Answers (0)