DTP Error Handling, Semantic Groups and Delta Queue Management
Learn how to configure DTP error handling, semantic grouping, and delta queue behavior to build resilient, restartable data loads in production BW and BW/4HANA landscapes.
Explanation
Once a DTP is created and scheduled, the real operational challenge is making loads resilient to bad records, network interruptions, and locking conflicts without stopping the entire process chain. Three interconnected DTP capabilities address this: error handling mode, semantic grouping, and delta queue/request management. Error handling in a DTP determines what happens when individual records fail during transformation (invalid characteristic value, conversion error, routine exception). The DTP execution tab offers options ranging from 'No Update, No Reporting' (the whole request fails on any error, simplest but least tolerant), to 'Valid Records Update, No Reporting' (good records are written to an error stack but the request is not available for reporting until manually released), to 'Valid Records Update, Reporting Possible' (good records become available immediately while bad records go to the error stack for later correction and reprocessing via an error DTP). Choosing the right mode is a business decision: financial postings often require zero-tolerance (no update on any error) because partial data is worse than no data, while high-volume sensor or web log data may tolerate 'valid records update' so that most data is usable while a small error subset is investigated separately. Semantic grouping controls how records are packaged for parallel processing. When a DTP processes data in multiple parallel packages, records that must be processed together (for example, all line items for a given sales document, or all deltas for a given customer master ricord) need to end up in the same package to preserve correct aggregation and delta overwrite behavior. The semantic key defined in the DTP's semantic groups ensures that all records sharing the same key values are routed to the same package, even under parallel processing. Getting semantic grouping wrong is a subtle bug: results may look correct most of the time but produce nondeterministic aggregation errors under heavim parallel load, because splitting related records across packages can cause overwrite-based key figures (like non-cumulative stock values) to be processed out of order. Delta queue management concerns how a delta DTP tracks which requests it has already consumed from its source (an ODS/DSO, InfoCube, or the source system's delta queue via RSA7 in classic extraction scenarios). Each delta DTP maintains its own pointer, so multiple delta DTPs can read from the same DSO active table independently, each with its own request status log visible in the DTP monitor. Problems arise when a delta DTP is deleted and recreated: unless deltas are properly reinitialized, the new DTP either duplicates already-loaded data or misses records, both requiring a full reinitialization load (init without data transfer plus manual backfill, or a full repair load) to resynchronize. In BW/4HANA, the fundamentals are the same, but the object model is simplified: InfoPackages are largely obsolete for standard scenarios, DTPs directly manage delta from source systems including HANA-based sources, and the error stack / error DTP mechanism remains available for advanced DataStore Objects (ADSOs). Monitoring is more consolidated in the newer process chain and monitor Fiori-based tools, though the underlying delta and semantic grouping concepts a BW consultant learned in classic BW still apply directly. From a production support perspective, the DTP monitor (via the process chain log or the DTP's own request monitor) is the primary diagnostic tool: it shows number of records extracted, transferred, and updated per package, along with any error stack entries. A consultant investigating a failed load should check whether the failure is at extraction (source system connectivity), transformation (rule-level error, often visible as a short dump or specific record error), or update (target-side lock conflict or check table violation), because each failure type has a different remediation path.
Code example
-- Not a database language object; DTP behavior is configured via BW modeling tools.-- Representative ABAP-side check used in troubleshooting a failed DTP request status: DATA: lv_reqtsn TYPE rsselect-tsn. * Pseudocode reflecting typical support check against DTP request monitor tables* (exact table/API not asserted here; consult the DTP monitor UI for authoritative status)SELECT SINGLE tsn status FROM /bic/demo_dtp_log " illustrative name only, not an actual SAP table INTO (lv_reqtsn, @DATA(lv_status)) WHERE dtp_id = 'DTP_SALES_DELTA'. IF lv_status = 'RED'. " Investigate error stack via DTP monitor: " 1. Open DTP request in monitor " 2. Navigate to Error Stack tab " 3. Review failed records and correct source data or transformation rule " 4. Execute the Error DTP to reprocess only the corrected recordsENDIF.Real project scenario
A retail BW client had a delta DTP loading POS transaction data into an ADSO nightly. Once a month, the load failed intermittently with lock timeout errors traced back to two parallel DTPs writing to the same ADSO active table without proper semantic grouping on store and transaction date. The team redefined the semantic key to include store ID and posting date, which forced related records into the same package and eliminated cross-package contention, resolving the intermittent failures without needing to reduce parallel degree.
Common mistakes
โข Setting error handling to 'No Update, No Reporting' for high-volume operational data, causing entire nightly loads to fail on a handful of bad records instead of isolating them. โข Deleting and recreating a delta DTP without performing a proper reinitialization, causing duplicate or missing delta records. โข Ignoring semantic grouping when overwrite key figures or non-cumulative values are involved, leading to intermittent, hard-to-reproduce aggregation errors under parallel processing. โข Not reviewing the error stack promptly, letting rejected records accumulate silently until a downstream report shows unexplained gaps. โข Assuming BW/4HANA eliminates the need to understand delta queue mechanics, then mismanaging source system delta queues during migration cutover.
Best practices
โข Match error handling mode to business criticality: strict for financial/regulatory data, tolerant with error stack review for high-volume operational data. โข Define semantic groups on any key that affects overwrite, aggregation order, or referential integrity across parallel packages. โข Document delta DTP recreation procedures, including mandatory reinitialization steps, in the team's operational runbook. โข Monitor error stack size as a recurring health metric, not just load success/failure status. โข Use the DTP monitor's package-level detail to distinguish extraction, transformation, and update failures before escalating to source system or database teams.
Interview angle
Interviewers use DTP error handling and semantic grouping questions to test whether a candidate has actually operated production loads rather than only built DTPs in development. Be ready to explain the three error handling modes and when each is business-appropriate, describe why semantic grouping matters for parallel processing correctness (not just performance), and walk through a real delta reinitialization scenario, including how you would detect and repair duplicate or missing delta records after a DTP recreation.