Register Login

Trigger Workflow when a Vendor is Changed in SAP through XK02 Tcode

Updated May 18, 2018

BUSINESS OBJECT / EVENT USED:

Custom BO / event will be because LFA1 Business Object does not have a Changed Event.

So we first create a new BO which is a subtype of LFA1 thru delegation concept.

Thru SWO1 tcode ,we have made a new BO Z_VENDOR which inherits all Attributes and methods of LFA1.In this custom BO,We have added a new event CHANGED’.

Display-Object-Type-LFA1

Display-Object-Type-Z-Vendor

Event-Changed

WORK FLOW CREATION STEPS

Go to transaction SWDD. Create a new workflow and save it under your package.

WORK-FLOW-CREATION-STEPS

Click on the Basics Data button or press Ctrl-f8 and enter the work flow starting event.

WORK-FLOW-builder

We want the work flow to start on ‘CHANGED’ event of Z_VENDOR BO.

Activate the triggering event. It will be done thru a Customizing Request.

Workflow-Start-Using-triggering

Click on agent assignment button and assign task as General Task

Workflow-Template

Add a mail step. 

Add-a-mail-step

Add-a-mail-step-1

Go to SWEC tcode.Click on new entries and link your workflow event to change document object KRED on ‘ON CREATE’.

Change-View-Events-For-Change-Docoment

Now test your workflow ,it will trigger whenever a new vendor is changed.

Display-Docoment-Vendor-changed


 Download attached file.

You must be Logged in to download this file

×