01-18-2005 7:27 AM
hai,
I am using Table control in screen created by wizard and added selectall,deselect,sort buttons seperately in application tool bar.
I want to access tablecontrol from this buttons outside.
i dont know how to catch the tablecontrol from outside
selectall icon or button displayed in app toolbar.
I want to including coding here PAI.
************************
ok_code = sy-ucomm.
case ok_code.
when 'selectall'.
call toolbar method ? what method
when 'deselect'.
when others.
endcase.
01-18-2005 8:56 AM
ok_code = sy-ucomm.
case ok_code.
when 'selectall'.
call toolbar method ? what method
*****added*****
loop at tablecontrol_tab into tablecontrol_wa
move 'X' to tablecontrol_wa-flag.
modify tablecontrol_tab
from tablecontrol_wa
transporting flag.
endloop.
exit.
*****************
when 'deselect'.
*****added*****
loop at tablecontrol_tab into tablecontrol_wa
move ' ' to tablecontrol_wa-flag.
modify tablecontrol_tab
from tablecontrol_wa
transporting flag.
endloop.
exit.
*****************
when others.
endcase.
01-19-2005 3:10 AM
hai
thanks for your reply.
I have tablecontrol name as ztabctrol.
in coding wizard generated another two kinds of variable notation G_ztabctrol_itab and T_Ztabctrol. which one should i have to use below.
loop at tablecontrol_tab into tablecontrol_wa
move 'X' to tablecontrol_wa-flag.
modify tablecontrol_tab
from tablecontrol_wa
transporting flag.
endloop.
exit.
I declared data at top in prog and wrote this code below.
inside PAI.
loop at G_ZTABCTRLOBJ_ITAB into G_ZTABCTRLOBJ_WA
move 'X' to G_ZTABCTRLOBJ_WA-flag.
modify G_ZTABCTRLOBJ_ITAB
from G_ZTABCTRLOBJ_WA
transporting flag.
endloop.
exit.
it gives error at status "G_ZTABCTRLOBJ_ITAB is not defined".
why it is.
ambichan.
01-19-2005 3:18 AM