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

table control wizard

Hi,

I have created internal table in in my prog.populated values to it.in se51 in table control wizard i gave internal table and work area name.when i run my program i am getting only table header.not getting values.I dont know what is the error...If someone knows please help me.

Thank u.

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 Dec 24, 2007 at 09:08 AM

    hi,

    Data coming in unternal table? first check that.....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 05:16 AM

    first u write internal table in top include like :

    ************************************************************

    PROGRAM SAPMZTABSTRIP.

    DATA: BEGIN OF t_vbak OCCURS 0,

    sel type c,

    vbeln LIKE vbak-vbeln,

    erdat LIKE vbak-erdat,

    kunnr LIKE vbak-kunnr,

    posnr LIKE vbap-posnr,

    matnr LIKE vbap-matnr,

    maktx LIKE makt-maktx,

    name1 LIKE kna1-name1,

    ort01 LIKE kna1-ort01,

    pstlz LIKE kna1-pstlz,

    prodh LIKE vbap-prodh,

    END OF t_vbak.

    *&spwizard: declaration of tablecontrol 'TABLE_CONTROL' itself

    controls: TABLE_CONTROL type tableview using screen 9000.

    *&spwizard: lines of tablecontrol 'TABLE_CONTROL'

    data: g_TABLE_CONTROL_lines like sy-loopc.

    data: OK_CODE like sy-ucomm.

    ************************************************************

    after this now u can write select query in PBO

    *********************************************************

    module TABLE_CONTROL_change_tc_attr output.

    IF T_VBAK IS INITIAL.

    SELECT vbeln kunnr

    FROM vbak

    INTO CORRESPONDING FIELDS OF TABLE t_vbak.

    describe table T_VBAK lines TABLE_CONTROL-lines.

    ENDIF.

    endmodule.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 09:25 AM

    HI

    Kavita

    yes u only get data in header only u will not get in the internal table

    if u want tht data to be in internal table wht u do is

    write one module in the flow logic tht is in the PAI.

    between chain and endchain

    just befor the endchain write one module

    module append.

    in tht module write this statement

    module append.

    append work area to internal_table.

    endmodule.

    sure it works i think u got my point

    plzz reward if it is usefull

    plzz dont forget to reward.......

    for any furthere quiries u can contact me on mutyalasunilkumar@gmail.com

    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.