Application Development 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: 

TableView

Former Member
0 Kudos

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?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You would have to code this manually using the set cursor command.

Darren

2 REPLIES 2

Former Member
0 Kudos

Hi,

You would have to code this manually using the set cursor command.

Darren

0 Kudos

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