cancel
Showing results for 
Search instead for 
Did you mean: 

SAP GRC Request template

former_member213644
Participant
0 Kudos
353

Hi SAP Gurus,

I am trying to call one web service exposed by SAP for GRAC_USER_ACCESS_WS.

But  when i send the request I get following error in response

"Connector is not configured".

Can someone please provide me a valid request structure. So that i can test that from my end.

I am giving request and response xmls below. Please let me know what more needs to be passed in request

SOAP Request-

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style">

   <soapenv:Header/>

   <soapenv:Body>

      <urn:GracIdmUsrAccsReqServices>

         <!--Optional:-->

         <CustomFieldsVal>

            <!--Zero or more repetitions:-->

            <item>

               <Fieldname>test</Fieldname>

               <Value>test</Value>

            </item>

         </CustomFieldsVal>

         <!--Optional:-->

         <Language>en</Language>

         <!--Optional:-->

         <Parameter>

            <!--Zero or more repetitions:-->

            <item>

               <Parameter>test</Parameter>

               <ParameterValue>test</ParameterValue>

               <ParameterDesc>test</ParameterDesc>

            </item>

         </Parameter>

         <RequestHeaderData>

            <Reqtype>01</Reqtype>

            <Priority>test</Priority>

            <ReqDueDate>27.03.2015</ReqDueDate>

            <ReqInitSystem>test</ReqInitSystem>

            <Requestorid>test</Requestorid>

            <Email>test@test.com</Email>

            <RequestReason>test</RequestReason>

            <Funcarea>test</Funcarea>

            <Bproc>test</Bproc>

         </RequestHeaderData>

         <RequestedLineItem>

            <!--Zero or more repetitions:-->

            <item>

               <ItemName>test</ItemName>

               <Connector>test</Connector>

               <ProvItemType>test</ProvItemType>

               <ProvType>test</ProvType>

               <AssignmentType>test</AssignmentType>

               <ProvStatus>test</ProvStatus>

               <ValidFrom>test</ValidFrom>

               <ValidTo>test</ValidTo>

               <FfOwner>test</FfOwner>

               <Comments>test</Comments>

               <ProvAction>test</ProvAction>

               <RoleType>test</RoleType>

            </item>

         </RequestedLineItem>

         <!--Optional:-->

         <UserGroup>

            <!--Zero or more repetitions:-->

            <item>

               <UserGroup>test</UserGroup>

               <UserGroupDesc>test</UserGroupDesc>

            </item>

         </UserGroup>

         <UserInfo>

            <!--Zero or more repetitions:-->

            <item>

               <Userid>test</Userid>

               <Title>test</Title>

               <Fname>test</Fname>

               <Lname>test</Lname>

               <SncName>test</SncName>

               <UnsecSnc>test</UnsecSnc>

               <Accno>test</Accno>

               <UserGroup>test</UserGroup>

               <ValidFrom>test</ValidFrom>

               <ValidTo>test</ValidTo>

               <Empposition>test</Empposition>

               <Empjob>test</Empjob>

               <Personnelno>test</Personnelno>

               <Personnelarea>test</Personnelarea>

               <CommMethod>test</CommMethod>

               <Fax>test</Fax>

               <Email>test</Email>

               <Telnumber>test</Telnumber>

               <Department>test</Department>

               <Company>test</Company>

               <Location>test</Location>

               <Costcenter>test</Costcenter>

               <Printer>test</Printer>

               <Orgunit>test</Orgunit>

               <Emptype>test</Emptype>

               <Manager>test</Manager>

               <ManagerEmail>test</ManagerEmail>

               <ManagerFirstname>test</ManagerFirstname>

               <ManagerLastname>test</ManagerLastname>

               <StartMenu>test</StartMenu>

               <LogonLang>test</LogonLang>

               <DecNotation>test</DecNotation>

               <DateFormat>ddmmyyyy</DateFormat>

               <Alias>test</Alias>

               <UserType>test</UserType>

            </item>

         </UserInfo>

      </urn:GracIdmUsrAccsReqServices>

   </soapenv:Body>

</soapenv:Envelope>

SOAP Response

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">

   <soap-env:Header/>

   <soap-env:Body>

      <n0:GracIdmUsrAccsReqServicesResponse xmlns:n0="urn:sap-com:document:sap:soap:functions:mc-style">

         <MsgReturn>

            <MsgNo>4</MsgNo>

            <MsgType>ERROR</MsgType>

            <MsgStatement>Connector is not configured</MsgStatement>

         </MsgReturn>

         <RequestId/>

         <RequestNo/>

      </n0:GracIdmUsrAccsReqServicesResponse>

   </soap-env:Body>

</soap-env:Envelope>

Thanks

Riju Bhasker

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member197694
Active Contributor
0 Kudos

Hello,

This issue because of user access missing

If you are creating access request with user missing with GRAC_SYS auth object


Cross check with below information,might be usefull

Regards

Baithi

former_member213644
Participant
0 Kudos

Hi Srinivas,

This authorisation object is already provided to the user who is authenticating this service.

I have assigned "SAP_GRAC_ACCESS_APPROVER" role to the user. This role internally contains "GRAC_SYS" authorisation object.

Thanks

Riju Bhasker

former_member213644
Participant
0 Kudos

There is one more concern, as what are the valid values for following tags. I have given sample values, but i am not sure whether those are correct or not.

1) <Reqtype>01</Reqtype>

2) <Funcarea>test</Funcarea>

3) <Bproc>test</Bproc>

4) <ProvAction>test</ProvAction>

5) <RoleType>test</RoleType>

and

<Parameter>

            <!--Zero or more repetitions:-->

            <item>

               <Parameter>test</Parameter>

               <ParameterValue>test</ParameterValue>

               <ParameterDesc>test</ParameterDesc>

            </item>

</Parameter>

So please let me know what can be the correct values for all the above tags.

Thanks

Riju Bhasker