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

Table type & Structure

Hi Experts. I have created on structure in DDIC and one table type.I have one class and within class from method I am passing the values of select statement threw the table type to my main program of se38.I need the syntax to use the structure and 'table type' and both get populated form the class method.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 07:11 PM

    Hi

    U need to define an internal table just like your TABLE TYPE:

    DATA: ITAB TYPE <TABLE TYPE>.

    and a work area like the LINE TYPE of the TABLE TYPE:

    DATA: WA TYPE <LINE TYPE>.

    Now you can read, update that table just like an internal table without the header line.

    So:

    WA-FIELD1 = ....

    WA-FIELD2 = ....

    ........................

    WA-FIELDN = ....

    APPEND WA TO ITAB.

    Max

    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.