Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to create the pop up window to contorl cursor of table list

Former Member
0 Kudos

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!!

2 REPLIES 2

Former Member
0 Kudos

Hi Zhang,

Refer to TABLE_GET_KEY_TO_SET_CUR_ROW function module to get the logic. Try debugging SM30 using any table.

Former Member
0 Kudos

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