cancel
Showing results for 
Search instead for 
Did you mean: 

pl tell the sol for this

Former Member
0 Kudos

slin error

Char. strings w/o text elements will not be translated:

''Offline''

code is....

CONSTANTS:

g_switch_offline(15) TYPE c VALUE 'Offline', g_switch_error(15) TYPE c VALUE 'Error',

Accepted Solutions (0)

Answers (5)

Answers (5)

abdul_hakim
Active Contributor
0 Kudos

hi pex

you cannot translate a value of constant or text literals.you need to create text elements instead.

Cheers,

Abdul

sbhutani1
Contributor
0 Kudos

Hi Pex,

whenever you will run SLIN it checks whether there are any hardcoded value in your program or not, it checks this just to make sure the program should be language independent. if you will use text elements in place of hardcoded values then it will not give any char. string error.

You can do this by 2 ways

1. Make a text element and assign that text element to your field.

e.g.

g_switch_offline(15) TYPE c VALUE text-090.

in text element 090 you can assign value offline

2. you can directly make text elemenet through your code

e.g.

g_switch_offline(15) TYPE c VALUE 'Offline'(090).

Hope this will help you

Regards

Sumit Bhutani

hymavathi_oruganti
Active Contributor
0 Kudos

Hi,

u have given "Offline", "Error",

O -CAPS, all other small.

E-CAPS, all other small,

try giving like below, u will not get the error,

"offline", "error".

either all small or all caps,

reason: in SLIN, if character string is checked, Tests whether all character strings containing one upper or lower case letter have a text ID.

Former Member
0 Kudos

the constant text you defined in the program OFFLINE & ERROR are acceptable value to display if the user logged in english. if the user logged in any other language,we should display these texts in that particular language.for that we need to translate the static text defined in the program.

if you assign this static text to a text-symbol, & translate it to the required language, instead of displaying english text there, that particular translated text will appear to the user.

for that what you have to do is :

after that,

CONSTANTS:

g_switch_offline(15) TYPE c VALUE 'Offline'<b>(099)</b>, g_switch_error(15) TYPE c VALUE 'Error'<b>(098)</b>.

give some no after the text as shown above, & then double click on that,which will take you to text elements screen & then save & come back.

then if you want to translate this text to any other language we can do it thru menu option-> text translation

regards

srikanth

Former Member
0 Kudos

Create a text element for 'Offline' to eliminate that syntax error. SLIN will identify all the literal without text elements reports this error. This means if this report converted to other language programer has to identify all the literals and convert them. If text element exist can converted easily.

Hope this helps.

Thanks,

vamshi

Message was edited by: Vamshi Tallada