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

internal table related query

Hi All,

I have an internal table having 2 fields Name and Value.

The internal table will have 8 records.

for the second field i have to collect all the 8 values and pass them to a BAPI.

how do i collect all values from value1 to value8 into local variables.

Please help.

Thanks in advance,

Anand.

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 17, 2008 at 08:52 AM

    hi it is better to put an intenal table and use the for all entries..it is easy than declaring the 8 variable fields

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 08:53 AM

    Hi,

    Try this..

    w_itab like itab occurs 0 with header line.

    Loop at itab where name = name.

    w_itab-value = itab-value.

    Collect w_itab.

    endloop.

    Reward pts if usefull.

    Regards,

    Dhan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 08:53 AM

    Hi,

    Put those entries in an internal table.Then

    Loop at itab.

    In this loop move the values of field2 to corresponding BAPI structure or internal table.

    endloop.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      i want to pass val1 to val8 to an internal table which has 8 diff fields for the records from val1 to val8.

      so if i loop into the internal table how will i fill different fields of the same internal table?

      please help..

      Thanks.

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.