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

SAP Api Gateway - unauthorized... in PL language

JakubChojnacki
Newcomer
0 Kudos
213

Hello,

I'm having a problem generating a CR through the API Gateway.

Here are my steps in Postman:

  1. Login to ulr-api-gateway/login with the following body:

 

{
    "UserName": "UserName",
    "Password": "Password",
    "CompanyDB": "DB_NAME",
    "DBInstance": "DBInstance"
}
I received a SESSION token
2. Call to ulr-api-gateway/rs/v1/LoadCR?DocCode=XXX - executed successfully.
Result:
{
    "error": false,
    "resultSet": [
        {
            "parameterType": "StoredProcedureParameter",
            "values": [],
            "defaultValuesDescription": {},
.....
3. Call to ulr-api-gateway/rs/v1/ExportPDFData?DocCode=XXX.
I received a 200 status code, but the result body was:
"Nie masz uprawnień do uruchomienia tego raportu; skontaktuj się z administratorem, aby zaktualizować ustawienia w sekcji "Uprawnienia""
 
The user account I used to log into SAP has all necessary permissions
Administration => System Initialization => Authorizations => General Authorizations => Interface Api
and the "admin" permissions in account section
 
 

Accepted Solutions (0)

Answers (0)