Code: Alles auswählen.
...
DATA: g_role TYPE agr_name.
...
SELECT-OPTIONS so_i_r FOR g_role.
...
PERFORM get_users_by_role
USING so_i_r.
...
FORM get_users_by_role
USING c_so_r TYPE RANGE OF agr_name.
...
ENDFORM.
...
Die mich leider vollends verwirrt. Ich habe doch in beiden Fällen die gleiche Anzahl an Parametern. Nämlich genau einen.Program XYZ
Different number of parameters in FORM and PERFORM (routine:
GET_USERS_BY_ROLE, number of formal parameters: 3, number of actual
parameters: 1).
Code: Alles auswählen.
...
DATA: g_role TYPE agr_name.
...
SELECT-OPTIONS so_i_r FOR g_role.
...
PERFORM get_users_by_role
USING so_i_r[].
...
FORM get_users_by_role
USING c_so_r TYPE RANGE OF agr_name.
...
ENDFORM.
...
Code: Alles auswählen.
DATA: g_role TYPE agr_name.
SELECT-OPTIONS so_i_r FOR g_role.
PERFORM get_users_by_role USING so_i_r[].
*&---------------------------------------------------------------------*
*& Form get_users_by_role
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->SO_I_R text
*----------------------------------------------------------------------*
FORM get_users_by_role USING so_i_r LIKE so_i_r[].
BREAK-POINT.
ENDFORM. "get_users_by_role