Approval Workflow for Service Quotation (2024)

One of the key features of workflow is to enable an organization to automate and streamline their processes, however, sometimes it’s too rigid and do not meet specific business needs. In this blog, we will explore how to create a flexible workflow for Service Quotation that can adapt to changing business requirements.

The flexible workflow is a general function that allows you to define condition-based workflows for approval processes. The functionality is available with CE2302. The flexible workflow for a Service Quotation allows you to define Single Stage Approval Processes for Service Quotation according to your requirements. Approvers can then approve or reject their work items in the app My Inbox. The functionality supported by the approval process includes:


  1. Sending quote for Internal Approval before it's released to customer.

  2. Approval Withdrawal.

  3. Sending of quote for Internal Approval based on preconfigured condition e.g., based on service margin below or above certain percentage value.

  4. Email Notification

  5. Search and Filter the quotation in the Manage Service Quotation Application based on Approval Statuses.

If you are setting up the approval workflow for the first time, there are some prerequisites. We will delve into the details of Prerequisite which includes configuring the agent, custom condition, email template and some initial setup.

















Workflow Scenario IDWS04300018
Status ProfileSERVQTWF
Responsibility RuleSRV_QTAN_AGENT

Before we setup the workflow for the first time, there are some steps that may be relevant.


  1. Activate the workflow ‘WS04300018’ ( tcode SWF_PROCESS_ADMIN ).Approval Workflow for Service Quotation (1)

  2. Maintain Status Profile ‘SERVQTWF’ to One of the Service Quotation Transaction Type.Approval Workflow for Service Quotation (2)

  3. Ensure Edit runtime environment is green(tcode: SWU3).


Approval Workflow for Service Quotation (3)

Once the above steps are completed, the status drop down will display the additional Approval Workflow statuses.













Sent for Approval
Approval Released
Approval Rejected

Approval Workflow for Service Quotation (4)


Approval Workflow Status

Also, the button 'Send for Approval' is enabled if the status of quotation is ‘Open’, ‘Under Review’ and the new assignment block ‘Approval Details’ is visible.

Approval Workflow for Service Quotation (5)


Approval Details Assignment Block and Send for Approval Button


With the Manage Responsibility Rules app, customers can create custom/copy standard responsibility rule delivered by SAP to determine agents that are responsible for workflows and business scenarios and then customize it with business logic to suit business process requirements.



  • Using the Responsibility Rule BAdI


    Customers can implement business logic and associate it with a custom responsibility rule. This association is achieved by keeping the custom responsibility rule ID same as the BAdI filter value.



  1. Log on to SAP Fiori launchpad as an administrator (SAP_BR_ADMINISTRATOR role). Click on tile Manage Responsibility rules under group Extensibility for Responsibility Management. You will see a list of standard rules delivered by SAP and a list custom rule created by you under two separate tabs.
    Approval Workflow for Service Quotation (6)

  2. Go to Custom Tab and Click on Create.

  3. Enter a rule ID and description (Prefix is populated automatically: For Cloud YY1_ Prefix is populated). BAdi filter gets populated automatically based on the ID you have assigned.
    Approval Workflow for Service Quotation (7)

  4. Click on the create button for Parameters. This step is optional, for our scenario we keep it blank however if you choose to add the rule parameter then Enter a parameter name, description, type, CDS view, and field. If the parameter type is Element, you have to enter the CDS view and field. If the parameter type is Table or Structure select a CDS view. You can use only whitelisted CDS views.

  5. Save the Rule.




  • With the Manage Responsibility Contexts application.





  • You or your customers can see the list of standard responsibility contexts delivered by SAP application teams for agent determination.

  • Your customers can also extend a standard responsibility context by adding your custom agent rule to determine agents that are responsible for your business process tasks, objects, and situation handling.

  • Your customers can also create custom responsibility contexts and map standard / custom team category and custom agent rules that are responsible for their business process tasks, objects and situation handling.



  1. Log on to SAP Fiori launchpad as an administrator (SAP_BR_ADMINISTRATORrole). Open app "Manage Responsibility Contexts".
    Approval Workflow for Service Quotation (8)

  2. You will see a list of standard contexts delivered by SAP and extensions created by you under separate tabs. Context type SITU is for Situations and SWF is for Workflow.Approval Workflow for Service Quotation (9)

  3. Select a standard responsibility context id ‘WS04300018’ and chooseExtend.Please note that Extend button is only available if it is an extensibility dev system/clientTheExtendbutton is notavailableif a standard responsibility context has already been extended ie a standard context can be extended only once.If you want to make any change to an existing context extension, you can edit the context extension.

    You navigate to the context details page that might have an assigned team category and standard agent rules.


    Approval Workflow for Service Quotation (10)

  4. From the Agent Rule tab, choose Create.
    You navigate to the agent rule details page where you can assign a custom responsibility rule to the agent rule.Approval Workflow for Service Quotation (11)

  5. Select the value help for ‘Data source mapping’,Map the correct CDS field/value from the value help.Approval Workflow for Service Quotation (12)

  6. Choose Apply and Save, the Agent rule is added and Responsibility Context Extension is Saved Successfully.




  • Custom fields and logic app



You can refer the blog, Steps are almost similar with few variation specific to service quotation scenario.

In this example we are trying to determine the Agent Responsible for the Processing the Approval workflow related to Service Quotation that is assigned to Sales Org ‘1710’.

Go to App Custom Logic.

Go to Top right corner of this APP and click on create and choose Business Context as ‘Service Header’.


  1. New pre conditions can be defined using custom BADI SWF_WORKFLOW_CONDITION_DEF.Approval Workflow for Service Quotation (13)Assign the scenario ID : ‘WS04300018Approval Workflow for Service Quotation (14)Provide the implementation description,implementation id gets populated automatically based on the description you have assigned.Approval Workflow for Service Quotation (15)Click on Review and Create.Open the code editor and write the logic to define the new precondition, Here we are defining the condition Sales Org with parameter value equals '1710'
    * condition id - value to be changed
    data : ls_condition like line of ct_condition.
    data : ls_parameter like line of ct_parameter.
    ls_condition-id = 1.
    ls_condition-subject = 'Sales Org'.
    ls_condition-type = if_swf_flex_ifs_condition_def=>cs_condtype-start_step.
    append ls_condition to ct_condition.

    ls_parameter-id = 1.
    ls_parameter-name = '1710'.
    ls_parameter-xsd_type = if_swf_flex_ifs_condition_def=>cs_xstype-string.
    ls_parameter-mandatory = abap_false.
    append ls_parameter to ct_parameter.


    Approval Workflow for Service Quotation (16)

  2. Defined step condition that needs to be evaluated using BADI SWF_WORKFLOW_CONDITION_EVAL Repeat same steps as above to create the BADI implementation, but this time in BADI description select “Value evaluation of addition conditions for scenarios”.Approval Workflow for Service Quotation (17)In this badi implementation we will read the value of the condition defined which is Sales Org = 1710 and then check if the Service Quotation Sales Org ID matches with Predefined Condition Sales Org ID, if true then pass CV_IS_TRUE = ‘X’ else false.CV_IS_TRUE is parameter to activate the workflow.
    DATA:
    lv_org TYPE VKORG.

    SELECT SINGLE * INTO @DATA(lS_service)
    FROM I_ServiceDocumentEnhcd
    WHERE ServiceDocument = @is_sap_object_node_type-sont_key_part_1.
    IF sy-subrc <> 0.
    RAISE EXCEPTION TYPE cx_ble_runtime_error
    EXPORTING
    previous = NEW cx_swf_flex_lra( textid = cx_swf_flex_lra=>object_instance_not_found ).
    ENDIF.

    READ TABLE it_parameter_value INTO DATA(ls_param_value) INDEX 1.
    IF sy-subrc = 0.
    lv_org = ls_param_value-value.
    ENDIF.

    IF lS_service-SALESORGANIZATION = ls_param_value-value.
    cv_is_true = abap_true.
    ELSE.
    cv_is_true = abap_false.
    ENDIF.


    Approval Workflow for Service Quotation (18)


    Now with all the steps above we will be able to activate the workflow for Service Quotation that is having Sales Org = 1710 assigned.

    As a next step we would like to determine the agent responsible for processing the Service Quotation.


  3. BADI: RSM_BADI_RESPONSIBILITY_RULEApproval Workflow for Service Quotation (19)Assign the STATIC_RULE_FILTER= YY1_AGENT_DET_QTAN(The filter rule was created in step above).In the code editor we can assign the agent responsible for processing the workflow, Sample code can be refered and modified as per the business requirement.Approval Workflow for Service Quotation (20)


You want to send an e-mail notification to the requester to let him know whether his request was approved or rejected or send an e-mail notification to the processors of a work item to inform them about a coming deadline violation.
























Use CaseTemplateDescription
Workflow EndCRMS4_QTAN_APPR_EMAIL_TMPLAt the end of the workflow the workflow initiator shall be informed about the Approval of the approval.
Workflow EndCRMS4_QTAN_RJCT_EMAIL_TMPLAt the end of the workflow the initiator shall be informed about the Rejection of the approval.
Step DeadlineCRMS4_QTAN_DLINE_EMAIL_TMPLWhen a deadline was reached the step is marked as Overdue.

Copy the Template in App: Maintain Email Templates.

Approval Workflow for Service Quotation (21)

By default when the system is set up for the first time, you only have ‘Predelivered workflow Content’ . The Predelivered content is triggered in a scenario when none of the process definitions the start conditions apply for example the scenario that is setup here is to trigger the workflow when the service quotation Sales org is '1710', but if the service quotation does not belong to Sales org '1710' then there is no process definition that start the condition and the default predelivered workflow is triggered which will initiate auto approval.

Now we will create the custom process definition.

Go to App “Manage workflow for Service Quotation” .

The App include the following key features.


  • View a list of available approval workflows

  • Display approval workflow details

  • Edit workflow details

    • Name

    • Start/End dates

    • Validity dates



  • Define order in which workflow start conditions will be evaluated

  • Activate and deactivate workflows

  • Make a copy of an existing approval workflow

  • Delete a draft of an existing workflow

  • Set start conditions for workflows

Click on Create

Provide some meaningful description and start condition, the only Standard start condition delivered is ‘Service Quotation Type’, User can configure additional Custom Condition like for example ‘Sales Org’ or any use any other custom fields. Please check my next blog detailing the creation of custom condition for approval workflow.

So if the start condition is met the workflow is triggered.

Approval Workflow for Service Quotation (22)

In the next step , we define the steps, here we provide some step name and choose the step type ‘Release of Service Quotation’, The other option to select is ‘Automatic Release of Service Quotation’, this can be selected for Auto Approval Scenario but since we would like to determine the agent that was configured earlier in the steps above, we will go with the option Step type as ‘Release of Service Quotation’ , the Assignment By can Role or User based . If you choose User, the agent can be picked from a F4 help for Role Based the agent is determined based on BADI.

There are several options available that can be explored further.

Next step is to define the deadline, this is to define the action when certain threshold is crossed, it could be to mark step as overdue in MyInbox App or to notify the recipient(workflow Initiator or the Agent) via an email.

Approval Workflow for Service Quotation (23)

Exception handling is like a deadline, but certain actions are triggered which could be processed further in a workflow. With this release no special handling is carried out for each of these exceptions, so user can choose the option to cancel workflow.

Approval Workflow for Service Quotation (24)

The final step is the email notification and we have chosen the 'Initiator of the workflow' to be notified via an email when the workflow is approved or rejected.

Approval Workflow for Service Quotation (25)

It’s important to understand who is the 'Workflow Initiator', well in this parlance the initiator is the person who clicks on send for approval button.

And the final step is to activate the newly created process definition.

Approval Workflow for Service Quotation (26)

It’s a time to test our newly configured workflow, User navigate to app ‘Manage workflow for Service Quotation’, Select one of the quotation in status Open or Under Review and then click on button 'Send for Approval'. This will send the workflow to the agent that is configured above.

Agent can check the triggered workflow in app My Inbox and then can take necessary action like approve, reject. MyInbox app comes up with lots of features like attachment, comments,open task that help agent in taking decisive action.(The comments added in the notes section of service quoation is visible to Agent in MyInbox app).

Approval Workflow for Service Quotation (27)

Voila, you have configured the approval workflow for service quotation.Though the blog has not covered the aspect of the authorization, gateway setting which is beyond the scope of this blog but if you are stuck or facing some technical challenges, please drop your queries/comments. I will try my best to provide the answers.

Stay tuned for my next blog post where I will explain the steps to create custom condition for the approval workflow scenario.

help.sap.com

Approval Workflow for Service Quotation (2024)

FAQs

Approval Workflow for Service Quotation? ›

An approval workflow routes a document or other item to one or more people for approval or rejection. The approval steps in the workflow establish standard automation that streamlines communication and reduces the backlog on needed approvals.

What is the approval process workflow? ›

An approval workflow routes a document or other item to one or more people for approval or rejection. The approval steps in the workflow establish standard automation that streamlines communication and reduces the backlog on needed approvals.

What is approval workflow in service now? ›

In workflow editor, Approval is one of the core activities which one can drag and drop to configure the approval process. This activity creates an approval for each member of the group specified in the workflow. In Approval Group Activity, one can define groups for which the approval gets triggered.

What is quotation approval? ›

A quote must be approved by all the required approvers defined in the approval plan before it can be presented to a customer. An approver can also assign a delegate user, who can approve or reject quotes for a specified period of time. Sometimes a quote may be placed on hold for various reasons.

What are the steps for approval? ›

Here are the steps you can take to create an approval process:
  • Define the work task. ...
  • Set approvers, permissions and due dates. ...
  • Assign the work task. ...
  • First approver receives work. ...
  • First approver approves or rejects work. ...
  • Submit to final approver. ...
  • Publish or accept work.
Jun 24, 2022

What are the three key components of an approval process? ›

Key Components of an Approval Process
  • Approval Steps. Approval steps establish the prerequisites that must be fulfilled for a record to be submitted for approval, as well as the individuals or teams in charge of reviewing and approving the record.
  • Approval Actions. ...
  • Approval Process Settings.
Jan 9, 2024

What elements are required for a workflow approval process? ›

Elements of a typical approval workflow process
  • Task submission portal. Approval processes usually start with submitting an invoice, document, or purchase order. ...
  • Defined approvers. ...
  • Established permission levels. ...
  • Set timelines. ...
  • Automated notifications. ...
  • Activity log.
Jul 25, 2023

What is the approval action in workflow? ›

To create an approval workflow, add the Approvals - Start and wait for an approval action to any flow. After you add this action, your flow can manage the approval of documents or processes. For example, you can create document approval flows that approve invoices, work orders, or sales quotations.

What are workflow stages in ServiceNow? ›

Table of contents
  • Install Flow Assist.
  • Flow generation. Turn on the Flow generation skill.
  • Flow recommendations. Turn on the Flow recommendations skill.

How do you create a sequential approval workflow? ›

To create a sequential approval, there must be two or more approvals for any contract workflow. So follow the last two steps and add another approval. We have created the 2nd approval, as shown below.

What is the process of request for quotation? ›

A request for quote (RFQ), also known as an invitation for bid (IFB), is a process in which a company solicits select suppliers and contractors to submit price quotes and bids for the chance to fulfill certain tasks or projects.

Is an RFP the same as a quote? ›

Generally, businesses use an RFQ when they already know the exact product or service they need, and all they are looking for is the price. An RFP may be used when a business isn't entirely sure what they need. They're requesting vendors to send in a proposal outlining how they would solve the given problem.

What is the approval process stage? ›

The approval process is the last stage in project management and consists of the following processes: Deliverables reach the final draft stage. Management, stakeholders, and/or clients perform a final review of creative collaterals. Deliverables are either approved or reintroduced into the production loop.

What is the difference between approval process and workflow in Salesforce? ›

Article type workflow doesn't support tasks. Approval processes automate the approval of articles. When implemented with Salesforce Knowledge, approval processes give you more control over the content of your articles and the process used to approve them.

What are the stages of workflow process? ›

The 8 stages of a workflow are:
  • Planning,
  • Input,
  • Routing,
  • Review,
  • Approval,
  • Action,
  • Reporting, and.
  • Archive.

Top Articles
Nestle Organizational Behavior Project Report
Introducing Project TinyMiniMicro Home Lab Revolution
Radikale Landküche am Landgut Schönwalde
Walgreens Pharmqcy
Phcs Medishare Provider Portal
What happened to Lori Petty? What is she doing today? Wiki
Otis Department Of Corrections
Dr Lisa Jones Dvm Married
Best Theia Builds (Talent | Skill Order | Pairing + Pets) In Call of Dragons - AllClash
Best Pawn Shops Near Me
3656 Curlew St
Mawal Gameroom Download
Tamilrockers Movies 2023 Download
Craiglist Kpr
Der Megatrend Urbanisierung
Noaa Ilx
Energy Healing Conference Utah
Is A Daytona Faster Than A Scat Pack
Kcwi Tv Schedule
Wiseloan Login
Best Boston Pizza Places
Il Speedtest Rcn Net
Roanoke Skipthegames Com
Select Truck Greensboro
Giantbodybuilder.com
Annapolis Md Craigslist
Kaliii - Area Codes Lyrics
Our 10 Best Selfcleaningcatlitterbox in the US - September 2024
Town South Swim Club
Vlocity Clm
Kltv Com Big Red Box
Kagtwt
Ark Unlock All Skins Command
THE 10 BEST Yoga Retreats in Konstanz for September 2024
Facebook Marketplace Marrero La
Acadis Portal Missouri
Mohave County Jobs Craigslist
Review: T-Mobile's Unlimited 4G voor Thuis | Consumentenbond
Linda Sublette Actress
How Many Dogs Can You Have in Idaho | GetJerry.com
Dispensaries Open On Christmas 2022
Ezpawn Online Payment
Miami Vice turns 40: A look back at the iconic series
Bekah Birdsall Measurements
Kb Home The Overlook At Medio Creek
Jamesbonchai
Gotrax Scooter Error Code E2
Premiumbukkake Tour
Vrca File Converter
Inside the Bestselling Medical Mystery 'Hidden Valley Road'
Invitation Quinceanera Espanol
Latest Posts
Article information

Author: Duncan Muller

Last Updated:

Views: 6190

Rating: 4.9 / 5 (59 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Duncan Muller

Birthday: 1997-01-13

Address: Apt. 505 914 Phillip Crossroad, O'Konborough, NV 62411

Phone: +8555305800947

Job: Construction Agent

Hobby: Shopping, Table tennis, Snowboarding, Rafting, Motor sports, Homebrewing, Taxidermy

Introduction: My name is Duncan Muller, I am a enchanting, good, gentle, modern, tasty, nice, elegant person who loves writing and wants to share my knowledge and understanding with you.