Skip to Content
Hi,
we would like to share a expert guide, that describe the procedure to improve the inital load via SLT.
Chapters:
  1. Introduction
  2. Access Plan BTC Work Process Requirements
  3. Which Process Should You Use To Load Large Tables?
  4. What to know and do before you start
  5. ECC Source System Preparation
  6. Netweaver-Based SAP System Landscape Transformation (SLT) Systems
  7. Load Monitoring
  8. Process Summary Checklist
  9. Post Load Considerations
Introduction
This Guides describes how large tables can be loaded via SLT into HANA or also to other targets.
Here are some examples of challenges our customer have in their landscapes:
     • Oracle RAC
     • Complex table partitioning models for the larger tables.  For example, partitioning based on a substring of the last character of a column value
     • Oracle database statistics that are ‘frozen’ to remove Oracle CBO operations from the data access model.
This database architecture was recommended by SAP and has proven to be very effective for the customer.
Challenges from this architectural approach to SLT included:
     • Table load rates of, in some cases, only 1 million records per day when we would expect 10 million records per hour per work process.
     • The source ECC system was also consuming system-crashing volumes of PSAPTEMP.
     •  The statistics freeze prevented us from creating indexes for optimized parallel SLT loads.
The solution to this issue is a new approach to configuring and executing SLT loads which is based on accessing data by row ID (Oracle, transparent tables) or primary key (other DB systems, and non-transparent tables for Oracle).
This guide can be used for all SAP NW supported database systems.
Access Plan BTC Work Process Requirements
It is important to understand how your table load approach may impact the need for system resources so that you can avoid resource bottlenecks.
Each access plan job requires one SAP BTC work process on both the SLT and ECC systems.
Let’s assume that your SLT server has 15 BTC work processes allocated.  You have configured via the SLT transaction LTR for a Total work process allocation of 10 with 8 of those 10 allocated for Initial Loads.  This leaves 5 available BTC work processes.
A table to be loaded has 106,000,000 records and you want to use the 5 available BTC work processes for the access plan calculations.  Using the process highlighted in this document, you could divide the access plans into 25,000,000 records each and these would run in 5 access plan (ACC*) jobs on SLT – which corresponds to 5 access plan (MWB*) jobs on ECC.  Entering 25,000,000 in NUMREC will result in 5 jobs – 4 jobs processing 25,000,000 records and the 5th job processing 6,000,000 records – assuming that your record count is correct.
Let’s now assume that you are using ALL of your available BTC work processes on SLT for both SLT (Total/Initial) and access plans.  Good job!  But now, you want to load other tables.  You have available SLT Initial/Total work process capacity but all BTC work processes are busy and so, for any new table loads, THEIR access plans, however small, cannot run.  Keep this in mind when allocating your BTC work process resources!
Which Process Should You Use To Load Large Tables?
There are optional methods for loading large cluster and transparent tables.  All perform well but each has its own advantages and requirements.
Cluster Tables:
   
Type-4 Use the process in this guide to load a large cluster table
          • Table will be read by primary key
          • Additional SAP batch work processes (BTC) will be needed on the source and SLT servers to handle the multiple access plan jobs.
          • Table data will be divided into separate access plans by record count (NUMREC in IUUC_PRECALC_OBJ) of the physical (RFBLG, for           example) cluster table, not the logical (BSEG,for example) cluster table. 
          • Be careful not to create too many access plans, as all of them need to be processed by yet another batch job in the sender system. As a           maximum, use 8 access plans.
          • Requires use of table DMC_INDXCL on source ECC system
          • Simple configuration
Type-4 Manual Delimitation Process
          • Table data will be divided into separate access plans by specific select criteria (delimitations) for the given table.  You have more control over the           ranges of data and access plan count.
          • Normally not needed, unless you not only want to parallelize the processing but also want to restrict the set of data to be processed, for example,           by filtering for a certain organizational unit, or fiscal year, etc.
          • Requires use of table DMC_INDXCL on source ECC system
          • More complex configuration steps – contact SAP support
Transparent Tables:
Type-5 Use the process in this guide to load a large transparent table
          • Additional SAP batch work processes (BTC) will be needed on the source and SLT servers to handle the multiple access plan jobs.
          • Table data will be divided into separate access plans by record count (NUMREC in IUUC_PRECALC_OBJ).  For each of them, another batch           job will run in the sender system, each of them doing a full table scan of the table.
          • Requires use of table DMC_INDXCL on source ECC system
          • Simple configuration
Type-1 – with index on source system
       
          • Customer must create a single-field index on source ECC system.  This index is only required for the initial loadand may be deleted after the load.
          • Does NOT require use of DMC_INDXCL on source ECC system
          • Simple configuration
          • Like the standard reading type 3, this type creates more system load on the sender system, compared to reading types 4 and 5.
What to know and do before you start
  • May need to request storage and tablespace from customer
  • Add security profile S_BTCH_ADMIN to your SLT CPIC user on the source ECC system.  Sometimes, depending on Basis SP, the user will not automatically have the ability to release batch jobs and so your SLT access plan jobs will just sit there waiting to be manually released.  Therefore, make sure that you obtain the latest version of role SAP_IUUC_REPL_REMOTE and assign it to the user assigned to the rfc destination pointing from the SLT system to the source system. You can get this role from note 1817026.
  • Oracle and ASSM issues – Oracle 10.2.0.4 has issues with LOB tables which will impact inserts – they hang – to table DMC_INDXCL.  See note 1166242 for the work around:   alter table SAPR3.DMC_INDXCL modify lob (CLUSTD) (pctversion 10);
ECC Source System Preparation
  • Minimum DMIS SP:  DMIS 2010 SP07 or DMIS 2011 SP02. It is much better to go with the most recent release of DMIS SP.
  • For DMIS 2010 SP07 or DMIS 2011 SP02, ensure that note 1745666 is applied via SNOTE
    Note: The corrections of this note is included in DMIS 2010 SP08 and DMIS 2011 SP03.
  • For DMIS 2010 SP07 or DMIS 2011 SP02:  Ensure that note 1751368 is applied via SNOTE.
Netweaver-Based SAP System Landscape Transformation (SLT) Systems
  • SLT:  Minimum DMIS SP:  DMIS 2010 SP07 or DMIS 2011 SP02. 
  • For DMIS 2010 SP07 or DMIS 2011 SP02:  Ensure that note 1745666 and 1751368 are applied via SNOTE.
  • For DMIS 2010 SP08 or DMIS 2011 SP03:  Ensure that all notes listed in Note 1759156 – Installation/Upgrade SLT – DMIS 2011 SP3 / 2010 SP8 are applied and current.
  • SLT:  Add entry to table IUUC_PRECALC_OBJ
     /wp-content/uploads/2013/09/image002_286546.png
NUMREC:  The number of records to be processed per access plan work process.  Let’s say that we have 108,000,000 records and we want to use 5      access plan (ACC*) jobs on SLT – which corresponds to 5 access plan (MWB*) jobs on ECC.  Entering 20,000,000 in NUMREC will result in 6 jobs, 5 of      them handling 20M records each, the last one dealing with the remaining 8M records. So you could also specify 22,000,000 as value, in order to have a      more even distribution among only 5 jobs.
Cluster Tables:  NUMREC refers to the record count from the physical cluster table (RFBLG, for example), not the logical cluster table (BSEG, for      example).
NUMREC should be chosen in such a way that, if the delimitation must be done using the primary key (DB other than Oracle, or cluster or pool table), not      more than around 8 subsets (access plans) will be created. Keep in mind that in this case, each job will be a full table scan of the complete table, which is      not very efficient if done by a large number of jobs. On the other hand, in case of Oracle ROWID parallelization, you can allow more parallel jobs, because      each job will only process its specific ROWID range, rather than doing a real full table scan.
This table also includes 3 KEYFIELD columns. These can be ignored.
  • SLT:  Add entry to table IUUC_PERF_OPTION    
          /wp-content/uploads/2013/09/image003_286567.png
               parall jobs:  Number of load jobs. This is the maximum number of jobs that might run in parallel for this table, both in the access plan calculation,  and in the load.
               Sequence number:  Controls the priority of the jobs (lower number – higher priority). Usually 20 is a good value.
               Reading Type: 
                    • Cluster Table:  Type 4 ->  “ INDX CLUSTER (IMPORT FROM DB)”
                    • Transparent Table:  Type 5 -> “INDX CLUSTER with FULL TABLE SCAN”
                    NOTE:  The labels change between DMIS releases/patches.
  • HANA:  Select table for REPLICATION in Data Provisioning
  • ECC:  Review Transaction SM37
               • Job DMC_DL_<TABNAME> should be running (Oracle transparent tables only).  Job name for all other tables/databases would start                with /1CADMC/CALC_, followed by the respective table name.
               • Once this job is finished, one MWBACPLCALC_Z_<table name>_<mt id> should be running.
               /wp-content/uploads/2013/09/image004_286577.png
                    Starting from DMIS 2011 SP5, the job names will start with /1LT/IUC_CALCSACP and also include mass transfer ID and table name.
  • SLT:  Review Transaction SM37
    • Job ACC_PLAN_CALC_001_01 is running (Starting from DMIS 2011 SP5, the job names will be /1LT/MWB_CALCCACP_<mass transfer ID> )
               Ideally, more than 1 ACC_PLAN_CALC_001_0 job should be run as soon as the first job preparing the precalculation (DMC_DL_<TABNAME>)                has finished.  But only the number of access plan jobs you specified in the configuration will be started automatically.  Starting more, up to the                intended parallelization value, has to be done manually.
               Assuming that one 1 ACC job is already running, the screen below shows how you would run a total of 6 jobs concurrently.
               In the older Support Packages, we normally provide only one job for the access plan calculation step. Starting with DMIS 2011 SP4, or DMIS                2010 SP9, a more flexible control of the calculation jobs is available. You can use transaction MWBMON - Steps  Calculate Access Plan to                schedule  more jobs. In the ADRC example, with five parallel jobs, the screen would look as below. However, you need to make sure that the value                in field TABLE_MAX_PARALL in table DMC_MT_TABLES is set accordingly, to allow this degree of parallelization, by providing this value in                field parall_jobs when maintaining IUUC_PERF_OPTION, as shown above.
               You can check which access plans are being processed in table DMC_ACS_PLAN_HDR (OWNER guid field of the corresponding records point                to field GUID of DMC_PREC_HDR, the OWNER guid of which in turn points to DMC_MT_TABLES-COBJ_GUID).
               /wp-content/uploads/2013/09/image005_286578.png
                    /wp-content/uploads/2013/09/image006_286579.png
                         How to use the screen above to manage job count:
                        
                         • We have 1 job already running. To set “Number of jobs to be scheduled” to ‘3’ is translated to starting 3 additional ACC* jobs.
                         • If we also select the check box for “Restart”, we are saying that we want a total of ‘3’ jobs to run and so 2 additional ACC* jobs would start.
                         • Assuming that we have 8 concurrent jobs and we want to reduce the count to 6: Specify 6 in the “Number of jobs to be scheduled” field,                           select the check box for “Restart”. As access plan jobs complete, new jobs will not be started and ultimately, only 6 jobs will run concurrently.
Load Monitoring
  • SLT:  Standard MWBMON processes
  • ECC:  SM21/ST22/SM66
  • ECC:  Review Transaction SM37
    • Review job log for  MWBACPLCALC_Z_<table name>_<mt id> to monitor record count and progress:

               /wp-content/uploads/2013/09/image007_286581.png

Process Summary Checklist

  • SLT:  Created entry in IUUC_PRECALC_OBJ
  • SLT:  Created entry in IUUC_PERF_OPTION
  • SLT:  SLT batch jobs are running.
  • HANA: Table submitted from HANA Data Provisioning
  • ECC:  Job DMC_DL_<table_name> is running
  • SLT:   ACC* batch job is running
  • ECC:  Job DMC* started/finished and job MWBACPLCALC_Z_<table_name>_<mt_id> started
  • SLT:  All ACC* batch jobs completed
  • ECC:  All MWB* batch jobs completed
  • SLT:  Table loading (MWBMON)
  • HANA:  Table loaded and in replication

Post Load Considerations

After the load has completed, it is good manners to clean up DMC_INDXCL on the ECC system and remove the table data.  Starting with DMIS 2011 SP4, or DMIS 2010 SP9 this is done automatically, with older SPs, you should to it manually.

On Source System:

     Review your data in the DMC cluster table:

     Select * from <schema>.dmc_cluptr order by 1,2,3 where convobj_id=’Z_KONV_001

      /wp-content/uploads/2013/09/image0071_286594.png

       

      SE38->DMC_DELETE_CLUSTER_POINTER

          /wp-content/uploads/2013/09/image008_286601.png

               /wp-content/uploads/2013/09/image009_286602.png

      • The conversion object is the same as is listed in DMC_COBJ->IDENT on the SLT server.
      • Access plan ID is listed in select statement above.  Run this command for 00001-00005.
      • Select ‘delete cluster data’
      • There is no output.  If it does not fail, then it worked.

 

This is a techical expert guide provided by development. Please feel free to share your feelings and feedback.

Best,

Tobias               

To report this post you need to login first.

13 Comments

You must be Logged on to comment or reply to a post.

  1. Tamas Csuka

    Hi Tobias,

     

    great blog as alsways.

    I would have one question.

    If I use DMC_ACSPL_SELECT initial load filter for my cluster table to reduce the data already on ECC, how should I count the row numbers for the NUMREC field. Should I use the full table row count or only the row count for the filtered values?

     

    Thanks and regards

    Tamas

    (0) 
  2. Sachin Bhatt

    Tobias,

     

    I am going to attempt this next week for one of the big transparent table (800GB) in source (DB2).

    I am preparing by taking help from this blog.

    Wanted to know more on option reading type 5. You mention above that we may have to create a tablespace if use this option, can you provide more details on it (which tablespace??)

    (0) 
  3. Umamaheshwar Muramshetty

    Tobias

     

    I have defined Parallel process for the tables and started the replication. The table is very big and taking time to load. We have still some WPs available and would like to increase the parallel jobs.

     

    1. How do we increase the jobs when the table is in the process of initial load.

    2. Do we need to pause the load and then make changes and then resume the load.

     

    Mahesh Shetty

    (0) 
  4. Charlie Gil

    Hello Tobias

     

    I have a question about improve the initial load.

    In the below post, the initial load can be done with ‘Performance optimzed’ option with additional batch jobs.

     

    How to enable parallel replication before DMIS 2011 SP6

     

    Does it use parallel processing with the ‘Performance optimized’ option without any other manual steps? If not, what other manual steps are involved? Same as the old method?

    Our DMIS version is DMIS 2011_1_731 SP8 which is the latest.

    The following post shows how to configure parallel processing for initial load and it seems it is still valid. Is it also valid on DMIS 2011 SP8?

     

    http://scn.sap.com/thread/3689563

     

    Thanks

    (0) 
  5. Kalyan Dittakavi

    Hi Tobias

     

    Post Tech Ed 2015, we upgraded our SLT systems to SP9 ( DMIS 2011_1_731 and SP09).

     

    One of the main reason for doing this was to get the Filter option in the Initial Load. But surprisingly what i notice is the Fields for Filters are only the Key Fields of the Table.

     

    In my scenario, I am trying to use MARD Table where we have 600+Million Records and I want to replicate only from 2014 using the LFGJA ( Fiscal Year of Current Period). But as mentioned above, I am not seeing LFGJA in filter screen.

     

    Is there any special configuration i need to do to replicate the data based on “Non Key Fields” of a Table.

     

    Filter Option.gif

    (0) 
    1. Leo Frederiksen

      Hi

       

      For non-key fields you have to define the filters manually in table DMC_ACSPL_SELECT.

      This works. Alternatively, you can also create a view table in the source system with the filter that you use for the initial load, I have seen that calculating the access plan using a dedicated view with filters sometimes runs faster on very big tables.

       

      Please read this blog for more details.

      How To filter on the initial load & parallelize replication DMIS 2011 SP06 or higher

      (0) 
  6. Tim Korba

    Hi Tobias,

     

    We are working with a non-SAP Oracle System and was wondering if the following holds true:

     

    1) Are the above supported for Non-SAP Systems.  You reference within many of the steps for an ECC step to occur.  Some of the transactions (ECC) wouldn’t exist in Oracle as expected

     

    2) We have tried to run the Type 5 but it seems like it never completes nor have we seen an increase in package size.

     

    3) When we do not do anything special, we see decent performance but at times, though the resources seem to be available in Oracle, our package sizes are decreased significantly.  For example, we have one that is doing very quick reads and only bring back 300+ records for each pull which is obviously slow.

     

    4) What other documentation for performance improvements is available for Non-SAP Source Systems?

    (0) 
  7. Todd Barber

    Hi Tobias,

     

    We are using the Row Id method to load a very large table into HANA from ECC.  The calculation jobs finished, but we had a network error last night that stopped the load.  Is there a way to restart the load jobs?

     

    Thanks,

    Todd

    (0) 
  8. Sadanand Bhat

    @Tobias

     

    First of all thank you for the very good blog.

    I was making use of this blog to define 5 access Plan jobs in the SLT and I could see 5 jobs being started started in the source (MWB*). I also have a Filter set which would reduce number of records to be loaded drastically.

    I could notice that, out of 5 jobs (in the source), 3 jobs finished very quickly and remaining two ran for longer.

    Is this because of the Filter? Is there a way to distribute the access plan work equally across all 5 jobs so that calculation time is reduced.

    Looking forward for your answer.

    Thank you.

     

    saddy

     

    (0) 
  9. Allan Jørgensen

    Hello all

     

    We did the following finding (examplified) and wanted to share.

     

    We replicate 100 Tables from SapSystem1 to SapSystem2.

    We have given these tables priority 1,2,3,4 via transaction LTRS on SLT server.

     

    When we start full re-initialization of all 100 tables the following seem to happen.

    (What we would like to happen is of-cause to first do all priority 1 and then all priority 2 and so on…)

    Calculation jobs starts more or less random and calculates a single table and then moves on to the next one.

    The replication jobs starts replicating as soon as ANY table is calculated….

    So what we see is that calculation job might take a priority 4 table and then replication job will start to replicate that table since it is the only one available.

    (0) 

Leave a Reply