cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Data Model created

Pavan_Golesar
Active Participant

Hi Techies,

  Issue is "what should be name of navigation property, sales order items entityset".?????    Below is the snap of my structure of service...

ANY SUGGESTION AND CORRECTION WILL BE HELPFUL...

Please correct me wherever Its Needed...

Keeping in mind that I have implemented GET_EXPANDED_ENTITY,CRETE_DEEP_ENTITY.

ALSO GET_ENTITY ,GET ENTITYSET FOR BOTH (SALES ORDER HEADER AND ITEM).


METHOD /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_DEEP_ENTITY.

  TYPES: TY_T_SOITEM TYPE STANDARD TABLE OF ZCL_ZSO_ALL_MPC_EXT=>TS_SALESORDERITEM WITH DEFAULT KEY,

         TY_T_SCH TYPE STANDARD TABLE OF ZCL_ZSO_ALL_MPC_ext=>TS_SCHEDULE WITH DEFAULT KEY.

* REPRESENTS FULL SALES ORDER STRUCTURE - HEADER WITH ONE OF MORE ITEMS

   TYPES: BEGIN OF TY_S_SO.

            INCLUDE TYPE ZCL_ZSO_ALL_MPC_EXT=>TS_SALESORDER.

            TYPES: SalesOrderItem TYPE TY_T_SOITEM.

            TYPES: ScheduleLine   type TY_T_SCH,

          END OF TY_S_SO.

BEST REGARDS,

PAVAN G

Accepted Solutions (1)

Accepted Solutions (1)

AshwinDutt
Active Contributor
0 Kudos

Hello Pavan,

I see Entity_Type_Name and Navigation_Property_Name is same in GW Model.

I would suggest to use unique names to identify the Navigation properties defined in the GW Model so that there would be no confusion in any ways.

Its good to make sure none of the names are exactly same in the GW model.

Regards,

Ashwin

Pavan_Golesar
Active Participant
0 Kudos

Thanks ashwin, I'll try this..

Regards,

Pavan G

Answers (0)