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

Write Statement

Former Member
0 Likes
662

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

6 REPLIES 6
Read only

Former Member
0 Likes
636

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

Read only

0 Likes
636

I have given value fr lv_max variable. Still the same problem.

Read only

0 Likes
636

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.

Read only

Former Member
0 Likes
636

Hi,

In the Write Statement

Try to write From Work Area

Regards

Sandipan

Read only

Former Member
0 Likes
636

Hi,

Check your internal table in debugg mode.Blank lines may get appended to internal table.

Pls. reward if useful...

Read only

Former Member
0 Likes
636

Hi,

i think there is no mistake in you example.

Can you show the whole report o more extract?

regards, Dieter