cancel
Showing results for 
Search instead for 
Did you mean: 

Problem while creating deep entities in oData

rakesh2901
Participant
0 Kudos

Hi Gurus,

I am facing a problem while creating deep entities using BAPI "BAPI_GOODSMVT_CREATE", there are no common fields in header and items table in the BAPI so I am not able to create associations. As Association is required in case of deep entities I am unable to proceed.

Please guide me how it can be achieved, or any alternate way to do it.

Regards

Rakesh

Accepted Solutions (0)

Answers (1)

Answers (1)

maheshpalavalli
Active Contributor
0 Kudos

Hi Rakesh Singh,

If you are manually generating the associations from segw, you don't need to have a common key field. When creating the associations, it proposes the keys for the from entity and asks you to enter the keys of the to entity(if i remember correctly). Just go a head and delete them and finish the wizard. It will not throw any error.

Thanks,
Mahesh

rakesh2901
Participant
0 Kudos

Hi Mahesh,

I am mapping the BAPI while creating the entity type and entity set. After mapping and creating an association, it is asking for the key(common) fields that needs to be mapped. My issue is there are no common fields in the Header and Items table of the BAPI.

That's why i am facing issue while creating the odata.

could you please help me with this situation whether i can go ahead and create the same or it requires any other method that needs to be followed.

Regards,

Rakesh.

maheshpalavalli
Active Contributor
0 Kudos

Rakesh Singh, I am not sure about your case but Like I said for odata key mapping between the entities is not a prerequisite, try to delete the mapping if it auto generate and check. In worst case create the entities and associations manually..