cancel
Showing results for 
Search instead for 
Did you mean: 

Archive PDF to Billing Attachement List problem

0 Kudos

Hello,

I've print a billing document via a SMARTFORMS, and i wanna to archive the PDF into the Attachement list, i had used the structure toa_dara and arc_params from the INCLUDE rvadtabl but they come empty with no value, So the archiving is not done !

How can i get this values ?

Used Code :

NCLUDE rvadtabl.
...
...
    lst_loutput_options-tdimmed = gc_x.
    lst_loutput_options-tddest = nast-ldest.
    lst_loutput_options-tdnewid = gc_x.
    lst_loutput_options-tdarmod = nast-tdarmod.

CALL FUNCTION lv_fname
      EXPORTING
        control_parameters = lst_control
        output_options     = lst_loutput_options
        user_settings      = gc_x
        archive_parameters = arc_params
        archive_index      = toa_dara
      IMPORTING
        job_output_info    = lst_info
        job_output_options = lst_output.

Accepted Solutions (0)

Answers (1)

Answers (1)

hedvig_rohonyi
Employee
Employee

Dear Hamza,

Smartform is using FM CONVERT_OTF_AND_ARCHIVE to perform the archiving. Please set a break point into this function.

If it isn't stopped please check the input parameters just before the call of the function module of the Smartforms.

You must set e.g. the TDARMOD field of the Output Options to '2' ( Archive Only) or '3' ( Print and Archive).

If it is stopped, please check the function ARCHIV_CREATE_OUTGOINGDOCUMENT and his parameters (l_pdf_xstring, ...)

Best regards,

Hedvig