Share

Hello All,

There is always bunch of discussions, approaches on custom table migrations from SAPย ECC to S/4HANA.

I summarized the methods that been utilized in my experience.

Here’s a detailed step-by-step approach for migrating custom tables from SAP ECC to S/4HANA using SAP BODS, including load methods and best practices:

๐Ÿ“Œ Objective:

To migrate custom Z-tables from SAP ECC to SAP S/4HANA using SAP BODS (BusinessObjects Data Services), ensuring data accuracy, auditability, and system integrity.

๐Ÿ” Phases of Custom Table Migration

โœ… 1. Pre-requisites

Task

Details

๐Ÿ“„ Identify Tables

List all custom tables (Z* tables) to be migrated

๐Ÿ” Access Setup

Ensure BODS has access to ECC and S/4HANA systems (create datastores)

๐Ÿ“‚ Data Volume

Estimate the number of records to handle capacity planning

๐Ÿ› ๏ธ Coordination

Collaborate with ABAP team for BAPI/IDoc if needed

๐Ÿงพ Version Check

Ensure compatibility of ECC extractors and S/4 targets

๐Ÿ” 2. Source ECC Setup (BODS Extraction)

Step

Method

๐ŸŸข ECC Datastore in BODS

Create Application server-based datastore

๐Ÿ“ค Extract Table

Use Table Reader transform to extract data from custom Z-table (e.g., ZCUSTOM_DATA)

๐Ÿ“ Data Cleansing

Apply transformation using Query transform, remove blanks, trim strings, convert formats

๐Ÿ“‹ Delta Logic (optional)

Filter with date fields or change documents for incremental loads

๐Ÿงญ 3. Target S/4HANA Load Method (Options)

Load Method

Description

Usage

Direct DB Insert

Insert into S/4 custom Z-table if direct DB access is allowed

Least preferred (integrity risk)

BAPI / RFC Call

Use custom BAPI or FM created by ABAP team to handle inserts/updates

Recommended

IDoc

Use custom IDoc (ZIDOC) type to post data into S/4

Reliable for large volumes

Intermediate Staging

Load into staging DB (e.g., HANA) and use SLT or ABAP program to post to S/4

When performance is a concern or no interface is available

๐Ÿ”ง Work closely with the ABAP team to create the required Z_BAPI_LOAD_CUSTOM or IDoc type (if not existing).

๐Ÿ”„ 4. BODS Job Design

Workflow:Source Table Read โ†’ Transformation โ†’ Target LoadJob Elements:Batch Job with Error handlingValidation logic (null checks, date formats, etc.)Use Case Transform or Validation transform if neededUse Auditing and logging to record success/failure count

๐Ÿงช 5. Testing & Validation

Type

Action

โœ… Unit Test

Load limited records first

๐Ÿ“Š Reconciliation

Match record counts, key fields between ECC and S/4

๐Ÿ” Functional Validation

Ensure data is correctly reflected in S/4 via GUI

๐Ÿ”„ Re-run Capability

Add timestamp or keys for delta re-run or rollback options

๐Ÿ“ฆ 6. Deployment & Post-Migration

Document the job flows and configurationsSchedule BODS jobs (via Management Console or third-party scheduler)Monitor first few loads manuallyArchive logs and reconciliation reports

๐Ÿงฐ Example: ZSALES_MIGR Table Migration

Source

ECC โ†’ ZSALES_MIGR

BODS reads data

from ECC โ†’ ZSALES_MIGR

Transforms data

cleans up codes, formats, adds audit info

Loads to S/4HANA

via Z_BAPI_LOAD_SALES_MIGR BAPI

Post-checks

Validate in S/4 GUI with TCode SE16N

๐Ÿ“Œ Final Tips

๐Ÿšซ Avoid direct DB inserts to S/4 unless approved๐Ÿ” If data is large, consider batch-wise chunking๐Ÿ“ค Maintain logs for each load (successful + failed)๐Ÿ’ฌ Always align with functionals to confirm logic and structure

Happy Learning. please share your comments and feedback.

Thanks,

Venkatesh Golla

ย 

ย ย Read Moreย Technology Blogs by Members articlesย 

#abap

By