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

To report this post you need to login first.

11 Comments

You must be Logged on to comment or reply to a post.

  1. Indrakumar Jayachandran

    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.

    (0) 
    1. Deepak Singhal 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

      (0) 
  2. 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

    (0) 
    1. Deepak Singhal 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

      (0) 
  3. 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.
     

    (0) 
    1. Deepak Singhal 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

      (0) 

Leave a Reply