‎2008 May 16 12:14 PM
‎2008 May 16 12:16 PM
HIDE dobj.
This statement stores - in the current list level - the content of the variable dobj together with the current list line whose line number is contained in sy-linno. The data type of the variables dobj must be flat and no field symbols can be specified that point to rows of internal tables, and no class attributes can be specified. The stored values can be read as follows:
For each user action in a displayed screen list that leads to a list result, all the row values stored using HIDE - that is, the row on which the screen cursor is positioned at the time of the event - are assigned to the respective variables.
If a list row of an arbitrary list level is read or modified using the statements READ LINE or MODIFY LINE, all the values of this row stored using HIDE are assigned to the respective variables.
‎2008 May 16 12:18 PM
Hi
HIDE is the statament to store in memory the data u need to show or get by a doubleclick in the event AT LINE-SELECTION or AT USER-COMMAND.
It creates a link beetween the data and the line selected, in this way you'll have the variable filled with the data of the line.
Max
‎2008 May 16 12:21 PM
Hi,
This statement stores the content of a variable dobj together with the current list line whose line number is contained in sy-linno in the hide area of the current list level. The data type of the variables dobj must be flat and no field symbols can be specified that point to rows of internal tables, and no class attributes can be specified. The stored values can be read as follows:
For each user action in a displayed screen list that leads to a list result, all the row values stored using HIDE - that is, the row on which the screen cursor is positioned at the time of the event - are assigned to the respective variables.
If a list row of an arbitrary list level is read or modified using the statements READ LINE or MODIFY LINE, all the values of this row stored using HIDE are assigned to the respective variables.
The HIDE statement works independently of whether the list cursor was set. In particular, variables for empty list rows can be stored - that is, rows in which the list cursor was positioned using statements like SKIP.
The HIDE statement should be executed immediately at the statement that has set the list cursor in the row.
Outside of classes, prior to release 7.0, for dobj constants and literals could still be specified. However, it was not possible to read them at list events and in the READ LINE statement.
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.Regards
Kannaiah
‎2008 May 16 12:24 PM
HI,
refer to the below link
http://www.sapbrainsonline.com/ARTICLES/TECHNICAL/ABAP/HIDE_Technique.html
reward if useful.
thanks and rewards.
‎2008 May 16 12:26 PM
Hi,
HIDE Concept:
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.
Regards,
Kumar.
‎2008 May 16 12:40 PM
hi,
hide ias an alternativ eto read statement.
whenever you are dealing with interactive reports, you want to display some particular rcords in detail , in such acase hide is useful.
Hide is an internal table which consists of the following fields:
1. List number
2. line number
3.field name
4. field value
if suppose basic list is having 200 records in 4 pages.
if you have hided two fields let us say.
then hide table consists of 400 records. That much memory is occupied. So it is recommended genarally when there are not so many records in the basic list.
for example , if you click on 135 th record in 3rd basic list.
sy-lsind = 3, sy-linno = 135.
So that particular record's field name is passed to field value.
With the help of this we can avoid couple of string staements in the basic list.
Reward if helpful.
rgds
umakanth
‎2008 May 16 1:12 PM
In ABAP HIDE is an important technique and is used in interactive reporting. The HIDE statement defines the information that needs to be passed to the subsequent lists.
Consider this simple example of the HIDE statement to understand the concept. In this example I want to select the Header data of all the sales order into an internal table. I will then display only the customer numbers. Once the user clicks on the customer number the Following information will be displayed as the Secondary list.
CUSTOMER NUMBER
PURCHASE ORDER NUMBER
SALES ORDER NUMBER
SALES ORGANIZATION
DISTRIBUTION CHANNEL
DIVISION
To achieve this we will hide the above mentioned fields using the HIDE statement. The Program is given below.
REPORT ZEX_HIDE .
&----
*& ABAPLOVERS THE HIDE STATEMENT
&----
Tables
TABLES VBAK.
Internal table
DATA int_VBAK LIKE VBAK OCCURS 100
WITH HEADER LINE.
Processing data
START-OF-SELECTION.
SELECT * FROM VBAK INTO TABLE INT_VBAK.
LOOP AT int_vbak.
WRITE / int_vbak-kunnr HOTSPOT ON.
HIDE: int_VBAK-VBELN,
int_VBAK-KUNNR,
int_VBAK-BSTNK,
int_VBAK-VKORG,
int_VBAK-VTWEG,
int_VBAK-SPART.
ENDLOOP.
Secondary List
AT LINE-SELECTION.
WRITE: / 'Sales Order Details',
int_VBAK-KUNNR,
int_VBAK-BSTNK,
int_VBAK-VBELN,
int_VBAK-VKORG,
int_VBAK-VTWEG,