Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

internal table related query

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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.