Skip to Content

Disable fields from Odata service output

Hello all,

I have 5 properties in entity type....

For e.g.

1. Client ID 2. Support Group 3.Region 4.State 5.City

Out of these 5 properties,I want only 4 properties i.e. Support Group,Region,State and City in the output.

In my RFC FM the Client ID is import parameter while others are export parameters.

When i generate the service, the ET_ENTITYSET internal table is having the structure similar to the entity type.

When i exceute the service ,I have to pass the ClientID as the input option.

.........?$filter=ClntId eq 'ETA'

But this should not come into the output....

Kindly help me in providing solution how can i acheive the service output without the Client ID in the output.

Code snippets would be of great help!!

Thanks,

Akil Syed

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 19, 2017 at 08:14 PM

    You need to use 2 entities(1 with Client ID and the other with the rest 4 field) and use association to link the two entities.

    Use Expand entity set to pull the data.

    https://blogs.sap.com/2014/07/18/implementing-expand-entityentity-set/

    Add comment
    10|10000 characters needed characters exceeded