Skip to Content
Technical Articles

SAP IBP – Query/Manage Business Users using SOAP service API using CPI-DS

In this blog post i would explain and list out the step by step process on how we can query Business users from SAP Integrated Business Planning system using CPI-DS

There are two types of SOAP services one for reading users and another for creating/updating/deleting.

  1. Creation : It can be used to integrate with another Identity management system to bring in all the users at one using this method.
  2. Reading :
    1. For reporting or using in another identity management system
    2. For getting the User names against the User IDs and updating back Master data tables in IBP with Additional attributes so that Change tracking can be done. How : In IBP master data tables, whenever we extract data we get information like last changed on and last changed by, last changed by is IBP user ID. with ibp user id we need to go and find each id and see who is the username behind the same. with this extract we can do a look up to user id and get user name and load back to ibp for users visibility for last changed info – user name. This is kind of automation as we can manually also extract from Business users tile in IBP fiori but manually the file needs to be formatted and needs to be done by someone and can have errors.

We need to start with creation of Communication process in SAP IBP below are the steps to be followed

  1. Create a Communication User: WEBSERVICESUSER in IBP , Password should be the same as for CPI-DS User – WEBSERVICESUSER.
  2. Create/Edit : Communication System for CPI-DS to have an inbound communication user WEBSERVICESUSER and save it.
  3. Create a new communication Arrangement for: SAP_COM_0093 and connect it with HCI_CPI System and WEBSERVICESUSER and save, WSDLs will be generated.
  4. Once the WSDL is created , this can be used further in other systems to get the required data. in below steps i have used utilizing this within CPI-DS system to create a CPI-DS job and output list of users in IBP
  5. Create CPI Webservices Data Store with Path to WSDL along with User Credentials as WEBSERVICESUSER and same password as in Step 1.
  6. Import the Web Service Function
  7. Create job to generate the Users File.:Note: This type of job is basically a consumption of web service and not a web service call, hence web service function here can’t be target and has to be consumed with in the job and output/target is a file of users from IBP.  Now CPI tool is designed in a way that it can have only Web services as target and not as source so in order to consume the web services as source, we need a dummy start of the job, so create a job whose source is file format data store and also target is file format data store. Create a dummy static file having one column and one record. Nothing from the file is used in the job, just a dummy start of job is done and web service function is called within and output sent to file using XML transformations.
  8. Create the job starting with file as source and in first step- transform 1, just take out the column in the file to the right.
  9. Import the xml transform as transform 2.Then select the web service function we imported in Step 6.
  10. Dont map anything from the source, do the below mappings on the Web service function
    1. BusinessPartnerRoleCodeInterval : Map ‘1’ in IntervalBoundaryTypeCode and map ‘BUP003’ in LowerBoundaryTypeCode
    2. UserIdInterval : Map ‘3’ in IntervalBoundaryTypeCode, map ‘A*’ in LowerBoundaryUserID and map ‘Z*’ in UpperBoundaryUserID
    3. In Query processing conditions map QueryHitsunlimtedindicator : ‘false’
    4. iteration rule should be on source transform.
  11. In Next step – Transform 3 : bring in the web service transform and again add the web service function. map the webservice function to web service function.
  12. In next step – Transform4 bring in xML transform and map the required fields out. Iteration rule will be as below
  13. and eventually in next step is target_query map those output columns to target file format.
  14. When we run the job a file will be created with list of users and columns we mapped per the needs.

 

Similar process can be followed for creation of users in SAP IBP. Below are the references:

 

SAP documentation(Read SOAP) :  https://api.sap.com/api/QUERYBUSINESSUSERIN/overview

SAP documentation(create SOAP) :  https://api.sap.com/api/MANAGEBUSINESSUSERIN/overview

 

Thanks,

Nikunj

Be the first to leave a comment
You must be Logged on to comment or reply to a post.