cancel
Showing results for 
Search instead for 
Did you mean: 

OData Custom Structure Error when Regenerating

0 Kudos

Hi Everyone,

I am new to Odata. I have started developing a project in SEGW. My requirement is to displaying Sales details based on Customer No. I have imported the fields from KNA1 table and i have created a custom structure in MPC Class replaced standard structure with custom structure as shown below.. It worked fine. But when i create a other Entity set and regenerate it.. i am unable to see the custom structure...

Kindly suggest me what i have to do now...

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185414
Active Contributor
0 Kudos

Why are you using some standard service. You should learn about basic OData development first before going towards OData Extensibility.
Please follow as below -

1. Create a Z structure which has the required fields like KUNNR, VBELN, etc.

2. Create a Z Gateway Builder Project in SEGW and on that right click on new on Entity and say import. Enter the name of Z structure of step 1 and also let the checkbox - Create default entity set be checked.

3. Now you can save and generate the service.

4. Go to the associated *_DPC_EXT class and implement the coding in the asscoiated <>_GET_ENTITYSET method.
5. Follow step 1,2 and 4 for any further entities you need to add.