Thursday, April 28, 2011

Table to get the details of creation,modification and deletion through a tcode-CDHDR



This is a very useful table for all document details created through a transaction.This could be any tcode like Su01,Vao1, mm01 etc.Any object which is created, edited or deleted is logged in this table.Suppose you do not know the document number which was created in your system a few minutes ago.By giving the necessary time, date and transaction code, one could retrieve that information.One could also get the information when the object gets edited through transaction through this table.The username also gets logged in alongwith the information.For more details on line items, get the information of the document number from here.And then check the same in CDPOS.



Abap consultants can use the above table to retrieve information for objects created, edited or deleted through a transaction. It is one of the best ways to retrieve information based on a particular transaction.
Example,if you would like to retrieve the information of the materials created between a certain date and time, then you could get that through the code:
SELECT * FROM CDHDR INTO I_CDHDR WHERE
DATE = I_DATE.
TIME = I_TIME.

No comments:

Post a Comment