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!!


Akil Syed

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on 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.

    Add comment
    10|10000 characters needed characters exceeded