cancel
Showing results for 
Search instead for 
Did you mean: 

Error(s) occurred when rendering the output item in VF31F

keyur_pawar
Active Participant
0 Kudos

Hello All,

We have created a custom Invoice form with Adobe form object, Driver program and ENTRY routine and configured the same in (SPRO -> Assign form template) for Billing Document in Output management. Also maintained the FORM name object in BRF+.

First thing, Can I go with traditional approach (SPRO -> Assign form template) in S4 HANA?

Because here everything works fine if I go with this approach in t-codes VF01/02/03. Invoice form preview appearing correctly.

But when we execute the Billing Doc. output run for Invoice in t-code VF31F, we are facing a following error - "Error(s) occurred when rendering the output item".

In our case Spool is also created successfully.

Please help me to figure out this error.

Regards,

Keyur Pawar

Accepted Solutions (1)

Accepted Solutions (1)

keyur_pawar
Active Participant
0 Kudos

Solved by myself..

First of all it is not mandatory to have ODATA based fragmented Adobe form only in S/4 HANA, we can go with ABAP based adobe form also with BRF+ and SPRO config.

Above error solved by passing following parameters to FM: FP_JOB_OPEN -

ls_fp_outputparams-nodialog = abap_true.
ls_fp_outputparams-dest = 'LP01'.
ls_fp_outputparams-reqnew = abap_true.
ls_fp_outputparams-reqimm = abap_true.
IF sy-tcode = lc_vf31f.
  ls_fp_outputparams-nopreview = abap_true.
  ls_fp_outputparams-covtitle = NAST-tdcovtitle.  "Most important - Spool Description
ELSE.
  ls_fp_outputparams-preview = abap_true.
ENDIF.

And pass following parameters when you call dynamic function module of Form for spool generation:

lv_docparams-langu = sy-langu.
lv_docparams-country = lc_us.

Regards,

Keyur Pawar

Answers (0)