Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member181923
Active Participant
0 Kudos
Recently I completed a custom program with a standard ALV that wasn't resizing properly from low to high screen resolution or vice-versa. So after consulting the ABAP forum, I did what Thomas Jung suggested in a response he posted to someone back in 2004: make your custom container bigger than any possible screen size (e.g. 200, 240), turn on vert and hor resizing, and set your mins for both to something low - like 1 or 5. Didn't work. Frustrated, I posted in the ABAP and ABAP OO Forums and got no responses except for one that Calgar was kind enough to post in ABAP OO that simply iterated what Thomas had said. What to do, what to do! Well, the very fact that I was getting no responses from the Forum folk should have made me realize sooner that the problem had to be at least partly on my side - that I was doing something that was causing the usual solution not to work. But, better late than never - I eventually realized that the SAP resizing algorithm wasn't working properly because in my screen, I was calling a custom subscreen that was positioned above the container for the ALV. Apparently, this was causing the SAP resizing algorithm to hiccup, with the result that: 1) I was getting a window scroll-bar as well as an ALV scroll-bar; 2) the ALV was not scrolling properly after a find or findnext. So what can we all take away from this experience? Well, first, the story is a "negative proof" of the power of SDN. In particular, if you're not getting any new insight from the Forums, it's not because you're being ignored - it's because there IS no answer to the question you've asked other than the standard answer which you can already find with a search. Second - when the lack of any response in the Forums finally makes you realize the problem is certainly at least partly on your side, it's important to remember that the problem may not be a "mistake" - it may simply be an "intervening variable" that has to be eliminated to see the "truth", however improbable that truth may be. Third - the "improbable truth" is that there are minor oversights in SAP algorithms - even ones that have been around for a long time. PS to the real SAP gurus around here: In my PBO, I was calling the subscreen after firing the ALV display module. So I wonder if the SAP resizing algorithm would actually work correctly if I called the subscreen BEFORE firing the ALV display module ..... ???
2 Comments