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

Any Function Module to translate variable data in smartform

Former Member
0 Likes
724

Hi All,

I am working with smartform.

My requirement is, when user logins with Japan language.

then all the data ( text template and variable data ) should be in Japan .

By using SE63 ,i can translate only text data. How about the variable data in smartform?

Please suggest any solution.

Regards,

Kishan

5 REPLIES 5
Read only

former_member195383
Active Contributor
0 Likes
684

Hope you are passing the variable from print program. If not then do the same. and in the print program do the below thing.

wf_spras = sy-langu.

CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTP
      EXPORTING
           input  = wf_spras
      IMPORTING
           output = wf_language.

  SET LANGUAGE wf_language.

 wa_control_parameters-langu = wf_spras.

PS : wa_control_parameter , you pass through control_parameters, in to the SMARTFORM calling FM .

Make sure that the data, which u fill into the variable you are talking about in maintained in the log on language also.

Read only

0 Likes
684

Hi Prasanna,

Thanks for your reply.

Hope you have't got my quesion?

In samrtform we will have fixed text and varibale data ( the data from sap ).

by using SE63 we can translate the fixed text. My problem is with varible data. This data will same as it is in sap database.

how we can translate the varile data to required lang.

REgards,

Kishan

Read only

0 Likes
684

Hi,

The answer from Prasanna is correct.

You can send the language in CONTROL_PARAMETERS or use a SET LANGUAGE in the form.

If the data is also maintained in the corresponding language it will fetch the data in that language only.

Please make your MDM people to maintain the data in required languages.

Read only

0 Likes
684

Yes... Setting control parameters language attributes, as stated my previous post, and by Bhupals post, will solve you purpose.

Please Get back in case of further doubt.

Read only

0 Likes
684

ok