‎2006 Oct 04 11:34 AM
in interactive reports if we use hide statement if we click on any column in a line hide variables values will be retrieved. if i click on column it should disply one secondary list if i click on some other column it should display some other list. how can we do it by using hide statement. or if someother statement is there let me know. i think it is possible with get cursor field. if u know something else let me know.
thanks
abaper
‎2006 Oct 04 11:35 AM
hi,
chk this.
HIDE
Basic form
HIDE f.
In an ABAP Objects context, a more severe syntax check is performed that in other ABAP areas. See Constants not allowed in HIDE area.
Effect
Retains the contents of f related to the current output line. When the user selects the line from the list f is automatically filled with the retained value.
The selection can occur in:
AT LINE-SELECTION
AT PFx
AT USER-COMMAND
READ LINE
The contents of the field do not have to have been displayed using WRITE in order for you to retain them.
The HIDE statement does not support deep structures (structures that contain internal tables).
Useful system fields for interactive reporting are listed in the System Fields for Lists documentation.
Note
Lines or components of lines of an internal table that you address using a field symbol (see ASSIGNING addition to the READ and LOOP statements), cannot be retained using HIDE. You can store them using a global variable instead.
Note
Runtime errors:
HIDE_FIELD_TOO_LARGE: The field is too long for HIDE.
HIDE_ON_EMPTY_PAGE: HIDE not possible on an empty page.
HIDE_NO_LOCAL: HIDE not possible for a local field.
HIDE_ILLEGAL_ITAB_SYMBOL: HIDE not possible for a table line or component of a table line.
and also a sample program.
report zxy_0003.
data: begin of itab occurs 0,
field type c,
end of itab.
itab-field = 'A'. append itab.
itab-field = 'B'. append itab.
itab-field = 'C'. append itab.
itab-field = 'D'. append itab.
itab-field = 'E'. append itab.
loop at itab.
format hotspot on.
write:/ itab-field.
hide itab-field.
format hotspot off.
endloop.
at line-selection.
write:/ 'You clicked', itab-field.
It kind of "remembers" what is written, so that when you click on it, it knows what the value is.
Please remember to award points and mark as solved if your question has been answered. Thanks.
Regards,
anver
‎2006 Oct 04 11:35 AM
Hi Rehana,
Check the example program:
demo_list_hide
Regards,
Ravi
‎2006 Oct 04 11:36 AM
Hi Rehana,
You can use ALV Tree. Please check program BCALV_TREE_01 in SE38.
Best regards,
Prashant
Pls. mark points for helpful answers
‎2006 Oct 04 11:48 AM
hi,
Check sample code of using HIDE statemetn
http://www.erpgenie.com/abap/code/chap1704.txt
Regards,
Sailaja.
‎2006 Oct 04 1:31 PM
i think you mean this:
AT LINE-SELECTION.
GET CURSOR FIELD position.
CASE position.
WHEN 'PSP-POSID'.
SET PARAMETER ID 'PSP' FIELD psp-posid(8).
SET PARAMETER ID 'PRO' FIELD psp-posid.
CALL TRANSACTION 'CJ13' AND SKIP FIRST SCREEN.
WHEN 'BEST-EBELN'.
SET PARAMETER ID 'BES' FIELD best-ebeln.
CALL TRANSACTION 'ME23' AND SKIP FIRST SCREEN.
...in this exampl eyou must hide :
1) psp-posid and 2) best-ebeln
A.
pls reward useful answers
thank you!