cancel
Showing results for 
Search instead for 
Did you mean: 

Problem when converting to PDF

ajeethram
Explorer
0 Kudos

Hi Experts,

I have done a Invoice Smartform which was working good in Development server. But when it is Transported to Production it shows the following Error , OTF end command // missing in OTF data. Can any one please help me out in this.

Thanks & Regards,

Ajeeth

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

hii,

1

goto se38

2.give rstxpdft4

3.give spool number

Former Member
0 Kudos

At first i must admit that i never did that OTF to pdf conversion thingie.

BUT i´ve seen a lot of threads about it here. What i remeber from that is that many people were proposing FM CONVERT_OTF over FM CONVERT_OTF_2_PDF.

maybe this can help you.

If not, you have a new keyword for searching SDN.

Former Member
0 Kudos

Hi Ajeeth ram.s,

Please check the NACHA value while debugging

CALL FUNCTION 'WFMC_PREPARE_SMART_FORM'
    EXPORTING
      pi_nast       = nast
      pi_country    = lv_dlv-land
      pi_addr_key   = lv_addr_key
      pi_repid      = sy-repid
      pi_screen     = lc_x
    IMPORTING
      pe_returncode = gv_retcode
      pe_itcpo      = lv_itcpo
      pe_device     = lv_device
      pe_recipient  = lv_recipient
      pe_sender     = lv_sender.
  IF gv_retcode = 0.

    MOVE-CORRESPONDING lv_itcpo TO lv_composer_param.
    lv_control_param-device      = lv_device.
    lv_control_param-no_dialog   = lc_x.
    lv_control_param-preview     = lc_x.
IF nast-nacha = '5'.
      lv_itcpo-tdgetotf = 'X'.
      lv_control_param-getotf      = lv_itcpo-tdgetotf.
    ENDIF
    lv_control_param-langu       = nast-spras.
    lv_composer_param-tdnoprint = space.
  ENDIF.

i think in your case Nacha value is 1 might be please check

Thanks

Surendra

syed_ibrahim5
Active Participant
0 Kudos

hi,

check the return table values of the fm 'convert_otf'. That might be empty.

with regrads,

syed

ajeethram
Explorer
0 Kudos

Hi syed ,

Thanks for your reply syed. yes the table ST_JOB_OUTPUT_INFO-OTFDATA is empty in production server which is having some values in Development. But i coudn't able to find the solution. and also i am using the Fn Module CONVERT_OTF_2_PDF.

Thanks & Regards,

Ajeeth

Edited by: Ajeeth ram.s on May 26, 2011 12:35 PM