on 04-10-2014 8:27 AM
Hello Netweaver gurus.
One of my client faces this issue. Has anybody come across similar error types ?
Regards,
Nitin Koushik
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Nitin,
You get that error if you not passing back the response as well .
So kindly check that also.
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Nitin,
Did you find a solution yet?
Kind regards,
RW
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Peter! I forgot to redefine the "DEFINE" method.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.