Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
cancel
Showing results for 
Search instead for 
Did you mean: 
emma111
Explorer

Introduction


This workflow configuration blog is the next section for Flexible Workflow in SAP S/4HANA Sales Price | SAP Blogs. Now, Image the prices maintenance of condition type ZPR0 in sales organization 1010 must go through two-level approvals. To enable this process, we will introduce how to configure from below 4 parts:

  1. Manage Sales Price Workflows

  2. Manage Teams and Responsibilities

  3. My Inbox Notification

  4. Maintain Email Template


Manage Sales Price Workflows


With the Manage Sale Price Workflow app (role SAP_BR_BPC_EXPERT), you can define the preconditions under which a price must be approved. To make prices maintenance of condition type ZPR0 in sales organization 1010 go through two-levels approvals, process as follows:


  1. Open the Manage Sales Price Workflows app.




  2. Create a workflow, give it a name (e.g., Workflow for Blog), and set its properties.




  3. Define the start conditions: Condition type is ZPR0, and sales organization is 1010.



  4. Click Create button in steps section for creating step one, name the step (e.g., Approval - Level 1), select the role Sales Price Approver - level 1 as the recipients. Note. As for the recipients, you also could select user as recipients and only the selected user can receive the approval request. Prerequisite of the recipients, you have to create them from the ‘Manage Workforce’ app.

  5. Create step two, name the step (e.g., Approval - Level 2), select the role Sales Price Approver - level 2 as the recipients.

  6. Save and active the workflow.



Manage Teams and Responsibilities


With the Manage Teams and Responsibilities app (role SAP_BR_BUSINESS_PROCESS_SPEC), you can use responsibility definitions and member functions to determine members that are responsible for workflows. To create two levels approvers, proceed as follows:

  1. Open the Manage Teams and Responsibilities app.

  2. Click Create for creating a new team and set the name for new team (e.g., Team for Blog).

  3. Select Enable for Status.

  4. Select type SLSPRCMGM1 - Sales Price Management.

  5. Input Condition type ZPR0 in Responsibility Definitions. Hints, the condition type in team same as the condition type set in workflow conditions.

  6. Add two team members by selecting existing users. For example, Business partner: Jon, Function: SPRCAPRL1 (sales price approver - level 1); Business partner: Richard, Function: SPRCAPRL2 (sales price approver - level 2).


My Inbox


When approval workflows are set up correctly, if user maintains the price for condition type ZPR0 and sales organization 1010 in mange prices - sales app, thus triggers workflow and the designated approvers are notified about pending approval requests and receive the requests in the My Inbox app (role SAP_BR_RPICING_SPECIALIST). Below I put one my inbox figure as example.



Maintain Email Template


In case approver and requester involved in workflow want to be notified through automated emails, we can use the maintain email template app (role SAP_BR_ADMINISTRATOR) to achieve this purpose.

For example, based on before workflow configuration, Luara as a requester tries to change a condition record's price which meets the workflow conditions, and she want to receive the email notification when this approval request is been approved or rejected by Richard approver, the process need to do as follows:

  1. In the Import Employees app, the administrator imports Laura's employment information, including her email address.

  2. In the Maintain Email Templates app, the administrator copies the predelivery email templates to custom templates and specifies their mandatory IDs as follows:







      • Predelivered template: SD_PRICE_RELEASE_EMAIL_TMPL, custom template: 01800208 _COMPLETE_POSITIVE




      • Predelivered template: SD_PRICE_REJECT_EMAIL_TMPL, custom template: 01800208_COMPLETE_NEGATIVE







    As a result, when Luara submits a price that meets the workflow conditions, and if Richard as the level 2 approver approves the approval request, Lura will receive an approved email notification. If Richard rejects the approval request, Luara will receive a rejected email notification.






    6 Comments
    PhilipChen
    Product and Topic Expert
    Product and Topic Expert
    0 Kudos
    Is this available only for S/4HANA Cloud or also valid for OP? Thanks.
    emma111
    Explorer
    0 Kudos

    It's also available for OP2022. 

    ankurbabu
    Explorer
    0 Kudos
    Hi emma111

    Well written blog, good work.

    We would like to extend this to also receive Notifications in Fiori Launchpad. Are the notifications also working with this or do we need to do something additional? We also received the item in My Inbox but no Notification for this scenario. For other workflows, notifications are working as expected in our system.
    emma111
    Explorer
    0 Kudos
    Is OP system? Please use transaction SJOBREPO to check whether Job SAP_WORKFLOW_PUSH_NOTIFICATION is scheduled in your system?  if not, you could run the report RSWF_PUSH_NOTIFICATION_EXECUTE to get the job scheduled, more information you could find in SAP Fiori for SAP S/4HANA – Notification Center – Part 2 – Providing Notifications | SAP Blogs
    ankurbabu
    Explorer
    0 Kudos
    Yes, OP system.

    The above job is already scheduled and working fine. As I mentioned, the notifications for other scenarios like Sales Quotations are already working, only issue we are facing with Sales Pricing. Did you do any additional settings for Notifications or did it already started working with the above configuration?

    Best regards,

    Ankur
    emma111
    Explorer
    0 Kudos
    Yes, with above configurations the notification should work, and you don't need to do additional setting.

    Additional information: You could use transaction SWF_PUSH_NOTIF1 to check whether our workflow scenario WS01800208 is active or not, if not active please active it. Also, you can use transaction SWI1(input WS01800208 into top-level task parameter) to check whether the push notification sent and who is the correct approver.

     

    Best Regards,

    Emma