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*&---------------------------------------------------------------------*
data: V_a type i VALUE 10,
v_b type i 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
Post a Comment