Powered By

Free XML Skins for Blogger

Powered by Blogger

Saturday, October 18, 2008

SD WORK FLOW SCENARIOS II

Processing Credit Memo Requests

Each employee in the sales department is allowed to release credit memo requests up to a value of USD 300. The following authorization procedure has been defined for credit memo requests that exceed this limit:

Credit memo requests with a value of between USD 300 and USD 5,000 may only be
released by the group leader.

Credit memo requests that exceed a value of USD 5,000, may only be released by the
sales manager.

Object Types (SD-SLS-RE)

The interface between R/3 functionality and the workflow system is created using object technology.

In the following scenario, the business application object for
Credit memo requests is Object type BUS 2094.

Initial Values (SD-SLS-RE)

In the workflow, the person who releases or processes the credit memo request is decided according to the value of the credit memo request. You can determine two limit values: Amount limit 1 and amount limit 2.
In order to ensure correct, cross-company code credit memo processing, you also need to specify a reference currency. The document currency for the credit memo request is then converted into the reference currency.

The following company codes and their house currencies exist in one company:

Company code 1: House currency FRF
Company code 2: House currency DEM

The employees assigned to the sales organization process the credit memo requests
for company code 1 and company code 2.
A reference currency (for example, USD) is defined in the workflow container. The
net values in the sales documents are converted into the reference currency which
means that the credit memo requests can then be processed and checked,
independently of the currency in the company code.


Workflow Template (SD-SLS-RE)

Definition

The following two workflow templates are delivered in the standard system for credit memo processing:

Identification:WS20000009
Identification code: Credit memos
Long text: Credit memo processing

Identification: WS20000019
Identification code:CMR_CHECK
Long text: Check credit memo requests
For additional information, see:
Flow of Workflow Template [Page 14].

Use

Workflow Template 20000009 Credit Memo Processing

Triggering Event in Workflow Template

Updating the credit memo request triggers the event created for object type BUS2094 which starts the workflow template.

Workflow Container and Data Flow

The information needed for the workflow is contained in the credit memo request. This
information is available as an event parameter in the container for the triggered event and have to be transferred into the workflow container using data flow.
The following data flow definition between the triggering event and the workflow container is therefore defined in the standard system:
Workflow Container Event Parameter Container

WF_Initiator <-- _EVT_Object (credit memo request)
RefCurrency (reference currency)
CUSTCOMPLAINTORDER
(credit memo request)
NetValue_Limit_1
(amount limit 1)
NetValue_Limit_2
(amount limit 2)
End_Flag
(End indicator)
The _WF_Initiator element is available in the workflow container in the standard system, while the other elements listed here have been added to the workflow container.

Terminating Events

The workflow template for credit memo requests is terminated with the Release credit memo request and Reject credit memo request events.
Check Workflow Template 20000019 Credit Memo Processing

Workflow Container

The workflow container contains the end indicator (End_Flag), information about the credit memo request (CUSTCOMPLAINTORDER) and the employee responsible (ResponsibleAgents).

Processor Assignment

All people or organizational units that are assigned to the workflow template are informed.

Maintain Processor Assignment

Depending on the net value of the credit memo request and the defined organizational plan, the employee responsible receives a workitem in his or hers integrated inbox.
For this to take place, you must list the various objects from organization management in Customizing for the SAP Business Workflow who can work with workflow-relevant credit memo requests, for example, jobs or positions. Before you do that, you need to set up the organizational plan.

User Haywood has the group leader position while user Miller is in the sales
manager position.
Flow for Workflow Template

When you create a credit memo request, the created event is triggered for object BUS2094 and the workflow template 20000009 is started.
The system checks how high the net value of the credit memo request is. If the net value is below limit 1 (minimum limit), the system automatically releases the credit memo request in background processing.

If the net value of the credit memo request is over limit value 1, the system
terminates workflow

template 20000009 and initiates workflow template 20000019.

The relevant employee, depending on the value of the credit memo request and the
organizational structure in use (sales organization, distribution channel, division), is then informed of this by the arrival of a work item in their integrated inbox. If the employee releases the credit memo request, the system ends the workflow and deletes the work item from the inbox.

If the employee stops processing the work item, it remains in the inbox until it has been completed and only then is the workflow finished.

If the employee changes any of the determining factors in the credit memo request (such as net value), the net value of the credit memo request has to be re-checked. The system deletes the work item from the inbox.

Workflow template 20000009 receives a terminating event and workflow template 20000019 is triggered. Depending on the value of the item, the relevant employee is informed and receives a work item in their integrated inbox. Once the employee has finished processing the work item (by rejecting or releasing the credit memo request), the workflow is concluded. If the credit memo request is changed, workflow template 20000019 is called up. Processing continues until the credit memo request has either been rejected or released.

Terminating Events


The workflow template for checking credit memo requests is terminated with the Release credit memo request and Reject credit memo request events.

Standard Tasks (SD-SLS-RE)

Definition

Standard tasks are single-step tasks supplied by SAP that describe basic business activities.

No comments:

Archives