Application Development and Automation 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: 
Read only

Problem with PERFORM statement

Former Member
0 Likes
1,071

HI guys,

What does the (E05) means in the below code?

PERFORM ADD_ERROR USING 'NO VACANCY'(E05) ''.

thanks a lot!

always,

mark

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,047

Hi,

That is text symbol name (E05).

In SE38 Menu path

Goto ---> Text elements ---> Text symbols

we define the text symbols.

Best regards,

raam

11 REPLIES 11
Read only

Former Member
0 Likes
1,047

hi,

Can you be more elaborative in the code part. where you use it and how?

Regards

Sumit Agarwal

Read only

Former Member
0 Likes
1,047

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.

Read only

Former Member
0 Likes
1,047

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.

Read only

JozsefSzikszai
Active Contributor
0 Likes
1,047

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

Read only

Former Member
0 Likes
1,047

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

Read only

Former Member
0 Likes
1,048

Hi,

That is text symbol name (E05).

In SE38 Menu path

Goto ---> Text elements ---> Text symbols

we define the text symbols.

Best regards,

raam

Read only

0 Likes
1,047

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!

Read only

0 Likes
1,047

Hi Mark,

I would prefer:


constants: c_no(10) value 'NO VACANCY'(E05),
                c_space(1) value ' '.

PERFORM c_no c_space.

Regards,

John.

Read only

0 Likes
1,047

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.

Read only

0 Likes
1,047

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!

Read only

0 Likes
1,047

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.