‎2009 Dec 25 8:17 AM
Hello, I know that I can save my global variable value using
HIDEoperator.
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
‎2009 Dec 25 9:37 AM
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
‎2009 Dec 25 9:37 AM
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
‎2009 Dec 28 9:08 AM
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.
‎2010 Apr 09 3:41 AM
HIDE stores variables for the lines only. I need to identify which column I have clicked.
I found that
sy-cucolstores 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 ??
‎2010 Apr 09 4:32 AM
‎2010 Apr 09 5:20 AM
No need help anymore, found the answer, I had to user
sy-stacovariable,
It stores offset if user uses scrolling.
example:
DATA x_pos TYPE i. " Horizontal cursor position
DATA x_pos = sy-cucol + sy-staco. "