hi all,
i have developed the print program which converts smartform to PDF nad emails this pdf.
i have attached this printprogram to new output type.
when i goto VF02->issue output to->zpdf a pdf is generated and mail is sent.
<b>now my problem is when i goto VF01->maintain output tye-> SAVE no pdf is generating. what can be the problem.</b>
and also i want to know is this the right approcah ie, creating a new output type->assigning the print program->and in the pring program email logic is developed.
if true then why it is not triggering in <b>VF01</b>.
my code:
CALL FUNCTION lf_fm_name
EXPORTING
archive_index = toa_dara
ARCHIVE_INDEX_TAB = LS_TSFDARA
archive_parameters = arc_params
control_parameters = ls_control_param
mail_appl_obj = ls_APPL_OBJ
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = 'X'
is_bil_invoice = ls_bil_invoice
is_nast = nast
is_repeat = repeat
IS_LAND = ls_dlv-land
W_HEADING = V_Heading
v_btgew = v_btgew
W_ADR = V_ADR
IMPORTING
DOCUMENT_OUTPUT_INFO = document_output_info
JOB_OUTPUT_INFO = job_output_info
JOB_OUTPUT_OPTIONS = job_output_options
TABLES
it_lips = it_item
it_ltap = it_ltap
it_STXH = it_STXH
it_ISTXH = it_ISTXH
EXCEPTIONS formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
CALL FUNCTION 'CONVERT_OTF_2_PDF'
..........
........
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
..........
...........
need ur help on this.
thanks,
adi