Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Program structure →  Modularization Statements →  Dialog Modules 

MODULE

Short Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


MODULE mod {OUTPUT|[INPUT]}. 
  ...
ENDMODULE.

Addition

... OUTPUT|[INPUT]

Effect

The MODULE statement defines a mod dialog module. The naming conventions apply to the name mod. The functions of a mod dialog module are implemented between the MODULE ad ENDMODULE statements.

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

Addition

... OUTPUT|[INPUT]

Effect

The OUTPUT and INPUT additions determine whether the dialog module can be called for the PBO event or for the PAI event. The INPUT addition is the default and can therefore also be omitted, although this is not recommended for the readability of the program. Two dialog modules with the same name can be defined in a program, if one of them has the OUTPUT addition and the other has the INPUT addition, which is not recommended again for reasons of readability.


Note

For data encapsulation reasons, we recommend that you implement little functionality in dialog modules, and that you call procedures instead.