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 Data and Create data

Former Member
0 Likes
744

Hi ,

Can any one please tell me the difference between CREATE DATA and DATA statement.

What all situations we need to use the create data statement.

Thanks in advance.

Joe

3 REPLIES 3
Read only

mvoros
Active Contributor
0 Likes
634

Hi,

here is a quote from ABAP documentation.

Unlike the DATA statement, CREATE DATA creates the data object at execution time. DATA creates declared data objects when the corresponding program unit is loaded.

More info can be found in ABAP documentation. CREATE DATA is usually used in dynamic programming where you work with generic types.

Cheers

Read only

Former Member
0 Likes
634

Joe,

Please do a F1 on those keywords that will bring you documentation.

Thanks

Bala Duvvuri

Read only

matt
Active Contributor
0 Likes
634

Read the documentation. Post locked.