Whats  basic difference between data and types while declearing the itab

whats  basic difference between data and types while declearing the internal tables...
DATA : BEGIN OF t_vbap OCCURS 0,
vbeln1 LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
kwmeng LIKE vbap-kwmeng,
netpr LIKE vbap-netpr,
netwr LIKE vbap-netwr,
werks LIKE vbap-werks,
matnr LIKE vbap-matnr,
arktx LIKE vbap-arktx,
   END OF t_vbap.
vs
   TYPES : BEGIN OF t_vbap,
vbeln1 LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
kwmeng LIKE vbap-kwmeng,
netpr LIKE vbap-netpr,
netwr LIKE vbap-netwr,
werks LIKE vbap-werks,
matnr LIKE vbap-matnr,
arktx LIKE vbap-arktx,
   END OF t_vbap.
and vs
  TYPES : BEGIN OF t_vbap,
vbeln1 LIKE vbeln,
posnr LIKE posnr,
kwmeng LIKE kwmeng,
netpr LIKE netpr,
netwr LIKE netwr,
werks LIKE werks,
matnr LIKE matnr,
arktx LIKE arktx,
   END OF t_vbap.

hi,
like -> used for refering existing data elements in data dictionary or in sap
type -> used for refering existing data types in sap.
types: used for creating used defined structure of tables which has fields from more tahn one table.
diff b/w types and type in creation of internal tables is that when u create a table with types then u can use same for work area creation also.
ex:
TYPES : BEGIN OF t_vbap,
vbeln1 LIKE vbeln,
posnr LIKE posnr,
kwmeng LIKE kwmeng,
netpr LIKE netpr,
netwr LIKE netwr,
werks LIKE werks,
matnr LIKE matnr,
arktx LIKE arktx,
END OF t_vbap.
data: itab1 type t_vbap
        wa_itab1 type t_vbap.
when type is used then u have to create a defintion of work area for another time when internal table doesnt have headr line as
ex:
DATA : BEGIN OF t_vbap OCCURS 0,
vbeln1 LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
kwmeng LIKE vbap-kwmeng,
netpr LIKE vbap-netpr,
netwr LIKE vbap-netwr,
werks LIKE vbap-werks,
matnr LIKE vbap-matnr,
arktx LIKE vbap-arktx,
END OF t_vbap.
DATA : BEGIN OF wa_vbap,
vbeln1 LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
kwmeng LIKE vbap-kwmeng,
netpr LIKE vbap-netpr,
netwr LIKE vbap-netwr,
werks LIKE vbap-werks,
matnr LIKE vbap-matnr,
arktx LIKE vbap-arktx,
END OF wa_vbap.
if helpful reward soem points.
with regards,
suresh.

Similar Messages

  • Difference between data and types

    dear friends
           Its a very simple question i am confused with why we create structures with types where we can create structures with data as well :
    Types: begin of stru
    end of stru.
    Data: begin of stru
    end of stru...
    regards
    Naim

    To construct a new structured data type struc_typein a program, you use several TYPES statements:
    TYPES BEGIN OF struc_type.
      {TYPES dtype ...} | {INCLUDE {TYPE|STRUCTURE} ...}.
    TYPES END OF struc_type.
    The syntax for directly declaring a variable as a structure is the same as you would use to define a structured data type using the TYPES statement:
    DATA BEGIN OF struc.
      {DATA comp ...} | {INCLUDE {TYPE|STRUCTURE} ...}.
    DATA END OF struc.
    The individual components of a structure are addressed in the program with the structure component selector between the structure name and component name as follows: struc_comp.
    Have a look at below link.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3364358411d1829f0000e829fbfe/content.htm
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • What is difference between data base structure and stucure  in program

    what is difference between data base structure and stucure  declared in program  level . can  explain cleary if knows

    Hi,
    Data base structure is global decalaration you can reffer this structure in any of your developments, when ever you cahange this structure the changes automatically will get updated in all the programs.
    coming to structures in program it is local to your program only, if you want to change the structure again you have to open the program and do the necessary changes.
    Reward if useful.
    Thanks,
    Sreeram.

  • Difference between Data carrier type and Data carrier??

    Hi experts,
    Could you please explain me the difference between Data carrier type and Data carrier with an example??
    Regards,
    Kiran T

    hi Kiran,
    Data carrier is to achive communication between server and user front end. We can define one data carrier type along with path as default for all or seperate data carriers type for specific users in define data carrier in SPRO. This defined data carriers again we assign to application in defining network for workstation application in SPRO.
    By using data carrier we can upload to & download originals from server. We can change and print the documents from server.
    Please award pts if its useful / need further information.
    Pramod

  • What is difference between modify and update i am using

    hi
    what is difference between mofify and update
    my requiremen is to have three condition checkec while mofifying or updating from a internal table
    the three fields are
    cus no
    status
    date these all are primary key in the database table
    so which sould i use modify or update
    there might be entry already existing in database table or new entry to be created if already existin it should check on the primary keys and updatat if not it should add a record
    pls suggest whihc to use and how to implement the check on teh threee primary key
    like if modify ztable from table it_test
    now where condition ? can be used or not with modify? and if yes how
    if not should i use update will update create a new entry if no entry is there and please give syntex
    regards
    Arora

    Hi Nishant Arora,
    Modify: It works in performing two actions.
    They are: Insert + Update.
    For Example If a record that is exited in database, so you are modifying that record, it updates that particular record.
    Similarly, If the is not existed in the database, you are modifying it, it inserts a new record.
    Update: Update means just it updates the status, I mean it only updates the record. It doesn't inserts any new record if that particular record is not present in the database.
    These are the cases you need to write these statements.
    Syntaxes: :
    Go through this links please.,
    http://help.sap.com/saphelp_nw04/helpdata/en/e7/968aa8b2384dd9835f91e7f8470064/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb35eb358411d1829f0000e829fbfe/content.htm
    Reward points if useful
    Cheers,
    Swamy Kunche
    Edited by: Swamy Kunche on Jun 11, 2008 2:41 PM

  • Diference between DATA: and TYPES: on internal tables

    Hi people,
    Can somebody help me. I wanna know whats the diference between DATA: and TYPES: on internal tables
    and whitch has the best performance, here is a eg:
    DATA: BEGIN OF ti_sbook occurs 0,
              carrid   LIKE sbook-carrid,
              fldate   LIKE sbook-fldate,
              customid LIKE sbook-customid,
              loccuram LIKE sbook-loccuram,
           END OF ti_sbook.
    AND
    TYPES: BEGIN OF ti_sbook ,
              carrid   LIKE sbook-carrid,
              fldate   LIKE sbook-fldate,
              customid LIKE sbook-customid,
              loccuram LIKE sbook-loccuram,
           END OF ti_sbook.
    DATA: gw_sbook       TYPE  TABLE OF ti_sbook,
    gs_sbook       TYPE ti_sbook.
    witch of both types is better?
    thanks.

    Hi Marcelo,
    For compatibility matters is better to create internal tables with a work area separately. So yes it's better to use types. When you work with Object Oriented coding you will need to use internal tables defined with types. Also when defining tables with types is the new way of coding, the another coding is getting obsolete defined by SAP. That's why when working in ABAP with OO (Object Oriented) code you'll have to define tables with types and not the other way.
    Hope it helps.
    Regards,
    Gilberto Li

  • What are differences between Java and C#

    What are differences between Java and C#?
    I was looking at C# and it looks very similar to java, does anyone have any input on what the primary differences are?

    C# has ventricles, being a more modern, hip,and
    stylin language.Yeah, but it can't use them properly unless youbolt
    on an after-market turbo charger and paint some
    go-faster stripes.
    Java doesn't need ventricles, as the language is
    built as a bifurcative scrobbidibbit from theground
    up.
    And here I thought you were smart.The ventricles add power on the backswing and keep
    down the humpty-B count, and those stripes don't
    really do much except to impress the PHBs. A
    ventricle here and there wouldn't do Java anyharm.
    Oh, I see.
    I didn't realize you were concerned with humpty-B. So
    I suppose you put 17 firewalls in front of your VM's
    Jeffries tubes too huh? And measure productivity in
    fleems per wonkle?
    That may have worked back when you carved FORTRAN on
    stone tablets, and then went to look for a nice young
    lady to club and take home. But modern software
    development techniques demand a focus on the
    regressive thromboid paradigm, and ventricles only
    get in the way when you're trying to calibrate that
    against the latest fractal suppository data.At least I have actual experience in carving FORTRAN on stone tablets, so I know what I'm talking about. (The clubbing was the other way around but that's neither here nor there.) As for your regressive thromboid paradigm, regressive is exactly what it is. Progressive paradigms, whether thromboid or rhomboid, require ventriculation to achieve their maximum potential.
    And I suppose if you're still using those Jeffries tubes in your VM, it's not surprising that it's humptied to the max. Try installing Apache Fallopian if you really want to dehumptify it, or Apache Eustachian for 64-bit VMs.

  • What is Difference between SXMB_MONI and SXMB_MONITOR?

    what is Difference between SXMB_MONI and SXMB_MONITOR?
    Can any explain to this question.please?

    Hello,
    Both are same.
    SXMB_MONI is area menu which will contain all multiple transactions pertaining to monitoring.
    SXMB_MONI contains some functions viz monitoring for Bridging, Archived Msgs, Job overview, persistence layer analysis.
    SXI_monitor directly leads to the message monitoring for the IS, which is part of the SXMB_MONI.
    SXI_MONITOR directly executes the monitoring report.
    Thanks,
    Satya

  • Basic differences between G2 and G3

    hey, is there a breakdown anywhere of the basic differences between G2 and G3?
    i've tried looking but everything i've read seems to single out the podcast features of g3 which to be honest, don't really do much for me, since i would be using it mostly for music.
    Are there substantial differences aside from the podcast features that would justify the upgrade? and if so, any idea where i can read about them?
    thanks in advance.
    G4   Mac OS X (10.4.6)  

    there also some more differences as compare to gb2 is the ability to do music composition for your edited imovies and one more thing if you change your track to sound efxs you can drag audio files into your onscreen keyboard or your musical typing on your assign key to do music composition which gb2 dont provide last time.

  • What's differences between jaas and jacc?

    lately i saw a new java scurity released on http://java.sun.com/j2ee/javaacc/; it seems like similar to JAAS (http://java.sun.com/products/jaas/); though, reportedly, jacc concerned more detail in authrization, however, there's autherization api been included as i know. is there anyone be able to tell me what's differences between jaas and jacc? or where there's resource or article exaplained detail about this issue?
    i appreciate any suggestions.
    thank you very much,

    From what I saw, the JACC specifically deals with what is currently called Container Managed Security. JAAS is something that would be used on top of JACC.
    See also:
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Security11.html
    JACC contracts provide the following benefits:
    - JACC moves security administration and decision-making responsibility from the container to the security providers.
    - JACC enables the use of a common policy across different security systems.
    - J2EE system integrators can integrate containers with existing authorization policy infrastructure
    re Jaap

  • HT201471 Sorry can you explain what is difference between cellular and cellular (MM)

    Sorry can you explain what is difference between cellular and cellular (MM)

    The MM or Millenium Media according to what I can find, refers to the CDMA variation of the Cellular iPad for Verizon Networks.
    The non MM version is for GSM carriers like AT&T.

  • What are the Basic Differences between Oracle and  MS-SQL server Database?

    Hello,
            anybody pls Guide me about the Differences between Oracle and MS-SQL server Database.and also IBM Databases also
    Regards,
    Balaram

    SQL Server only works on Windows-based platforms, including Windows 9x, Windows NT, Windows 2000 and Windows CE.
    In comparison with SQL Server , OracleDatabase supports all known platforms, including Windows-based platforms, AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, Linux Intel, Sun Solaris and so on.
    The SQL Server  advantages:
    SQL Server  holds the top TPC-C performance and price/performance results.
    SQL Server  is generally accepted as easier to install, use and manage.
    The Oracle  Database advantages:
    Oracle  Database supports all known platforms, not only the Windows-based platforms.
    PL/SQL is more powerful language than T-SQL.
    More fine-tuning to the configuration can be done via start-up parameters.
    Samrat

  • What is difference between abstraction and encapsulation ?

    Hi,
    I am trying to figure out the difference between abstraction and encapsulation but confused.
    Both are used for data hiding then what is the exact difference ?
    Thanks.

    Tushar-Patel wrote:
    I am trying to figure out the difference between abstraction and encapsulation but confused.
    Both are used for data hiding then what is the exact difference ?This is the picture I have:
    When you encapsulate something you get an inside and an outside. The outside is the abstraction. It describes how the encapsulated entity behaves viewed from the outside. This is also called the type. Hidden inside is the implementation. It holds detail information about how the type's behaviour is accomplished.
    It's a very simplified picture but I think it's quite accurate and it works for me.

  • Basic difference between WAS and Netweaver

    I justwant to a know a basic fundamental question. What is the basic difference between web application server and Netweaver. I am always geting confused in these two terms. Can anybody please explain?

    Hi,
    NetWeaver is:
    An application and integration platform that unifies people, information and business processes
    New technical foundation for all future SAP applications
    A replacement for BASIS framework
    A platform that is based on Enterprise Services Architecture (ESA); SAP hopes to release future product offerings in compliance with ESA
    NetWeaver is NOT:
    A product or a language
    A replacement for SAP R/3!
    A marketing strategy
    The SAP Web Application Server is the technical platform for SAP NetWeaver, providing the complete infrastructure to develop, deploy and run all SAP NetWeaver components, the mySAP Business Suite, customer- developed applications and 3rd-party J2EE 1.3 compliant applications.
    SAP Web AS fully supports both the proven ABAP technology and the open source internet-driven technologies—Java and Java 2 Enterprise Edition, also called J2EE.

  • In mail, what is difference between deleted and discarded mail

    In settings, mail, what is difference between deleted mail and discarded mail? My google account on iPad does not remove mail that I have deleted from account using other devices. My other devices and google accounts don't have this issue. I've checked settings for account and can not isolate the cause. I'm considering deleting account from iPad and then adding it back in to see if that removes the 1000+ emails that have accumulated. I don't usually use iPad for email which is why they are mostly unread on iPad.

    this might help to understand
    Collection Classes
    Often we have to deal with a set or group of objects, or values. Collection Classes are important structures that have a number of methods that allow objects to be added, retrieved, or removed from such collections.
    Objects can be grouped in a collection like sets, lists, stacks, or queues.
    A set is an unordered collection of elements, from which any item may be removed.
    A list is an ordered collection of elements, from which any item may be removed.
    A stack is a restrictive form of list that obeys a last-in-first-out (LIFO) rule.
    e.g.     a stack of plates stored after being washed, then used again.
    A queue is also a restrictive form of list that obeys a first-in-first-out (FIFO) rule.
    e.g.     a queue at a bus-stop, where the first bus to join the queue is the first one to leave.
    An important Java Collection class is the Vector class:
         java.util.Vector
    This vector class is a simple list of objects, which can be referenced by an index starting from 0 (similar to arrays). The components of a vector must be objects.
    i.e. Vector: object0 object1 object2�lastObject .. spare
    capacity                         ( size - 1)
    So, a vector can grow as more objects are added. The size of a vector is how many objects are in the vector. The capacity is how many objects can be stored in the vector before it needs to expand again. When it needs to expand it normally doubles its capacity. The default capacity is 10.
    e.g.     Vector v1;          // declare v1 as a Vector object
         v1 = new Vector();     // create a Vector instance

Maybe you are looking for

  • Any fixes for menus/icons way too small in PhotoShop CS4 on Windows 8.1?

    I installed PhotoShop CS4 on Windows 8.1 on new Dell XPS laptop and the menus and icons are very tiny and hard to even see. Does anyone know a setting or fix for this issue? Adobe said they won't help!  

  • BPC Alternate hierarchy rollup issue - require help

    Hi All, We are seeing a rollup issue on Alternate Hierarchies. We had set-up alternate hierarchies on our Country Dimension (DC) to assist some managerial reporting that is only relevant to one of our Operating segments. To show the problem, I am lis

  • Need help getting computer wired to WRT150N to communicate w/XBox360 wired

    I've got my computer wired to WRT150N router (working great) as well as my xbox 360 also working good.  I can access xbox live but cannot get the xbox to recognize that my computer is connect to the same router.  I'd like to be able to share pics/mus

  • PS autosaving?

    Is there an autosave feature that will save my work every so often while I'm editing it? Occasionally I'll get an error & PS will have to close & I lose unsaved work. I'm not sure why, but it happens very rarely. I think when I open a very large docu

  • Error occured during selection for the DS 0CRM_SALES_ACT_1 in RSA3.

    Hi Experts, I have transported the DS - 0CRM_SALES_ACT_1 i from Dev. to QA system and in RSA3 it throwing an error message saying that 'error occured during selection'. I have checked the respective tables of this datasources all the records are ther