cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Disable Authentication pop up and CSRF token for OData calls for internal applications calls

srinivastaduka
Explorer
0 Likes
816

Hi All,

Please see step by step to access the GET & POST methods from POST MAN without asking for any credentials.

1) Create a Odata service and follow regular steps to register the service 

srinivastaduka_0-1738606539891.png

 

2) redefine below methods:

srinivastaduka_1-1738606539884.png

 

srinivastaduka_2-1738606539968.png

 

srinivastaduka_3-1738606539934.png

 

 

2) Settings in SICF for the service:

srinivastaduka_4-1738606540208.png

 

create a user id with credentials, and user type must be 'Service'.

srinivastaduka_5-1738606539894.png

 

 

Maintain the user credentials in the service like below.

srinivastaduka_17-1738606727496.png

 

 

srinivastaduka_7-1738606540045.png

 

 

3) Call the GET method from Gateway client & POSTMAN.

 

2) POST method:
POST from Gateway

here we need to select '$batch' from 'ADD URI option' and change the entityset name in HTTP request payload and add the payload data like below and click on execute.

In my case i have considered only two fields ( Vbeln & Ernam ).

srinivastaduka_10-1738606540126.png

 

srinivastaduka_11-1738606540190.png

 

 

POST from POSTMAN:

pass X-Requested-With = X in header

srinivastaduka_12-1738606540444.png

 

pass payload in body:

srinivastaduka_13-1738606540275.png

 

click on send: see the results below

once click on, backend method 'crete_entity' gets triggered.

srinivastaduka_14-1738606540304.png

 

srinivastaduka_15-1738606540384.png

 

srinivastaduka_16-1738606540356.png

 

 

i have created a custom table with one field, in my case the table got updated with the sales order number.

Thank You,

Srini T

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
SAP Champion
SAP Champion
0 Likes

why?

this is the worst thing you can do

srinivastaduka
Explorer
0 Likes
Whats your problem?
junwu
SAP Champion
SAP Champion
0 Likes
the things you are doing is nonsense.