‎2008 Feb 25 6:55 AM
Hi All,
Please tell me how to set a cursor on a particular field of a transaction when the value entered is wrong.... in module pool program. I have used set cursor in PAI of the screen but it is not working........
thanx in Advance..
‎2008 Feb 25 6:58 AM
Hi
Check the below syntax..
IF NOT p_sdate2 IS INITIAL.
IF p_sdate2 > p_sdate1.
MESSAGE e001(00) WITH text-007.
ENDIF.
ENDIF.
IF NOT p_ddate2 IS INITIAL.
IF p_ddate2 > p_ddate1.
SET CURSOR FIELD 'P_DDATE1'.
MESSAGE e001(00) WITH text-007.
ENDIF.
ENDIF.
SET CURSOR FIELD 'FIELD'
FIELD SHOULD BE IN CAPITAL LETTERS.
HOPE IT HELPS>
Praveen
‎2008 Feb 25 6:58 AM
Hi
Check the below syntax..
IF NOT p_sdate2 IS INITIAL.
IF p_sdate2 > p_sdate1.
MESSAGE e001(00) WITH text-007.
ENDIF.
ENDIF.
IF NOT p_ddate2 IS INITIAL.
IF p_ddate2 > p_ddate1.
SET CURSOR FIELD 'P_DDATE1'.
MESSAGE e001(00) WITH text-007.
ENDIF.
ENDIF.
SET CURSOR FIELD 'FIELD'
FIELD SHOULD BE IN CAPITAL LETTERS.
HOPE IT HELPS>
Praveen
‎2008 Feb 25 7:01 AM
Hi Subbu,
Please ensure you put the SET CURSOR FIELD '<fieldname>'. command before the MESSAGE (raising error) command.
Once you raise an error message, the program control does not go to the next command. Hence place the SET command, before MESSAGE and check.
Cheers,
Aditya