‎2008 Jul 08 7:24 AM
HI guys,
What does the (E05) means in the below code?
PERFORM ADD_ERROR USING 'NO VACANCY'(E05) ''.
thanks a lot!
always,
mark
‎2008 Jul 08 7:30 AM
Hi,
That is text symbol name (E05).
In SE38 Menu path
Goto ---> Text elements ---> Text symbols
we define the text symbols.
Best regards,
raam
‎2008 Jul 08 7:27 AM
hi,
Can you be more elaborative in the code part. where you use it and how?
Regards
Sumit Agarwal
‎2008 Jul 08 7:27 AM
Hi Mark,
It means that a text symbol has been defined (TEXT-E05) with the English text 'NO VACANCY' (using the translation tools this text can be translated in any language without the need of modifying the program).
Regards,
John.
‎2008 Jul 08 7:27 AM
Hi Mark,
here E05 is the Text Element Declared in the Program, advantage of using this is that this Text Element changes with your Language, and if the Text Does not Exist for a given Language then it takes the value of the Parameter as 'NO VANCANCY', in this case the Default value of the Text Element will also be 'NO VANCANCY'.
Best Regards,
Sunil.
‎2008 Jul 08 7:28 AM
hi Mark,
It reflects to a text element created locally in the program. If user logs on other than English, than the translated text will be used (if exists).
hope this helps
ec
‎2008 Jul 08 7:29 AM
hiiii
its just a text symbol created by developer...
you can create it just remove that E05 & double click on 'No vacancy' ..it will give you a text symbol screen save & activate there..go back then now you will see text symbol number near to 'no vacancy'...
regards
twinkal
‎2008 Jul 08 7:30 AM
Hi,
That is text symbol name (E05).
In SE38 Menu path
Goto ---> Text elements ---> Text symbols
we define the text symbols.
Best regards,
raam
‎2008 Jul 08 7:39 AM
Hi guys,
thanks a lot for your immediate response...
so the above code is just the same as the below code?
constants: c_no(10) value 'NO VACANCY',
c_space(1) value ' '.
PERFORM c_no(E05) c_space.
Thanks a lot!
‎2008 Jul 08 7:42 AM
Hi Mark,
I would prefer:
constants: c_no(10) value 'NO VACANCY'(E05),
c_space(1) value ' '.
PERFORM c_no c_space.
Regards,
John.
‎2008 Jul 08 7:46 AM
Hi Mark,
yes it is same the as the above code, but as I mentioned earlier First Code has some Advantages over the Second Code, so I would prefer the First one.
Best Regards,
Sunil.
‎2008 Jul 08 7:54 AM
Hi Sunil,
Does this mean that when I use the second code, the advantage inhibited on the first code does not anymore apply to the second code?
thanks a lot!
‎2008 Jul 08 8:12 AM
Hi Mark,
1.) The main advantage is:
like in your case 'NO VACANCY'(E05) '' this is will check whether the Text Element consists some texts in your Login Language then it will display that in your Login Language, otherwise it will Display the Hard Coded Text i.e. 'NO VANCANCY'.
-> Consider a case where the Text Element is Written in English as well as German (i.e. Text Translation for this Text Element exists.)
-> then, when you login through English Language, you will get the English Text; and if you login through German, you will get the German Text.
-> and if you login through third language say SPANISH so in this case this Text Element doesn't contain Text Translation for SPANISH, in this case it will print the Hard Coded Text i.e. 'NO VANCANCY'.
2.) Second advantage is readability, i.e. there is no need of going into the Text Element again and again to check the Text given in this Text Element 'E05'.
Best Regards,
Sunil.