‎2007 Sep 18 4:56 PM
My output screen is controlled in class , so I am not able to use the SET CURSOR FUNCTIONALITY , is there a method hat allows you to set the cursor position inside a ALV container . I want the cursor to remain at the edited field after every enter . Right now it runs to the very first cell after every enter.
‎2007 Sep 18 5:10 PM
Hi,
If output is too long
then use SET_SCROLL_INFO_VIA_ID method first and use method
SET_CURRENT_CELL_VIA_ID of CL_GUI_ALV_GRID class.
Regards
L Appana
‎2007 Sep 18 4:59 PM
‎2007 Sep 18 5:10 PM
Hi,
If output is too long
then use SET_SCROLL_INFO_VIA_ID method first and use method
SET_CURRENT_CELL_VIA_ID of CL_GUI_ALV_GRID class.
Regards
L Appana
‎2007 Sep 18 5:25 PM
oK , what should I pass in their export parameters....
an example will be great. thankyou
‎2007 Sep 18 5:36 PM
Like this -:)
DATA: E_ROW TYPE I,
E_VALUE TYPE C,
E_COL TYPE I,
ES_ROW_ID TYPE LVC_S_ROW,
ES_COL_ID TYPE LVC_S_COL,
ES_ROW_NO TYPE LVC_S_ROID.
CALL METHOD GRID1->GET_CURRENT_CELL
IMPORTING
E_ROW = E_ROW
E_VALUE = E_VALUE
E_COL = E_COL
ES_ROW_ID = ES_ROW_ID
ES_COL_ID = ES_COL_ID
ES_ROW_NO = ES_ROW_NO.
ES_COL_ID = 'MENGE'.
IF E_VALUE NE SPACE AND W_ERROR EQ SPACE.
CALL METHOD GRID1->SET_CURRENT_CELL_VIA_ID
EXPORTING
IS_ROW_ID = ES_ROW_ID
IS_COLUMN_ID = ES_COL_ID.
ENDIF.
Greetings,
Blag.