09-15-2008 7:26 AM
in dnypro i create a table contorl
under the table contorl there have a button named "position",
the table control have 4 line
line1 line2 line3 line4
when i push the "positon" button, a pop up window Jumped out .in this window there are 2 parameters like
*********************
line1 :_____
line2 :_____
OK CANCEL
********************
when i input the parameters,the cursor will jump to the corresponding line of the table contorl
how to do this, i want " code ",
thank you very much!!
09-15-2008 7:34 AM
Hi Zhang,
Refer to TABLE_GET_KEY_TO_SET_CUR_ROW function module to get the logic. Try debugging SM30 using any table.
09-15-2008 7:53 AM
Hi Zhang,
After readding value which user has provided in postion field.
Read the table control view like:
READ TABLE ztc_tab INTO workarea WITH KEY column = value in position field.
IF sy-subrc EQ '0'.
MODFIY ztc_tab FROM workarea INDEX sy-tabix = 1.
ENDIF.
ztc_tab is the name of table control.
In this way you can get that desired line at the top of the table control.
Hope this will solve problem.
Regards,
Brajvir