Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

HIDE TECNIQUE

Former Member
0 Likes
596

Hi..friends plz do let me know about this HIDE statement .

1.which variable is used by the system in which this HIDE statement hide the content n when we double click on it it release the information.

2.is it a system variable or variable defined in programe.

Hi..friends plz do let me know about this HIDE statement .

1.which variable is used by the system in which this HIDE statement hide the content n when we double click on it it release the information.

2.is it a system variable or variable defined in programe.

4 REPLIES 4
Read only

anversha_s
Active Contributor
0 Likes
569

hi salony,

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

if helped pls mark points

Read only

Former Member
0 Likes
569

Hi

HIDE statament is to store the string value of a line u need to know by doubleclick:

LOOP AT ITAB.

WRITE: ITAB-FIELD1, ITAB-FIELD2,

ITAB-FIELD3,...ITAB-FIELDN.

HIDE: ITAB-FIELD1, ITAB-FIELD2.

ENDLOOP.

In this way only the field2 and field2 are stored in memory by doubleclick.

U can know all values of selected line seeing the system variable SY-LISEL, but here u find whole value:

AT LINE-SELECTION.

CHECK NOT ITAB IS INITIAL.

WRITE: ITAB, / SY-LISEL.

Max

Read only

Former Member
0 Likes
569

Hi prashanth,

1. is HIDE area is a table?

Not is not a table.

It is just like a list (used with write statement)

the difference is, its not writen on screen,

instead it is STORED in memoery. (Line by line)

Just as we use write, we use

HIDE variablename.

and the value of the variable is STORED in memory

on the particular line number.

(we can retrive its value , on that particular

line number, when we doubl-click on the line

which is displayed using write)

2. for getting the taste of it ,

use this program (just copy paste)

(it will show u hidden fileds)

(it will display 2 lines, then on double-clicking,

it will show the hidden values 1000,2000)

REPORT abc.

DATA : a(10) TYPE c.

DATA : b(10) TYPE c.

a = '1000'.

b = 'mittal'.

WRITE : b.

HIDE a.

a = '2000'.

b = 'hello'.

WRITE 😕 b.

HIDE a.

AT LINE-SELECTION.

WRITE 😕 'hidden field a is : ' , a.

regards,

amit m.

Read only

Former Member
0 Likes
569

hi

when ever some interaction takes place,system recognises the value of sy-lisnd and sy-lisel. then it cheks the value of the field in the HIDE table and then copies the same so that it can b used in any other secondary lists.

This is the basic funda happening with the HIDE stmt.

sample coding, can refer 2 above posts.

and HIDE can be declared in the loop of the final Itab just after the write stmt.