cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

I am thinking of designing custom Vendor Master Create\Change Approval Workflow. (1) However I did not see any events being triggered in event trace(SWEL) while creating or changing vendor master. could anybody shed me lights on triggering WF using any of methods ( message control, standard tranaction, status management, config or any other methods) for vendor master. (2) Besides, how should I design workflow so user can confirm changes via XK08.

Any hints/ideas are highly appreciated.

Thanks.

Maria

0 Likes
View Entire Topic
Former Member
0 Likes

Hi Maria,

First create an Event in the BOR "KNA1". For this you have to create a subtype and then add your event in the subtype Say your event name is "Save_vendor".

Now Go to SE19 and implement BADI " VENDOR_ADD_DATA". Inside this BADI the Method "SAVE_DATA",explicitly trigger the event say(Save_vendor") in which you have created in the BOR by using the FM


*  CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
*    EXPORTING
*      OBJECT_TYPE     = 'LFA1'  "---> this is the BOR Name
*      OBJECT_KEY      = OBJECT_KEY "--> Keyfield
*      EVENT           = 'SAVE_VENDOR' "--> Event name
*    TABLES
*      INPUT_CONTAINER = IT_CONTAINER.

Then automatically the WF which is linked with the Event will get trigger.... I am sure this will solve you problem