09-30-2010 9:52 AM
Hi,
i need to read the spool list text in order to understand which of the KS04 elements have been deleted and which one are not.
KS04 runs in background and in batch i can not get the log via call transaction too.
Any offer?
thanks.
09-30-2010 10:13 AM
09-30-2010 10:09 AM
check the table log
CDPOS Change document items.
CDHDR Change document header
09-30-2010 10:13 AM
09-30-2010 11:34 AM
Hello,
I think you should be looking into the table CDHDR & CDPOS.
Try selecting the records from CDHDR:
SELECT OBJECTID CHANGENR
FROM CDHDR
INTO IT_CDHDR
WHERE OBJECTCLAS = 'KOSTL'
AND UDATE = <date on which KS04 job was run>
Using these records, query CDPOS:
CHECK IT_CDHDR IS NOT INITIAL.
SELECT OBJECTID
FROM CDPOS
INTO IT_CDPOS
FOR ALL ENTRIES IN IT_CDHDR
WHERE OBJECTCLAS = 'KOSTL'
AND OBJECTID = IT_CDHDR-OBJECTID
AND CHANGENR = IT_CDHDR-CHANGENR
AND TABNAME = 'CSKSB'
AND CHNGIND = 'D'. "D--> For Deletion
Once you've the list of OBJECTID you can get the Cost Centres deleted:
CDHDR-OBJECTID = Controlling Area + Cost Centre
Hope this helps.
BR,
Suhas