
Step1: Create an IFLOW in SCPI and convert that ENDPOINT as API.
More details can get from sap-cloud-integration-step-towards-building-api-based-integrations
IFlow Created in SCPI
Step2: Create a Script in CPQ. Based on requirement we can create script in 2 ways
we can make this as a global script and can attach to an EVENT. when that particular event happens this code will execute.
We can create this script as an Action/Button and can call in any status or by any user.
For More details on these scripts. Refer SAP CPQ HELP DOCUMENT
CPQ Custom Action
Step3: Write Ironpython Code.
Ex: Below code calls the iflow and and send quote information
url ='https://<CPI>-iflmap.hcisb.int.sap.eu2.hana.ondemand.com/http/CPQTOICMCALLV1'
headers = { 'authorization': RestClient.GetBasicAuthenticationHeader('username', 'pwd') }
data = '{"QuoteID": "'+Quote.CompositeNumber+'"}'
Trace.Write(data)
RestClient.Post(url, data, headers)
Step4: Enable this action at required statuses with in CPQ.
Enable Action in CPQ Workflow Screen
Same action is appears in Quote Screen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
3 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |