cancel
Showing results for 
Search instead for 
Did you mean: 

The method ZZGET_NEXT_SUBVIEW_COUNT does not have a RETURNING parameter. It cannot be called in expr

Catherine3
Explorer
0 Kudos
227

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.

DominikTylczyn
Active Contributor
The problem is exactly what the message says - the method has to implement a returning parameter if it is used in expressions.
Catherine3
Explorer
0 Kudos
May I know what is wrong with the coding? Thanks in advance.
DominikTylczyn
Active Contributor
0 Kudos
Please share the coding and the signature of the zzget_next_subview_count method
Catherine3
Explorer
0 Kudos
method ZZGET_NEXT_SUBVIEW_COUNT. *{ INSERT SHDK904575 1 * RE_COUNT = LINES( SUBVIEWS ) + 1. *} INSERT endmethod. What is the signature of the method?
Catherine3
Explorer
0 Kudos
I know what is wrong after changing the signature the the method. Thank you
View Entire Topic
Catherine3
Explorer
0 Kudos

Can you show me how is the coding? Thanks in advance.

DominikTylczyn
Active Contributor
0 Kudos
Please don't post comments or additional questions as answers.