cancel
Showing results for 
Search instead for 
Did you mean: 

invalid or no mapping to system data types found.

Former Member

Hello Netweaver gurus.

One of my client faces this issue. Has anybody come across similar error types ?

Regards,

Nitin Koushik

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi All,

I redefined the DEFINE method in ZCL_ZDSR_IMAGE_MPC_EXT as follows.

method DEFINE.

     super->define( ).

Data: lo_entity TYPE REF TO /iwbep/if_mgw_odata_entity_typ,

lo_property TYPE REF TO /iwbep/if_mgw_odata_property.

lo_entity = model->get_entity_type( iv_entity_name = 'FILE' ).

IF lo_entity IS BOUND.

lo_property = lo_entity->get_property( iv_property_name = 'FileName').

lo_property->set_as_content_type( ).

ENDIF.

   endmethod.


After that my problem has solved.


Thanks,

sivaraju

Former Member
0 Kudos

Thanks Sivaraju. Your solution worked for me as well.

smkangethe
Participant

Thanks. This worked perfect! Just also worth to note that after this one needs to Load Metadata again for the service in order for the change to take effect after activating the redefined method.

Answers (3)

Answers (3)

AshwinDutt
Active Contributor

Hello Nitin,

In my opinion the error is because you would not be using an appropriate Entity to perform respective operation and can also be due to invalid mapping e.g. NUMC to Edm.Decimal

Lets say you have an Entity 'A' to Update a media content to BE. You can use the same Entity 'A' to Read the updated media content as well.

Leta say now you want to Read set of data from BE ( Not a Media content )

You cannot use the Entity 'A' to perform this. You need to have a different Entity which will get the info needed from BE.

Even if you forcefully try to map the response in code level, you will get the error ' Invalid or no mapping to system data types found '. This is because Entity 'A' would have got the special semantics to Read the media content not the set of data.

Kindly check this and also the Types , Type Lengths , No of Decimal Places etc...used in Model

Regards,

Ashwin

Former Member
0 Kudos

Hello Ashwin,

I will check your suggestion and findings. since i would be on leave for 10 days or so, i may not able to check it immediately. But definitely check it and respond to your valuable suggestion.

former_member185414
Active Contributor
0 Kudos

Helped me.

Thanks.

AshwinDutt
Active Contributor
0 Kudos

Hello Nitin,

You get that error if you not passing back the response as well .

So kindly check that also.

Regards,

Ashwin

Former Member
0 Kudos

Hey Nitin,

Did you find a solution yet?

Kind regards,

RW

Former Member
0 Kudos

Hi Robbe,

if your problem is related to uploading file please check this

Regards,

Peter

Former Member

Thanks Peter! I forgot to redefine the "DEFINE" method.