cancel
Showing results for 
Search instead for 
Did you mean: 

OData Gateway RFC - Hide input parameters in odata response

e_giunta
Participant
0 Kudos

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

odata-rfc-gateway.png

Accepted Solutions (1)

Accepted Solutions (1)

former_member184158
Active Contributor
0 Kudos

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

ZCL_*.......MPC_EXT=>Define

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

Ebrahim

Answers (0)