Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Need help in traking EVENT

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

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.....

0 Kudos

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