Show TOC

Process documentationCreate SAP Business Workflow for Opportunity from Lead Locate this document in the navigation structure

 

The information gathered in a lead is transferred to the sales area via the workflow Create Opportunity from Lead.

In the workflow, you decide whether the opportunity is generated manually or automatically.

If the lead-specific attributes Priority and Lead group fulfill specific criteria, the workflow automatically generates an opportunity. Otherwise, the workflow sends a work item to the sales employee responsible for creating the opportunity manually. After checking the data in the lead, the sales employee can either reject this lead or create an opportunity from it.

The workflow is automatically started when the lead is saved.

Prerequisites

  • If you want to start the workflow template, activate the type linkages for the start events AttributeChanged and SetErrorFree for the workflow WS10001011 in Customizing. The default setting is that they are deactivated. You must also maintain workflow task processors in Customizing for Customer Relationship Management (CRM), by choosing   Basic Functions   SAP Business Workflow   Perform Task-Specific Customizing  .

  • The workflow template uses the user statuses SAAC (accepted by sales) and SARE (rejected by sales) of the status profile CRMLEAD. If you have defined several user statuses, the data flow for task TS10008154 (set status) must be adapted accordingly.

  • When the opportunity is created, the workflow template uses the opportunity transaction type OPPT. If you have defined several transaction types for the opportunity, the data flow for task TS10008151 (create opportunity) must be adapted accordingly.

  • If the sales employee rejects the lead, the workflow resets the qualification level to value 02 (warm). If you have specified your own qualification levels in Customizing, you need to adapt the data flow for task TS10007918 (change qualification level) accordingly.

Process

The workflow Create Opportunity from Lead is started when a lead is saved with qualification level Hot and status Error-free.

The system uses the lead-specific attributes Priority and Lead group to check whether an opportunity can be created automatically, or a sales employee first needs to decide.

Note Note

The sales representative entered in the lead is first taken as the sales employee whose task it is to create the opportunity based on the information in the lead. This person can be determined using partner determination in CRM, depending on the prospect in the lead, and can, for example, be a manager of a sales area.

If no sales representative is entered, the workflow takes an organizational unit assigned in the workflow template, and sends the work item to all users assigned to the organizational unit.

End of the note.
  • If the sales employee decides that an opportunity can be created, the lead status is set to accepted by sales, and an opportunity is created in the background. If necessary, this is forwarded to the sales employee to check.

  • If the sales employee rejects the lead, the lead status is set to "rejected by sales", and the initiator is informed by mail.

The workflow is ended if no opportunity is created and one of the following occurs:

  • The lead is deleted

  • The qualification level of the lead is changed to a value other than Hot

  • The status of the lead is changed to a value other than Error-free

Technical Implementation

You require the following technical information if the implementation details are relevant to you, or if you want to make your own enhancements:

  • Workflow Template

    The actual procedure is implemented in the workflow template WS10001011 (CRM_LEAD).

  • Triggering Events for the Workflow Template

    The events AttributeChanged and SetErrorFree are entered for the object category BUS2000108 (lead CRM) as triggering events.

    The event SetErrorFree is triggered when the system status is reset to Error-free. Since the workflow is only to be started when the qualification level is set to Hot, this is checked using the start condition of the event.

    The event AttributeChanged is triggered when one of the lead-specific attributes qualification level (manual / automatic), priority, lead group, background, or status is changed.

    The start condition is used to make sure that the attribute qualification level was actually changed, and the status was changed at the same time.

  • Object Types

    BUS2000108 (LEAD CRM)