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

type

Former Member
0 Likes
756

TYPES: BEGIN OF ty_data,

lifnr TYPE rf02k-lifnr, "Vendor

bukrs TYPE rf02k-bukrs, "Company Code

ekorg TYPE rf02k-ekorg,

ktokk TYPE rf02k-ktokk,

name1 TYPE lfa1-name1,

land1 TYPE lfa1-land1,

spras TYPE lfa1-spras,

akont TYPE lfb1-akont,

reprf TYPE lfb1-reprf,

zwels TYPE lfb1-zwels,

waers TYPE lfm1-waers,

END OF ty_data.

i declared the types like that..

then

st_data TYPE ty_data,

what is the meaning on above statement?

Regards,

pandu.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
716

ST_DATA is a structure of type ty_data.

ST_DATA will have all the fields lifnr, bukrs, ekorg, ktokk, name1 etc at runtime & it will store single record at runtime.

ST_DATA is nothing but Work area.

5 REPLIES 5
Read only

Former Member
0 Likes
717

ST_DATA is a structure of type ty_data.

ST_DATA will have all the fields lifnr, bukrs, ekorg, ktokk, name1 etc at runtime & it will store single record at runtime.

ST_DATA is nothing but Work area.

Read only

0 Likes
716

thank u ..

Regards,

pandu

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
716

Hi,

You are creating a <b>USER-DEFINED</b> Data type, which will not be stored in DDIC, and will only be avilable in the program you have defined it.

ty_data is a user defined data type visible only in the program it is defined.

Regards,

Sesh

Read only

gopi_narendra
Active Contributor
0 Likes
716

st_data is the work area of ty_data

it_data type table of ty_data - is the declaration for internal table of type ty_data

Regards

Gopi

Read only

Former Member
0 Likes
716

Hi pandurangarao,

"Types" means we are specifying a structure only.

we need to declare variables based on this type inorder to use that type.

That is this statement "st_data TYPE ty_data".

You can also create internal tables with this type like

"data st_data TYPE standard table of ty_data"

Regards,

Sheron