Skip to Content
0
Former Member
Jul 26, 2016 at 05:10 PM

How to generate X-CSRF-Token programmatically

549 Views

Hi Experts,

I am creating a custom OData service to validate the user name and password using function module SUSR_CHECK_LOGON_DATA. Please let me know if there is any function module or class/method to generate the x-csrf-token and pass the same as part of a exporting fields.

also please let me know if I use a function module or class/method to get the x-csrf-token and generate one x-scrf-token, then will the sap generated x-csrf token and the FM/class-method x-csrf-token will be same?

Thanks,

Madhu M V