cancel
Showing results for 
Search instead for 
Did you mean: 

Extending code based oData Model

prakashsaurav
Active Participant
0 Kudos

Hello Experts,

I am learning oData and using SAP CAL solution SAP NetWeaver AS ABAP and SAP BW 7.40  via AWS for the same.

I am trying to extend oData Services which has code based implemented oData Model.

Using SEGW and after creating new zproject and redefining the data model.  I added one field to one of the entity types.

There is no help option to select ABAP field so I have to type in. I see internal type for the field.

When I click generate then I see that even local types are modified automatically.

But I am still getting error "Property 'TelNumber' of data object 'Address' has no Internal type assigned"

Please let me know what additional steps has to be taken care here.

Accepted Solutions (1)

Accepted Solutions (1)

kammaje_cis
Active Contributor
0 Kudos

Earlier, I had encountered this as well.

So the solution would be to go to *MPC_EXT class and set the internal type manually.

Check Atanu's reply here.

prakashsaurav
Active Participant
0 Kudos

Used below code... Thanks


METHOD define.

     super->define( ).

     model->get_entity_type('Address')->get_property('TelNumber')->set_internal_type(

     cl_abap_typedescr=>typekind_string ).

ENDMETHOD.

Answers (0)