Skip to Content
author's profile photo Former Member
Former Member

type

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Sep 12, 2007 at 04: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 12, 2007 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 12, 2007 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.