Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9080

Re: [ABAP-OO] Returning vs Changing Method

$
0
0

Hello Rachid,

 

 

newer Netweaver releases allow both a RECEIVING and CHANGING parameters. You can also introduce a parameter object and pass it as an IMPORTING parameter.

 

In your case I would propose to pass a pointer to your table TYPE REF TO Table_Type so you can change the table entries in the method. You could return the changed table as a value parameter without impact if it was never changed later  (check table sharing in

ABAP Keyword Documentation→  ABAP - Reference→  Processing Internal Data→  Internal Tables

 

As Matthew once said: There's the right way of doing things (my way)

 

regards,

 

JNN


Viewing all articles
Browse latest Browse all 9080

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>