cancel
Showing results for 
Search instead for 
Did you mean: 

GenIL Dynamic Query into OData

former_member206638
Participant
0 Kudos

Hi all.

I need to create an OData service from an already existing GenIL dynamic query for CRM Activity objects.

I've followed a couple of tutorials found here on SDN, but I still need some more information since those documents are too general and don't cover this specific scenario.

When going to 'Redefine -> GenIL service', I choose the GenIL component 'BT', as it is the model for all Business Transactions.

After filling the classes names in the next screen, I am prompted to choose the Entities and associations I want to include in the service, and here is my problem. This window doesn't show the query I need, it only shows a few others not relevant to this case.

The query I need to run is BTQAct. Any idea on how to create a service from that Dynamic query?

Thanks in advance for your help.

I've gone through almost all online documentation so far, but I'm new in the topic, can't find the answer on my own so far!

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member195242
Active Participant
0 Kudos

Hi Federico,

In GenIL query objects are associated with a root/access/dependent object. So, during the generation process, only root/access/dependent object are converted into entities and not the query objects.

If the generation is successful, in your generated Metadata class, in method ~GET_DEFAULT_QUERY , you will find that each of the entities will have a default query(simple/dynamic) associated with it, which subsequently helps retrieving the data from CRM.

Please check the following link:

https://help.sap.com/saphelp_gateway20sp06/helpdata/en/af/1184220e2f486aa4c194076233b539/frameset.ht...

Best regards,

Aakash