Application Development and Automation 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: 
Read only

internal table

Former Member
0 Likes
482

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

5 REPLIES 5
Read only

Former Member
0 Likes
459

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

Read only

Former Member
0 Likes
459

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

Read only

Former Member
0 Likes
459

Hi ,

You can use the modify command with the addition transporting.

Regards

Arun

Read only

Former Member
0 Likes
459

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.

Read only

former_member673464
Active Contributor
0 Likes
459

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