Skip to Content
0
Former Member
Dec 08, 2009 at 03:29 PM

ABAP Report WRITE, how to ouptut long lines without additional formatting?

87 Views

I am developing a program, which dumps objects as XML and I need to create one big XML file at the end. I would like to start it as a background job and get this XML as spooled output at the end. The problem is that the XMLs come from CALL TRANSFORMATION as one big string without any CR LF and in the report spooled output there are additional "formatting" like header, pages etc.:

#COL0N#COL0H07.12.09 Programm EHFND_GENERATE_BO_DOCU 1

###################################################################################

#############################################################################

#<bopf_bo><item><KEY>gB4L/AeoHd6tl1YoR5AdIg==</KEY><PARENT_KEY/><ROOT_KEY>gB4L/A

#<bopf_bo><item><KEY>gB4L/AeoHd6tl2lLeQUKOQ==</KEY><PARENT_KEY/><ROOT_KEY>gB4L/A

#<bopf_bo><item><KEY>gB4L/AeoHd6tmEQlByTUEg==</KEY><PARENT_KEY/><ROOT_KEY>gB4L/A

#<bopf_bo><item><KEY>gB4L/AeoHd6xjRciawUXeQ==</KEY><PARENT_KEY/><ROOT_KEY>gB4L/A

#<bopf_bo><item><KEY>gB4L/AeoHe6t31MGbgZYFg==</KEY><PARENT_KEY/><ROOT_KEY>gB4L/A

...

P

|#COL0N#COL0H07.12.09 Programm EHFND_GENERATE_BO_DOCU 2

|#######################################################################################

#########################################################################

|#<bopf_bo><item><KEY>gCFaXDIYHe60jgYnuB9agQ==</KEY><PARENT_KEY/><ROOT_KEY>gCFaXD

...

Is it possble to make the WRITE statement automatically insert CR LF so I do not loose the XML data and also do not output

any additional symbols? My purpose is to get clean XML data at the end, which can be e.g. directly loaded into explorer.

I already have a solution which fills a DB table with all XMLs and finaly I create the file with cl_gui_frontend_services=>gui_download but I would like to have a simplier solution using only the abap report output.

Edited by: Rob Burbank on Dec 8, 2009 10:56 AM