Skip to Content
author's profile photo Former Member
Former Member

tablecontrol select all button

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 18, 2005 at 08: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2005 at 03: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2005 at 03:18 AM

    HEY

    I SOLVED THIS PROBLEM THANKYOU.

    AMBICHAN

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.