• 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.

    Monday, October 22, 2012

    To declare a variable (or field) in an ABAP program that can be given a value at runtime, use the "PARAMETERS" statement.

    The basic syntax is:

    PARAMETERS  <name>(<length>) TYPE <data type> DEFAULT <default>.

    The only required addition in this statement is the <name> of the parameter.

    A parameter's name can be up to 8 characters in length. This name should begin with a letter and the remainder of the name should consist of letters, numbers, or an underscore.
    "SPACE" is a reserved word in ABAP.

    The parameter's <length> is specified in parentheses immediately after the <name> (no spaces in between the name and the length).

    If no length is specified, the variable will be the standard length for the data type The parameter's <data type> is specified after the "TYPE" addition.

    If no data type is specified, the variable will be type 'C'.

    To define a default value for the parameter, use the "DEFAULT" addition.

    This default value is different from the initial value automatically assigned to a data object (see page 3).

    When you execute a program using the "PARAMETERS" statement, a "selection screen" is displayed for you to enter values into the parameters.  To continue program execution from the selection screen, click on the "Execute" pushbutton (or click the "F8" key).

    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.