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

using SET CURSOR with table control

Former Member
0 Likes
659

I have table control and one input/output field on output screen.

my requirement is,

"when user will enter some value in i/o field, cursor should go to that record in table control."

I am tring to do this with 'SET CURSOR FIELD'.

but it is not working.

plz can any one help me..?

thanks..

4 REPLIES 4
Read only

Former Member
0 Likes
561

Hi,

You need to use this key word SET CURSOR in PBO only.

give the field name in caps and single quotes(to the best of my knowledge)

Do not implement these statements in FLOW LOGIC

create a module in the flow logic and then in the module(abap editor) implement it

take the F1 help for further info.

Regards

Ramchander Rao.K

Edited by: Ramchander Krishnamraju on Aug 3, 2009 11:23 AM

Read only

venkat_o
Active Contributor
0 Likes
561

Hi, <li> Lets say, your table control name is TABC, when you input something in I/O field and press ENTER, cursor needs to placed at first row of table control record. <li> you need to put the below statement, before LOOP-ENDLOOP in PAI event.


SET CURSOR FIELD 'TABC-COLS-MATNR' LINE 1.
Thanks Venkat.O

Read only

Former Member
0 Likes
561

Thanks Venkat...

But I can not write SET CURSOR FIELD statement in flow logic..

its givig error.

plz guide me..

Read only

0 Likes
561

SET CURSOR FIELD 'column name' LINE 1.

column name should be work area name followed by actual column name.

loop at <it1> into <wa1>.

endloop.

In this case, column name should be given as follows.

wa1-XYZ. XYZ is a column in the structure which is displayed in the UI.