Skip to Content
author's profile photo Former Member
Former Member

Recursive logic

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.

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 08:22 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 02, 2006 at 08:23 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded