Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

module programming

Former Member
0 Likes
476

i want to know how to include a program in my module program. is ZTOP any standard prgm.

3 REPLIES 3
Read only

Former Member
0 Likes
456

Hi,

Programs starting with Z or Y are custom developed programs and are not standard. Hence, ZTOP may not be a standard one. Then including a program depends on the context. If you want to include it in a report, you can use the statement INCLUDE <name>.

Regards,

Renjith Michael.

Read only

Former Member
0 Likes
456

Hi Manjeet,

In module pool program you have the option of creating includes which can contain your logic in the form of sub routines, screen flow logic (Dialog Modules), etc.

Say for ex.,

The include program could contain the all the related PAI (Process After Input) logic into a single group. Similarly all the PBO (Process Before Output) logic into another include.

Even the dialog module logic can be kept in a include program.

A dialog module is called using the MODULE statement with the same name of the dynpro flow logic of any ABAP program dynpro.

Like MODULE SET_STATUS OUTPUT.

Take a look at any standard screen and see its program in SE80 transaction. You will find screens, PBO, PAI, GUI Status, Includes are gropued together.

Further if you wish to create a new include program, in SE80 transaction you can right click on includes. You will get the 'Create' option. Here you can do your logic.

All the logic you wish to do in a report you perform in this includes except giving selection screen options.

Award points if useful.

Thanks,

Ananth

Read only

Former Member
0 Likes
456

Hi,

You can include INCLUDE programs in Module pool program.

Ztop normally uses to declare internal tables and variables,structures,ocnstants in that module pool program.

Ztop is customer program and not stnd SAP Program.

But you have to use program stmt at once only.normally we include that in ZTop include only.

&----


*& Module pool SAPMZ_TEST *

*& *

&----


  • Data Declaration

include mz_top.

  • PBO Modules

include mz_pbo.

  • PAI modules

include mz_pai.

  • all other forms

include mz_forms.

----


*INCLUDE MZ_TOP *

----


PROGRAM sapmz_test.

*----


  • TABLES

*----


TABLES: vbuk.

Like that we define module pool programs.

Regds

Sivaparvathi

Please reward points if helpful...