SAP FORM DEFINITION ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• DEFINITION FORM (obsolete)
• IMPLEMENTATION FORM (obsolete)

FORM, DEFINITION, IMPLEMENTATION
Short Reference

ABAP_SYNTAX_OBS
FORM subr DEFINITION
$[TABLES table_parameters$]
$[USING parameters$]
$[CHANGING parameters$]
$[RAISING exc1$|RESUMABLE(exc1) exc2$|RESUMABLE(exc2) ...$].

FORM subr IMPLEMENTATION.
...
ENDFORM.

What does it do?
In this variant of the statement FORM the definition of a subroutine subr is shared between a declaration part and an implementation part:
The statement FORM subr DEFINITION declares the subroutine and its parameter interface. The meaning of the additions is the same as in FORM. A subroutine declaration of this type is part of the global declaration part of a program.
The subroutine is implemented between the statements FORM subr IMPLEMENTATION and ENDFORM. These statements define a processing block in the implementation part of the program.



Latest notes:

This variant of defining a subroutine is not supported by all tools and should be avoided.
BEGIN_SECTION SAP_INTERNAL_HINT
It remains from the operational package concept in <(>NGAP<)>. It should have been deleted already there. The availability in the <(>7.xx<)> releases is due to an error during backport.
END_SECTION SAP_INTERNAL_HINT
ABAP_HINT_END

Return to menu