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

Function module to save attachments

Former Member
0 Likes
1,821

Hi All,

Is there any function module to store the attachments(office documents, PDF,..etc) into the database, and then show the link to display and delete.

Thanks in advance for any suggestions.

Regards,

Ram Enaganti.

4 REPLIES 4
Read only

abdul_hakim
Active Contributor
0 Likes
779

You can use SAVE_TEXT function module for saving the texts and any type of documents.you first convert the document into text format(OTF) before saving and while retriving you can convert the text format(OTF) to pdf as well.

you cannot directly save in pdf format..

Cheers,

Abdul Hakim

Read only

guillaume-hrc
Active Contributor
0 Likes
779

Hi Ram,

You can find some solutions in this post :

Main idea would be to store the file in Binary mode on the application server and store the path in a custom Z-table.

Best regards,

Guillaume

Read only

ferry_lianto
Active Contributor
0 Likes
779

Hi Ram,

Have you looked <b>GOS</b> (Generic Object Services)?

Please check this links for more information.

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVOBS/BCSRVOBS.pdf

/people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.

Read only

Former Member
0 Likes
779

Actually I am looking for a function module which I can call in a program to store the attachments in SAP like workitem attachments. When a user attaches the file, it should store the file and return with the link for accessing/ maintaining it later.

Regards,

Ram.