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

Problems with SET CURSOR

Former Member
0 Likes
1,175

Hi!!

I have got screen 9000. I have a table control in it with several fields. I have written this code as the final sentence in PBO:

.....

MODULE situar_cursor_9000.

where form situar_cursor_9000 looks like:

SET CURSOR FIELD ini_zmov_wm-almacen LINE 1.

ini_zmov_wm is the name of the table control and almacen is the first field shown in it.

I have a button in screen 9000 which opens another dynpro, dynpro 9001. If I set cursor with the mouse in the last field

in dynpro 9000; push button and go to dynpro 9001; when I get back "situar_cursor_9000" is executed but I am still in the last field of table control instead of being in the first which is almacen.

Thank in advance.

10 REPLIES 10
Read only

Former Member
0 Likes
1,130

Hi,

is it the same if you work with refresh dynpro in the pbo module for dynpro 9000?

Read only

0 Likes
1,130

Does it work the first time you get there?

Either your coding doesnt work out or PBO doesnt get troggered when returning to your screen. Tho to be honest i dont really know why PBO shouldnt get triggered.

Read only

0 Likes
1,130

No, it does never work; not even when I refresh dynpro 9000.

What´s wrong?

Read only

0 Likes
1,130

When you come back to the screen, simple press an Enter key.. Does the cursor get set to the required field??

Suzie

Read only

0 Likes
1,130

hi,

there is a posibility , the line is being ignored.Refer following from F1 help on set cursor.

"If there is no line or group for the value of line, or the addition LINE is not specified, the statement is ignored. The statement is also ignored if the addition LINE is specified and the screen element is not part of a table control or step loop. "

I would suggest one thing. Try and place cursor on some other input field.Check if its working, atleast you will know problem is only while assignig to table control line.

Read only

0 Likes
1,130

Tanks for your response.

Is it necessary the field to be an input field in order to be working set cursor sentence?

In my dynpro all fields are only output fields.

Thanks.

Read only

0 Likes
1,130

It is supposed o be input field i guess.. But then , if the fields are all output only fields, then y would you need the cursor to be set on the first field?

Suzie

Read only

0 Likes
1,130

hi,

i think so, it has to be an input field.

BTW if its not an input field. why do you want the cursor there?

Read only

0 Likes
1,130

It´s just to be nicer.

Read only

0 Likes
1,130

:).. I guess , then you wont have this option.