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 move cursor to field of table control at sub-screen

Former Member
0 Kudos
420

Hi all.

I don't know how to code move cursor to field of table control when I press TAB.

tab has a sub-screen, and there is table control in sub-screen.

I tried that set cursor table control field at mail screen PBO. but I can't.

also, I tried that set cursor table control field at sub screen PBO. but I can't.

( SET CURSOR FIELD 'ZTBL-MATNR'.)

if you know that please let me know.

Regards

Rie

1 ACCEPTED SOLUTION

Former Member
0 Kudos
91

Hi

Please try the below code and call the write the code in PBO module.

MODULE set_cursor OUTPUT.

DATA l_tc_field_name TYPE feld-name.

  • DATA l_tc_name TYPE feld-name.

IF g_no IS INITIAL.

SET CURSOR FIELD l_tc_field_name.

ELSE.

SET CURSOR FIELD l_tc_field_name LINE g_no.

ENDIF.

endmodule

Here g_no is table control line number.

in which line u want to place the cursor pass that line number to G_NO variable.

l_tc_field_nam in which table control u want to place the cursor giv that field name.

Thanks and regards.

muralii

2 REPLIES 2

Former Member
0 Kudos
92

Hi

Please try the below code and call the write the code in PBO module.

MODULE set_cursor OUTPUT.

DATA l_tc_field_name TYPE feld-name.

  • DATA l_tc_name TYPE feld-name.

IF g_no IS INITIAL.

SET CURSOR FIELD l_tc_field_name.

ELSE.

SET CURSOR FIELD l_tc_field_name LINE g_no.

ENDIF.

endmodule

Here g_no is table control line number.

in which line u want to place the cursor pass that line number to G_NO variable.

l_tc_field_nam in which table control u want to place the cursor giv that field name.

Thanks and regards.

muralii

0 Kudos
91

Thank you, Muralii .

I did it.

Best Regard.

Rie.