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

Re: Not Able To Upload PDF To DMS Using ODATA And SAPUI5

$
0
0

Thanks Tarun and Prasad for knowledge sharing.

 

My problem is when i am redefining MPC->DEFINE method i am getting error:Assign Model First To Service.  

 

Why this error?? Weather it a OData problem ?? so i contact to basis team.

 

Or i am doing some mistake in OData creation.

 

Please Check My Steps.

 

Step1). Created A package zgw_gc1

 

Step2). Righe click on DataModel and import RFC/BOR Interface

 

 

odata1.PNG

 

Step3).

 

odata1.PNG

 

 

Step4).

odata3.PNG

 

Step5).

 

odata4.PNG

 

Step6). check entity type as media type

 

odata5.PNG

 

Step7). Now gegerate runtime objects

 

Step8). Go to service implementation and right click on GetEntity and select map to data source.

 

Step9). go to runtime artifacts, select MPC_EXT and go to abap bench and redifine MPC_EXT->DEFINE method.


Step10.). redefine DPC_EXT-> Create_Stream and get_stream methods. inside create_stream i am calling ZFM .


Step11). go to /iwfnd/maint_service and add service . in this step i am getting errorAssign Model To service as mention above.


-------------------------------------------------------------------------------------------------------------------------------------------------


Please send me sample code at my mail id satyadwivedi1@gmail.com


Thanks,

Satya


 


Viewing all articles
Browse latest Browse all 2806

Trending Articles



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