10-08-2008 10:21 AM
Hello Professionals!
I am using TableView in my program. When pressed 'Enter', cursor is moved to next line, but I want to put it to next field. How I can do it?
10-08-2008 1:07 PM
Hi,
You would have to code this manually using the set cursor command.
Darren
10-08-2008 1:07 PM
Hi,
You would have to code this manually using the set cursor command.
Darren
10-08-2008 1:33 PM
Thank Yoy for help!
Example:
PAI:
module TMPMODULE input.
DATA: L_FIELD(50),
L_LINNO TYPE I.
GET CURSOR FIELD L_FIELD LINE L_LINNO.
data wa1 like line of MYTABLEVIEW-cols.
data NextExit type c.
NextExit = ''.
LOOP AT MYTABLEVIEW-cols into wa1.
IF NextExit = 'X'.
L_FIELD = wa1-screen-name.
exit.
ENDIF.
if wa1-screen-name = L_FIELD.
NextExit = 'X'.
endif.
ENDLOOP.
endmodule. " TMPMODULE INPUT
PBO:
module TMPMODULEPBO output.
SET CURSOR FIELD L_FIELD LINE L_LINNO.
endmodule. " TMPMODULEPBO OUTPUT
Edited by: Andrej S on Oct 8, 2008 4:27 PM