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: 

need to update particular fields in a nternal table

Former Member
0 Kudos

I had a internal table like

f1 f2 f3 f4

1 1 1 1

2 2 2 2

3 3 3 3

and I want to update this internal table randmly with refrence to the particular field, and remaining fields must be as it is before and my output to be

f1 f2 f3 f4

1 1 [2] 1

2 [1] 2 2

[4] 3 3 3

suggest me in the above please...

2 REPLIES 2

Former Member
0 Kudos

randomly means tell us the condition?

Former Member
0 Kudos

Hi,

Use the 'TRANSPORTING' opetion while modifying your internal table. Transport only those fields which you need to modify.

MODIFY <ITAB> FROM <WA> TRANSPORTING <FIELDNAME> INDEX SY-TABIX.

Thanks

Vijay

<b>PLZ Reward points if helpful</b>