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 command

Former Member
0 Likes
772

What will exactly the hide statement do?

5 REPLIES 5
Read only

Former Member
0 Likes
747

For displaying the details on secondary lists requires that you have previously stored the contents of the selected line from within the program. To do this, ABAP/4 provides the HIDE statement. This statement stores the current field contents for the current list line. When calling a secondary list from a list line for which the HIDE fields are stored, the system fills the stored values back into the variables in the program. In the program code, insert the HIDE statement directly after the WRITE statement for the current line. Interactive lists provide the user with the so-called ‘INTERACTIVE REPORTING’ facility. For background processing the only possible method of picking the relevant data is through ‘NON INTERACTIVE REPORT’ . After starting a background job, there is no way of influencing the program. But whereas for dialog sessions there are no such restrictions.

Read only

0 Likes
747

Hi!!.

Use the HIDE technique while creating a list level to store line-specific information for later use.

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.

SAP LIBRARY: http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2c46358411d1829f0000e829fbfe/frameset.htm

Regards,

Juda

Read only

Former Member
0 Likes
747

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 is restored from the HIDE AREA. When calling a secondary list from a list line for which the HIDE fields are stored, the system fills the stored values back into the variables in the program. In the program code, insert the HIDE statement directly after the WRITE statement for the current line.

<b>Hope this is helpful</b>

Read only

Former Member
0 Likes
747

Hi

HIDE

The HIDE keyword is used to store data objects and their values so they can be made available when the User selects a report line. When a line is selected, the fields that were hidden are filled with the values that you hid for that line.

The user selects a line for which

data has been stored in the HIDE

area. The runtime system evaluates

field SY-LILLI to determine the

selected line.

The runtime system jumps to the

point in the HIDE area where data

for this line is stored.

The runtime system then inserts all

values stored for the selected line in

the HIDE area into their

corresponding fields.

The runtime system processes the

event AT LINE-SELECTION and

its corresponding program

processing block.

A detail list is created.

reward if usefull

Read only

Former Member
0 Likes
747

Hi,

HIDE statment is used to pass the value from one list to the other list.

for exapmle if you are writing value of X inside a DO loop and after each write statment you are incrementing it by one.

ex.

DATA X TYPE I VALUE 1.

Do 10 times.

WRITE:/ X.

X = X + 1.

ENDDO.

This statment will write values of X from 1 to 10 which will be printed on 1st list. Now suppose i ask you to design one more level of list that is interactive list in such a way that if user double click on a any number on the first list, same number should apper on the next list. In this case You will use AT LINE-SELECTION event but in AT LINE-SELECTION event if you will simply write WRITE X. it will print the last value of X which is 10 in this case(Because DO loop will be iterated for 10 times first and then it will come out seting value of X as 10) there fore to write the same value of X where user has double clicked SAP has given HIDE statment. It is specifically used in interactove list where HIDE statment makes it possible that the same value of variable will be available on the next list what was clicked on the the first list even if the variable's value has been changed.

So in our case to write the same value we will write in this way.

DATA X TYPE I VALUE 1.

Do 10 times.

WRITE:/ X.

HIDE X.

X = X + 1.

ENDDO.

AT LINE-SELECTION.

WRITE X.

You can hide more than one value so in your case HIDE matnr werks means these values will be same on the next level of list even if they have been changed.

<b>Reward points if it is helpful.</b>

Regards

Tanweer