Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

"Invalid or no Mapping to System Data Types Found" while using the CREATE_STREAM

$
0
0

Hello Experts,

 

I have been doing some Odata Operations but i am still not able to Crack this particular CREATE_STREAM for uploading the Images/Media Type Formats from the UI Applications.

 

These are the steps which I followed for implementing the functionality.

 

Please Note : I have been using the SEGW to generate the MPC and DPC Classes.

 

a. Created the Entity with 2 properties.

     1. PdfKey ( Key Property - Type Edm.String )

     2. PdfStream ( Property - Type Edm.Binary)


b. I have made the entity as Media Type using the Checkbox.


c. I generate the classes, entitysets.

 

d. Now in the Class DPC_EXT Method : /iwbep/....create_stream i have written minimal coding just for output.

 

          Code snippet:                   

                  create stream.JPG

          Here I have to fill the key field hence I am passing the mime_type in to the key field and also the stream value into the stream.

 

ER_ENTITY is successfully filled and the control now moves into the Framework classes where if I debug I can still see the desired output of the type Entity in a parameter called EV_RESPONSE_DATA which when viewed in the HTML browser shows the correct output.

 

e. It is after this process that I execute the framework gives a dump saying:

cs2.JPG

 

f. I have tried many different approaches and couldn't crack the actual issue/solution.

 

Also Note: I have done all the coding in the Gateway System.I have even tried using the GET_STREAM method which is working fine.

 

As I am getting the data in the CREATE_STREAM method I will be able to store the image in my back-end system or wherever needed but I would always need the Successful message(201 Created in this case ) and output type.

 

Please help me If I have missed any steps here which is causing the issue.

 

Thanks and Regards,

 

Kartik Suru


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>