02-19-2005 7:39 PM
I am writing a program to capture daily changes to the vendor master. I only need to track a small number of vendor fields and store them changes to a file. I don't need to perform master data distribution using change pointers.
The process is as follows:
1. CALL FUNCTION CHANGEDOCUMENT_READ_HEADERS
EXPORTING
DATE_OF_CHANGE = sy-datum
OBJECTCLASS = KRED
DATE_UNTIL = sy-datum
IMPORTING
I_CDHDR = itab
2. Select * from CDPOS where changenr = itab-changenr.
3. There will be some logic to take only latest change for a field using date/time from I_CDHDR.
What is object class KRED_N used for? Anything else?
02-21-2005 7:58 AM
Hi Raynald,
it's for transactions beginnig with MK..
(Planned changes: Vendor master)
e.g. MK12 <b>planing</b> vendor
regards Andreas
02-21-2005 7:58 AM
Hi Raynald,
it's for transactions beginnig with MK..
(Planned changes: Vendor master)
e.g. MK12 <b>planing</b> vendor
regards Andreas
02-21-2005 6:57 PM
Hi Raynald,
in case you get performance problems:
Switch to Z-change pointers. Just create your own message type, assign needed fields, activate pointer. -> You will be informed about relevant changes, you don't read all changes any longer. You don't need additional ALE-distribution settings.
Use fm CHANGE_POINTERS_READ for reading, when done with your job use CHANGE_POINTERS_STATUS_WRITE. Next execution of your program can run at any time (after weekend, after 5 minutes) and will select exactly newly changed / created entries.
It's really easy to do and will be much faster than change document examination.
Regards,
Christian
08-19-2006 11:59 AM
hi raynald,
i have a similar requirement in which i have to create a outbound file with all the newly created vendor and any changes in the existing vendor for a particular date.
for the newly created vendors i am gong to the lfb1 table and passing the current date and getting the new vendors for the changes in existing vendor i am going to cdhdr and cdpos table .
can u forward me ur code it will give me an understanding of what to be done and how to be done ,its a bit urgent lz oward as soon as u can
thanks in advance
regards
aj