cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe form Through Email

Former Member
0 Kudos

Hello Gurus,

My requirement is to send the Adobe form via Email as attachment.

Am using FM "FP_JOB_OPEN", Generated Adobe Form FM and FP_JOB_CLOSE.

Here, am getting PDF format in "FPFORMOUTPUT-PDF".

As "FPFORMOUTPUT-PDF" is in format of xstring, We need to convert it to Binary and for this am using FM "SCMS_XSTRING_TO_BINARY".

Code:

data: li_att_content_hex type standard table of x.

CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'

EXPORTING

BUFFER = FPFORMOUTPUT-pdf

TABLES

BINARY_TAB = li_att_content_hex.

Later, am using the FM "SO_NEW_DOCUMENT_ATT_SEND_API1" to send a mail.

As a result am getting the mail with attachment as PDF but when I try to open the attachment it gives me an error as "It wasn't correctly decoded".

Please, Let me know about this issue.

Thanks in advance.

Regards,

Usha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

hi,

Refer to this link..

Former Member
0 Kudos

Hi,

Please go through the Program BCS_EXAMPLE_6.

you need to use the method cl_document_bcs=>xstring_to_solix( ) to convert the xstring to solix and send it to FM.

Thanks.

UmaS.

Answers (0)