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

Reg text elements and constants

Former Member
0 Likes
523

Hi All,

Please clarify my doubt with respect to one examp I am giving regarding text element and constants.

I am building field catelog in ALV like below.

m_fieldcat '1' 'KUNNR' 'GI_FINAL_ITAB' text-002 '10' ' '.

To remove the hard coding (for examp 'KUNNR')in the above statement we can do 2 ways one way is declare constant with value KUNNR and other way is with text element value 'KUNNR' which method we have to approach considering performance and all?

Thanks&Regards

Mahesh

Hi All,

Please clarify my doubt with respect to one examp I am giving regarding text element and constants.

I am building field catelog in ALV like below.

m_fieldcat '1' 'KUNNR' 'GI_FINAL_ITAB' text-002 '10' ' '.

To remove the hard coding (for examp 'KUNNR')in the above statement we can do 2 ways one way is declare constant with value KUNNR and other way is with text element value 'KUNNR' which method we have to approach considering performance and all?

Thanks&Regards

Mahesh

3 REPLIES 3
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
481

Use Constants ....

Read only

former_member404244
Active Contributor
0 Likes
481

Hi mahesh,

use text element ,it will be better ..

regards,

nagaraj

Read only

Former Member
0 Likes
481

Hi,

In this case, its a field name, so u can any one constants or text elements.

But if you are going to give field descriptions, then text elements is the best option, because it can support multiple languages, as constants cannot be used for multiple languages, unless it is translated.

Hope its clear

Regards,

Sekar