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

add attachments in smartforms

Former Member
0 Likes
2,564

Hi All.

We are sending emailsfor tickets and we have used smartforms for the content of the mail.

Now we have a requirement that the attachments of the ticket also have to be attached in the emails as a link.

Is it possible to add attachments in smartforms or attachments as link in smartform.

Thanks and Regards,

Akshatha

14 REPLIES 14
Read only

rvinod1982
Contributor
0 Likes
1,880

Hi,

You can save the tickets as an bitmap image and upload the image in sap (tcode SE78).

Then in smartforms create a Graphic using this bmp image.

Regards,

Vinod

Read only

0 Likes
1,880

we want to send attachments in the mail as a link.

And when we click on the link or URL attachtment should open,in respective attachment format.

Pls help.

Edited by: Akshatha S on Oct 16, 2009 8:49 AM

Read only

venkat_o
Active Contributor
0 Likes
1,880

Hi Akshatha, <li>Have a look at the link <b><u>[Sending smartform as pdf through mail.|http://an-abaper.blogspot.com/2009/07/sending-smartform-as-pdf-through-mail.html]</u></b> Thanks Venkat.O

Read only

Former Member
0 Likes
1,880

Hi ,

i suggest you upload this tickets attachemnt as a file onto the application server (AL11)

and mention the path in the mail. Hope this solves your problem.

Regards

Sajimon Chandran

Read only

Former Member
0 Likes
1,880

Hi,

I think for this you can use Adobeforms (Interactive)...

Since in SAMRTFORMS you cna't interact it means you cant do any events like clicking on links and all..

Regards,

Shankar.

Read only

0 Likes
1,880

I am sending the attachment as URL(hyperlink) in smartform and it goes in the mail as a URL attached.

When i click on the URL the attachment gets displayed in the browser .

The problem is PDF,JPG,JPEG,BMP files are getting displayed in the browser correctly but

XLS,DOC,PPT,TXT do not get displayed in correct format.

XLS and TXT files get displayed continuously without any space.

How to display XLS,DOC,PPT,TXT files in browser in correct format

Thanks and Regards,

Akshatha

Read only

0 Likes
1,880

hi ,

Go through this link.

it works.

http://wiki.sdn.sap.com/wiki/display/Snippets/SmartformtoMailasPDF+attachment

regards,

padmaja

Read only

0 Likes
1,880

Do you add a URL in your mail which links to SAP and displays the smart form, or is the smart form attached as PDF?

How do you create URLs to the GIF, XLS, etc. documents? What ITS services do you trigger?

Read only

0 Likes
1,880

I am using BBP_ATTACH_BUILD_URL to generate URL for my attachments and i am sending the URL in the email.

pdf,jpg,jpeg,bmp files open in the browser.

but ppt,doc,xls files do not open in their respective formats, in the browser

Thanks and Regards,

Akshatha

Read only

0 Likes
1,880

I don't know this function module, and what kind of storage is behind. If the problem is with storage behind URL, I can't help.

But maybe it's the mime type which is wrong (as you use IE). Could you check it. As I don't know the system you use, you may find mime types in these tables: SDOKMIME, BWWF_MIME.

Test attaching one kind of document, for example powerpoint, and try to define these mime types in the tables above: application/vnd.ms-application, application/mspowerpoint, application/vnd.ms-application

Read only

0 Likes
1,880

Hi Sandra,

Mime format is correct.but i dont know y it is not displaying in correct format.

Do i have to do anything to display ppt,doc, content in browser in correct format

thanks

Akshatha

Edited by: Akshatha S on Oct 19, 2009 7:48 AM

Read only

0 Likes
1,880

What do you mean by mime is correct? (for example, in my case, I personally had problems in some SAP applications when adding attachment to SRM using application/ms-powerpoint or application/mspowerpoint; only application/vnd.ms-application worked!)

Could you show examples: could you explain exactly what happens when you click the url? what is rendered on the screen? could you paste the complete url?

Thx!

Read only

0 Likes
1,880

The mime type i am using is "application/vnd.ms-excel".

The URL it generates for excel document is as follows.

On click of this URL it asks for login details in DS! to display the attachment.

http://sapds1ci.zrh.swissre.com:8020/sap/ebp/docserver/500/?attcget&ClId=4ADA585CE154036FE10000000A0....

Thanks

Akshatha

Read only

0 Likes
1,880

Hi,

Use class 'CL_CRM_DOCUMENTS' and method 'SEND_DOCUMENTS' to send the attachment in mail

Thanks

Vijay