cancel
Showing results for 
Search instead for 
Did you mean: 

Entity set of an OData service not appearing in Metadata while executing the URI

former_member587957
Discoverer
0 Kudos

I have created the custom Odata service by copying the standard Project of an Odata service. I have redefined the methods in ZCL*****DPC_EXT class as same according to the methods in standard Odata service and generated the runtime artifacts and executed the URI for the custom Odata service and found that metadata is missing for the Entity set which is implemented from the standard Odata service. I have gone through this link https://blogs.sap.com/2016/06/15/entityset-of-an-odata-not-appearing-in-metadata/ but the couldnot get the metadata for an entity set. Please help as soon as possible

Accepted Solutions (0)

Answers (2)

Answers (2)

dstjacques
Participant
0 Kudos

Similar situation occured to me too but in my case, the new entity is simply ignored. It is not treated in the implemented class.

I did clear the cach but the issue remain.

1. Copied the standard service to "ZFDP_V3_BD_STANTARD"

2. Activate all the elements and everything worked fine.

Now we need to add an new entity.

1. Entity types "PriceConditionNode" has been replicated in "PriceConditionV002Node".

The same ABAP structure and properties has been used.

2. The associations "BillingDocument_PricingCondition" has been replicated in "BillingDocument_PricingConditionV002" related to dependent entity "PricingConditionV002Node"

3. Association sets "BillingDocument_PricingConditionSet" has been replicated in "BillingDocument_PricingConditionV002set"

dependent Entity set "PricingConditionV002"

4. Service Implementation "PricingCondition" has been replicated in "PricingConditionV002"

5. Generate Runtimes objects without errors

After all this,I was expecting to have the entity listed in the

At this point, I was expecting to have the following methods added to the class.

PRICECONDITIONV002_GET_ENTITYSET
PRICECONDITIONV002_GET_ENTITY
PRICECONDITIONV002_DELETE_ENTITY
PRICECONDITIONV002_CREATE_ENTITY

Or at least to have the entityset "PRICINGCONDITIONV002NODE" passign through the method "/IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_ENTITYSET". But it is not the case.

By using tcode /n/IWFND/MAINT_SERVICE to validate the service.

We can see:

"PricingConditionV002Node" in the entity type

"PricingCOnditionV002" in the Association

So what am I missing to have the new Entity "PricingControlV002Note" available in the class?

Regards

Daniel

former_member185414
Active Contributor
0 Kudos

Which Version of OData are you using?

If it's OData V2, did you try clearing the cache using t-code, /n/iwbep/cache_cleanup and /n/iwfnd/cache_cleanup.