Search this site

Friday, April 1, 2011

Include Programs

Include Programs
• If we want to use the same sequence of statements in
several programs, we can code them once in an include
program and call it in the other programs wherever it is
required
• Include programs cannot contain PROGRAM or
REPORT Statements
• Include programs cannot call themselves
• Include programs must contain complete statements
----------------------------------------------------------------
How to create include programs -->Click for details

Using Include Programs

***INCLUDE ZTEST_INC.

WRITE: / 'Program started date:', SY-DATUM.

We can then include this program in any other ABAP program to display a standard list header.

PROGRAM ZTEST.
INCLUDE ZTEST_INC.

-------------------------------

The result:

Program started

date: 04/01/2011

No comments:

Post a Comment