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

Trigger(Event) on a SAP table

Former Member
0 Likes
1,357

Hi,

I would like put a trigger on a SAP table.

I would like that this triggers lauches a program (or perform ..what you want).

And this program receive the datas to insert or to delete from the SAP Table.

Is someone can help me?

Thanks.

Hi,

I would like put a trigger on a SAP table.

I would like that this triggers lauches a program (or perform ..what you want).

And this program receive the datas to insert or to delete from the SAP Table.

Is someone can help me?

Thanks.

8 REPLIES 8
Read only

former_member194669
Active Contributor
Read only

0 Likes
1,014

Thanks i already did this except the step 4.

But this one is not automatic and i would like that when a SAP table is updated by a SAP transaction, my table receives the information.

I would like he same effect but with using the SM30.

Thanks

Read only

0 Likes
1,014

I think then you need to create change pointers for the table

and create program (that scheduled to run in background) and fetch change pointers using fm CHANGE_POINTERS_READ and do whatever you want.

May this will help you

Read only

0 Likes
1,014

you can use change pointers to capture the events for a table::

Or

you can use BOR to do the same..

Suppose you want to track changes in table LFA1 or LFB1...

Go to to tcode: Swo1 and you need to copy the existing LFA,LFB1..etc to ZLFA1 or ZLFB1.

and in one of those events for create or change you need to write a function module/subroutine/code that keeps track of these changes into a structure depending on your methods parameters.

Your Function module /subroutine gets executed in one of the methods of the BOR object after the relevant event for vendor creation or vendor change is raised.

After this you need to configure these events in SWEC.

In this transaction, the details are available as to which events are raised and whether the input requires us to specify the change document object, object category and type of the event. Specify the trigger event by choosing the radio button for On create or On Change.

Hope this helps a little.

Read only

0 Likes
1,014

Hi,

Could you give me more details about the first or the second method?

Thanks.

Read only

Former Member
0 Likes
1,014

Hi ,

I dont think that is possible , yes but you can handle events when you manage the table using table maintanence .

Regards

Arun

Read only

Former Member
0 Likes
1,014

no response

Read only

0 Likes
1,014

Work flow u need to configure for this.....

allocate points if usefull

Regards

sas