cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Gateway Expand

jordi_candel
Explorer
0 Kudos

Hello guys,

I implements a basic SEGW Project. 2 Entities Order - Item

One Order can refer to several items.

I am trying to do a "generic"expand on the order but it does not work.

(so no implementation needed)

URL:

/sap/opu/odata/sap/ysd_test_srv/OrderCollection('2')/?$expand=ToItem

When testing on SAP Netweaver Gateway Client I get the response: 500 internal server error, Method GET_ENTITYSET not implemented

When I debug I can observer the following behaviour:

1. /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_EXPANDED_ENTITY gets called

- Parameter iv_entity_set_name = OrderCollection

2. ORDERCOLLECTION_GET_ENTITY gets called

3. Now /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_EXPANDED_ENTIT_SET gets called

- Parameter iv_entity_set_name is now empty. This seems to be the reason for the error

If I manually change the value of iv_entity_set_name in the debugger to "ItemCollection" then my generic expand works.

But why is the parameter iv_entity_set_name empty?

Thanks a lot

Goluef

Accepted Solutions (0)

Answers (0)