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 & Get-cursor

Former Member
0 Likes
1,009

Hi,

wht is the difference between hide & Get-cursor .

Vighnesh .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
843

Hi,

<b>HIDE</b>

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.

Hide is statement which staroe the information you specified in list to a Hide internal table and by that we can use the field swe stored.

<b>GET CURSOR</b>

Use the statements GET CURSOR FIELD and GET CURSOR LINE to pass the output field or output line on which the cursor was positioned during the interactive event to the ABAP program.

But by using GET CURSOR we can select the fields after list has been processed.

check the program <b>DEMO_LIST_HIDE</b> for hide technique.

<b> DEMO_LIST_GET_CURSOR</b> for get cursor technique.

Regards,

Padmam.

4 REPLIES 4
Read only

Former Member
0 Likes
843

Hide

To prevent the user from selecting invalid lines, ABAP/4 offers several possibilities. 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. After processing the secondary list, clear the work area again. This prevents the user from trying to create further secondary lists from the secondary list displayed.

GetCursor

If the hidden information is not sufficient to uniquely identify the selected line, the command GET CURSOR is used. The GET CURSOR command returns the name of the field at the cursor position in a field specified after the addition field, and the value of the selected field in a field specified after value.

Girish

Read only

Former Member
0 Likes
843

Hi,

GET CURSOR : Transfers the name of the field at the cursor position to the field f.

DATA: CURSORFIELD(20),

GLOB_FIELD(20) VALUE 'global field',

REF_PARAMETER(30) VALUE 'parameter by reference',

VAL_PARAMETER(30) VALUE 'parameter by value',

FIELD_SYMBOL(20) VALUE 'field symbol'.

FIELD-SYMBOLS: <F> TYPE ANY.

PERFORM WRITE_LIST USING REF_PARAMETER VAL_PARAMETER.

ASSIGN GLOB_FIELD TO <F>.

AT LINE-SELECTION.

GET CURSOR FIELD CURSORFIELD.

WRITE: / CURSORFIELD, SY-SUBRC.

FORM WRITE_LIST USING RP VALUE(VP).

DATA: LOK_FIELD(20) VALUE 'local field'.

ASSIGN FIELD_SYMBOL TO <F>.

WRITE: / GLOB_FIELD, / LOC_FIELD,

/ RP, / VP,

/ 'literal', / FIELD_SYMBOL.

ENDFORM.

HIDE : The contents of f related to the current output line are stored. If this line is selected, f is filled automatically with the stored value.

You do not have to output the field with WRITE in order to be able to store its value.

The HIDE statement does not support structures that contain tables (deep structures).

Regards

Read only

Former Member
0 Likes
843

Hi,

GET CURSOR

Gets the cursor position on a screen or in an interactive list event.

Syntax

GET CURSOR FIELD <f> [OFFSET <off>] [LINE <lin>]

[VALUE <val>] [LENGTH <len>].

GET CURSOR LINE <lin> [OFFSET <off>] [VALUE <val>] [LENGTH <len>].

At a user action on a list or screen, the statement writes the position, value, and displayed length of a field or line into the corresponding variables.

HIDE

Stores information about list lines.

Syntax

HIDE <f>.

While the list is being created, this statement stores the contents of the field <f> and the current line number in the internal HIDE area When the cursor is positioned on a line in an interactive list event, the stored value is returned to the field <f>.

Regards,

Priyanka.

Read only

Former Member
0 Likes
844

Hi,

<b>HIDE</b>

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.

Hide is statement which staroe the information you specified in list to a Hide internal table and by that we can use the field swe stored.

<b>GET CURSOR</b>

Use the statements GET CURSOR FIELD and GET CURSOR LINE to pass the output field or output line on which the cursor was positioned during the interactive event to the ABAP program.

But by using GET CURSOR we can select the fields after list has been processed.

check the program <b>DEMO_LIST_HIDE</b> for hide technique.

<b> DEMO_LIST_GET_CURSOR</b> for get cursor technique.

Regards,

Padmam.