‎2008 Apr 10 9:03 AM
Hi,
I have 10 records in an internal table.
I am looping on that internal table and using write statement.
LOOP AT lt_outtab.
WRITE: /10 lt_outtab-value_old.
IF NOT lt_outtab-ltext IS INITIAL.
WRITE AT lv_lmax lt_outtab-ltext.
ENDIF.
ENDLOOP.
Now when output list is displayed, first it shows a blank page, then these 10 records of internal table.
I am not able to understand how this blank page is coming.
I checked in debugging, when first record is written, it automatically adds lot of blank lines.
Why is this happening?
Regards
‎2008 Apr 10 9:05 AM
Hi,
LOOP AT lt_outtab.
WRITE: /10 lt_outtab-value_old.
IF NOT lt_outtab-ltext IS INITIAL.
WRITE /lv_lmax lt_outtab-ltext.
ENDIF.
ENDLOOP.give value for lv_lmax variable
Reward if usefull
‎2008 Apr 10 9:26 AM
I have given value fr lv_max variable. Still the same problem.
‎2008 Apr 10 9:37 AM
Hi Ashish,
Nothing seems to be wrong in your code. May be you are writing something else before this write statement. If you could give code I'll check.
Regards,
Soumya.
‎2008 Apr 10 9:08 AM
Hi,
In the Write Statement
Try to write From Work Area
Regards
Sandipan
‎2008 Apr 10 9:41 AM
Hi,
Check your internal table in debugg mode.Blank lines may get appended to internal table.
Pls. reward if useful...
‎2008 Apr 10 9:44 AM
Hi,
i think there is no mistake in you example.
Can you show the whole report o more extract?
regards, Dieter