Skip to Content
avatar image
Former Member

Attachment to Service Notification - Create (IW51) from OData Service

I have created an OData service to create service notification in SAP system.

In the SAP t-code for create service notification (IW51), there is an option to attach files using generic object services.

I would like to know whether I can add this attachment functionality into the Odata service and consume this service from front-end.

(I have already created an OData service to attach files to a custom table. It works fine.)

Now, I want to attach this to the service notification.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 24, 2014 at 08:53 AM

    Hello Tech,

    Referring this will help you accomplishing your scenario.

    Uploading Files to SAP GW, Downloading Files from SAP GW - New Techniques

    You are good to go if you know which part of the logic is to be called inside Create_Stream method to save your attachment in back-end in an appropriate format.

    Regards,

    Ashwin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Sri..

      Thank you so much for your detailed reply.

      I have a few questions.

      Currently I have stored the uploaded file in a Z table as shown below

      Z Table Screenshot.JPG

      1. Can use this data from the Ztable to upload the file using BAPI_DOCUMENT_CREATE2 fn module?

      2. Where do i specify that I want to attach the files to the tcode: IW51? Is that in the table parameter of the fn module - OBJECTLINKS? If yes, then what should I give for Object Type and Object Key for this create service notification transaction?

      Thank you so much for your answers..