SAP Knowledge Base Article - Preview

3430542 - /IWBEP/IF_MGW_ODATA_PROPERTY~SET_NULLABLE( abap_true ) doesn't work for key property

Symptom

Called /IWBEP/IF_MGW_ODATA_PROPERTY~SET_NULLABLE( abap_true ) for key property, but still $metadata shows Nullable="false".

For example, code likes below:

mpc_ext ->define method change code:

DATA(lo_entity_type) = model->get_entity_type( iv_entity_name = '<entity name>' ).
DATA(lo_property) = lo_entity_type->get_property( iv_property_name = 'XXXXXX' ).          >>>>>the property is key 
lo_property->set_nullable( abap_true ).    


Read more...

Environment

SAP Gateway

Product

SAP NetWeaver all versions ; SAP S/4HANA all versions

Keywords

SET_NULLABLE, /IWBEP/IF_MGW_ODATA_PROPERTY, Nullable , KBA , OPU-GW-COR , Framework , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.