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

Re: Determine class name used for calling a static method ( CL_ABAP_GET_CALL_STACK )

$
0
0

Matthew Billingham wrote:

 

Personally, I think your question represents a pathological case, highly unlikely to occur in the real world. As such, if it does occur - don't handle it, dump or raise an exception.

 


I'd say this was mostly the case before 7.40, and then I'd agree with you in 100% to throw an exception in case using the create method in the same line, but this was just on of the examples. Now it's more likely to appear, or with switch.


Przechwytywanie.PNG

 

 

But for stack both of the create methods are called from line 47......

 

Also I can imagine to have a wrapper function to create split container with two grids, so it would look like this

 

data(splitter_wrapper) = new zcl_splitter( io_left_grid = lcl_falv=>create( ... )

                                                            io_right_grid = zcl_falv=>create(...)

                                                            ).

 

 

and this is one of the examples.

 

 

I know it's quite uncommon, but I'd like just to make it simpler


Viewing all articles
Browse latest Browse all 8372

Trending Articles



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