04-20-2007 8:29 AM
Hello all ,
I got stuck with requirement , when i create order for notification ( in any way , either by IW51 , IW31 or by MEB ) , its status changed to ORAS (in case of order creation , assigned to notification , and ORCR in case of MEB generated order). I already did some work with TCODE "BSVW" and set status event to my Business object custom event . But it only get triggered when we save the notification and the status updated in database, and my requirement is , my event must get triggered as soon as status is set , no matter he saved the notification ot order or not.....Please help me out for the following requirement.
04-20-2007 8:53 AM
Hi,
Write some code In the Business object Program (SWO1)
such that fetch the Status from JEST table by passing the OBJNR field of QMEL table (notification) and get the status field STAT. If STAT = your value then trigger the event .
reward if useful
regards,
ANJI
04-20-2007 8:53 AM
Hi,
Write some code In the Business object Program (SWO1)
such that fetch the Status from JEST table by passing the OBJNR field of QMEL table (notification) and get the status field STAT. If STAT = your value then trigger the event .
reward if useful
regards,
ANJI
04-20-2007 10:55 AM
hello Anji Reddy,
Thanks for giving time, but we can only check the JEST and others after database commit , and in my case , no database commit is happening...so what should i do , means in IW51 creating a notification , and then creating a order ...but not to save any of them , just the screen is opened....and still i have to trigger a event by only creating order attached to that notification...becoz notification status got changeed to "ORAS' and its my reuirement, no matter it is saved to database or not..i have to check that it got ORAS or not.....
04-20-2007 11:14 AM
Hi Rakesh
I don't really know the Order transactions, but if you want to kick off events in 'real time' like that, you will probably need to use a user exit or BAdI. Within that, you can use <b>SAP_WAPI_CREATE_EVENT</b> to trigger your event.
I'm not sure what object you're using. Just be careful that you don't trigegr an event for something that hasn't been created in the database yet, or your object won't be instanciated.
Good Luck!
Cheers
Lyal