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

regarding tables

Hi..

can anyone tell me how to create a int table and transfer data into it.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 12:02 PM

    hi,

    check this code tocreate internal table.

    TYPES: BEGIN OF po_line,

    ebeln LIKE ekko-ebeln,

    ekorg LIKE ekko-ekorg,

    aedat LIKE ekko-aedat,

    waers LIKE ekko-waers,

    wkurs LIKE ekko-wkurs,

    END OF po_line.

    DATA: potab TYPE STANDARD TABLE OF po_line

    WITH HEADER LINE.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 21, 2007 at 12:02 PM

    Hi,

    Check this link..

    http://www.sap-img.com/ab009.htm

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 21, 2007 at 12:03 PM

    Hi,

    Refer this code

    TYPES : BEGIN OF t_vbrk,

    vbeln TYPE vbeln_vf,

    rplnr TYPE rplnr,

    bukrs TYPE bukrs,

    END OF t_vbrk.

    ----


    • INTERNAL TABLES *

    ----


    DATA : it_vbrk TYPE STANDARD TABLE OF t_vbrk.

    FORM sub_read_vbrk.

    SELECT vbeln

    rplnr

    bukrs

    FROM vbrk

    INTO TABLE it_vbrk

    WHERE vbeln IN s_vbeln

    AND rplnr NE ' '.

    IF sy-subrc EQ 0.

    SORT it_vbrk BY rplnr.

    ENDIF.

    Reward Points

    Regards,

    Prashant

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 12:04 PM

    Hi,

    DATA: BEGIN OF t_mara,

    matnr TYPE matnr,

    mtart TYPE mtart,

    mbrsh TYPE mbrsh,

    matkl TYPE matkl,

    meins TYPE meins,

    END OF t_mara.

    DATA:

    <b>lt_mara</b> LIKE TABLE OF t_mara,

    wa_mara LIKE LINE OF lt_mara,

    select from database table and put into Internal table <b>lt_mara</b>

    SELECT matnr mtart mbrsh matkl meins FROM mara INTO TABLE <b>lt_mara</b>

    WHERE matnr IN so_matnr.

    <b>Reward points if useful.</b>

    Regards,

    Vimal

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 12:04 PM

    Hi balu ,

    use this link u have all details about internal tables.

    http://www.erpgenie.com/abap/tips/itab/Internal%20Table%2027-02-06.htm

    IF ITS USEFULL REWARD POINTS .

    Thanks&Regards.

    Arun.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 12:06 PM

    Hi Balu,

    u need to define a structure for the int table ie what fields u need in it..

    types: BEGIN OF tp_int,

    f1 type ...

    f2 type...

    END OF tp_int.

    and then a int table as

    data:T_int TYPE STANDARD TABLE OF TP_int ,

    wa_int type tp_int.

    select f1 f2 from <table > into table t_int where key1.

    Regards,

    Kaveri

    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.