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

Multiple Languages in SmartForm

Former Member
0 Likes
1,596

I've a requirement to print the PO unit of measure in EN language irrespective of the language used in the smartform. Smartform uses the company code language to print the smartform. Example. If company belongs to Germany, smartform is printed in DE language. User still wants to print the unit of measure in EN language. I don't want to go for UOM customizing as it will affect other areas. I would like to know if any way to enhance the smartform to handle this.

Thanks,

Milind

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,189

Hello Milind,

You can use program line in smart form where you are using to print the UOM description, write the select statement and sy-langu eq 'EN'

I.e., T006T table for UOM description table.

7 REPLIES 7
Read only

Former Member
0 Likes
1,190

Hello Milind,

You can use program line in smart form where you are using to print the UOM description, write the select statement and sy-langu eq 'EN'

I.e., T006T table for UOM description table.

Read only

0 Likes
1,189

Thanks Madhu. Let me explain the scenario.

PO is created for Finland company code (Language FI). PO has UOM entered in EN language. Example AU for Activity unit. EKPO-MEINS has value 'AU'. When PO is printed in Finland language, UOM is displayed as 'TY' ('AU' translated to 'TY' in FI language). Requirement is to display 'AU' on print and not TY.

Hope it clears.

Thanks,

Milind

Read only

0 Likes
1,189

as suggested why not create a program line just above the text field which displays unit of measurement . and fetch UOM in EN language from DB tables once again by passing po number. and over write what ever unit coming with UOM in EN language???

Read only

0 Likes
1,189

HI Milind,

That is because the UoM field has conversion routine attached to the domain. The conversion exits

i.e. FMs CONVERSION_EXIT_CUNIT_OUTPUT and CONVERSION_EXIT_CUNIT_INPUT also use language as an optional parameter to convert the unit (not just the description).

You can use the above two FMs (as per your requirements) and also pass the LANGUAGE parameter as EN

Regards,

Pulkit

Read only

0 Likes
1,189

I'm using text element &ST_EKPO-MEINS& to print UOM. As mentioned above EKPO-MEINS has value 'AU'. When printed, it is displayed as 'TY' (translated in FI language) I want to print it as 'AU'. Is there any way I can pass language parameter with text element?

Thanks,

Milind

Read only

0 Likes
1,189

You need to declare another variable of type char3

Call FM CONVERSION_EXIT_CUNIT_OUTPUT Pass language  = EN and input = ST_EKPO-MEINS

Import paratmeter OUTPUT in the variable declared

Use variable to output the form

Read only

former_member187748
Active Contributor
0 Likes
1,189

Hi Milind,

why not you handle it through using case....endcase statement.

Just itterate your data, create a variable of type text, and initialize it with text = 'EN'

While itterating your data , check your data for any language put text as 'EN' only.