View Feed
Coffee Room
Discuss anything here - everything that you wish to discuss with fellow engineers.
12920 Members
Join this group to post and comment.
kumarangopi • Sep 26, 2007

ABAP : How to move cursor to next field?

In screen painter, I have two fields er_id and er_name.In er_id I have validated
for duplication record.Once user enters er_id,I checked for its existence in its table
if exists warning message is displayed and if not exists cursor should go to next field i.e er_name.How to acheive this?My code is
select * from t1 where er_id = er_id
if sy-dbcnt <> o
message 'er id exists'
set cursor field 'er_name'.
But this is not working,i placed above code in module m1 input',some said that set cursor should be in PBO.So I assigned boolean value to one variable and checked in PBO,even then its not working.
status = 'yes'.
if status = 'yes'.
set cursor field 'er_name'.

Help me.Thanks in advance.

Share this content on your social channels -