• ABAP Online Training @ $50

    Now you can learn ABAP by watching and listening video classes by experienced consultant.

  • ABAP Tutorials N Materials

    Read, Surf and Download useful ABAP tips, tutorials, code and download many eBooks and documents free

  • Latest ABAP Job in India

    Get all latest opening for SAP ABAP and related jobs, vaccancies across India and apply for the same.

    Saturday, October 20, 2012

    Data declaration is one of the major part of any coding. In ABAP you can declare data with below keywords:

    Data : <Var name> TYPE <Reference Field name>.

    e.g. : LV_invoice_num type VBELN.

    A variable's name can be up to 30 characters in length. This name should begin with a letter and the remainder of the name should consist of letters, numbers, or an underscore.

    In case of constant declaration:

    CONSTANTS : <const name> TYPE <Reference Field name> VALUE <'Any value'>.
    e.g. : Lc_invoice_num type VBELN value '0001212121212'.

    If you attempt to change the value of a constant, a syntax error will occur. Constants are used to replace hard coding values in main code.
    Easy2learnabap.co.in @ 2012 All product names on this web site are trademarks of the companies that own them .

    Easy2learnabap.co.in is not affiliated with SAP AG in any way. SAP AG is the registered trademark holder of SAP, SAP R/3, mySAP, ABAP, xApps, NetWeaver, and other proprietary terms.

    The technical information on this site is verified to the greatest extent possible, however, any information found on this site is used at the site visitor's own risk. All the tutorials are collected from various sources, if anyone is having problem with the content, report this to us. We will take action accordingly.

    Easy2learnabap.co.in reserves the right to correct any errors or omissions in any portion of this site at any time without obligation.

    This website is created to teach people about ABAP technology. The Video contents provided in Premium service are completely owned by us and copyrighted.