TAKE INPUT FIELD IN ABAP

 * There are two types.

        1. SELECT-OPTIONS.

        2. PARAMETERS.

    SELECT-OPTIONS

        * Select-options is the keyword which accepts the single value, multiple single values, single range & multiple ranges.

Syntax of select-options: -

            Select-options <name of the select-options> for <variable name>.

CODE 

    REPORT zajay_practice.
    DATATYPE I.
    SELECT-OPTIONS :S_ID FOR A.
    DATA(LS_ID-low.
    DATA(HS_ID-high.

    WHILE LE H.
      WRITE/ L.
      L + 1.
    ENDWHILE.

INPUT



OUTPUT


        PARAMETERS
            * It‟s the keyword which accepts the single value at run time.

        Syntax:-
            * Parameter <name of the parameter> type <data type>   
        CODE
        REPORT zajay_practice.
        PARAMETERS TYPE I.
        DATA TYPE VALUE 1.
        WHILE LE A.
          WRITE/ L.
          L L + 1.
        ENDWHILE.
        INPUT



        OUTPUT 





Comments

Popular posts from this blog

New syntax for append- VALUE (new syntax 7.4+) in ABAP

Read statement new syntax in ABAP. (7.4+).

Concatenation new syntax( 7.4+ ).