cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Odata

04-02-2026 11:32 AM
ankitpurohitap Discoverer
588 views 2 comments
0 Likes
SAP Managed Tags
Labels
Technology Updates​
Subscribe

I have completed my OData API project with GET and POST methods for Student, Fee and Library management. The code is working in SAP Gateway Client but I need help with:

(1) I am facing CSRF token validation issue when testing POST request in Gateway Client.
(2) How can I make my API globally accessible so automation team consume API.

i'm using trail server.

0 Likes

Accepted Solutions (0)

Answers (2)

Answers (2)

sravan_aleshwaram
Active Participant
0 Likes

Hello @ankitpurohitap 


1. CSRF issue

First call GET with header:
x-csrf-token: fetch
Copy token from response
Use it in POST header:
x-csrf-token: <token>
Also pass cookies

2. Make API accessible

Activate service in /IWFND/MAINT_SERVICE
Use system URL:
https://<host>:<port>/sap/opu/odata/...

 


Thanks,
Sravan

TomaszWilk
Explorer
0 Likes

1. first you have to fetch token, x-csrf-token: fetch

2. normally you create technical user, register, activate service in transaction /IWFND/MAINT_SERVICE, if it is not there already