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 AREA

Former Member
0 Likes
1,646

What is hide area used for?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,474

Hi,

Hide is used to hide the field values and retrive that value whnever required.

This is used in interactive reports.

Hide is awlys used after WRITE statement and not BEFORE write stattement.

Rvert back if any issues.

Reward with points if helpful

Regards,

Naveen

11 REPLIES 11
Read only

Former Member
0 Likes
1,475

Hi,

Hide is used to hide the field values and retrive that value whnever required.

This is used in interactive reports.

Hide is awlys used after WRITE statement and not BEFORE write stattement.

Rvert back if any issues.

Reward with points if helpful

Regards,

Naveen

Read only

Former Member
0 Likes
1,474

hide - it stores currenrt record when user select on field or line.

loop at itab.

write:/ itab-matnr,itab-maktx.

hide itab-matnr.

endloop.

at line-selection.

write:/itab-matnr.

Read only

Former Member
0 Likes
1,474

Hi

See this

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.

The example below presents some of the essential features of interactive reporting. The basic list contains summarized information. With the HIDE technique, it is possible to branch to more detailed information on subsequent lists.

The following program is connected to the logical database F1S.

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.

Regards

Tushar

Read only

Former Member
0 Likes
1,474

Hi friend,

Hide is generally used for interactive reports where u can drilldown detailed output list from main list using hide statement.

Read only

Former Member
0 Likes
1,474

hi,

see the below program, copy paste in your zprogram and run in debug mode you will find the real meaning

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.

rewards if useful

regards,

nazeer

Read only

Former Member
0 Likes
1,474

Hi,

The hide command temporarily stores the contents of the field at the current line in a system-controlled memory called the HIDE AREA. At an interactive event, the contents of the field are restored from the HIDE AREA.

check

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

Thanks

sandeep

Reward if helpful

Read only

Former Member
0 Likes
1,474

hi,

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.

Thanks,

Madhukar.

Read only

former_member196280
Active Contributor
0 Likes
1,474

HIDE statement make the field available in Secondary list.

Mostly used in INTERACTIVE REPORTING.

Reward points to all useful answers.

Regards,

SaiRam

Read only

Former Member
0 Likes
1,474

Hi Latha,

Hide is normaly used in Intractive report. Temp it will alocate Memory Area.

when You click on Basic List it Jump to Secondary List.

There are 1 Basic List and 20 Secondary List.

if you go more than that , then it show dump.

Reward If Help full

Read only

Former Member
0 Likes
1,474

HIDE is a memory area which is created Parallely along with the WRITE , where ever we use HIDE that particular value is stored in the HIDE area.

There is one draw back is using hide, it doesn't follow the same index pattern what internal table follows. Index of HIDE starts from o (zero) and of internal Table its 1. SO here discrepancy comes while accessing values for the secondry list when the user clicks on the Header line.

So it is always advisible to use clear the hide area before the control enters the next itteration of the LOOP.

I hope justice is done to ur querry...........

Sudhaker Dev Sharma

Read only

Former Member
0 Likes
1,474

Hi Latha

The hide command temporarily stores the contents of the field at the current line in a system-controlled memory called the HIDE AREA. At an interactive event, the contents of the field are restored from the HIDE AREA.

At the end of the processing block END-OF-SELECTION, delete the contents of one or more fields you previously stored for valid lines using the HIDE statement. At the event AT LINE-SELECTION, check whether the work area is initial or whether the HIDE statement stored field contents there.

REWARD IF USEFUL..!!