Hello ABAP experts,
I have recently noticed that the technique to access out-of-scope variables using a field-symbol and assigning the string (PROG)VARIABLE to the field-symbol no longer appears to work in 6.40. [1]
My question is this: what are the best practice techniques in this case that you would recommend to get access to this data? Would you use implicit enhancements and export/import to memory?
The exact issue I have at the moment is that I have a BADI that is called separately on each line of a table -- in other words, the whole table is out of scope for the BADI in question, only the individual lines are in scope. But I wish to calculate a sum on this table. It would seem my only recourse is to pass the data to memory, but does anyone have any better ideas?
[1] (I suppose this is old news but I don't have cause to use this technique often, so I've only caught up on this. See: Use ABAP to Access ANY Data In Memory | SAP Experts:Consulting & Integration - DataXstream -- in particular the comments by Thomas Jung. )