Skip to Content
avatar image
Former Member

declare data from db table

Hello,

this is my problem: I put in SAP a table on the DB with SE11. Now my table is available for all program. Now, how can I declare an internal table like the one I created in the db without declare a relative type in the dictionary?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 02, 2008 at 08:04 AM

    Hi!

    Usually I do it this way:

    DATA: gt_mytable LIKE STANDARD TABLE OF zmytable, "internal table definition

    gs_mytable LIKE LINE OF gt_mytable. "work area for the internal table

    Regards

    Tamá

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 02, 2008 at 08:06 AM

    What i normally do is :

    DATA: I_MARA TYPE TABLE OF mara ....

    for instance.

    regards,

    Hans

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 02, 2008 at 09:32 AM
    data: it_table type standard table of sometable,
          wa_table like line of it_table.
    

    V similar to Tamás, that's how i usually do it. Gives a table with no header line.

    Add comment
    10|10000 characters needed characters exceeded