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

Difference between standard text and hard coding..??

Former Member
0 Likes
2,041

Hi to all,

Can any one please tell me what is the difference between standard text and hard coding..?

thanks,

Bharath.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,870

hi Bharath,

A standard text can have tranlation version (same standard text name but in different language) defined for it which will help in multi language environment. Where as hard coding wll remain the same (in the language which it is written) irrespective of the logon language you choose to work with.

Hope this helps,

~Athreya

11 REPLIES 11
Read only

vladimir_erakovic
Contributor
0 Likes
1,870

Hi Bharath,

I suppose that you think about messages. If you write your messages directly in code then they are as they are so you can use your program only in one language. On the other hand, if you use message class to store your messages in table T100 then you can later add different languages for the same message id so you can basically translate the program.

Regards,

Vladimir

Read only

0 Likes
1,870

Could you please tell me how to find whether it is standard text or hard coding in scripts..?

Thanks,

Bharath.

Read only

0 Likes
1,870

Hi-

In Scripts for standard texts you can check syntax like below:

INCLUDE &VBDKR-TDNAME& OBJECT VBBK ID Z001 LANGUAGE  &NAST-SPRAS&

-Venkat

Read only

Former Member
0 Likes
1,870

There is a facility (for texts that are not messages but are from the interface standard texts) that can provide semi-automatic translation according to logon language.

Neal

Read only

Former Member
0 Likes
1,871

hi Bharath,

A standard text can have tranlation version (same standard text name but in different language) defined for it which will help in multi language environment. Where as hard coding wll remain the same (in the language which it is written) irrespective of the logon language you choose to work with.

Hope this helps,

~Athreya

Read only

0 Likes
1,870

Hi

Thanks for your reply's..

Could you please tell me how to find whether it is standard text or hard coding in scripts..?

Thanks,

Bharath.

Read only

0 Likes
1,870

You could debug your program and set a breakpoint for 'message'.

Read only

0 Likes
1,870

I did it but i don't know how to recognize it..?

could please tell me any example..?

Thanks ,

Bharath.

Read only

0 Likes
1,870

If in your code you have:
MESSAGE 'Test' TYPE 'E'.

Then it's a hardcoded message.

If you have:

MESSAGE e001(ZMESSAGE_CLASS).

or

MESSAGE e001.

Then it's not harcoded, it's using a message class.

Read only

Former Member
0 Likes
1,870

Hi Bharath,

The main advantage of standard text is reusable comparing hard coding the text.

Thanks,

Ashok.

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,870

My 2 cents whether you have so10 standard text or coded directly in script both can be translated. Difference lies in lets say you have to reuse the text in more than one scripts so rather than maintainjng individually in each form you have can have text which can be reused and maintained easily at one point.