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

Adding attachment to a flat file

Former Member
0 Likes
948

Hi,

We have created a flat file. We need to add records to this file. For each record, an attachment has to be added. This attachment is like a field in that particular record. Is it possible to add an attachment in the file as part of the record.?

Regards

Albina

7 REPLIES 7
Read only

Former Member
0 Likes
906

Hi,

What is the type of the attachment?

If it is in a character format you can attach in the file. For other complex data types you cannot attach.

Read only

Former Member
0 Likes
906

hi Albina..

ur queston is not clear plz explain brief.

Regards

Vshal

Read only

Former Member
0 Likes
906

Hi,

Adding attachments inside flat file ur saying ?

It's not possible

Thanks

kishore

Read only

Former Member
0 Likes
906

The attachment could be Word, Excel, PPT, PDF etc. So i suppose we cannot attach it in the file. Even i was under the same impression, but wasnt fully sure on that. Thanks for confirming. I suppose it would be possible to send/FTP this type of attachment from SAP to another server, right?

Read only

0 Likes
906

Hi,

You can send a file to another email address using Sap Business Workplace tcode SBWP.

If you want to send through program that also you can do.

You can use below FM to send files

SO_NEW_DOCUMENT_ATT_SEND_API1

SO_NEW_DOCUMENT_SEND_API1

Please let me know if this works for you..

Regards,

Rahul

Read only

Former Member
0 Likes
906

Hi,

Thanks for you inputs. These files are of type Word, Excel, PPT, PDF etc. Is it possible to send these type of file types to an external server.?

Regards

Albina

Read only

0 Likes
906

Hi Albina,

A file is "just a piece of bits". So it can contain whatever you want, provided that you define it in a correct format (for instance, a mail with attachments is simply a sequence of bits, have a look at the MIME International standard for more info). You can send a file from SAP by FTP to an FTP server (just search in the forum).

Please could you give the exact requirement, context and constraints, etc., so that we can advise you better?

Sandra