‎2008 Jan 04 10:43 AM
HOW TO PUT loop on a internal table if it does not have a header row.
Plz guide
regards
‎2008 Jan 04 10:46 AM
Hi Vibhuti,
Just declare a variable with the same structure:
DATA:
zlv_myline LIKE LINE OF <your internal table>.
LOOP AT <your internal table> INTO zlv_myline.
ENDLOOP.
John.
‎2008 Jan 04 10:46 AM
Hi,
Declare a strcuture/work area same as internal table.
And do as below :
loop at itab into wa.
Here comes you necessary things.
-
endloop.
Thanks,
Sriram Ponna.
‎2008 Jan 04 10:46 AM
Hi Vibhuti,
Just declare a variable with the same structure:
DATA:
zlv_myline LIKE LINE OF <your internal table>.
LOOP AT <your internal table> INTO zlv_myline.
ENDLOOP.
John.
‎2008 Jan 04 10:46 AM
data: BEGIN OF st_mara .
INCLUDE STRUCTURE mara.
data: END OF st_mara.
data:it_mara like standard table of st_mara initial size 0.
loop at it_mara into st_mara.
<st_mara holds the values>
endloop.
‎2008 Jan 04 10:47 AM
Hi,
itab--->internal Table without Header Line.
Wa---->Work area.
Loop at itab into Wa.
Write: Wa-Field.
Endloop.
‎2008 Jan 04 10:47 AM
hi ,
You can use work area for looping the internal table.You have to declare the work area as follows.
data:
wa_flight like line of it_flight.
loop at it_flight into wa_flight.
endloop.
In this example wa_flight is the work area created for working with internal table.
with regards,
veeresh.
‎2008 Jan 04 10:48 AM
declare a work area like this..
data : wa like line of itab.
loop at itab into wa.
..
..
endloop.