Skip to Content

Need clarification on SEGW for odata service

Hi Experts,

I am traditionally creating Model provider class(MDP) & Data provider class(RDP) in se80, intergration them with model and generating the service.

But now for my new assignment i am starting on SEGW tcode where i am creating the entityset and entity as below

Now i have created the runtime airfacts which inturn creted the MDP & RDP. in traditional method we will creating the get_entity_set in /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_ENTITYSET. but here the methods productset_get_entityset is created where i am writing the business logic, i have kept the breakpoint but it is not triggered and in the execution screen the productset_get_entityset doesn't available, then i found that this is in protected method as shown below.

My question is: where do i need to write the business logic. Please help me. Awaiting for your reply.



method.JPG (166.4 kB)
output screen.JPG (41.9 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 24, 2014 at 07:29 AM

    Hi gowtham,

    In zcl_XXXXXXXXXXXXXX_DPC_EXT Class you have to redefine the methods for your implementation.

    For Example for (Query) operation u have to redefine the




    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2014 at 10:25 AM

    Hello Raja,

    First redefine the method /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_ENTITYSET in your DPC_EXT class and call the method productset_get_entityset where u have written your logic inside it and return the response. Only if u do this u will be able to stop in GW with debugger.

    What you have done is Without redefining /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_ENTITYSET method in DPC_EXT, you have just redefined method productset_get_entityset and written logic ? How can you stop with BP at runtime ? 😊 not possible right ? The call has to be delegated to productset_get_entityset method by redefining /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_ENTITYSET method and inside that you will be calling productset_get_entityset method 😊

    Do this. You should be able to Debug.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Gowtham Raja M

      Hello Raja,

      You can write the logic inside /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_ENTITYSET directly and return the response. It will work.

      But i would suggest the below way -

      You can write the logic inside the method productset_get_entityset and call this method inside /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_ENTITYSET within a CASE statement .

      Delegate the calls to the corresponding methods by checking based on Entity_Set_Name using CASE statement.

      When Entity_set_name name is ProductSet then call productset_get_entityset method and return the response.

      With this you can resolve your issue and can stop flow with a Break Point.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.