ABAP_ASSERT at WRITE

[] [] [] []

  1. WD ABAP ALV: Selections are lostSymptom In a Web Dynpro ABAP ALV list, you select more than one row. You select the rows from bottom to top (row 5, 4, 3). The system retains only the first...
  2. WD ABAP ALV Values displayed in empty cells after “Enter”Symptom In a WD ABAP ALV list, you enter initial values in an editable column and then you enter valid values. You then choose “Enter”. The initial values contain the value of...
  3. WD ABAP ALV error messages in filter row disappearSymptom You activate the filter row in a Web Dynpro ABAP ALV list. You enter an invalid entry in the filter row for a column. The system issues an error message. The...
  4. WD ABAP ALV: Internal improvements (change logs)Symptom This note concerns internal improvements: Change log classes on new interfaces have been adjusted. Other terms Web Dynpro ABAP ALV Reason and Prerequisites This problem is caused by a program error....
  5. WD ABAP ALV: first_visible_scroll_col not resetSymptom Beim Umschalten aus einer Sicht “A”, in der die Anzahl der angezeigten Spalten explizit begrenzt wurde, auf eine Sicht “B” (bspw. die [Standardsicht]), in der die angezeigten Spalten auf “Alle” konfiguriert...
  6. ABAP Types N, D and T in the COMPUTE EXACT statementSymptom The statement COMPUTE EXACT allows operands of the types N, D and T at runtime although there is a syntax error if the operand types are known at compile time. Reason...

Symptom

Runtime error ABAP_ASSERT at ABAP statement WRITE if the field is
in a boxed component. This problem occurs in debug build only.
One example where the problem occurs is as follows:
TYPES : BEGIN OF str_box,
val TYPE i,
END OF str_box.
TYPES : BEGIN OF str_root,
box TYPE str_box BOXED,
END OF str_root.
DATA s TYPE str_root.
FIELD-SYMBOLS TYPE str_box.
ASSIGN s-box TO .
WRITE -val.
The same problem occurs at WRITE-statements in forms or methods where the boxed component s-box is passed as an argument. The problem also occurs when the ASSIGN-statement (or passed argument) involves nested substructures of boxed components.
The problem does not occur when the ASSIGN-statement (or passed argument) does not involve boxed substructures directly, e.g. like in the following continuation of the example above:
DATA a TYPE str_box.
a = s-box.
ASSIGN a TO .
WRITE -val.

Reason and Prerequisites

Error in SAP Kernel.
Solution

Fixed in SAP NW Kernel release 720 and 72L.
For Kernel release 711, a kernel patch is available.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Leave a Comment