This website is not affiliated with, sponsored by, or approved by SAP AG.

Regular text changes based on logon language

Development SAPscript/ Smartforms

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Regular text changes based on logon language

Postby Eggy » Thu Mar 18, 2010 5:52 am

I've been thinking about this one a long time and it just doesn't make any sense. The functional consultant returns to me with examples of the form showing the same label over and over again... however when I open the form for editing, I see all labels being correct. The labels are all regular (E) text elements, no text modules that need to be translated.

My personal preferred development language is English, so I login in English --> Form labels look fine
However the functional consultant logs on in Dutch --> Form labels are crap

Why oh why would the contents of a regular text element change based on the login language? When I'd want the labels to change, I would have made them text modules. Is this a setting I've missed? Can't imagine this being intended behavior.
Eggy
 
Posts: 309
Joined: Wed Jan 11, 2006 8:50 am

Re: Regular text changes based on logon language

Postby Gothmog » Fri Mar 19, 2010 3:01 am

It is the intended behavior. Those are text elements, fully language-dependent.
You don't want to create text module for every single label in your form. You write your text in the text element.

It means that each change of a text element must be done in every language. That's sapscript for you ;)
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1942
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: Regular text changes based on logon language

Postby Eggy » Fri Mar 19, 2010 3:16 am

...but it's a Smartform.

Seriously? If I define a text element, it will only be defined in the current language? What if I just want the text "YARRR" printed, would I have to define "YARRR" in all languages (including pirate)? That makes no sense.
Eggy
 
Posts: 309
Joined: Wed Jan 11, 2006 8:50 am

Re: Regular text changes based on logon language

Postby Gothmog » Fri Mar 19, 2010 3:40 am

The text element is defined for all language, but you still have to translate it (SE63, Translation/ABAP Objects/Other long texts/SSF).
However, if a text element is not translated in the printing language, the text in the original language of the form should be displayed.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1942
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: Regular text changes based on logon language

Postby Eggy » Fri Mar 19, 2010 4:05 am

That would be the case if these were text modules. Those are indeed intended for translation.. and when no translations can be found, the original language is used.

However I'm talking about labels here, just labels within the smartform. They don't exist outside of the form and cannot be found using SE63. These things don't have language fields and should be the same no matter what language you login with.
Eggy
 
Posts: 309
Joined: Wed Jan 11, 2006 8:50 am

Re: Regular text changes based on logon language

Postby Gothmog » Fri Mar 19, 2010 5:43 am

Eggy wrote:That would be the case if these were text modules. Those are indeed intended for translation.. and when no translations can be found, the original language is used.

Same goes for text elements in your form : intended for translation.

Eggy wrote:However I'm talking about labels here, just labels within the smartform. They don't exist outside of the form and cannot be found using SE63.

Yes you can, using the object I noted above : Translation/ABAP Objects/Other long texts/SSF.

Eggy wrote:These things don't have language fields and should be the same no matter what language you login with.
No,they have a language : the language selected when you print your form (or that you SET in a code node).
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1942
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: Regular text changes based on logon language

Postby Eggy » Fri Mar 19, 2010 6:03 am

Hmm ok I didn't know that.

But does this mean I'm using a wrong kind of text, or am I just doomed to translation?

Is there any way for me to remove the Dutch versions of the text elements, so by default the English ones are used?
Eggy
 
Posts: 309
Joined: Wed Jan 11, 2006 8:50 am

Re: Regular text changes based on logon language

Postby YuriT » Fri Mar 19, 2010 6:22 am

Check the SE63 path above. You can just copy English version to Dutch and thats it.
YuriT
 
Posts: 885
Joined: Fri Feb 03, 2006 6:40 am
Location: Basel/Riga

Re: Regular text changes based on logon language

Postby Gothmog » Fri Mar 19, 2010 6:23 am

Have a look at the text element translation screen in SE63 : you'll find it quite similar to the old sapscript text editor.
If you delete the element lines (including the /E one), maybe it'll display the original language version when printing.
Haven't tested it, though...
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1942
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: Regular text changes based on logon language

Postby Eggy » Fri Mar 19, 2010 6:39 am

Aaaaah there it is! If you enter the form name, you indeed get all the text elements, thanks!

Still think it's strange intended behavior... but at least I can fit it now :)
Eggy
 
Posts: 309
Joined: Wed Jan 11, 2006 8:50 am


Return to SAPscript/Smartforms

Who is online

Users browsing this forum: Google Adsense [Bot] and 4 guests





This website is not affiliated with, sponsored by, or approved by SAP AG.