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: 

tablecontrol select all button

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

HEY

I SOLVED THIS PROBLEM THANKYOU.

AMBICHAN