Skip to Content
avatar image
Former Member

SAP Fiori Leave Request Attachments

Dear Experts,

I am aware that we can extend the Standard Fiori Application to add/hide the fields returned from the OData Model but is it possible to extend Fiori My Leave Request application to support adding attachments as well.

I couldnt see anything on it on the App Extensibility option on the website for Application Implementation.

Any insights on this.

@Kiran Kola @Masayuki Sekihara


Rakshit Doshi

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jan 25, 2015 at 06:11 PM

    Hi Rakshit,

    We have taken this feedback and provided this is the standard in the new version of the app.

    Best Regards


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Resha,

      Try to apply the below notes




      P.S there are some manual corrections required to be applied to the notes

  • avatar image
    Former Member
    Jan 26, 2015 at 10:02 AM

    Hi Rakshit,

    After a lot of research and a few hassles I have just completed this task, the biggest issue I had was the modifying the UI5 side as the SAP fileuploader control doesn't play nice with SAP GW 😊 and you will read this in blogs posted up in the UI5 community so I implemented the HTML fileuploader control  (<input type="file" />) and applied the UI5 Styles to it.

    As for saving the file, we decided to attach the file to the workflow upon a successful creation of a leave request this way.

    There are two main things you will need to do:

    1. Modify the LR Odata service, or create a new one.

    • Navigate to SEGW
    • Create a new Entity Set for the attachment
    • Implement Create / Get Stream methods for the entity set - use your logic here to store / retrieve the attachment

    2. Modify the UI

    • Extend the UI of the FIORI LR app
    • Add the Fileuploader control to the desired location
    • post the file to the new / updated odata service.

    Hope this helped.

    Shaun Bradridge

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 25, 2015 at 07:36 PM

    And to add to the above point. To extend the app for attachments you would need to extend the service by addinng a DDIC strcuture and mapping to the newly created Entity and then write the code in the extended DPC class and in the UI you would need to have a field for taking attachments as input.

    Best Regards


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member


      We are trying to enhance the standard Approve Travel Expense fiori application. As of now the travel receipts are uploaded through PR05 and as well trough a mobile app. The receipts will be stored in Sap database/application server.  But my client wants it to be stored on different archive server. Also the receipts to be retrieved from that server into the fiori app..

      Now my concern is, is it possible to change the retrieving functionality from sap server to a different archiving server.

      Your help in this regard will be highly appreciated.


      Siva Krishna