This website is not affiliated with, sponsored by, or approved by SAP AG.

Can FCODE be used to jump the cursor to the error field?

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: thx4allthefish, Snowy, Gothmog, YuriT

Can FCODE be used to jump the cursor to the error field?

Postby GreenGreen » Wed Jan 11, 2012 4:52 pm

Dear Experts,

In USEREXIT_SAVE_DOCUMENT_PREPARE one can set FCODE = FCODE_GLEICHE_SEITE before submitting the E-Message.
Then User could remain on the same screen when pressing Enter and fields are open.

However, after prompting the error message, if I want the cursor jumps to the error field at the same time with the error message, so that user could obviously and clearly know what had been entered incorrectly, what should I set the FCODE?

If it is not relating to the FCODE, please advise what should be coded.

Thanks & regards,

Green Green

GreenGreen
 
Posts: 665
Joined: Mon Jul 28, 2003 11:38 pm

Re: Can FCODE be used to jump the cursor to the error field?

Postby Grogan » Thu Jan 12, 2012 12:02 pm

I don't know if it will work, but you could try a SET CURSOR FIELD prior to your MESSAGE statement. Note that USEREXIT_SAVE_DOCUMENT_PREPARE is called generally on save from any screen, so your fields may not be active. There are also userexits like USEREXIT_CHECK_VBAK, _VBAP etc which may be more appropriate.

Cheers,
Grogan

Award cash if useful.
Grogan
 
Posts: 310
Joined: Thu Aug 04, 2005 7:16 pm
Location: Australia


Return to ABAP

Who is online

Users browsing this forum: No registered users and 6 guests




This website is not affiliated with, sponsored by, or approved by SAP AG.