Ansicht
Dokumentation

MESSAGE ... WITH INDEX / PARAMETERS INDEX <br />Tip-No.: 2336 ( INFO2336 )

MESSAGE ... WITH INDEX / PARAMETERS INDEX
Tip-No.: 2336 ( INFO2336 )

ABAP Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Short text

MESSAGE ... WITH INDEX / PARAMETERS INDEX
Tip-No.: 2336

Symptom

ABAP/4 statement MESSAGE .... WITH INDEX issues syntax error
"Field TO unknown.
Statement PARAMETERS INDEX produces the same.

Cause

The 4 parameters of the MESSAGE statement (after with) are transferred
to the appropriate system fields with WRITE ... TO. Since INDEX
is an option for WRITE ... TO, however, a syntax error is recognized
in this location if the field itself is called INDEX.
The same applies to the inclusion of the parameter in structure
SELC.

Solution

Correction.
Until then, for MESSAGE, do not use a variable named INDEX.
avoid PARAMETER INDEX.






General Material Data   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 830 Date: 20240425 Time: 122339     sap01-206 ( 13 ms )