Skip to Content
May 11, 2007 at 03:48 PM

GOS Attachment from CSV File


I have tried using the code below in the link provided, but I am having a couple of issues and different things I try do not seem to help.

[url=] [original link is broken] [original link is broken] [original link is broken] [original link is broken];

The .csv attachment does appear on my business object BKPF in gos.

My issues are :

1. My records in the attachment will be more than 255 characters per line.

(I am getting truncation. Tried changing LT_DOC_CONTENT reference type to 1000 but then I get an empty attachment.)

2. When I do test with less than 255 characters, data is merged to one line.

(Do I have to specify a crlf for .csv attachment?)

Needed :

What do I need to modify in the abap code in the link mentioned to get an attachment in csv format, with more than 255 characters per record and have each record to itself, not merged to one line. This is for gos on the BKPF business object.

Thanks for any help you can provide.