2013 Nov 13 2:18 PM
Hi,
Suddenly my Invocie Smartform has started to Display Tag instead of Dag (Norwegian for Day).
I used to work, so I suspect one of my colleagues has done something (of course not me :-).
I have tried to use transaction CUNI to fix the problem, but I'm not able to.
The original language on the Smartform is EN, and it happens on a invoice to a norwegian custoemr, so why it displays the German version I don't understand.
Anyone experienced something similar?
Kind regards
Frode
2013 Nov 15 7:56 AM
Hi Guys,
I found the 'problem'.
The reason for the whole misery 🙂 is that I forgot to include the translation of the Unit in transaction SE63, I have just translated the header texts, not the data fields.
I had to add the translation of the Unit field also.
/E &IT_GEN_COL3&
TN &GS_IT_GEN-SALES_UNIT(C)&
Thank you very much for all your help and suggestions.
Kind Regards
Frode
2013 Nov 13 2:28 PM
Hi
The language to be used has to be transfered while calling the smartform CONTROL_PARAMETERS-LANGU, if any language is transfered the system'll use the MASTER language (I mean the language used to create the smartform)
Usually the language is from master data customer, have you tried to check which language is used?
Max
2013 Nov 14 7:35 AM
Hi Max,
Thank's for your answer, but unfortuneately it didn't help me alot.
The CONTROL_PARAMETERS-LANGU is 'O' (Norwegian) and Sy-Lang is 'E' (I guess this is the language I'm logged in with?) and the language of the Customer is also 'O' in the Customer data.
I think there is a problem somewhere with the translation of Units of Measurement, but I'm not able to fix it it.
I have tried transaction Cuni, but there everything looks OK I think.
Does anyone else have any idea?
Kind Regards
Frode
2013 Nov 14 8:08 AM
Hi Thomassen,
I am not sure but if the problem is with Unit of Measure you must try below Conversion Exit Function Modules.
CONVERSION_EXIT_CUNIT_INPUT
CONVERSION_EXIT_CUNIT_OUTPUT
May these will help you.
Thanks and Best Regards,
Faisal
2013 Nov 14 8:48 AM
Hi Faisal,
I think we are on to something here,
When I input Day and EN in the CONVERSION_EXIT_CUNIT_INPUT, I get TAG as the result.
When I input TAG and EN in the CONVERSION_EXIT_CUNIT_OUTPUT, I get Day as a result.
Where are these values maintained?
Kind Regards
Frode
2013 Nov 14 8:56 AM
Hi Frode,
Table T006A is the one to check for UOM language versions.
Regards,
Nick
2013 Nov 14 10:48 AM
Dear Thomassen,
Use the Conversion Exit Functions as per your requirement rather than going to some table.
Thanks and Best Regards,
Faisal
2013 Nov 14 10:55 AM
I think the interpretation was that the values in the table are wrong and this is influencing the behaviour of CONVERSION_EXIT_CUNIT_INPUT and OUTPUT.
Checking the values in the table would have confirmed if this was the case, there's no suggestion to bypass the FMs
Regards,
Nick
2013 Nov 14 11:08 AM
Hi
That means your smartform is called in Norvegian, if there's a version for this language, the system'll use it else the English one.
Now as the guys said try to check the translation of unit measure
Max
2013 Nov 14 2:11 PM
Hi again,
I have come a little bit further on this,
I had used a variable field, this meant that the Function modules was not called and the Smartform used Tag, which is the value before the conversion.
Now I have debugged the Output function and it seems that I enter the function with the wrong language.
Sy-langu is 'E', this is correct, but it has a variable called language, and this is also 'E', this should be 'O',
Does anyone know where this is coming from?
Kind Regards
Frode
2013 Nov 14 4:02 PM
2013 Nov 15 6:57 AM
Hi Max,
I ran the debug in the FM, it looks like Sy-langu changes value inside the FM, just to get the right value?
Frode
2013 Nov 15 7:56 AM
Hi Guys,
I found the 'problem'.
The reason for the whole misery 🙂 is that I forgot to include the translation of the Unit in transaction SE63, I have just translated the header texts, not the data fields.
I had to add the translation of the Unit field also.
/E &IT_GEN_COL3&
TN &GS_IT_GEN-SALES_UNIT(C)&
Thank you very much for all your help and suggestions.
Kind Regards
Frode