cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Fiori Leave Request Attachments

rakshit_doshi
Active Contributor
0 Kudos

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 help.sap.com website for Application Implementation.

Any insights on this.

Thanks,

Rakshit Doshi

Accepted Solutions (1)

Accepted Solutions (1)

pankaj_bisht
Contributor
0 Kudos

Hi Rakshit,

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

Best Regards

Pankaj

rakshit_doshi
Active Contributor
0 Kudos

Dear Pankaj,

thanks for your response.

Is the new version released??

Thanks,

Rakshit Doshi

pankaj_bisht
Contributor
0 Kudos

Hi Rakshit,

The new version should be available tomorrow.

I will provide more details tomorrow on how to get the new version.

Best Regards

Pankaj

rakshit_doshi
Active Contributor
0 Kudos

Dear Pankaj,

Thanks for your update.

I will await your reply then on how to upgrade the system.

Thanks,

Rakshit Doshi

pankaj_bisht
Contributor
0 Kudos

Hi Rakshit,

The new version is available.

The details in the link below.

http://scn.sap.com/community/mobile/blog/2015/01/30/whats-there-in-sap-fiori-for-sap-erp-hcm-10

Best Regards

Pankaj

rakshit_doshi
Active Contributor
0 Kudos

Dear Pankaj,

I installed the new patch but it didnt show any attachment option though there was a method present for it.

Do you mean we need to extend the UI for it?

Thanks,

Rakshit Doshi

pankaj_bisht
Contributor
0 Kudos

Hi Rakshit,

You do not need to extend for attachment.

What EhP do you have?

Its only available with GBX01HR add on component?

Does the level type has attachment option in the ECC system?

best Regards

Pankaj

rakshit_doshi
Active Contributor
0 Kudos

Dear Pankaj,

We are running EHP7 for ECC 6.0.

We even install the GBX01HR component and the GBX01HR5 component but i dnt see any thing on the UI for Attachments.

Is it possible for you to share the screenshot of the UI screen. The only change i saw in the UI was there was an Approvers field coming but no attachment screen.

Thanks,

Rakshit Doshi

rakshit_doshi
Active Contributor
0 Kudos

Dear Pankaj,

I didnt get you on this part

Does the level type has attachment option in the ECC system.

How can we check that?

Thanks,

Rakshit doshi

pankaj_bisht
Contributor
0 Kudos

Hi Rakshit,

Apologies for the typo. Does the Leave Type has attachment option in the ECC system?

best Regards

Pankaj

rakshit_doshi
Active Contributor
0 Kudos

Dear Pankaj,

Yes its allowed.

Anyways should it matter atleast for the UI it has to remain the same i suppose.

Can you pleaase advice on that?

thanks,

Rakshit Doshi

pankaj_bisht
Contributor
0 Kudos

It matters. If the Leave Type does not support attachments or attachments is not enabled the UI will not show the attachments.

Best Regards

Pankaj

rakshit_doshi
Active Contributor
0 Kudos

Dear Pankaj,

It worked.

Thanks,

We had to maintain it in backend.

Regards,

Rakshit Doshi

rakshit_doshi
Active Contributor
0 Kudos

Dear Pankaj,

Alongwith the new patch we saw that there was also an approval leave request v2 as well.

But we dont have the option of viewing attachments??

CAn you kindly advice on this.

Thanks,

Rakshit Doshi

pankaj_bisht
Contributor
0 Kudos

Hi Rakshit,

We have option to view attachments in the V2 app.

It will come as an Icon Tab Header in the details section.

Best Regards

Pankaj

rakshit_doshi
Active Contributor
0 Kudos

Dear Pankaj,

We are not able to see anything as attachment neither in history of my leave request or in the approve leave request of manager

Please see the screenshot

On the Approve Leave Request there is no attachment icon

Is anything to be done on the backend for this??

Thanks,

Rakshit Doshi

Former Member
0 Kudos

Hi Rakshit,

Any help with these errors?

I am not able to view attachments in approve leave request or in history of leave requests.

We have installed version 2 apps for this. Isn't there any provision to view attcahments?

Kindly help.

rakshit_doshi
Active Contributor
0 Kudos

Hi Resha,

Try to apply the below notes

2149581

2148358

2143006

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

former_member198774
Active Participant
0 Kudos

This message was moderated.

pankaj_bisht
Contributor
0 Kudos

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

Pankaj

Former Member
0 Kudos

Hello,

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.

Thanks,

Siva Krishna