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

Cursor position in table control

Former Member
0 Likes
2,439

Hi. I've added a new field to a table control generated for a table view in SM30.

The new field is part of the key, and is now the 4th out of 5 key fields, and there are 6 more fields in the table control.

The new field works fine, however the cursor keeps jumping to the new field instead of the first field.

I've put a SET CURSOR statement in the PBO of the screen, but it does not work.

I could re-build the screen easily enough but does anyone know how to get round this without doing that?

Thanks for your help,

Dave.

1 ACCEPTED SOLUTION
Read only

faisalatsap
Active Contributor
0 Likes
1,951

Hi, David

Use GET CURSOR in PAI and SET CURSOR in PBO, hope this will wrok.

Kind Regards,

Faisal

8 REPLIES 8
Read only

faisalatsap
Active Contributor
0 Likes
1,952

Hi, David

Use GET CURSOR in PAI and SET CURSOR in PBO, hope this will wrok.

Kind Regards,

Faisal

Read only

0 Likes
1,951

Hi. Sorry for delay in response. Yes, I have updated the table maintenance dialog, that is where I am having problems.

When I go to SM30 my new field is there, but the cursor jumps to the new field on entry to SM30 and when adding new lines. It should go to the first field in the table, my new field is in the middle.

I have done "SET CURSOR FIELD line 1" in the PBO, but it does not work. Do I need to GET CURSOR in PAI for the PBO to work?

Why does it go to the new field though? Is there a sequence somewhere that can be changed? I have checked in the screen builder and can not see anything except display sequence, which is fine, my field is displaying in the right place, it is just the cursor that is wrong.

Thanks a lot,

Dave.

Read only

0 Likes
1,951

When you changed the table maintenance dialogue, which reason(s) for change did you select?

Rob

Read only

0 Likes
1,951

Hi. Where do you put a reason for change? I just changed the screen from the function group in SE80.

Regards,

Dave.

Read only

0 Likes
1,951

So, I guess this is the source of your problem. Go to the table maintenance generator in SE11 and press the change button on the top left. It will give you a popup where you give your reason(s) for change.

You will probably lose any screen changes you made directly through SE80 though (a good reason not to make them in the first place).

Rob

Read only

0 Likes
1,951

This message was moderated.

Read only

0 Likes
1,951

Hi. I started from SE11. I changed the actual table, then I changed the view in SE11, then I went to SE80 and changed the screen.

I have actually just fixed the problem, for some reason the text field on the screen did not start with a * like all the others, so it was actually called the same as the input/output field, however it allowed that without errors.

That must have been throwing it out. I renamed the field to have a * at the beginning and it is now fine without the need for a SET CURSOR statement.

Thanks for your help.

Regards,

Dave.

Read only

Former Member
0 Likes
1,951

After you added the field to the table, did you change the table maintenance dialogue?

Rob