09-15-2008 12:44 PM
hello experts ,
whenever i modifies itab within a loop it always starts from first row,
i want to modify itab from next row ,
please tell me any syntax as shown in new gui,
MODIFY ITAB WHERE .....
what should i write after where??
thanks
gaurav
09-15-2008 12:49 PM
Hi,
You can use following syntax:
loop at itab.
if condition
modify itab index sy-tabix.
endif.
endloop.
Try this syntax, hope it will help you.
09-15-2008 12:45 PM
Loop at itab.
if <codition>
modify itab idex sy-tabix.
endif.
endloop.
Regards,
Aparna Gaikwad
09-15-2008 12:45 PM
09-15-2008 12:47 PM
hi,
you can use any field name with conditions, i.e
MODIFY ITAB WHERE FIELDNAME EQ 'ANY CONDITION
where fieldname is the field in itab
Yogesh N
09-15-2008 12:49 PM
Hi,
You can use following syntax:
loop at itab.
if condition
modify itab index sy-tabix.
endif.
endloop.
Try this syntax, hope it will help you.
09-15-2008 12:50 PM
Try it like this:
MODIFY itab FROM wa
TRANSPORTING field1 WHERE field1 = wa_field1.
With luck,
Pritam.
09-15-2008 1:20 PM
Hi Gaurav,
Loop at itab.
If sy-tabix = 1.
skip.
endif.
{other steps.}
Endloop.
Hope this helps.
Thanks.
Best Regards,
Arun Sankar.
09-15-2008 1:39 PM
Hi Gaurav,
loop at itab.
If sy-tabix > 1.
<modify your itab>
endif.
endloop.
Regards,
Mindaugas