Application Development 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: 

declaring a variable

kjyothiraditya
Participant

I know this question sounds silly. But just to confirm, can you please let me know if there is any performance-wise difference in declaring a variable using data element or table-fieldname style.

3 REPLIES 3

DominikTylczyn
Active Contributor

No, according to my knowledge.

former_member1716
Active Contributor

jyothiraditya.k,

Performance wise both are same, only difference is how you refer the Variable characteristics.

Through Data Element you provide a direct assignment where as through table field you provide reference and ensure the field's characteristics is always aligned with the variable declaration which makes more sense.

I recommend you to go through the below thread as well which gives more insight on the same topic.

THREAD

Regards!

No, your linked thread is not about performance (the linked thread is about the recommendation of using TYPE <data element> versus TYPE <table>-<component>)