cancel
Showing results for 
Search instead for 
Did you mean: 

Send email attachment of Adobe Interactive form using Workflow

Former Member
0 Kudos

Hi All,

We have a requirement to send Adobe form as attachment to email sent from Workflow.

Sample code is given below that we are using:

=============================================

oparam-nodialog = 'X'.

oparam-getpdf = 'X'.

CALL FUNCTION 'FP_JOB_OPEN'

CHANGING

IE_OUTPUTPARAMS = oparam

EXCEPTIONS

CANCEL = 1

USAGE_ERROR = 2

SYSTEM_ERROR = 3

INTERNAL_ERROR = 4

OTHERS = 5

.

formparam-langu = 'E'.

formparam-country = 'US'.

formparam-fillable = 'X'.

call function function

exporting

/1BCDWB/DOCPARAMS = formparam

qmnum = qmnum

notification = viqmel

importing

/1BCDWB/FORMOUTPUT = formout

exceptions

usage_error = 1

system_error = 2

internal_error = 3

others = 4.

CALL FUNCTION 'FP_JOB_CLOSE'

EXCEPTIONS

USAGE_ERROR = 1

SYSTEM_ERROR = 2

INTERNAL_ERROR = 3

OTHERS = 4

.

CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'

EXPORTING

BUFFER = formout-PDF

TABLES

BINARY_TAB = i_pdf_hex

.

=======================================================

I would like to convert formout-PDF into PDF internal table and use "create" method of SOFM business object to create the attachment.

I have used similar approach for PDF generated from smartform... GETOTF = 'X'... then convert OTF internal table to PDF internal table using function module 'Convert OTF'.. then change line width to 255... This approach worked fine with SOFM-Create method to attach PDF file to email..

Is it possible to use this approach with Adobe Interactive Forms? How to I convert "formout-PDF" to PDF type internal table to pass to SOFM-create method.

Thanks a lot.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Replace the call of function SCMS_XSTRING_TO_BINARY by this


binary_file type solix_tab.

binary_file = cl_document_bcs=>xstring_to_solix( ip_xstring = formoutput-pdf   ).

Then you can add it .

Let me know.

Best regards.

Former Member
0 Kudos

Dear Sudhir,

Please check for Jeff Gebo's webinar on sending and receiving attachments as interactive forms.

Thanks and Regards,

Anto/