This website is not affiliated with, sponsored by, or approved by SAP AG.

Triggering workflow when purchase order created

Business WorkFlow

Moderators: Snowy, thx4allthefish

Triggering workflow when purchase order created

Postby Shreya » Wed Apr 02, 2003 2:34 am

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. :cry:
What should I do ??
Waiting for somebody to focus.
Shreya.
Legends say ,the world is full of fools.
let's be a better fool ...
Shreya
 
Posts: 55
Joined: Tue Mar 25, 2003 3:57 am

PO workflow

Postby Max Cypher » Wed Apr 02, 2003 12:46 pm

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
Max Cypher
 
Posts: 311
Joined: Mon Oct 21, 2002 9:12 am
Location: Nottingham, UK

Thanks

Postby Shreya » Thu Apr 03, 2003 4:33 am

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 ...
Shreya
 
Posts: 55
Joined: Tue Mar 25, 2003 3:57 am

User exit for MIGO

Postby Max Cypher » Thu Apr 03, 2003 5:20 am

EXIT_SAPLMBMB_001, I do believe.

Regards,

Tim
Max Cypher
 
Posts: 311
Joined: Mon Oct 21, 2002 9:12 am
Location: Nottingham, UK

Object not returning the key

Postby Shreya » Thu Apr 03, 2003 7:25 am

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 ...
Shreya
 
Posts: 55
Joined: Tue Mar 25, 2003 3:57 am

Object not returning the key...

Postby Max Cypher » Fri Apr 04, 2003 4:54 am

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
Max Cypher
 
Posts: 311
Joined: Mon Oct 21, 2002 9:12 am
Location: Nottingham, UK

Thanks TIM , That was of gr8 help

Postby Shreya » Fri Apr 04, 2003 7:06 am

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 ...
Shreya
 
Posts: 55
Joined: Tue Mar 25, 2003 3:57 am

Re: Triggering workflow when reservation created

Postby mganda » Tue Nov 11, 2008 2:26 am

Hi Tim,

I am using the more or less the same code for purposes of triggering a workflow for reservation using object type BUS2093 and created an event created using a subtype YBUS2093 i have created. I am using internal table XRFP. However, I have checked a user exit for the reservation which I can insert the code but i have not succeeded. So I decided to use a report program which I execute once a reservation is created. Although the workflow is getting triggered once I run the report but the object does not return the key hence the triggered workflow runs into error 'object does not exist'. Would you focus on this.

Regards,
Mzee
mganda
 
Posts: 7
Joined: Wed Oct 22, 2008 11:39 pm


Return to Business WorkFlow

Who is online

Users browsing this forum: No registered users and 2 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.