Hello Everyone,
I am bit new to ABAP. My requirement is to convert a smartform in to a PDF and then EMAIL it. Could any one please explain me the process of achieving this. I have already done my research regarding this and found some Function modules that we can use. But, I was not successful in getting my desired output.
I am creating the smartform using "SSF_FUNCTION_MODULE_NAME" FM and then passed the returning smartform name to the following code.
CALL FUNCTION lf_fm_name
EXPORTING
control_parameters = ls_control_param
output_options = ls_composer_param
user_settings = 'X'
is_inv = wa_inv
IMPORTING
job_output_info = ls_job_info
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
Now, how do I convert this smartform to a PDF and Email. Could someone please give me some code to do this. I would greatly appreciate your help.
Regards,
Gopal.