‎2009 Jul 06 1:52 PM
Hi,
i use this code:
...
SELECTION-SCREEN: SKIP 2.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 01(31) T_AUFNR.
PARAMETERS: P_AUFNR LIKE CAUFV-AUFNR
MATCHCODE OBJECT ORDEB.
SELECTION-SCREEN: END OF LINE.
*
SELECTION-SCREEN: SKIP.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 01(31) T_VORNR.
PARAMETERS: P_VORNR LIKE RESB-VORNR.
SELECTION-SCREEN: END OF LINE.
*
...
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VORNR.
*
...
IF NOT WA_RETURN IS INITIAL.
MESSAGE I010 WITH WA_RETURN-MESSAGE.
SET CURSOR FIELD 'P_AUFNR'.
EXIT.
ENDIF.
*
...
My problem is, that the command SET CURSOR FIELD 'P_AUFNR' doesn't set the cursor on 'P_AUFNR'.
I searched in this forum, and find that's not possible to set the cursor in this case.
Has anyone another idea?
Regards, Dieter
‎2009 Jul 06 2:06 PM
Hi Dieter Gröhn,
You may have to use LINE option here...
Also make sure you are passing P_AUFNR in CAPS between quotes...
Refer Syntax as well as ABAP help documentation also...
SET CURSOR { { FIELD field [LINE line] [[DISPLAY] OFFSET off] }
| { col lin } }.
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya
‎2009 Jul 06 1:57 PM
Dear Diaeter,
AT SELECTION OUTPUT.
please try to use the above event that might be works.
Regds,
Parekh Nirav
‎2009 Jul 06 2:06 PM
Hi Dieter Gröhn,
You may have to use LINE option here...
Also make sure you are passing P_AUFNR in CAPS between quotes...
Refer Syntax as well as ABAP help documentation also...
SET CURSOR { { FIELD field [LINE line] [[DISPLAY] OFFSET off] }
| { col lin } }.
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya
‎2009 Jul 06 2:31 PM
Hi,
thanks for your answer. I tried as you said, but no effect. The cursor is on P_VORNR
not in P_AUFNR:
Regards, Dieter
‎2009 Jul 06 3:06 PM
Hi,
try to set cursor before error message is fired.
regards,
Himanshu
‎2009 Jul 06 3:17 PM