Skip to Content
0
Oct 28, 2021 at 05:09 PM

Alternate Function module for OTF to PDF

389 Views Last edit Oct 29, 2021 at 07:44 AM 2 rev

Hi Team,

We are running the RSNAST00 in bulk processing sale order.for a particular output type ZABC

As per process, it calls the smartforms>otf format>pdf>archive>send mail via BCS class concept.

Problem is when it runs in bulk, few of the orders pdf not getting attached.

Function module for the OTF to pdf used is SX_OBJECT_CONVERT_OTF_PDF

I want to know is there any alternate FM for this..noticed in few of blog, this FM been obsolete and problem happens like PDF not generate when run in bulk.

Kindly suggest on the same.If i use new FM, can i know where to pass the devtype for it.

sample code used -

CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
EXPORTING
format_src = 'OTF'
format_dst = 'PDF'
devtype = 'PDF1' "MOD02
CHANGING
transfer_bin = l_transfer
content_txt = otf_tab
content_bin = itab2
objhead = l_objhead
len = l_len
EXCEPTIONS
err_conv_failed = 1
OTHERS = 2.

Regards,

Karthik s