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

Event on Table Update, Insert or Modify.

Former Member
0 Likes
3,092

Hi All,

I have a requirement, where I need to execute a particular Z* program on Update, Insert or Modification of a particular Standard Table.

Is there any event or some other way available in SAP System, by which I can achieve this task ?

Please Note that I can not go for SAP Modification or Enhancement of Standard Code.

Thanking You All.

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
1,967

This has been asked several times. Not available from "ABAP level", I'm afraid. A similar sort of event must be involved when table logging is activated for a table and DBTABLOG is filled, but this must be controlled through some lower level process somewhere in the kernel or DBMS.

Thomas

6 REPLIES 6
Read only

madhu_vadlamani
Active Contributor
0 Likes
1,967

Hi Ankit,

Why you need update standard report with code.What is the business requirement.

Regards,

Madhu.

Read only

0 Likes
1,967

Hi Madhu,

I have to collect data from three Standard Tables and then I need to update  them in my Z* table, which will be used by some other report.

My requirement of updating the Z* table has been fulfilled,

but my PROBLEM is : these Standard Tables contains only the last updated entry and not all, so I can not track out all the changes made in Standard Table.

If I will be able to run my Report ( of updating the Z* table ) every time the Standard Table is getting updated, then I will be able to keep track of all changes done in these Standard Tables.

I can not Schedule my Report ( of updating the Z* table ), because the frequency of Updating the Standard Table is not fixed.

And I can not use Enhancement / Modification, since Client does not want any more Enhancement / Modification in this System.

I hope, I am clear with my requirement now.

Thanking You All.

Read only

0 Likes
1,967

Hi Ankit,

You can use the table maintenance event for the same. please go through below link for more details...

<link to pesky ads and interview questions site removed by moderator>

With regards,

Jayraj Joshi

Message was edited by: Thomas Zloch

Read only

ThomasZloch
Active Contributor
0 Likes
1,968

This has been asked several times. Not available from "ABAP level", I'm afraid. A similar sort of event must be involved when table logging is activated for a table and DBTABLOG is filled, but this must be controlled through some lower level process somewhere in the kernel or DBMS.

Thomas

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,967

First try to find where SAP updates those tables : usually you should look for update task FMs which execute the update of database (eg. VIQMEL_POST or VENDOR_UPDATE) use SM37, where-used tools on database table, debug or oss/scn search tools. Once the FMs are identified look where they are called, and look for customer-exits, BTE, BAdI or Enhancement in their "vicinity".

I can not go for SAP Modification or Enhancement of Standard Code

If you are not allowed or do not want to use such a solution, there are no such generic database triggers in SAP (AFAIK), only at database manager level.

Another solution could be periodic jobs which analyze the database update from timestamp or change documents (CDHDR/CDPOS). For some database table you could also rely on change pointers creating IDocs (BD61)

Regards,

Raymond

Read only

0 Likes
1,967

Hi Raymond,

Thanks for the help.

I have already got the FM and an Implicit Enhancement Point but can not use it because of restriction imposed by Client.

I have checked Change Pointer Option,but it does not exists for the relevant table fields, so this too ruled out.

Now, I am looking into CDHDR / CDPOS option.

Thanks a lot.