On one fine morning, faced with a problem which was resulted from the bad bad coding. Read on to walk through the events.
I know it is very wide question. We all use System fields like SY-SUBRC to check last statement was successful or not, SY-DBCNT for Database access count, SY-INDEX for row, SY-TABIX for current processed row in Loops, etc. Demo code Check out this code. At first it looks ok except the Modify statement outside the…
In SAP, there is a standard way to list the environment variables used in a program. It’s accessible through transaction SE38, via Menu-Utilities-Environment variables. In SAP forums, I have seen lot of questions about doing this through custom program. It’s very hard to analyze this logic through standard debugging to know what is written behind…
Demonstrates the Alternative to FM SAVE_LIST.
CL_HTTP_UTILITY is an utility class which provides several functions related to URL manipulations. There are many methods available in it, the one which I would like to share here is IF_HTTP_UTILITY~ESCAPE_URL and IF_HTTP_UTILITY~UNESCAPE_URL. The method ESCAPE_URL does the URL encoding and the method UNESCAPE_URL does the URL Decoding as mentioned below:
Combining the power of both design patterns: Singleton and Factory Method. Singleton produces the same object again where as Factory instantiates new object every time asked. Lets see how they both come together.. Background Few days back, I read the post on SDN – Factory Design Pattern. The post reminded me that I use the…