06-17-2008 9:49 AM
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.
06-17-2008 9: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
06-17-2008 9: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
06-17-2008 9: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.
06-17-2008 10:03 AM
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.