cancel
Showing results for 
Search instead for 
Did you mean: 

Display and Send the Smartforms

Former Member
0 Kudos

Hi,

I send the smartfoms with pdf attachment.

But My client requirement is send and display the smartform.

can you please help me.

Thanks & Regards,

venkatesh

Accepted Solutions (0)

Answers (1)

Answers (1)

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

After sending the Smartform, you could call the assigned FM again to display the form in print preview mode... something like this:

wa_control_parameters-no_dialog = 'X'.
wa_control_parameters-preview = 'X'.
wa_output_options-tddest = 'LOCL'.
 
CALL FUNCTION fmname
  EXPORTING
    control_parameters = wa_control_parameters
    output_options     = wa_output_options
  IMPORTING
    job_output_info    = wa_job_output_info
  EXCEPTIONS
    formatting_error   = 1
    internal_error     = 2
    send_error         = 3
    user_canceled      = 4
    OTHERS             = 5.

There was a similar thread a few days ago, where the requirement was to download the form in PDF and display it:

There is a working test program in that thread, you could replace the downloading part with the email logic that you already wrote. Then call the FM again at the end for the form display.

Former Member
0 Kudos

HI,

I tried but it is not working.

Former Member
0 Kudos

Hi Venk,

Do you mean display in the local system, or display in the remote system?

Ths,

Eric

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

Then you did something wrong.

Not knowing what your code is like, it's hard to say what the problem is.