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

listing: hide variable in a vertical position

Former Member
0 Likes
648

Hello, I know that I can save my global variable value using

HIDE

operator.

But it stores value only for a line, I mean if i have many columns I get the value for all columns. I need to get different values for different rows and columns

Do you know how to save value for a column ?

Thank You.

Edited by: kernel.panic on Dec 25, 2009 9:21 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
608

Hi

The command HIDE stores the value for all lines where it used, that means if HIDE is used whil every line is being written, the effects will be to store the values of whole colunm.

Anyway in event like AT LINE-SELECTION it will be returned the value of a single (selected) line of course.

Max

5 REPLIES 5
Read only

Former Member
0 Likes
609

Hi

The command HIDE stores the value for all lines where it used, that means if HIDE is used whil every line is being written, the effects will be to store the values of whole colunm.

Anyway in event like AT LINE-SELECTION it will be returned the value of a single (selected) line of course.

Max

Read only

Former Member
0 Likes
608

Just use HIDE on what ever you write...it will store the value.

for your reference

DATA: square TYPE i,

cube TYPE i.

START-OF-SELECTION.

DO 10 TIMES.

square = sy-index ** 2.

cube = sy-index ** 3.

WRITE / sy-index." HOTSPOT.

HIDE: square, cube.

ENDDO.

AT LINE-SELECTION.

WRITE: square, cube.

Read only

0 Likes
608

HIDE stores variables for the lines only. I need to identify which column I have clicked.

I found that

sy-cucol

stores the position it's very helpful, but when I scroll the screen varibale changes its value too.

It has relative value I want to get absolute.

Somebody knows any other ways ??

Read only

Former Member
0 Likes
608

Maby someone knows how to catch up scroll action ?

Read only

0 Likes
608

No need help anymore, found the answer, I had to user

sy-staco

variable,

It stores offset if user uses scrolling.

example:

DATA x_pos TYPE i. " Horizontal cursor position

DATA x_pos = sy-cucol + sy-staco. "