Application Development 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: 

format data in the flat file while downloading from internal table

Former Member
0 Kudos

Just I used 'GUI_DOWNLOAD' with WRITE_FIELD_SEPARATOR = 'X'. In my case one of the field contains large quantity. Bcoz of this value , it pushes the remaining filed position values in that particular row. The fields in the internal table refers the stadard data elements.I need the field values should be under corresponding field names.Can anyone help me?

2 REPLIES 2

Former Member
0 Kudos

Hi,

declare another internal table in the format in which you want to download .

say itab_text.

itab is your orginal internal table .

than loop at itab.

MOVE-CORRESPONDING Itab TO Itab_text.

APPEND ITab_text.

endloop.

now pass the itab_text to gui_download.

Thanks

Former Member
0 Kudos

u have the internal table...same as u need to declare the header fields under each field of the interna table, so whatever field length be...it will come under field name..