Application Development 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: 

Table related to Hide

Former Member
0 Kudos

Hello

Could any help me know table related ot Hide keyword

3 REPLIES 3

anversha_s
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Read this from sap help. It will help you to understand the same.

The HIDE statement is one of the fundamental statements for interactive reporting. You use the HIDE technique when creating a basic list. It defines the information that can be passed to subsequent detail lists.

REPORT demo_list_hide NO STANDARD PAGE HEADING.

TABLES: spfli, sbook.

DATA: num TYPE i,

dat TYPE d.

START-OF-SELECTION.

num = 0.

SET PF-STATUS 'FLIGHT'.

GET spfli.

num = num + 1.

WRITE: / spfli-carrid, spfli-connid,

spfli-cityfrom, spfli-cityto.

HIDE: spfli-carrid, spfli-connid, num.

END-OF-SELECTION.

CLEAR num.

TOP-OF-PAGE.

WRITE 'List of Flights'.

ULINE.

WRITE 'CA CONN FROM TO'.

ULINE.

TOP-OF-PAGE DURING LINE-SELECTION.

CASE sy-pfkey.

WHEN 'BOOKING'.

WRITE sy-lisel.

ULINE.

WHEN 'WIND'.

WRITE: 'Booking', sbook-bookid,

/ 'Date ', sbook-fldate.

ULINE.

ENDCASE.

AT USER-COMMAND.

CASE sy-ucomm.

WHEN 'SELE'.

IF num NE 0.

SET PF-STATUS 'BOOKING'.

CLEAR dat.

SELECT * FROM sbook WHERE carrid = spfli-carrid

AND connid = spfli-connid.

IF sbook-fldate NE dat.

dat = sbook-fldate.

SKIP.

WRITE / sbook-fldate.

POSITION 16.

ELSE.

NEW-LINE.

POSITION 16.

ENDIF.

WRITE sbook-bookid.

HIDE: sbook-bookid, sbook-fldate, sbook-custtype,

sbook-smoker, sbook-luggweight, sbook-class.

ENDSELECT.

IF sy-subrc NE 0.

WRITE / 'No bookings for this flight'.

ENDIF.

num = 0.

CLEAR sbook-bookid.

ENDIF.

WHEN 'INFO'.

IF NOT sbook-bookid IS INITIAL.

SET PF-STATUS 'WIND'.

SET TITLEBAR 'BKI'.

WINDOW STARTING AT 30 5 ENDING AT 60 10.

WRITE: 'Customer type :', sbook-custtype,

/ 'Smoker :', sbook-smoker,

/ 'Luggage weigtht :', sbook-luggweight UNIT 'KG',

/ 'Class :', sbook-class.

ENDIF.

ENDCASE.

At the event START-OF-SELECTION, the system sets the status FLIGHT for the basic list. In status FLIGHT, function code SELE (text SELECT) is assigned to function key F2 and to a pushbutton. So the event AT USER-COMMAND is triggered if the user double-clicks, presses F2, or chooses the pushbutton SELECT.

The three fields spfli-carrid, spfli-connid, and num are stored in the HIDE area while creating the basic list. After selecting a line, the system displays the detail list defined in the AT USER-COMMAND event for function code SELE. In the AT USER-COMMAND event, the system refills all fields of the selected line that were stored in the HIDE area. You use num to check whether the user selected a line from the actual list. The detail list has status BOOKING, where F2 is assigned to function code INFO (text: Booking Information). The detail list presents data that the program selected using the HIDE fields of the basic list. For each list line displayed, the system stores additional information in the HIDE area.

If the user selects a line of the detail list, the system displays the stored information in a dialog box with the status WIND. For the WIND status, the default values for the status type Dialog box have been adopted with the list status adjustment. The program uses sbook-bookid to check whether the user selected a valid line.

The program itself sets all page headers and the title bar of the dialog box.

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba42335c111d1829f0000e829fbfe/content.htm

Best Regards,

Vibha

*Please mark all the helpful answers

Former Member
0 Kudos

My question is that Hide keyword is storing temporary data in some table i want to know that table name