Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8635

Re: Getting error "Invalid or no mapping to system data types found" after sending file

$
0
0

Hello Prabaharan,

 

In order to Read Media content from Gateway ( Get_Stream ) which you have create through your Create_Stream , you have to set the data object as media type in the model.

 

In that case please use the below code at the end in your model class.

 

Data : lo_data_object  type ref to /iwbep/if_mgw_odata_entity_typ.


< ---- Declare all the other properties --- >


lo_data_object->set_is_media( ).


( setting a data object as media type means that it gets a special semantic by having a url and allows streaming etc.)


URL would be - Add the Host in the beginning

/sap/opu/odata/sap/<SRV_NAME>/<Entitty_Set_Name>(<Pass Keys>='')/$value

 

Try this and revert if any difficulty.

 

Regards,

Ashwin


Viewing all articles
Browse latest Browse all 8635

Trending Articles