cancel
Showing results for 
Search instead for 
Did you mean: 

send adobe form as email attachment issue

nairharsha
Participant
0 Kudos
1,060

Hi ,

I want to send my generated custom Adobe form as email attachment, The driver program is copy of Standard SAP program RFKORDP1

Here ,after calling the Form FM , the parameter ls_formoutput-pdf is always blank

Please help me with a solution



CALL FUNCTION save_fm_name

    EXPORTING

      /1bcdwb/docparams = ls_docparams

      invoice           = gt_invoice

      oreciept          = gs_oreciept

      extra_details     = gt_extra_details                   

      one_time_addr     = gs_onetime                      

      s_expvat          = lr_expvat                            

      s_bldat           = lr_bldat                           

      s_budat           = lr_budat                            

      s_tcode           = lr_tcode                             

      s_usnam           = lr_usnam                             

      s_blart           = lr_blart                             

      bkpf_data         = gt_bkpf_data

      s_selvat          = lr_selvat

      s_selzero         = lr_selzero

      ch_mail           = ch_mail

    IMPORTING                                                   

      /bcwdb/formoutput = ls_formoutput                       

    EXCEPTIONS

      usage_error       = 1

      system_error      = 2

      internal_error    = 3

      OTHERS            = 4.

  IF sy-subrc <> 0.

Accepted Solutions (1)

Accepted Solutions (1)

former_member469314
Participant
0 Kudos

Did you set the parameter GETPDF = 'X' (function module JP_JOB_OPEN)?

Answers (0)