cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms and modifications to CONTROL_PARAMETERS

matteo_montalto
Contributor
0 Kudos

Hello Gurus,

my requirement is to print a custom smartform in SRM 7 using the vendor language, which not necessarily is the same of sy-langu at runtime.

Example: vendor is from spain, but the buyer who's looking at the document is logged in in English --> Smartform should print out a document in spanish.

I have translated the smartform in any possible language without problems.

Actually, what determines the Sform language is the field LANGU in the structure CONTROL_PARAMETERS, so I'm here to ask you: is there any point in which I can modify it according to my logic without breaking the standard code?

As far as I've seen, in SRM there's a BADi , BBP_OUTPUT_CHANGE_SF, in which I could change that structure.

However (tried in debug mode) the value entered in the BADi are NOT transferred to the CONTROL_PARAMETERS structure as I can see, when the Smartform's FM is triggered, the LANGU value is always set to sy-langu.

Any idea? Thank you!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi - actually control_parameters-langu is same as the output language. If the output is issued in 'EN', then LANGU will be 'EN'. Its not the sy-langu though.

Thanks.