Application Development 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: 

Invoice Smartform displaying Tag instead of Day

former_member211905
Participant
0 Kudos
333

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

1 ACCEPTED SOLUTION

former_member211905
Participant
0 Kudos
276

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

12 REPLIES 12

Former Member
0 Kudos
276

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

0 Kudos
276

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

0 Kudos
276

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

0 Kudos
276

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

0 Kudos
276

Hi Frode,

Table T006A is the one to check for UOM language versions.

Regards,

Nick

0 Kudos
276

Dear Thomassen,

Use the Conversion Exit Functions as per your requirement rather than going to some table.

Thanks and Best Regards,

Faisal

0 Kudos
276

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

Former Member
0 Kudos
276

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

0 Kudos
276

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

0 Kudos
276

Hi

Which function module? the fm of the smartform?

Max

0 Kudos
276

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

former_member211905
Participant
0 Kudos
277

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