Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

documentation error for the obsolete CALL METHOD form, about method chaining ?

Sandra_Rossi
Active Contributor
0 Likes
613

Hello,

In this page of the documentation about obsolete CALL METHOD variants, we see:

CALL METHOD { static_meth( ) 
 | static_meth( a ) 
 | static_meth( p1 = a1 p2 = a2 ... ) 
 | static_meth(  ) }. 

CALL METHOD static_meth .

...

If CALL METHOD is used for the standalone method call, no chained method
calls are possible and the operators NEW and CAST cannot be used to specify the method.

(note: "standalone method call" is the name for "static_meth")

I think that "If CALL METHOD is used for the standalone method call, no chained method calls are possible ..."

is missing a "NOT". The right sentence should be :

"If CALL METHOD is not used for the standalone method call, no chained method calls are possible ..."

This question was asked in stackoverflow by someone else: https://stackoverflow.com/questions/54329867/abap-call-method-and-method-chaining

What do you think?

Thanks!

Sandra

Adding horst.keller in the loop...

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
0 Likes
511

I close the question because there was an answer in stackoverflow : "the docu team [...] answered that it has already been reported and they corrected it in the latest version."

Old statement:

"If CALL METHOD is used for the standalone method call, no chained method calls are possible and the operators NEW and CAST cannot be used to specify the method."

New statement according to stackoverflow's answer:

"With the second variant without round brackets, chained method calls are not possible and the operators NEW and CAST cannot be used."

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
0 Likes
512

I close the question because there was an answer in stackoverflow : "the docu team [...] answered that it has already been reported and they corrected it in the latest version."

Old statement:

"If CALL METHOD is used for the standalone method call, no chained method calls are possible and the operators NEW and CAST cannot be used to specify the method."

New statement according to stackoverflow's answer:

"With the second variant without round brackets, chained method calls are not possible and the operators NEW and CAST cannot be used."