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

Recursive logic

Former Member
0 Likes
386

Hi,

I have to update each record of an internal table comparing remaining records in the same table.

can any one provide me logic.

Message was edited by: pavan meda

Sorry I forget to mention that, there will multiple records of same type, i have to modify all records which match the comparision.

2 REPLIES 2
Read only

Former Member
0 Likes
334

two intwernal table itab and itab1. want to update itab

comparing with itab1.

loop at itab.
read table itab1 binary search with key field1 = itab-field1.
itab-field2 = itab1-field2.
.....
.....
<b>modify itab.</b>
endloop.

Read only

FredericGirod
Active Contributor
0 Likes
334

Hi,

without no code that's little hard to help you.

maybe try something like that :

new_table[] = your_table[].

loop at new_table 
     where blablabla..
  read your_table 
       with key ...
  modify your_table ...
endloop.