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

assign a value to an internal table dynamically.

Hi Friends,

I have three field symbols

FIELD-SYMBOLS: <component> TYPE table,

<line> TYPE ANY,

<field> TYPE ANY.

Before my code was.

ASSIGN COMPONENT 'DATA-LOGSYS' OF STRUCTURE <line> TO <field>.

when <component> had a structure

DATA (type u - structure without internal table)

>DATA-LOGSYS.

But now the <component> has a structure

SET (type h - Internal table)

>DATA-LOGSYS.

Now how should I modify my code to work properly?

How can I access the field inside this dynamically created internal table?

ASSIGN COMPONENT <b>' '</b> OF STRUCTURE <line> TO <field>.

What should I write in this space?

Regards,

Raju

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 Jun 29, 2007 at 10:42 AM

    Hi friends

    before assigning ie.,

    ASSIGN COMPONENT 'DATA-LOGSYS' OF STRUCTURE <line> TO <field>.

    I write,

    READ TABLE <component> INDEX 1 ASSIGNING <line>.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 29, 2007 at 11:27 AM

    Hi Raju,

    Plese refer the following link. This explains creation of the dynamic internal table.

    reuse-clalvtablecreatecreatedynamictable-

    And to access the contents of the dynamically generated table. The following link ll help you...

    http://www.sapfans.com/forums/viewtopic.php?p=107594

    Hope this helps!!

    *Reward if useful

    regards,

    Naveenan.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 29, 2007 at 11:40 AM

    Hi,

    Maybe this link be useful.

    reuse-clalvtablecreatecreatedynamictable-

    Regards

    Paisante

    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.