cancel
Showing results for 
Search instead for 
Did you mean: 

Block and release vendors at different level

Former Member
0 Kudos

Hi experts,

I'm working on a workflow who can block and release vendor after creation or modification. The problem is that I want block, first, the vendor for purchase and after, for the payment.

So I need two level of validation : the first for purchasing and the second for finance. So I need to create one event with the transaction MK01 or MK02 and after the validation I have to call the transaction FK01 or FK02.

I use the BOR LFA1 with specific method to block and release one of this views (purchase or financial) but when a vendor is saved, there is no distinction between the purchase view and the financial view. I can not distinguish the transaction who call the event.

So if there is someone who can help me quickly, it will be great!

Thank you

Benjamin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I think you can make use of Business Object LFM1 and LFB1. Check in SWEL whether any event is getting triggered during completion of Views.

Thanks

Arghadip

Former Member
0 Kudos

I had thinking about using LFB1 and LFM1 but I can not add events with the transaction SWU_EWCD.

Former Member
0 Kudos

I'd try to create the workflow with the BOR LFM1 and I created the event "Changed" but it doesn't work when I changed something in the vendor master data. It works just only if I test my workflow but not in the transaction !

I don't how to say when the workflow should start, to create correctly the event cause it doesn't work with the transaction SWU_EWCD and there is no documents corresponding to the object in SCDO.

imthiaz_ahmed
Active Contributor
0 Kudos

To trigger the event you need to bind the chg. doc KRED with the BO LFA1. In order to differentiate the transaction, put event condition in SWEC ( field restrictions) or use a check FM on transaction code (sy-tcode).

Further no need to use different BO, it is the triggering mechanism which does the trick.

Regards, IA

Former Member
0 Kudos

Thank you for the help.

Regarding the event condition in SWEC, it doesn't correspond to my situation so I will try the FM but I don't really how to do : I mean which condition I can put, or which action I can put for check the transaction.

The thing is that I'm not really good in FM cause I'm more functional.

So if someone could help me on the code to check transaction before block a vendor, it could be great.

Thank You

Former Member
0 Kudos

Thank you for your, after some research I succeed to create the right Function Module to select send the transaction code in the workflow.

Benjamin

Answers (0)