Sometimes source code modules get very big. You can argue that this should never be the case, if you modularize your code properly, but the fact is that they do. And when they do, they sometimes become difficult to read.
If you have been a long time reader of my blog, you may think I have a bee in my bonnet about being able to search through ABAP source code, as if it were some holy grail or something. Yet when I consider that, given the following use cases, I think there is a lot of scope for such a solution:
If you have done much ABAP programming, you will probably have made use of the SAPGUI_PROGRESS_INDICATOR function at some point or other, which can be used to display the progress of a task. Desiring an alternative progress indicator, I set out to find an ActiveX object that provided a progress bar which I could control with OLE from ABAP.
My latest undertaking is writing mobile apps with Java ME. A problem I bumped into was creating tiles for bitmap fonts to use for displaying text in an application, in lieu of the Graphics.drawString() method, which may not always produce the most suitable output. Here I show you how you can use a Ruby script combined with ImageMagick to create a usable bitmap font tileset for your app.
In my last post I showed you how to create your own searchable index of ABAP source code using Ruby in conjunction with the Ferret and saprfc extensions. Today I am going to show you a hugely improved version that will reduce the indexing time and give you a nicer search interface. (Amazingly, this whole thing came in rather handy for me in the last week!)
Today we are going to build our own search engine to search through ABAP source code on an SAP system using our favourite language â€“ Ruby! (With the help of some nice libraries). Sure, there is the “Find in source code” option in SE38, and apparently you can use TREX as well, but this is much more fun.
UPDATE (19 June 2009): Refer to the next post for an improved version of the solution.
After dismissing REBOL as an amusing diversion, I have over the last few days started looking at it again, after seeing a reference to it in a post by why the lucky stiff. And if someone with why’s standing in the community says it’s cool, it must be, right?
While looking around for benchmarks on the languages I like best (which already tell you that benchmarks are a farce, right?), I came across two interesting websites. So interesting in fact, I’m going to share them with you.
You may be familiar with the CREATE DATA statement in ABAP, which allows you to create data in a program by specifying the name of the type at runtime. What you may not be familiar with, is the concept of absolute type names in ABAP.
Huzzah! PuzzleSurfer is online and available for your enjoyment. To take part in the fun, head over to PuzzleSurfer right away! The site represents the culmination of weeks of late nights at the computer and heated debates over some of the functionality (which I guess you could consider bonding).