cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform print in different languages

ritika_9878
Explorer
0 Kudos

Hello all,

How can I print same smartform in different languages like an user manual.

I need to print smartform in both en and de lang at same time..

Please guide me.

Thanks in advance

Accepted Solutions (0)

Answers (2)

Answers (2)

raymond_giuseppi
Active Contributor
0 Kudos
  • First you declare (at least) the two languages in the smarforms attributes (Form Attrubutes, Language Arributes)
  • Translate any required texts of Smart Forms definition (SE63 or connect in the two language and maintain the form) and don't forget any include texts, any READ_TEXT call, etc.
  • Then call the Smart Form FM twice changing only the language parameter (CONTROL_PARAMETERS-LANGU)
  • You could also try to merge the two calls in a single spool request or pdf file. Use parameters NO_OPEN (2nd call) and NO CLOSE (1st call)
abo
Active Contributor
0 Kudos

One option: open the session, set language EN, print, set language DE, print again, close session.

Another option would be having the form already in two languages at the same time: though internally objects have only one master language, you're of course free to write "DE" text in a "EN" form and viceversa.

Sandra_Rossi
Active Contributor
0 Kudos

The second option is the best from far 😉

abo
Active Contributor
0 Kudos

it depends on the context: if you also have to print (and maintain) each language individually or in a different combination, I'd rather have the single-language form and print it twice.

ritika_9878
Explorer
0 Kudos

I will execute once this SF. But it will print in two lang

Sandra_Rossi
Active Contributor
0 Kudos

ritika_9878 I would try to change the way this Smart Form is called, instead call it twice, once per language, and assemble the two form outputs. But to do that, of course, you need some good level of ABAP.