Generating Coding 

Transaction PM01 enables you to generate coding from the entry screen.

Infotype structures Pnnnn and Qnnnn and additional fields ADD_nnnn are declared in include member MPxxxTOP.

The MODULE and ENDMODULE statements of the output modules are included in include member MPxxxO00.

The MODULE and ENDMODULE statements of the input modules are included in include member MPxxxI00.

Routine FORM FILL_PROPOSED_VALUES_nnnn (nnnn = screen number) is then included in include member MPxxxF00.

Within this routine, internal table PROPOSED_VALUES is filled with the names and contents of fields processed by the action.
Modif group 1 of the fields is interpreted on the entry screen.

Procedure

A new entry screen is created for a module pool.

The includes with data definitions, output and input modules, and subroutines are supplemented accordingly.

 

An entry screen is changed for which coding already exists.

The includes with data definitions, output modules, and input modules are supplemented with new objects.

If fields or modules are deleted, the corresponding objects are not deleted from the includes because they might be used by other screens.

If routine FILL_PROPOSED_VALUES_nnnn already exists for current screen nnnn, a dialog box is displayed with a confirmation prompt and the routine is rebuilt.