2013 Mar 25 8:20 PM
Dear Experts
i am new in abap i have created new customized table ( used it as help disk application ) with several fields
what i need
i need to create one field used for uploading PDF and after that send it by mail
so please could you please provide to me the event no and how to handle this requirment
upload file and send it by mail to specific receivers
SAM
2013 Mar 26 4:32 AM
Dear Sam,
To answer your queries:
- To upload PDF file to report you may want to use function module GUI_UPLOAD
- Storing PDF in database: for storing PDF file in customized table in SAP, you can use data type RAWSTRING
- Send PDF by email: to send PDF in email as an attachment, you can use class CL_BCS. For example:
"Attach PDF
lv_pdf_size = xstrlen( iv_attached_pdf ).
lv_pdf_content = cl_document_bcs=>xstring_to_solix( ip_xstring = iv_attached_pdf ). "Variable lv_pdf_content is of type XSTRING
lo_document->add_attachment(
i_attachment_type = 'PDF'
i_attachment_subject = 'Subject'
i_attachment_size = lv_pdf_size
i_att_content_hex = lv_pdf_content ).
You should start small by searching through SCN on how to use above classes/function modules, do the testing by yourself then you can join all the pieces of code together to create an application meet your requirement!
All the best! Cheers!
2013 Mar 26 6:02 AM
Hi Sam,
as per my understand u want a field for upload PDF data.Than for each line u want to upload the PDF and send it by mail.If itb is ur requirement than u have to add one field with F4 help.from where u have select the PDF and than need to be sent by mail.
If it is ur requirement than tell me , I will try to ptovide code to u.
Thanks
Tarak
2013 Mar 26 11:24 PM
Dear Tarak
yes as you said i need the all requirements you wrote
Regards
Sam