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

HOw to Convert Binary data to PDF....

Former Member
0 Likes
2,016

HI,

1)R/3 got a Binary/String file from protal then we need to convert the data to Pdf file and

2) That Pdf file will be attached to the po attachement section.

can you tell me how to do those requirement

are any function modules there for develop the above requirements....

Regards

venkat Boddu

5 REPLIES 5
Read only

Former Member
0 Likes
1,158

The function module(s) , would be required to convert the error file to PDF , the internal table (error) needs to be first sent to spool and then could be printed to pdf format , which then could be used as an attachment to send the email.

Use FM --> 'GET_PRINT_PARAMETERS' and write the spool.

After converting the file to spool , it needs to be converted into PDF file using FM :

'CONVERT_ABAPSPOOLJOB_2_PDF'

Then SO_NEW_DOCUMENT_ATT_SEND_API1 , could be used to send it as an attachment.

Cheerio,

Disha

Read only

0 Likes
1,158

HI Disha,

That data is not Error file... i am getting the data from portal(In portal they will update the particular po) and send back to the RFC(R/3)...then we will convert the Binary data to PDF and attach that PO DATA in PO Attachment Section in Front end....

Regards

Venkat Boddu

Read only

0 Likes
1,158

In RFC you can use the above function modules which I mentioned make it into PDF files. This data could be anything. By mistake I had mentioned error file.

Do you need to attach the pdf through portal?

Read only

0 Likes
1,158

Hi Disha,

No After converting Binary Data to PDF then we need to attach that PDF(po information) in PO Attachment Section for particular PO in frontend......

Regards

Venkat Boddu

Read only

0 Likes
1,158

Hi,

Not sure exactly at what step you want to Convert data to PDF.

But in order to use FM CONVERT_ABAPSPOOLJOB_2_PDF you will require to Create Spool.

And then FM SO_SEND*API1 can be used to send the pdf.

Shital