‎2009 Feb 24 8:51 AM
Hi ppl,
I want to print my smartform based on the logon language.
I have already done the necessary translations.
I need to know that how do I pass the language to the smartform. Will it be in control parameters or output option?
Please help.
Thanks,
David.
‎2009 Feb 24 8:56 AM
You can have Sy-langu check in smartform. Only for required languages print it. Did i answered your question. It is in control parameters also.
Edited by: Phanindra Annaparthi on Feb 24, 2009 9:59 AM
‎2009 Feb 24 8:56 AM
You can have Sy-langu check in smartform. Only for required languages print it. Did i answered your question. It is in control parameters also.
Edited by: Phanindra Annaparthi on Feb 24, 2009 9:59 AM
‎2009 Feb 24 8:59 AM
Yes the control is is the IMPORT parameter CONTROL_PARAMETERS.
The field name is LANGU.
I believe even if you dont specify system should by default print the form in Log on Language if it is present.
Regards,
Prakash Pandey
‎2009 Feb 24 9:05 AM
Hi David,
You can give the condition like below :
If Nast-Spras = DE
Execute the text node - which will be created in german Language.
flag1 = 'x'.
Elseif Nast-spras = EN
flag2 = 'x'.
Exceute the Text Node or any node - which is craeted in the English language.
endif.
endif.
Or you can raise a Flag and put that in condition node.
Regards,
Kittu
Edited by: Kittu on Feb 24, 2009 10:06 AM
‎2009 Feb 24 10:06 AM
Hi David,
You can mention the language in control parameters under the field langu.
Thanks.
‎2009 Feb 24 10:22 AM
r_options-tddest = 'LP04'. "Spool: Output device "Changed by Brite on 20.11.2008
r_options-tddest = 'LOCL'. "Spool: Output device "Changed by Brite on 20.11.2008
r_options-tdimmed = 'X'. "Print Immediately
r_options-tddelete = space. "Delete After Printing
r_options-tdnewid = 'X'. "New Spool Request
r_control-device = 'PRINTER'.
r_control-no_dialog = 'X'.
r_control-langu = sy-langu.
call function w_function
exporting
control_parameters = r_control
output_options = r_options
user_settings = ' '
porder = plnum
weight = weightx
line = mdv01
material_number = matnr
maktx1 = maktx1
maktx2 = maktx2
docutype = zeiar
seq = seq
barcode = barcode.
HERE IS THE SAMPLE CODE