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

CDSView:Service Contract Partner Information

ISoma
Participant
0 Kudos
348

Hi Expert!

I change the Partner's Address, Name, etc. in the Parties Involved tab of the Service Contract.

ISoma_0-1741687460850.pngISoma_1-1741687485468.png

ISoma_2-1741687490354.png

I want to create a Custom CDSView to integrate information
such as the address and name of the partner of the Service Contract via API.

Which CDSView should I use?
 
Soma
 

Accepted Solutions (0)

Answers (1)

Answers (1)

DequanXu
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

To create a Custom CDS View for integrating information about the address and name of the partner in a Service Contract, you can use the CDS View I_CustMgmtPartner. Virtual Data Model and CDS Views - Customer Management Partner This view provides partner data for all relevant OneOrder Business objects. When dealing with a service contract, it returns the partners stored at the header and relevant item levels, including those inherited from the header.

Steps to Create Custom CDS View:

  1. Create Custom CDS View:

    • Use the ‘Extensibility’ group in SAP S/4HANA Cloud to navigate to ‘Custom CDS Views’.
    • Choose I_CustMgmtPartner as your primary data source.
    • Define associations if needed with additional data sources.
  2. Select Required Fields:

    • Add fields such as CustMgmtPartner, CustMgmtPartnerFunction, and any necessary partner address fields.
  3. Publish:

    • Ensure the new CDS View is marked for external API consumption if needed.
  4. Use in API:

    • Once published, your view can be utilized via API by setting up appropriate communication scenarios and arrangements.

By following these steps, you will be able to create a CDS View to handle integration via API for service contract partner information.

Best regards,

Dequan Xu

ISoma
Participant
0 Kudos

@DequanXu

Hi DequanXu!

Thank you for your answer.

When I select Scenario with "External API",
I cannot select View "I_CustMgmtPartner".

ISoma_0-1741700969879.png

ISoma_1-1741701040786.png

Soma