cancel
Showing results for 
Search instead for 
Did you mean: 

Language problem in Smartform

Former Member
0 Kudos

I have create a smartform in my development system and it works fine .This Form has been made in English and it has been translated in Bulgarian.

It runs well in both languages .

When i transfer this form to productive system there is a strange symptom .

Logon : En -> Form Lang: En -


> Result :ok English View

Logon : En -> Form Lang: Bg -


> Result :ok Bulgarian View

Logon : Bg -> Form Lang: Bg -


> Result :The form cant be opened and seems to run continuously.

The Productive and Development are similar systems in versions .

Can you give me a hint ....

Thanks

Edited by: Dimath72 on Jan 19, 2011 1:45 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

R u able to open the same form in BG language while logging in BG language in the development system.?

Regards,

Prabu

Former Member
0 Kudos

i don't know why but the mistake was the following :

Wrong

*DATA : T_POSO(50) TYPE C.*

*MOVE T_DMBTR TO T_POSO.*

  *CALL FUNCTION 'SPELL_AMOUNT'*
    *EXPORTING*
      *AMOUNT    = T_POSO*
      *CURRENCY  = "'EUR'*
      *LANGUAGE  = SY-LANGU*
    *IMPORTING*
      *IN_WORDS  = T_OLOGRAFOS*
    *EXCEPTIONS*
      *NOT_FOUND = 1*
      *TOO_LARGE = 2*
      *OTHERS    = 3.*

*CASE SY-LANGU.*
    *WHEN 'E'.*
*CONCATENATE T_OLOGRAFOS-WORD WAERS 'AND' T_OLOGRAFOS-DECWORD INTO*
*T_POSO SEPARATED BY SPACE.*
*WHEN 'W'.*
  *CONCATENATE T_OLOGRAFOS-WORD 'u041Bu0415u0412u0410' 'u0418' T_OLOGRAFOS-DECWORD*
*'u0421u0422u041Eu0422u0418u041Du041Au0418'INTO T_POSO SEPARATED BY SPACE.*
  *ENDCASE.

Right

*DATA : T_POSO(50) TYPE C.*

*MOVE T_DMBTR TO T_POSO.*

  *CALL FUNCTION 'SPELL_AMOUNT'*
    *EXPORTING*
      *AMOUNT    = T_POSO*
      *CURRENCY  = WAERS     "'BGN'*
      *LANGUAGE  = SY-LANGU*
    *IMPORTING*
      *IN_WORDS  = T_OLOGRAFOS*
    *EXCEPTIONS*
      *NOT_FOUND = 1*
      *TOO_LARGE = 2*
      *OTHERS    = 3.*

*CASE SY-LANGU.*
    *WHEN 'E'.*
*CONCATENATE T_OLOGRAFOS-WORD WAERS 'AND' T_OLOGRAFOS-DECWORD INTO*
*T_POSO SEPARATED BY SPACE.*
*WHEN 'W'.*
  *CONCATENATE T_OLOGRAFOS-WORD 'u041Bu0415u0412u0410' 'u0418' T_OLOGRAFOS-DECWORD*
*'u0421u0422u041Eu0422u0418u041Du041Au0418'INTO T_POSO SEPARATED BY SPACE.*
  *ENDCASE.