2011 Jul 04 12:25 PM
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.
2011 Jul 04 1:05 PM
Hi,
is it the same if you work with refresh dynpro in the pbo module for dynpro 9000?
2011 Jul 04 2:03 PM
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.
2011 Jul 06 10:00 AM
No, it does never work; not even when I refresh dynpro 9000.
What´s wrong?
2011 Jul 06 10:19 AM
When you come back to the screen, simple press an Enter key.. Does the cursor get set to the required field??
Suzie
2011 Jul 06 10:21 AM
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.
2011 Jul 06 10:51 AM
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.
2011 Jul 06 11:00 AM
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
2011 Jul 06 11:01 AM
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?
2011 Jul 06 11:08 AM
2011 Jul 06 11:09 AM