Skip to Content

Update of huge SCM table after system refresh: SQL scripting

Hi Community,

we have an SCM system here in a TEST environment which is a copy from corresponding PRD system. It contains a huge table /SCDL/DF_REFDOC with 50 million entries. One field is REFBSKEY containing the logical system from PRD (46 Mio of the 50 Mio contain this).

This table/field is not covered by SAP's BDLS unfortunately. Usually we did in SQL DB2 as a post action:

db2> update "/SCDL/DB_REFDOC" set REFBSKEY='TCLNT510' where REFBSKEY='PCLNT510'

But now due to the huge size this fills up transaction log and command has to be killed (and wait for rollback :-( )

What we need is a SQL script (better than on ABAP) which allows us a commit after a defined number of records (100.000 f.i.) and then do the next 100.000

Unfortunaty no expert is available here - can someone give some hints?

Any help is highly appreciated


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Aug 24, 2012 at 03:55 AM

    Can you please check this thread



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.