2007 Jan 03 9:41 AM
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
2007 Jan 03 9:45 AM
2007 Jan 03 9:51 AM
Hi mahesh,
use text element ,it will be better ..
regards,
nagaraj
2007 Jan 03 9:56 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |