cancel
Showing results for 
Search instead for 
Did you mean: 

sending pdf via email: pdf is not returned from function module

Former Member
0 Kudos


Hi all.

I am having trouble sending a pdf form as an attachment to an email.

After calling the funtion module that is creating the PDF, field pdf of the return parameter /1bcdwb/formoutput should be used to create the attachment.

But the field PDF is empty after calling the function module - only the field xml is given back.

What did I miss?

Thank you for your help and best regards, Kathrin!

Accepted Solutions (1)

Accepted Solutions (1)

Ryan-Crosby
Active Contributor
0 Kudos

Hi Kathrin,

See below for the example:


ls_outputparams-getpdf = 'X'.

CALL FUNCTION 'FP_JOB_OPEN'
     CHANGING
       ie_outputparams = ls_outputparams
     EXCEPTIONS
       cancel          = 1
       usage_error     = 2
       system_error    = 3
       internal_error  = 4
       OTHERS          = 5.

If you setup the job like this then the pdf parameter will be filled with the XSTRING data for the generated PDF.

Regards,

Ryan Crosby

Former Member
0 Kudos

Thank you so much!

Answers (0)