on 12-15-2008 11:03 AM
I have a requirement in the output of a sales order using smartforms to print only some of the materials from the sales order.
eg. I want to print only the materials that have a specific material group (MATKL).
Can you help me what I should do either in the program used or in the smartform
its better u put a condition in the print program itself and depending on the condition call the smartform fm.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ur sales orders must be coming in some internal table
so *loop at * that internal table with a where condition which satisfies ur conditions inside
assign these specific values to another internal table of same type but having records that u require then pass these to ur smartform fm like this.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting formname = lf_formname
variant = ' '
direct_call = ' '
importing fm_name = lf_fm_name
exceptions no_form = 1
no_function_module = 2
others = 3.
call function lf_fm_name
exporting
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param "Smart Forms: Control structure
mail_recipient = ls_recipient
mail_sender = ls_sender "Structure for Object ID
output_options = ls_composer_param "SAP Smart Forms: Smart Composer (transfer) options
user_settings = ' '
is_dlv_delnote = sales_itab "sales order Data: Transfer-Structure for Smartform
is_nast = nast "Nast
exceptions formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.