cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Method 'CREATE_STREAM' not implemented in data provider class( in RAP Application)

amo_ry
Participant
0 Kudos
1,514

When i am trying to click on create button in the Attachment Entity it raise an error : 'Method 'CREATE_STREAM' not implemented in data provider class'

I am using Odata v2 on S4HANA system .

if any one can help me ?

Error :

this is the code

Accepted Solutions (0)

Answers (3)

Answers (3)

gzghidi
Explorer
0 Kudos

Hello again i was able to use the file upload feature only on Odata v4 and i did it by following the below links

Start by following this blog for implemting the file upload feature

https://community.sap.com/t5/technology-blogs-by-sap/streams-in-rap-uploading-pdf-excel-and-other-fi...

In OData V4 we have to enable the draft or we will not be able to view the create button, so enable the draft by following this blog

https://community.sap.com/t5/application-development-and-automation-blog-posts/understanding-and-usi...

After applying everything try and check if it work, if it doesn't and you face this error 
Virus scan profile /IWBEP/V4/ODATA_UPLOAD is not active
Refer to this Note 3010735 - F4111 - Virus scan profile /IWBEP/V4/ODATA_UPLOAD is not active

 

Best of luck everyone.

 

sasolai
Explorer
0 Kudos

amo_ry

I'm facing the same problem, did you manage to solve it?

dhegde
Participant
0 Kudos

Try spelling the value of annotation @Semantics.largeObject.mimeType to 'Mimetype'. Exactly like the field name.

See if that helps.

Cheers!

amo_ry
Participant
0 Kudos

Still the same error .

Its possible to create this method by another way ?

dhegde
Participant
0 Kudos

at least it is not requried as per the help documentation. Adding these annotations should suffice.

I tried it on BTP Trial ABAP Environment and it works. Here is the example

https://github.com/dhananjayhegde/abap-rap-samples-new/tree/main/src/zdh_rap_aunits

amo_ry
Participant

I appreciate your effort to help me dhananjayhegde .

Yes it worked for me in BTP Trial also .

but i want to solve it on S4HANA system .