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

Set Cursor in Module Pool

Former Member
0 Likes
856

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.

4 REPLIES 4
Read only

Former Member
0 Likes
646

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

Read only

Former Member
0 Likes
646

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.

www.saptechnical.com

www.sap-img.com

Read only

Former Member
0 Likes
646

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

Read only

Former Member
0 Likes
646

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..