Include program

Include Program

Steps to create include program

    *     Goto SE38

    *     Give Program name starts with Z/Y like "zajay_include".

    *     Click on create and give title and type is "Include Program".

    *    Click on save and select package.

   

Steps to create executable program

      *     Goto SE38

      *     Give Program name starts with Z/Y like "zajay_execute".

      *     Click on create and give title and type is "Executable Program".

      *    Click on save and select package.

   

Include program "ZAJAY_INCLUDE_PROG"

           *&---------------------------------------------------------------------*

        *& Include ZAJAY_INCLUDE_PROG
        *&---------------------------------------------------------------------*

        dataV_a type VALUE 10,
              v_b type VALUE 20.

Executable program  "ZAJAY_EXECUTE_PROG"

        *&---------------------------------------------------------------------*
        *& Report ZAJAY_EXECUTE_PROG
        *&---------------------------------------------------------------------*
        *&
        *&---------------------------------------------------------------------*
        REPORT ZAJAY_EXECUTE_PROG.
        include ZAJAY_INCLUDE_PROG.
        data V_c type i.

        v_c v_a + v_b.

        write v_c.


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+ ).