Skip to Content
0

Error (Unsupported Media type) while File Uploading to AL11 through SAP GATEWAY Service.

Nov 24, 2017 at 10:32 AM

121

avatar image
Former Member

Hi All,

My requirement is I have to upload a file to AL11 through SAP NetWeaver Gateway Service.

Created Gateway Service as follows:

  • 1)Created ODATA Service.
  • 2)Under “ /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_STREAM” method am invoking the RFC.
  • 3)While am executing the service am getting the below error
  • Status code : 415
  • Reason : Unsupported Media type.
  • <message xml:lang="en">The server is refusing to process the request because the entity has an unsupported format</message>

  • 4)For uploading the file :

Please help us with valuable points.

Regards,

Gopi.

error.jpg (90.6 kB)
upload1.jpg (40.5 kB)
upload1.jpg (40.5 kB)
upload2.jpg (27.2 kB)
upload3.jpg (57.3 kB)
upload3.jpg (57.3 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Jan 18 at 01:50 PM
0

Hello Gopi is it solved or not yet ? If yes can u please share the solution

Share
10 |10000 characters needed characters left characters exceeded
Ankit Maskara
Jan 30 at 06:02 PM
0

You need to also define the MIME type in DEFINE method of MPC_EXT class. Post that this issue will be resolved.

Share
10 |10000 characters needed characters left characters exceeded