Skip to Content

OData Gateway RFC - Hide input parameters in odata response

Hello experts,

I've implemented OData Gateway RFC scenario defining Entity Types properties manually and then Mapping them to RFC parameters (tx SEGW in ECC). So I can call successfully call GET request from GW_CLIENT but there is the input parameter empty in response. How can hide it from response?

Thank you


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 25, 2018 at 11:20 AM

    Hallo you can do it by deleting the row. Just click the properties and then delete it. If you need to display it again. Just click on the properties and then just select the check box for the field which you would like to display it.

    So you have 2 Options with Code and without.

    Option1: Without code:

    Delete the row from Properties

    Display it again

    Option2: with code: MPC_EXT class

    If you want to display them in run time you can redefine the method define of the class


    call super define.

    and then write this code :

    Data: lo_property_PAY_SUM  TYPE REF TO /iwbep/if_mgw_odata_property.
    lo_property_PAY_SUM = lo_entity_type->get_property( iv_property_name = 'PAYMENTSUM' ).
    lo_property_PAY_SUM->SET_DISABLED('X')." abap_true. 

    Best regards


    Add comment
    10|10000 characters needed characters exceeded