0% found this document useful (0 votes)
36 views2 pages

Include 3

Include programs contain reusable ABAP source code that can be inserted into other programs using the INCLUDE statement, allowing code to be organized into small, editable units without standalone execution; the include statement copies the source code into the main program for combined execution.

Uploaded by

Vikram Bigamudre
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views2 pages

Include 3

Include programs contain reusable ABAP source code that can be inserted into other programs using the INCLUDE statement, allowing code to be organized into small, editable units without standalone execution; the include statement copies the source code into the main program for combined execution.

Uploaded by

Vikram Bigamudre
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Include programs are not standalone programs and cannot be executed independently.

They can be used as a container for ABAP source code. They are used to organize the ABAP source code into small editable units which can be inserted at any place in other ABAP programs using the INCLUDE statement. Include programs can be used in different programs. The include statement copies the contents of the include program into the main program. Include programs have no parameter interface and they cannot call themselves. While creating the INCLUDE program using the ABAP editor choose program type as "I" i.e. INCLUDE program in the program attributes.

Syntax for Include program is as follows.


INCLUDE <Include Program Name>

Source code of ZINCLUDE_DATA.


DATA: g_name(10) TYPE c.

Source code of ZINCLUDE_WRITE.


WRITE:/ 'Inside include program'.

Source code of main program.


REPORT zmain_program.

INCLUDE zinclude_data. WRITE:/ 'Main Program'. INCLUDE zinclude_write.

Output

You might also like