Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smartform language

Former Member
0 Likes
1,436

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,081

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,082

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

Read only

Former Member
0 Likes
1,081

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

Read only

Former Member
0 Likes
1,081

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

Read only

Former Member
0 Likes
1,081

Hi David,

You can mention the language in control parameters under the field langu.

Thanks.

Read only

Former Member
0 Likes
1,081

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