cancel
Showing results for 
Search instead for 
Did you mean: 

My Leave Request Issues

Former Member
0 Kudos


hello guys:

i am installing the fiori apps my leave request on gateway. everything seems ok, exception i got this error.

POST http://aunswdnwgv01.production.transfieldservices.com:8095/sap/opu/odata/GBHCM/LEAVEREQUEST;v=2/Leav...
403 (Forbidden)

i can send the request to Manager and view the Pending leave reqest.  any idea about this issue ?

thanks

tony

Tags edited by: Michael Appleby

Accepted Solutions (1)

Accepted Solutions (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Tony,

Please take a look SAP Fiori LL11 - Consultants should know about OData troubleshooting.

Probably you see CSRF token error in console tab of inspect element.

Regards, Masa

SAP Customer Experience Group - CEG

Former Member
0 Kudos

hello Masa:

thanks for your reply. i see this error in the Chrome Console log. But everything seems ok. because the leave request can be sent to the Manager. and When the Manager log in the Approve Leave request apps. he can see this leave request coming from the user.

so do i need care about this error ?

i have searched discussions and found

will this help me ?

Thanks

tony

Former Member
0 Kudos

hello Masa:

yes, you are right, 403 means the CSRF token validation failed, so this error need fix or not ?

thanks

tony

Former Member
0 Kudos

CSRF token error would need to be fixed.

Please check

http://scn.sap.com/community/mobile/blog/2013/11/19/sap-fiori-ll11-consultants-should-know-about-oda...

Also check this post

Former Member
0 Kudos

hello Ashish:

i have followed your blog and upgrade the sapui5 to 1.18.3.  also clear cache by click the 'system-wide' in SITSPMON

and also add the param for odata config like this

but i still got the post error like this. 

however, on the backend, when i run the 'PTARQ', i can see the leave request coming through.

so any steps i missed ?

thanks

tony

former_member182874
Active Contributor
0 Kudos

Hi Tony,

Please try post method from GW client and see if you get this error. Once you get this error, please check the error logs and then go to application log and expand all red color nodes. You should get some errors like :

2

3

4

Also when you create a leave from the backend using same dates, do you get any warning ? If yes, then may be  this warning is showing in Fiori as error. Because you can see the request going to approver and you dont have issue in approving also. My thinking is that, you are getting a warning message from backend as per your custom config

Regards,

Tejas

Former Member
0 Kudos

hello guys:

I finally find that it will try do the post first and if it fail it will then use fetch to get the csrf token. that's why it got this error. and can successfully send the leave request.

but i just can not understand why it try to post first, not fetch the csrf token ?

any one who have an idea ?

thanks

tony

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Tony,

Please check your http/https setting.

1896961 - HTTP/HTTPS Configuration for SAP NetWeaver Gateway

Regards, Masa

SAP Customer Experience Group - CEG

Former Member
0 Kudos

hi Masa:

i saw this note befoe.  currently, we are using http, so the "login/ticket_only_by_https" has already set to be 0.

thanks

tony

Answers (0)