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: 

trigger on sap table

Former Member
0 Kudos

Hi All,

I have small requirement on triggering, when there is an insertion in specific table.

requirement is as follows.

There is z-table which has got two fields hno and hname.

when i insert a value into hno the trigger should run a program which does the insertion of hname for the respective hno.

please help me in finding the resolution as soon as possible.

Thanks in advance.

Regards,

Anil

3 REPLIES 3

Former Member
0 Kudos

Hi,

You need to create a TMG for that z-table and disable the hname for editing.

Now you need to create a modification event in the TMG for the table.

Goto ENVIRONMENT-> Modification -> Events.

select a suitable event create the Form and call whatever program you want to call from there.

Hope this helps,

Reg,

Rajat

Former Member
0 Kudos

This link may come handy in creating the events :

link:

Former Member
0 Kudos

And to trigger an event on record insert you should create a TMG for that and write the logic in events.

Otherwise while updating/inserting records to the table through ABAP you should calculate and supply the other field values before inserting into the database.

Regards

Karthik D