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

Expose the custom field in SAP C4C V2

Prathiba
Discoverer
0 Kudos
1,371

Hi Team,

We have added a custom field at the item level in the Quote in SAP C4C V2, and we want to replicate this field to an external S/4HANA system.

Could you please guide us on how to expose this custom field in an API or OData service in V2 so it can be consumed by the external system?

Thank you so much in advance!

Accepted Solutions (1)

Accepted Solutions (1)

delateja
Active Participant

Hi there: 

Update: these steps 

You can follow this steps to get the all end to end process.

1. Access Extensibility Administration: Navigate to Settings → Extensibility Administration.

2. Select the Appropriate Business Object: Choose for example a Sales Quote Item to ensure you're working at the item level.

3. Add a Custom Field: Click on Add Field, define the field's properties (name, type, label), and ensure it's relevant to your business needs. 

4. No need to expose fields to API. It is enabled automatically.

5. There's no $metadata. There are OpenAPI specs.

6. New version is built with custom REST APIs.

 
7. You can use the integration flow replicates Sales Orders from SAP Sales Cloud Version 2 to SAP S/4HANA. From feb, 21, Integration flow is enhanced to support customer extension.

 

Enjoy, 

 

D. 

 

 

Prathiba
Discoverer
0 Kudos

Dear Delateja,

Thank you very much for your quick and detailed response.

I would appreciate your help with the following queries:

  1. Enabling OData Service Usage --> As per your suggestion in the step 4th, I intended to enable the field for the "OData Service" usage. However, I am unable to find an option to enable this. I’ve attached a screenshot for your reference — kindly let me know if I am missing something.
  2. Identifying the OData Service Name --> You were able to identify the service name for the Sales Quote as sales-quote. Could you please guide me on how to find the service names for other objects as well (specifically for OData V2)?                                                                                                                                                                                                                                                   Looking forward to your response. Thank you once again for your support!                                                                                                                                                                                                              Best regards, PrathivaPrathiba_0-1748869015534.png

     

delateja
Active Participant
0 Kudos

Hi there:

Becouse this is V2 you must go to the Monitor Message to check in the payload that the extension field are exposed. 

You can follow this steps: 

Go to User Menu->  Settings->  All Settings -> Integration -> Message Monitoring

then, click Outbound to view outbound messages and in the payload you can see the extension field that you extended. 

Next step is to go to the CPI to make the mapping in the integration flow replicates Sales Orders from SAP Sales Cloud Version 2 to SAP S/4HANA. 

Here the link: Aqui

As you can see the Integration flow is enhanced to support customer extension from 21 feb. 

From now the behavior is similar to the C4C V1. 

Ill let you the link to the Configuration Guide- SAP Sales Cloud Version 2 Integration for Sales Processes with SAP S/4HANA Aqui

And the others link Integration Packege: Aqui

delateja_0-1748879096872.png

 

Answers (1)

Answers (1)

PVSBPrasadK
Product and Topic Expert
Product and Topic Expert
0 Kudos

@Prathiba : As mentioned inn screenshot.

go to settings -> Extensibility Administration -> Select entities Quote -> Add Custom fields-> Automatically this field will come to ODATA 

PVSBPrasadK_0-1748833416033.png