cancel
Showing results for 
Search instead for 
Did you mean: 

Error starting fiori Approve Leave Request v2

Former Member
0 Kudos

Hi experts,

     we are facing an error where starting Approve leave request v2 fiori.

     Recently we have upgraded Gateway component UIHR001 to SP3 and backend component GBX01HR also to SP3.  After upgrade following error appears in all browsers when trying to open ALR fiori:

         

The problem is that when detail view try to get data the URL is not ok, var RequesterName name and surname is concatenated with comma: RequesterName='SURNAME1 SURNAME2, NAME'

This is the URL called in the following way:

/sap/opu/odata/sap/HCM_LEAVE_REQ_APPROVE_SRV/LeaveRequestSet(RequestId='0050568A44B81EE5A5EC5B8B1C0F9A84',RequesterName='SURNAME1 SURNAME2, NAME',RequesterNumber='00000033',StartDate=datetime'2015-12-01T00:00:00',EndDate=datetime'2015-12-01T00:00:00')?sap-client=200

So URL call is not correct.  This fiori is not enhanced, does anyone knows what is happening? Is there a note for this error?  We don´t have seen any for this in SP3.


Any help will be really appreciated.


Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

mig1
Participant
0 Kudos
0 Kudos

This note has solved my issue.

agentry_src
Active Contributor
0 Kudos

Please mark this Discussion with a Correct Answer (closes, but does not lock the Discussion) and Helpful Answer where appropriate. See http://scn.sap.com/community/support/blog/2013/04/03/how-to-close-a-discussion-and-why   Even if you discovered the solution without any outside contributions, it helps others to understand what the solution turned out to be. 

Do not use Assumed Answered as it confuses anyone looking for the specific answer.  If you dig into the Getting Started link (top right of each SCN page), you are only instructed to mark Helpful or Correct Answers to Discussion responses. 

Thanks, Mike (Moderator)

SAP Technology RIG

Former Member
0 Kudos

Solved in february, at least more than two months to solve this issue by SAP...

Answers (1)

Answers (1)

Former Member
0 Kudos

The code splits the parameters by comma, and the firstname and lastname are concatenated by comma! In order to have a working FLP I made an enhancement in the backend in the service implementation of LeaveRequest-getEntitySet replacing comma with ; (or whatever you like) for requestername. I couldn't find a SAP note for this, but it must be a bug.

Former Member
0 Kudos

Not SAP note exists for this issue in this SP-Level.  It is a frontend javascript code error.  Finally we had to modify standard code, our javascript expert added an encode function in order to codify special charachters to be able to use it in the URL.