‎2008 Jun 20 1:29 PM
Hi everybod,
i got a small Problem with the HIDE command in ABAB Objects. I got a Method called
write_on_screen( ). in this method i got code like this:
DATA:
test TYPE c.
test = 'Hello'.
WRITE: /0 sym_minus_folder AS SYMBOL HOTSPOT.
WRITE: /5 'Im a dummy line'.
HIDE test.
Then i got this message "You cannot use HIDE with a local field."
If i change the code like this
WRITE: /0 sym_minus_folder AS SYMBOL HOTSPOT.
WRITE: /5 'Im a dummy line'.
HIDE _test.
_test is an Attribute of the class with the type c. "HIDE is not supported with the attributes of classes. "
Maybe someone got an advice for me.
Greetings
Edited by: Moritz Lutz on Jun 20, 2008 2:29 PM
‎2008 Jun 20 1:46 PM
Moritz,
Please Use SAP help first because no one can challange them.
press F1 on HIDE and read the help.
specially
Exceptions
Non-Catchable Exceptions
Cause: The field is too long for HIDE.
Runtime Error: HIDE_FIELD_TOO_LARGE
Cause: HIDE in a table row or a component in a table row is not possible.
Runtime Error: HIDE_ILLEGAL_ITAB_SYMBOL
Cause: HIDE in a local field is not possile.
Runtime Error: HIDE_NO_LOCAL: HIDE"here is your issue
Cause: HIDE in an empty page is not possible.
Runtime Error: HIDE_ON_EMPTY_PAGE
Amit.
‎2008 Jun 21 11:25 AM
Hello Moritz
The error messages are quite clear: the field used for the HIDE statement must be a global variable of your report and cannot be part of your ABAP class.
Why?
The hidden fiields will only be processed within the list-processing (e.g. you double-click on a row on WRITE your list). Obviously you cannot link this list-processing event to your ABAP class (e.g. using an event handler method).
Regards
Uwe