Skip to Content
Former Member
Sep 14, 2010 at 05:52 AM

Reprocessing a legacy flat file....Avoid multiple postings


Hello everyone,

I am processing a file from application server and posting material documents in SAP against a unique number in legacy. This is a backgroung job. The same program can be executed in foreground also.

My problem is with reprocessing the same input file or accidental processing of the same file again and again.

Option 1:

While posting the material document, i pass the legacy invoice number in MKPF-BKTXT using the same BAPI. For each processing i check the BKTXT before posting against a invoice

Option 2:

Maintain separate table for posted invoices

Option 3:

Maintain log file in application server against input file and check that before posting.

For me option 1 seems to be the best method as for the other 2 options there is a chance that document is posted and while writing the log there is some termination unless i can combine and write the log in the same logical unit of work (LUW).

Please share you opinion...

Is there any better way to handle this ?