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.
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 ![]()