SAP PERFORM GENERAL ABAP Statements

Get Example source ABAP code based on a different SAP table
  



PERFORM - general

Short Reference


ABAP Syntax PERFORM subr_identifier
[parameter_list].

What does it do? This statement calls the subroutine specified with the name subr_identifier and assigns the actual parameters specified in parameter_list to the formal parameters of the subroutine.



Latest notes:Subroutines are obsolete. Do not create new subroutines in
new programs. Subroutines created in existing programs for internal modularization can continue to be called. Whenever possible you should avoid externally calling subroutines of other programs.



Example ABAP Coding
See parameter_list
.
ABAP Code Snippet



Runtime Exceptions

Catchable Exceptions


CX_SY_PROGRAM_NOT_FOUND
Reason for error:
The specified program was not found.
Runtime error:
LOAD_PROGRAM_NOT_FOUND
Reason for error:
The specified program cannot exist because the program name is longer than 40 characters.
Runtime error:
PERFORM_PROGRAM_NAME_TOO_LONG

CX_SY_DYN_CALL_ILLEGAL_FORM
Reason for error:
The specified subroutine was not found.
Runtime error:
PERFORM_NOT_FOUND
Reason for error:
The specified index was too small.
Runtime error:
PERFORM_ •_0
Reason for error:
The specified index was negative.
Runtime error:
PERFORM_ •_NEGATIVE
Reason for error:
The specified index was too large.
Runtime error:
PERFORM_ •_TOO_LARGE

CX_SY_DYN_CALL_PARAM_MISSING
Reason for error:
The called FORM expects more parameters than were specified.
Runtime error:
PERFORM_PARAMETER_MISSING

CX_SY_DYN_CALL_PARAM_NOT_FOUND
Reason for error:
More parameters were specified than expected by FORM .
Runtime error:
PERFORM_TOO_MANY_PARAMETERS

CX_SY_DYN_CALL_ILLEGAL_TYPE
Reason for error:
When parameters are passed using the addition STRUCTURE, the addressing offsets do not match in the actual and target structures.
Runtime error:
PERFORM_BASE_WRONG_ALIGNMENT
Reason for error:
The deep components contained in the actual and target structures cannot be passed to each other. This error can only occur in parameter transfer using STRUCTURE.
Runtime error:
PERFORM_CAST_DEEP_MISMATCH
Reason for error:
During the transfer of a generically defined type to the form, a type conflict occurred.
Runtime error:
PERFORM_CONFLICT_GENERIC_TYPE
Reason for error:
The table type of the actual parameter does not match the table type of the parameter defined in the form.
Runtime error:
PERFORM_CONFLICT_TAB_TYPE
Reason for error:
The type of the actual parameter does not match the type of parameter defined in the form.
Runtime error:
PERFORM_CONFLICT_TYPE
Reason for error:
The actual parameter occupies less storage space than the target parameter defined in the form. This error occurs only with parameter specification using STRUCTURE.
Runtime error:
PERFORM_PARAMETER_TOO_SHORT
Reason for error:
During parameter transfer with the addition STRUCTURE, the fragment views of the actual and target parameters do not match. This error only occurs in Unicode programs in
Runtime error:
PERFORM_CONFLICT_UC_STRUCT
Reason for error:
When the form is called, an internal table is expected as the actual parameter.
Runtime error:
PERFORM_TABLE_REQUIRED
Reason for error:
A hash table was passed to a parameter defined using TABLES.
Runtime error:
PERFORM_Standard SAP Help for_TAB_REQUIRED
ABAP Code Snippet

Return to menu