2011 Mar 01 4:34 AM
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
2011 Mar 01 4:44 AM
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
2011 Mar 01 4:44 AM
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
2011 Mar 01 4:50 AM