Skip to Content
-1
Mar 13 at 11:12 AM

PDF attached to an email when used CALL FUNCTION 'Z_CONVERT_OTF_2_PDF_MAIL_ATTCH'

50 Views

Hi all,

I have a requirement, need to add the attachment to an email.

There is one Smart form, I execute it and have the output redirected to an import parameter.

1] After that I've set ls_control_param-getotf = 'X'. to send the pdf output to import parameter job_output_info-otfdata[] (this will be in itcoo format)

2] Converted to email attachment format.

lt_objbin TYPE TABLE OF solisti1 WITH HEADER LINE,

CALL FUNCTION 'Z_CONVERT_OTF_2_PDF_MAIL_ATTCH'

TABLES

t_objbin = lt_objbin

t_itcoo = ls_job_info-otfdata.


But now when I'm using call method to add attachment and passing following parameters.

image.png

Getting error as: "LT_OBJBIN" is not type-compatible with formal parameter "I_ATT_CONTENT_TEXT".

Can anyone please suggest what can be done in this case.

Thank you,

Ankita.

Attachments

image.png (24.7 kB)