Custom Approval Process In SAP C4C with Configuration

This document contains the information regarding Approval process And Custom Approval EC Configuration






Thanks to Ashutosh Mukherjee , Smit Suthar , Shlok Sharma  as they have helped and contributed in preparation of this document.

Basically there are 5 Steps which covers complete functionality of approval processes in SAP Cloud Studio :-

1. Create the Custom Approval Process in Cloud Studio
2. UI designer work and Screen generation
3. Configure and Test the Approval Process in Cloud Solution.
4. Action button creation and configuration.
 
5. Custom Approval EC Configuration If Approval created After Screen generation

Step 1: Create the Custom Approval Process

Go to SAP cloud studio and create a Business Object and enter elements as shown in below screenshot :

‘Save and Activate‘ BO.


Right click on BO and select Create Approval Process as shown above, Approval Wizard opens showing task types – Approval, Notification, Revision. Select Notification Check box and Click Next as shown in below Screenshot.


  • Here we need to define the tasks and texts for the Approvals or Rejections, Also we can add parameters to show element from Custom BO in the texts as shown in below screenshot
  • On Clicking Add Parameter a window opens, give the parameter name as “Request” and click on 3 dot button to bind it to the BO element as shown below




Do the same activity for Approval notification and Revision notification as show in below screenshot




 
Click on Next ,we move to next step of task assignment where we decide the responsible person for the different task types , here give the task type and bind it to the responsible person defined in BO as shown in below screenshot:




here we have two level of approvals “Manager” and “Account Manager” and “Requestor” will get the notifications so binding will be done as shown in below table 
 If  Charges Exceeds the Limit It will Required Revision Done by Account MANAGER

  • Click ‘Next‘ , in this step we select BO elements which will be used in Cloud Solution to specify Conditions (to be shown later in step 3) Select BO element as shown in below screenshot



  • Now Click ‘Next‘ and Review all the steps then Click on ‘Finish‘.
Activate the ‘Approval process’ and Right click the solution to Deploy Business Configuration , it may take some time to appear Approval Process in SAP Cloud Solution due to background processes.

Step 2 : UI designer and Screen generation

Right Click the BO and select ‘Create Screen’ and give a ‘Short ID’ as shown in below screenshot :



  • Click ‘Ok‘,all screens are generated now open ApprovalWork_WCView.WCVIEW.uiwocview in UI designer and goto Properties > RBAM Data > AssignedObject.
  • Click AssignedObject, a wizard opens to add Objects as shown in below screenshot:


  • Click Add Row and Select AssignedObjectType as TaskListView and bind ComponentId to ApprovalWork-Root-APP1-Approval ( go to [solutionname_Main > SRC]) as shown in below screenshot:




  • Perform same activity to bind another ComponentId – ApprovalWork-Root-APP1-notification.
  • Now add two more rows then select AssignedObjectType for both as Navigation Target and bind ComponentId to ApprovalWork-Root-APP1_NotificationUI and ApprovalWork-Root-APP1 as shown in below screenshot :


  • Click ‘Ok‘, Save and Activate WCView UI.
  • Note: Before "Save and Activate"  Approval Screen 
Property Tags - Desktop and Tablet

Step 3: Configuration and Testing Approval Process

  • Go to Approval Processes under Application and User Management tab in Cloud Solution.
  • Search for ApprovalWork and click Go , ‘Default process for ApprovalWork’ appears in Cloud Solution as shown in below screenshot:



  • Select Default Process and Click Copy , here give Process Step name – Manager Approval and select the same under Work Distribution.
  • Also specify the Conditions below as shown in screenshot :



  • For Condition , Click Add Group then select parameter (price or discount as specified during approval creation) and then give the Condition set price >= 5000 INR and discount >= 10% for Manager Approval 
  • Click ‘Ok‘ , two steps are added successfully Save and close the screen. Now go back to Default Approval Process for ApprovalWork and Click Edit Validity.


  • Set here Unlimited Validity of the Copied Approval Process as shown in screenshot :
Step 4: Action button creation and configuration.






 
  • Click ‘Ok‘, Save and Activate TI Screen.

Step 5: Custom Approval EC Configuration If Approval created After Screen generation. 

Create the below fields if not created then do steps as shown in Screenshot












Comments