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

ABAP Customized table - with fields

Former Member
0 Likes
538

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

3 REPLIES 3
Read only

Former Member
0 Likes
503

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!

Read only

Former Member
0 Likes
503

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

Read only

0 Likes
503

Dear Tarak

yes as you said i need the all requirements you wrote

Regards

Sam