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: 

Constants Strings without text elements are not translated

yasu_1096
Explorer
0 Kudos
1,343

Hi All can anybody helpme out from that how resolve these 15 errors as 0?

screenshot-2023-10-03-164841.pngscreenshot-2023-10-03-164841.png

5 REPLIES 5

raymond_giuseppi
Active Contributor
1,194

Basically if a text string is to be translated, define it as text symbol

(Obsolete and Dirty way, use #EC NOTEXT)

1,194

Indeed pseudo comments are obsolete https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abenpseudo_comment_slin.htm

However pragmas like ##no_text are not https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abenpragma.htm

So I would suggest to

  • either introduce text symbols if string fields should be translatable
  • or use ##no_text pragma if they really should not be translated.

I don't find ##no_test pragma a dirty trick if it is used as intended.

0 Kudos
1,194

For latest version of documentation on Pragmas, but as stated in my initial response, define language-dependent texts as text symbols.

1,194

Nitpicking about the words (comment targeted to yasu_1096😞 agreed to use a text symbol "if a text string is to be translated", but also to use one if it's not to be translated but is a word or sentence in the "program source language", e.g. "Finished" is a word in the English language so text symbol is required, but the job status "R" (technical code for released) or "SAP" (company name) are not to be translated so no text symbols.

Sandra_Rossi
Active Contributor
0 Kudos
1,194

Better embed your other screenshot, i.e.