SAP Knowledge Base Article - Preview

2840398 - Runtime error TABLE_ILLEGAL_STATEMENT occurs during the data extraction

Symptom

During the data extraction, the following runtime error occurs from the customizing code:

Category ABAP programming error
Runtime Errors TABLE_ILLEGAL_STATEMENT
ABAP Program ZCL_IM_BW_xx  <--- Customer's own implementation
Error analysis:
| 2. In the body of a loop starting with "LOOP ... USING KEY ...", an |
| ABAP statement has been issued with an implicit index specification. |
| This is only permitted in connection with addition "USING KEY loop_key" |
| and applies to statements "DELETE itab" and "MODIFY itab". |

|Source Code Extract
| MODIFY lt_data FROM <ls_data>.


Read more...

Environment

  • SAP R/3
  • SAP R/3 Enterprise
  • SAP ERP Central Component
  • SAP ERP
  • SAP enhancement package for SAP ERP
  • SAP enhancement package for SAP ERP, version for SAP HANA
  • SAP S/4HANA

Product

SAP ERP Central Component all versions ; SAP ERP all versions ; SAP R/3 Enterprise all versions ; SAP R/3 all versions ; SAP S/4HANA all versions ; SAP enhancement package for SAP ERP all versions ; SAP enhancement package for SAP ERP, version for SAP HANA all versions

Keywords

KBA , BW-BCT , BW only - Business Content and Extractors , BC-BW , BW Service API , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.