Application Development 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: 

Vendor master - Change documents

Former Member
0 Kudos

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?

1 ACCEPTED SOLUTION

andreas_mann3
Active Contributor
0 Kudos

Hi Raynald,

it's for transactions beginnig with MK..

(Planned changes: Vendor master)

e.g. MK12 <b>planing</b> vendor

regards Andreas

3 REPLIES 3

andreas_mann3
Active Contributor
0 Kudos

Hi Raynald,

it's for transactions beginnig with MK..

(Planned changes: Vendor master)

e.g. MK12 <b>planing</b> vendor

regards Andreas

christian_wohlfahrt
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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