Skip to Content
0
Former Member
Mar 10, 2009 at 07:27 AM

Problem with Write_FORM

26 Views

Hi Guys,

Through print program i am trying to display the values of an internal table in the scripts. I am looping this internal table and writing the WRITE_FORM inside this loop.

types: begin of ty_mail,

mail type so_rec_ext,

end of ty_mail.

data: it_mail type standard table of ty_mail,

wa_mail type ty_mail.

loop at it_mail into wa_mail.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'MAIL'

window = 'WINDOW19'

EXCEPTIONS

OTHERS = 0.

endloop.

and in the scripts inside WINDOW19 under element /: MAIL i am writing

/ &wa_mail-mail&

but what is happening is that only the last record of the internal table is getting displayed.

if the internal table has values

AAA

BBB

CCC

DDD

only DDD is getting displayed in the output. Can any1 please help me out in this.

Thanks