Triggering workflow when purchase order created

Question: Dear all,
I have really urgent need.
I want to trigger my workflow whenever purchase order is created.
I am not getting the suitable event for the object type BUS2012.
It has event Released.
User exit seems not to be available.
What should I do ??
Waiting for somebody to focus.
Shreya.
_________________
Legends say ,the world is full of fools.
let's be a better fool ...

Answer:
Hi,

Use change documents (SWEC) to raise a created event against a delegated subtype of BUS2032.

Look through the forum for similar questions - the solution for this has been provided many times.

Regards,

Tim

Answer:
Thanks tim,
I ended up with doing the same.
Would you like to focus on the issue of triggering workflow for goods receipt ?? ( Tcode : MIGO )
I couldn't get the event so I am searching for the userexits to create my event.
Do you have any idea about the user exit just before the commit by which i can get the GR number ??
I'll be obliged to receive a reply.
Shreya
_________________
Legends say ,the world is full of fools.
let's be a better fool ...

Answer:
EXIT_SAPLMBMB_001, I do believe.

Regards,

Tim

Answer:
Hi Tim,
I tried this exit with the code given by you in another question.
As per code the event should wait upto the completion of the parent task.
In my case the event is generated for object type MKPF.
But the key has not been generated. So I think the event generaion is happening earlier.
Would you please focus on this.
Shreya.
_________________
Legends say ,the world is full of fools.
let's be a better fool ...

Answer:
Hi,

Yes, you're quite right - I can see why the key is not getting populated. It's nothing to do with the order of events (which is fine), but rather a small coding oversight - I forgot xmkpf is an internal table rather than a structure.

Just stick:

READ TABLE XMKPF INDEX 1.

...just before the move statements - I've just tested it & that sorts the key problem out.

You might want to check with an MM consultant (which I am not) that it's safe to assume that XMKPF will only ever have one line. Off hand, I can't think of a example where it wouldn't, but check that picking the first line is the right thing to do - otherwise, you'll perhaps need to code that more precisely (based on document type, maybe?).

Regards,

Tim

Answer:
Hi TIM,
The things are fine. Thanks for ur timely help.
Looing forward for ur help.
Have a nice time.
Shreya
_________________
Legends say ,the world is full of fools.
let's be a better fool ...
Copyright ?2007 - 2008 www.jt77.com