2007 May 04 4:13 PM
Hi,
I have a custom table ZTABLE.
Now this ZTABLE is being modified by some program, when i execute some transaction.
I am unable to find out which particular program is modifying that table.
Is there any log created which can tell me, which program is changing the entries in my custom ZTABLE.
Thanks in advance.
Hi,
I have a custom table ZTABLE.
Now this ZTABLE is being modified by some program, when i execute some transaction.
I am unable to find out which particular program is modifying that table.
Is there any log created which can tell me, which program is changing the entries in my custom ZTABLE.
Thanks in advance.
2007 May 04 4:15 PM
have you checked the where-used-list of that ZTABLE , try that once..u canget some idea
2007 May 04 4:17 PM
yes, i did check the where-used list but all those programs are not modifying it. That is why it is so confusing
2007 May 04 4:20 PM
Do an SQL trace for that transaction or for the programs that u had found out in where-used-list, may be that can help you
goto ST05
Switch on trace
now run ur transaction
then switch off the trace
analyse the trace
2007 May 04 4:28 PM
SQL trace is telling me what all statements are modifying the table, but it is not giving the program name. is there any way to get the program name ?
2007 May 04 4:17 PM
Hi Prem,
Check Where-used-list for that particular table.
Go to se11.
enter the table name.click on Where-used-list button. uwill get all programs.
Reward points if helpful.
Regards,
Hemant
2007 May 04 4:19 PM
2007 May 04 4:19 PM
Hi,
go to se84 ->Program Library ->Pogram Subobjects ->
->ABAP Dictionary->
i think it will solve u r query.
Reward points if useful..
Regards
Nilesh
2007 May 04 4:22 PM
2007 May 04 4:24 PM
while you use 'where used list' from SE11, you will see the list of program which reads as well as modifies the Ztables.If you are interested in knowing only the program which changes the Ztable, look for additional 'modify or insert' statement in addition to ztable in the programs.
2007 May 04 4:29 PM
while doing 'where used list' check all those check boxes...
if u already did that.. ignore this.
2007 May 04 4:30 PM
Hi Prem,
not easy. There is no automatic recording for table changes. In most cases like this the best way to find out is to think and to talk to people.
If the where-used-list does not help directly, check it again and think about the programs you find. Most probably they are responsible.
But: A program which uses this table dynamically can not be found this way.
If it does not help, write a program watching critical table contents repeatedly and report time and date of changes.
Regards,
Clemens
2007 May 04 4:56 PM
HI Prem,
If you know the transaction name, you can find the program name from the transaction SE93.
Regards,
Ravi
2007 May 04 8:00 PM
Hi Prem,
If I understood, your problem is that you need to enable a logging functionality for your z table. For standard tables this is possible by activating a flag in technical setting of the table. But, when you are working with a custom table (z*) you need to simulate this logging.
I found this in another forum:
"You need to create a change doc object and attach your table with it. Further you need to genearte the program for creating change documents ( in table CDHDR / CDPOS ) at the time of update/save.
Then you have to include this generated code in your table maintainence program. You can change the coding of generated SM30 program.
Please search the forum for "change document Object" related threads.
You don't have to take care of Business Object / Event part . That is only required if further, you want that as soon as a change document entry will be created, it should also trigger an event on its related BO.
Also check
Regards
André