4 weeks ago
When I activate the code, it shows The method "ZZGET_NEXT_SUBVIEW_COUNT" does not have a RETURNING parameter. It cannot be called in expressions. The coding as following:
CALL METHOD uo_model_holder->add
EXPORTING
im_screen_view = lo_custom_view
im_position = uo_model_holder->zzget_next_subview_count( ).
May I know what is wrong with the coding? Thanks in advance.
This message
The method "ZZGET_NEXT_SUBVIEW_COUNT" does not have a RETURNING parameter. It cannot be called in expressions
means that you are doing a Functional Method Call (Functional Method Call - ABAP Keyword Documentation (sap.com)), e.g. im_position = uo_model_holder->zzget_next_subview_count( ), but you have declared your method without any RETURNING parameter.
Instead of
METHODS ZZGET_NEXT_SUBVIEW_COUNT.
the solution could be for instance:
METHODS ZZGET_NEXT_SUBVIEW_COUNT
RETURNING VALUE(result) TYPE i.
For more information about it, read:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you show me how is the coding? Thanks in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
9 | |
8 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.