Skip to Content
Author's profile photo Deepak Singhal

How to Create Custom Approval Process and Configure it in Cloud Solution

This document contains the information regarding approval process in detailed manner step by step.

Thanks to my colleagues  Atul Malhotra ,Vaibhav Kwatra , Kartik Saini , Jayant Saini as they have helped and contributed in preparation of this document.

Basically there are 3 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


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.

        /wp-content/uploads/2016/05/sc2_955851.png

  • 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.

/wp-content/uploads/2016/05/sc3_958253.png

  • 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

/wp-content/uploads/2016/05/4_958254.png


  • 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

/wp-content/uploads/2016/05/sc5_955875.png


  • Click ‘OK‘ on Parameter window then Approval task will be shown as in below screenshot :


/wp-content/uploads/2016/05/7_958255.png

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


/wp-content/uploads/2016/05/11_1_958256.png

 

  • 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:


/wp-content/uploads/2016/05/sc12_955926.png


  • 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 :

Task Type Description BO element
Approval Manager Approval Root.Manager
Notification Requestor Notification Root.Requestor
Approval Account Manager Approval Root.AccountManager


  • Task Assignment in Approval Wizard will look like in below screenshot  : 


/wp-content/uploads/2016/05/13_958257.png

  • 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


/wp-content/uploads/2016/05/sc14_955968.png


  • 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 :


/wp-content/uploads/2016/05/15_958258.png



  • 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:


/wp-content/uploads/2016/05/16_958265.png

  • 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:

/wp-content/uploads/2016/05/17_958266.png

  • 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 :


/wp-content/uploads/2016/05/18_958267.png

  • Click ‘Ok‘, Save and Activate WCView UI.



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:

/wp-content/uploads/2016/05/sc19_956992.png

  • 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 :

/wp-content/uploads/2016/05/sc20_956993.png

  • 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 as shown in below screenshots:


/wp-content/uploads/2016/05/sc21_956996.png
/wp-content/uploads/2016/05/sc24_956997.png

  • Now Add Row under Process Steps and give Step Name – Account Manager Approval and select the same under Work Distribution , perform same activity as for Manager Approval Step.
  • Give condition for Account Manager price >= 50000 INR as shown in below screenshot:

           /wp-content/uploads/2016/05/sc23_956998.png

  • 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 below screenshot :

         /wp-content/uploads/2016/05/sc25_957028.png

  • Once From Date starts Status will be changed to ‘Active‘ of copied process.
  • Click ‘Check‘ then Save and Close.
  • Now Approval Process Configuration is complete , for testing assign the Work Center to your solution.
  • Open ApprovalWork in Cloud Solution and Click ‘New‘ button as show in below screenshot :

/wp-content/uploads/2016/05/sc26_957033.png

  • Fill the appropriate details Click SubmitForApproval_APP1 as shown in below screenshot :

/wp-content/uploads/2016/05/sc27_959612.png

  • Approval status is changed to ‘In Approval‘ then Click ‘Save‘ as shown in below screenshot:

/wp-content/uploads/2016/05/28_959613.png

  • Click over notification we move to new screen there click on ‘Approve_App1‘ button as shown in below screenshot :

/wp-content/uploads/2016/05/29_958273.png

  • Close this screen go back OWL screen and Click Edit Object with request ID 1000 , there status will be changed to ‘Approved‘ as shown in below screenshot

   /wp-content/uploads/2016/05/30_959614.png

Assigned Tags

      19 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Abhishek Raj
      Abhishek Raj

      Excellent Document Deepak Singhal

      Author's profile photo Former Member
      Former Member

      Nice Document Deepak Singhal

      Author's profile photo Former Member
      Former Member

      Very nice document Deepak Singhal

      Author's profile photo Former Member
      Former Member

      great work 🙂

      Author's profile photo Rohit Sharma
      Rohit Sharma

      Good document

      Author's profile photo Former Member
      Former Member

      Hi Deepak,

      Nice Document. I am trying to replicate the same. All was fine till i completed steps 1 and 2.

      I am trying to find the BO in Approval Process under user management. But no values returned. Please let me know if am missing something.

      Thank you.

      Author's profile photo Deepak Singhal
      Deepak Singhal
      Blog Post Author

      Hi Indra,

      Just check u have done everything mentioned in step 1 and 2 .. 🙂

      Sometimes it takes time to appear there, just deploy business configuration again in studio and log off Cloud solution then log in again after sometime.. it must appear.

      Thanks

      Deepak

      Author's profile photo Sam Hepworth
      Sam Hepworth

      Hi Deepak,

      Thanks for this very useful post. One question I have is if the screens have already been generated (OWL and TI) prior to the approval process being created, then is it possible to generate the specific approval process screens? If I try and create the screens as above, then it tries to overwrite the existing screens and I already have 2 OWL's assigned the the work center so need another one for the approval tasks.

      Thanks,

      Sam

      Author's profile photo Deepak Singhal
      Deepak Singhal
      Blog Post Author

      Hi Sam,

      Sorry for the late reply, I think there will be no issue in creating approval process after screen generation. I am not able to understand last part of your problem ..could you please elaborate it?

      Thanks,
      Deepak

      Author's profile photo Rakesh MOURYA
      Rakesh MOURYA

      Hi Deepak,

      Thank you for nice documentation.

      We use SAP ByDesign and would like to know about below unique requirement.

      We want to control product/service master data create & change  and supplier master data create and change via Approval ...

      I think SAP byDesign do not have any out of box approval for master data create and change .

      Is it possible to create custom approval process on Product /Service and Supplier.... unless Approved Product/Service and Supplier is not available for use in Business Transaction and unless Change approved.. Changes are not reflected in Master Data .

      Please confirm this requirement can be meet using Custom Approval process implementation.

      Regards,
      Rakesh Mourya.
       

      Author's profile photo Deepak Singhal
      Deepak Singhal
      Blog Post Author

      Hi Rakesh,

      Sorry for the late response,
      As far as I know custom approval process is created corresponding to a custom business object.

      I haven't worked on SAP byDesign but in SAP cloud studio to create approval for product/Service and Supplier,custom BO need to be defined first. I don't know here Product/Service and Supplier are custom or standard objects....as we cannot create Custom approval process for standard BO.

      Regards,
      Deepak

      Author's profile photo Daniel Weinberg
      Daniel Weinberg

      Hi Deepak,

       

      I am struggling with the TaskListViews. They will simply not show up in the UI also my approval task is not shown in the WoCView 'Approvals'. But I also verfied that it is actually generated. Any idea what I could be doing wrong?

      Regards,

      Daniel

      Author's profile photo Senz Evo
      Senz Evo

      Hi Deepak,

      Thanks for the Nice Document,

       Can you let me know why can't I see the notification link to approve and what could be the reason for the below error?

       

       

      Thanks & Regards,

      Senz

      Author's profile photo Nandyappa Naveen Kumar
      Nandyappa Naveen Kumar

      Hi Senz,

      Do you able to resolve the issue?

      As per I know approval process action cannot be used as standard BO action, If you do so above error will be popup which is kind restriction for custom approval process in earlier days. I am not quite sure about overcome unfortunately

      Regards

      Naveen Kumar N

      Author's profile photo Krishna Kumar
      Krishna Kumar

      Hi Senz,

      Facing the same two issues regarding notifications & approval. Do let me know if you were able to solve it!

      Thanks,

      Krishna

      Author's profile photo Srivas S
      Srivas S

      Is there a way to rectify the message sent for approval, after everything has been implemented?

       

      Author's profile photo Goutham Telukuntla
      Goutham Telukuntla

      Excellent Document !!

      Author's profile photo Roberto Jimenez Torres
      Roberto Jimenez Torres

      Hi,

      I have a question is this approval workflow possible to use with the standard BO ServiceRequest(Tickets)?I mean that if i can approve the Tickets using this custom approval workflow?

       

      Thanks.

      Regards.

      Author's profile photo Ahmed Elgammal
      Ahmed Elgammal

      Hi, Roberto,

      did you try to create custom approval workflow with standard screen ?

       

      Regards.