Entering content frame

Procedure documentation Configuring Workflow for Purchase Orders/Purchase Order Changes Locate the document in its SAP Library structure

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.

Note

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.

  1. 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

Object category

Event

Receiver type

Type linkage activated

Enable event queue

Status

BUS2032

ALECREATED

-

X

-

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

-

X

-

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).

  1. 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.
    1. From the application hierarchy, choose Sales and Distribution ® Sales ® Basic Functions ® Assign Agents.
    2. 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.

    3. Activate the event linking.
  1. SAP task

From the SAP Easy Access screen, choose Tools ® Business Workflow ® Development ® Definition Tools ® Tasks/Task Groups ® Display.

Check the following standard tasks:

Standard tasks

00008097 Error: Purchase order not created

00008114 Error: Purchase order not changed

  • 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)
  • 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)
  • Note

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

    See also:

    Structure linkWorkflow Scenarios in Applications (BC-BMT-WFM)

     

     

    Leaving content frame