‎2007 Apr 17 11:01 AM
hi experts,
i have an internal table with values for example
|lot number|vornr|inspector|date|results|short_text|long_text|.
I have values in all the fields except the 2nd field ie vornr. Now i wanna pass them manually for example 310 to 450 for every 15 lot numbers.
plz help me find the olution.
Thanks and regards
vinay
‎2007 Apr 17 11:05 AM
Hi
Use MODIFY statement into loop of same internal table with using SY-INDEX and TRANSPORTING on VORNR.
Loop AT ITAB INTO WA_ITAB.
IF WA_ITAB-lot number = 310 OR 450
MODIFY ITAB USING WA_ITAB TRANSPORTING VORNR.
ENDIF.
ENDLOOP.
**Please reward suitable points***
With Regards
Navin Khedikar
‎2007 Apr 17 11:05 AM
The only thing you can do is loop at the internal table and update the values for the vornr field.
you can use MODIFY command ..
Hope this will solve your problem.
Assign points if it helps.
-Gaurang
‎2007 Apr 17 11:05 AM
Hi ,
You can use the modify command with the addition transporting.
Regards
Arun
‎2007 Apr 17 11:07 AM
Hi,
data:num(3) type n value '310'.
loop at itab where lotnumber = '15'.
itab-vornr = num.
modify itab.
num = num + 1.
if num = '450'.
num = '310'.
endif.
endloop.
rgds,
bharat.
‎2007 Apr 17 11:08 AM
hi,,
Use read table to field string and then give value of second field and modify table using modify table statement in loop.
eg:
loop at t_spfli into fs_spfli.
fs_spfli-connid = '350'.
modify t_spfli from fs_spfli index sy-tabix.
endloop.
regards,
veeresh