Application Development and Automation 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: 
Read only

Real Time Event Triggering

Former Member
0 Likes
1,274

Hello,

We are currently on SAP R/3 7.4, SP14 EHP5 and we want to implement a business scenario where creation / change of WBS master data trigger a custom program that send a bunch of data to a third party.

This third party is an external system type Service Oriented Architecture that collect and distribute master data to opérational applications.


My problem:

How to generate the real time event each time a WBS is created within the system?


Modelisation:

1. Creation of WBS or WBS status change

2. This business action can be seen in tables : it generate a changes in PRPS / JCDS

3. That change should trigger a program

4. That program sends data to third party through a RFC: this part is ok manually.



The purpose of real-time and having it as event trigger: the thrid party application will only receive new information.

I don't have a job that send all my data.



Thanks by advance for your ideas on that topic,


1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,120

You could check (SWO1) business object WBS / BUS2054, it already carries the event "WBS created". To add the changed event you could create a ZBUS2054 as a subtype of BUS2054, and trigger the event (e.g. calling SAP_WAPI_CREATE_EVENT) in some WBS related BAdI or thru SBVW.

Of course you could also trigger your program in some BAdI.

Use search tool, I think there are already threads on this subject.

Regards,

Raymond

4 REPLIES 4
Read only

Ulrich_Schmidt1
Product and Topic Expert
Product and Topic Expert
0 Likes
1,120

Hi Julien


Julien Delbecchi wrote:

4. That program sends data to third party through a RFC: this part is ok manually.


Well, if you have the "Connectivity part" of your scenarion already figgured out, then this is probably the wrong forum for your question... People here will be able to give tips about RFC connectivity, but will probably not know how to trigger events in an R/3 system?! Perhaps a better place would be the ABAP Platform Developer Center?!

Best Regards, Ulrich

Read only

0 Likes
1,120

Hello Ulrich,

Thanks for the advice. I will test the proposal made by Raymond.

If I have to continue the discussion for further details, I will move the thread at the right place.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,121

You could check (SWO1) business object WBS / BUS2054, it already carries the event "WBS created". To add the changed event you could create a ZBUS2054 as a subtype of BUS2054, and trigger the event (e.g. calling SAP_WAPI_CREATE_EVENT) in some WBS related BAdI or thru SBVW.

Of course you could also trigger your program in some BAdI.

Use search tool, I think there are already threads on this subject.

Regards,

Raymond

Read only

0 Likes
1,120

Hello Raymond,

Thank you for your reply.

I will check that and make a feedback on the solution to share achievement.