cancel
Showing results for 
Search instead for 
Did you mean: 

How to read data from API's / Custom CDS Views in Custom Business Object

irfanarete
Explorer
0 Kudos

Dears,

My concern is regarding, Custom Business Objects and I need few clarifications.

1. How can we call custom cds views / api's in custom business object?

2. Can we add F4 helps like fields, which populate list by reading data from API's / Custom CDS views?

Please help.

Regards,

Irfan G.

Accepted Solutions (1)

Accepted Solutions (1)

MartyMcCormick
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Irfan

If you want to add input help (ie F4 help) to your CBO you can use custom code lists extensibility (here is a good blog: https://blogs.sap.com/2017/10/26/sap-s4hana-cloud-key-user-extensibility-custom-business-object-crea... However, I do not think dynamically populating custom code lists from an external source like a CDS view or other structure is yet supported.

Thanks,

Marty

Answers (7)

Answers (7)

irfanarete
Explorer
0 Kudos

Thank you for clarificaiton

irfanarete
Explorer
0 Kudos

Hi Amith,

First Q is clear.

Second Q, actually i want to populate data from Custom CDS views in F4 helps. Is it clear?

Regards,

Irfan G.

Amith_Nair
Advisor
Advisor
0 Kudos

Hi Irfan,

Apologies for the late response.

I am not sure if I understood your questions correctly:

Custom Business Objects can also be exposed as a OData Service just like Custom CDS view or API's. Now to your Q, if I assume the Q is how to bring the values from CBO into custom CDS view, this is possible using a POST operation using a Middleware like SAP Cloud Platform Integration. But there are many ways to populate mass upload of Data into Custom Business Object and here is one shared by marty.mccormick

https://s4hanacloud.community.sap/groups/yIaphhgIuqVwH1ZooyoZnf/documents/Bbv0tvrd8W9tRpQapuutQn/sli...

To your second Q: yes, you have the option to populate fields with multiple values using code list and those values can also be exposed as OData Service which essentially act as API calls.

Let me know if this helps or for any follow up Question. Thank you!

Amith Nair

former_member132363
Active Contributor
0 Kudos

Here are some SAP resources you may review based on your topic "populate | data | apis custom | cds | views custom | business | object custom | business | objects custom | cds | views | / | apis | reading data"

2419830 - LMS OCN Open Content Network Knowledge Support ...

6.5 Open Content Network User View ... Content Object Launch Methods ... The courses for corporate training are in addition to traditional MOOC subject ... to the completion status API to automatically report back users' completion of the content. .... To set up CDS, read the Integration - Learning and Cross-Domain Content?...

https://apps.support.sap.com/sap/support/knowledge/public/en/2419830

former_member132363
Active Contributor
0 Kudos

First you may consider the available list of custom logic scenarios available for conduction validations for given scenario or app. Alternatively you could leverage custom business objects. Custom business objects contain a checkbox indicating "Can Be Associated." This would need to be activated.

[View Article](https://answers.sap.com/questions/13239068/view.html)

I hope this answered your question! If it did, please mark it as the 'Best Answer' so I can continue learning and answering questions in the community.

former_member132363
Active Contributor
0 Kudos

Here are some SAP resources you may review based on your topic "populate | data | apis custom | cds | views custom | business | object custom | business | objects custom | cds | views | / | apis | reading data"

2419830 - LMS OCN Open Content Network Knowledge Support ...

6.5 Open Content Network User View ... Content Object Launch Methods ... The courses for corporate training are in addition to traditional MOOC subject ... to the completion status API to automatically report back users' completion of the content. .... To set up CDS, read the Integration - Learning and Cross-Domain Content?...

https://apps.support.sap.com/sap/support/knowledge/public/en/2419830

former_member132363
Active Contributor
0 Kudos

First you may consider the available list of custom logic scenarios available for conduction validations for given scenario or app. Alternatively you could leverage custom business objects. Custom business objects contain a checkbox indicating "Can Be Associated." This would need to be activated.

[View Article](https://answers.sap.com/questions/13239068/view.html)

I hope this answered your question! If it did, please mark it as the 'Best Answer' so I can continue learning and answering questions in the community.