‎2007 Sep 12 5:02 AM
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.
‎2007 Sep 12 5:04 AM
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.
‎2007 Sep 12 5:04 AM
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.
‎2007 Sep 12 5:05 AM
‎2007 Sep 12 5:06 AM
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
‎2007 Sep 12 5:06 AM
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
‎2007 Sep 12 5:07 AM
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