Configuring Workflow For Purchase Orders - Purchase Order Changes (SAP Library

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3
At a glance
Powered by AI
The key steps outlined are: 1) Create a system user for workflow, 2) Define a logical destination, 3) Check event links, 4) Configure task-specific customizing

You need to activate the relevant ALE event links and type linkages, assign agents to standard error tasks, and activate the event linking in task-specific customizing

The standard tasks 00008097 (Error: Purchase order not created) and 00008114 (Error: Purchase order not changed) are used to handle purchase order errors

Configuring Workflow for Purchase Orders/Purchase Order Changes (SAP Library - Special Processes in Logistics)

Configuring Workflow for Purchase Orders/Purchase Order


Changes
Use
In order that a purchase order is created or can be changed automatically in the sales system, the
relevant SAP Business Workflow must be activated.
The business object for the sales order is BUS 2032. The ALE indicator Create purchase order
automatically in the item category controls that the event ALECREATED or ALE CHANGED is triggered.
For this event you must have activated the event link to the user function module
PUR_ORDER_CREATE_VIA_SD_EVENT or PUR_ORDER_CHANGE_VIA_SD_EVENT.

Procedure
1. In the sales system, enter the user WF Batch for the workflow. From the SAP Easy Access menu,
choose Tools Administration User Maintenance Users. Create a user with the user
category System (Background). Assign the authorization profiles SAP_ALL and SAP_NEW.
2. Define the logical destination with connection category L for the workflow. In Customizing for Basis
choose Business Management SAP Business Workflow Basic Settings (Workflow System)
Create Logical Destination for tRFC. The system automatically proposes a name for the
destination (such as WORKFLOW_LOCAL_200). To log on, enter the system user (for example,
WF Batch) and any RFC password. Choose Synchronize passwords.

Check the Customizing settings and make any missing standard settings for the
SAP Workflow. If you perform automatic Customizing, you do not have to perform
step 1 or step 2. Both steps are performed automatically if you have the
authorization to create users. In Customizing for Basis choose Business
Management SAP Business Workflow Maintain Standard Settings.

3. Check the event link by choosing on the SAP Easy Access screen, Tools Business Workflow
Development Utilities Events Type Linkages.

Type linkage for automatic creation of a purchase order

http://help.sap.com/saphelp_47x200/helpdata/en/8f/372e3b7532394ce10000000a114084/content.htm (1 of 3)17/11/2009 12:41:45

Configuring Workflow for Purchase Orders/Purchase Order Changes (SAP Library - Special Processes in Logistics)

Object
category

Event

Receiver type

Type
linkage
activated

Enable
event queue

Status

BUS2032

ALECREATED

Without
errors

Check the type linkages on the detail screen. Receiver function module
PUR_ORDER_CREATE_VIA_SD_EVENT (create purchase orders from purchase
requisition for sales order).
Type linkage for automatic changes to a purchase order

Object
category

Event

Receiver type

Type
linkage
activated

Enable
event queue

Status

BUS2032

ALECHANGED

Without
errors

Check the type linkages on the detail screen. Receiver function module:
PUR_ORDER_CHANGE_VIA_SD_EVENT (changes a purchase order according to the
changes to the sales order).

4. Check the task-specific Customizing. Check the standard tasks, the possible processors, and the
event linking. In Customizing for Basis choose Business Management SAP Business Workflow
Perform Task-Specific Customizing.

a. From the application hierarchy, choose Sales and Distribution Sales Basic Functions
Assign Agents.

Under Basic Functions, choose the standard tasks Error: Purchase order not created and
Error: Purchase order not changed and specify the agent assignment. If you enter a user
here, when errors occur this user receives work items in his/her workflow inbox (transaction
SBWP) that allow the user to further analyze the errors. If the user executes the work item,
the purchase order creation is called again using the same data. The system usually issues
an error message that prevents the user creating or changing the purchase order.

b. Activate the event linking.


5. SAP task

http://help.sap.com/saphelp_47x200/helpdata/en/8f/372e3b7532394ce10000000a114084/content.htm (2 of 3)17/11/2009 12:41:45

Configuring Workflow for Purchase Orders/Purchase Order Changes (SAP Library - Special Processes in Logistics)

From the SAP Easy Access screen, choose Tools Business Workflow Development
Definition Tools Tasks/Task Groups Display.
Check the following standard tasks:

00008097 (Error: Purchase order not created)


00008114 (Error: Purchase order not changed)

Standard tasks

00008097 Error: Purchase order not created

Abbr.:SD_PO_Err
Work item text: Create purchase order
for request (PurOrderRequisition.
Number&
Object: BUS2032 (Sales Order)
Method: POCREATEERRDISPLAY
(ALE order error)
Event: ERRORCREATINGPURORD
(Sales Order Purch. Order Error)

00008114 Error: Purchase order not changed


Abbr.:SD_PO_ChgErr
Work item text: Purchase order
&PurchaseOrder.PurchaseOrder& could not be
changed
Object: BUS2032 (Sales Order)
Method: POCHANGEERRDISPLAY (Error.
Order change)
Event: ERRORCHANGINGPURORD (Sales
Order Purch. Order Error)

If the purchase order is not created automatically, you can also check the following:

Use transaction SM21 to check whether entries were created in the syslog for user WF Batch.
If necessary, use transaction ST22 to check whether a short dump was generated for user WF
Batch. Check and correct the runtime errors that were reported in the short dump (for example,
invalid password for user WF Batch). Search for notes using the keywords listed in the short dump.

See also:
Workflow Scenarios in Applications (BC-BMT-WFM)

http://help.sap.com/saphelp_47x200/helpdata/en/8f/372e3b7532394ce10000000a114084/content.htm (3 of 3)17/11/2009 12:41:45

You might also like