cancel
Showing results for 
Search instead for 
Did you mean: 

How can I set a filter for my GET_ENTITY

Former Member
0 Kudos

Hi

Would it be possible to set a filter (or similar) for my GET_ENTITY, so I can decide my output.

Maybe so I only show my line 20 or what I put into my "filter"..

/sap/opu/odata/sap/ZGW_xxxxxxx_SRV_03/OrdDetSet('000010025783')

Thanks

Lars

Accepted Solutions (1)

Accepted Solutions (1)

ChandraMahajan
Active Contributor
0 Kudos

Hi,

you can read your key from importing parameter IT_KEY_TAB of method ORDDETSET_GET_ENTITY in you DPC_EXT class.

use it and accordingly code your logic.

Regards,

Chandra

Answers (1)

Answers (1)

arunchembra1
Participant
0 Kudos

HI,


You have to Redefine method ORDDETSET_GET_ENTITY inside DPC_EXT class and write logic as shown below.


1.READ TABLE it_key_tab WITH KEY name = 'ORDERID' INTO ls_key_tab


2. ls_key_tab-value you can use for your filtering


3. URL : -  /sap/opu/odata/sap/ZGW_xxxxxxx_SRV_03/OrdDetSet?$filter=(Orderid eq '4000')



Thanks,

Arun