Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

CRM Smartform taking user parms instead of output options

ISA users that are created in the ISA admin do not have an output device specified in their user default (SU01D). So when an ISA order hits the back end (CRM) it triggers an action, which in turn calls a method and processes smarform. This smartform gets attached to an email and sent out. The problem is, that when the user is missing the output device in their user default, to attachmennt comes as a 1 kb PDF that can't be opened.

I'm trying to pass the parameters to the Smartform FM, but not taking effect..

Am I missing setting something?

control_parameters-langu = lv_language.

control_parameters-no_open = ' '. "SAP SF: General flag

control_parameters-no_close = ' '. "SAP SF: General flag

control_parameters-device = 'LOCL'. "Output device

control_parameters-no_dialog = 'X'. "suppress printer dialog

control_parameters-preview = ' '. "Print preview

control_parameters-getotf = 'X'. "Return OTF tab, no print

control_parameters-replangu1 = ' '. "Language key

control_parameters-replangu2 = ' '. "Language key

control_parameters-replangu3 = ' '. "Language key

control_parameters-startpage = ' '. "SAP SF: Object name

ls_output_options-tddest = 'LOCL'.

ls_output_options-tdnoprev = 'X'.

  • call function to process smart form

CALL FUNCTION function_name

EXPORTING

archive_index = is_archive_index

archive_index_tab = ct_archive_index_tab

archive_parameters = is_archive_parameters

control_parameters = control_parameters

mail_appl_obj = is_mail_appl_obj

mail_recipient = is_mail_recipient

mail_sender = is_mail_sender

output_options = ls_output_options

user_settings = space

orderadm_h = ls_orderadm_h

activity_h = ls_activity_h

lead_h = ls_lead_h

opport_h = ls_opport_h

orgman_h = ls_orgman_h

partner_h = lt_partner_h

pricingdata_h = ls_pricingdata_h

sales_h = ls_sales_h

shipping_h = ls_shipping_h

payplan_d_h = lt_payplan_d_h

cumulat_h = ls_cumulat_h

customer_h = ls_customer_h

acs_h = ls_acs_h

billing_h = lt_billing_h

cancel_h = lt_cancel_h

appointment_h = lt_appointment_h

billplan_d_h = lt_billplan_d_h

billplan_h = lt_billplan_h

status_d_h = lt_status_d_h

status_h = lt_status_h

srv_subject_h = lt_srv_subject_h

srv_reason_h = lt_srv_reason_h

srv_result_h = lt_srv_result_h

orderadm_i = lt_orderadm_i

orderadm_i_qt = lt_orderadm_i_qt

orderadm_i_in = lt_orderadm_i_in

orgman_i = lt_orgman_i

pricingdata_i = lt_pricingdata_i

pricing_i = lt_pricing_i

product_i = lt_product_i

sales_i = lt_sales_i

schedlin_i = lt_schedlin_i

schedlin_i_cf = lt_schedlin_i_cf

shipping_i = lt_shipping_i

partner_i = lt_partner_i

item_cstics_i = lt_item_cstics_i

customer_i = lt_customer_i

billing_i = lt_billing_i

cancel_i = lt_cancel_i

finprod_i = lt_finprod_i

ordprp_i = lt_ordprp_i

appointment_i = lt_appointment_i

billplan_d_i = lt_billplan_d_i

billplan_i = lt_billplan_i

status_i = lt_status_i

working_set_e_s_bbp = lt_working_set_e_s_bbp

language = lv_language

IMPORTING

document_output_info = es_document_output_info

job_output_info = es_job_output_info

job_output_options = es_job_output_options

EXCEPTIONS

output_canceled = 1

parameter_error = 2

OTHERS = 3.

Former Member
Not what you were looking for? View more on this topic or Ask a question