cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms and output control

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

its better u put a condition in the print program itself and depending on the condition call the smartform fm.

Former Member
0 Kudos

Can you please tell me how this can be done. My abaper is not so skilled and I need some help.

Former Member
0 Kudos

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.

Answers (0)