cancel
Showing results for 
Search instead for 
Did you mean: 

Generating Runtime Objects in NetWeaver Gateway

Former Member
0 Kudos

Greetings All,

I am creating a service using transaction SEGW. I have created my data model as an XML file and imported it by right clicking Data Model->Import->Data Model From File. After writing some code for one of my entity_set methods, I realized that there was an additional entity_set that I needed to create. I created the entity_set using the SEGW UI. I then Generated my runtime objects. To my surprise, the code that I had written for the other entity_set had been overwritten. Is there any way to Generate Runtime Objects for when additions to the data model are made without overwriting existing code?

Regards,

Clayton

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Clayton,

You have modified the wrong class method.

Do not write your code in the DPC class. Choose the DPC_EXT class and redefine the method in question. The DPC_EXT version is never overwritten and is the first point of contact with the incoming request. DPC is always rebuilt as you may have added an entity, etc, which now needs a new method stub set.

If a method is not implemented, it falls back to the DPC class intentionally to notify that the method is not in use.

Regards

Ron.

Former Member
0 Kudos

Hey Ron,

Thank you for your response. I should have known this was the issue because every time I navigated to the ABAP workbench by right clicking the method name it would say "method is not yet implemented." Thanks again for your answer!

Regards,

Clayton

Answers (0)