‎2008 May 31 5:39 AM
Hi Gurus,
How to use SET CURSOR in module pool table controls.
I want to set the cursor in a particular cell (col X row) after geting a message.
‎2008 May 31 5:48 AM
hi shekar,
use this code.
set cursor field fielname.
by this statement you can set cursor on particular field. But remember that you have to write this code always in PBO
after setting execution of set gui status.
regards,
vipul
‎2008 May 31 5:50 AM
able controls are used to display the data in tabular fashion for better visibility and for easy understanding in Screens as well as in reports.
syntax:
CONTROLS .
if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control.
u need to comment the performs of table control fields and write ur own perform statements. And u have to declare the table control fields as separate internal tables.
Go through this urls.
‎2008 May 31 5:50 AM
hi shekar,
use this code.
set cursor field fielname.
by this statement you can set cursor on particular field. But remember that you have to write this code always in PBO
after setting execution of set gui status.
regards,
vipul
‎2008 May 31 6:53 AM
hi shekhar,
your requirement is after displaying a message you want to put the cursor in a perticular cell.
see we usually give message for wrong value or a warning in PAI.
its a table control.
so in loop you check for the perticular field in chain endchain.
if its wrong or you want to give a message for the field then
you can give an error type message so the cursor will automatically come there in tht field.
but in this case all other fields will be in display mode..
so if you don want this also i mean all fields in display mode ??
then give an i type message ,and
set cursor col line.
col : indicates column of the table control i.e. field.
and line is nothing but your table control-current_line.
and after all
STOP for not to process PBO.
hopw this will solve your problem..