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…
Prototype design pattern allows the flexibility to create itself – cloning. Lets check out, how to achieve this in ABAP objects. What is Prototype You have instantiated an object, called some operations. Your object is now in a state from which you wish to copy itself. In other words, you want to clone the object….
We all know that WITH HEADER LINE is obsolete in ABAP Objects. But it you can still use it in procedural programming. I am sure, after reading this you would agree not to use it.
Proxy acts on behalf of some other objects. When working with Proxies, as name suggest, you work with another object rather than actual object. Lets checkout Proxy design pattern implementation in ABAP. What is a Proxy? Sometimes, you need to delay the instantiation of the object may be because its too costly to instantiate or…
Lets checkout how to apply different styles for cell, yes cell not the entire column. SALV object model does provide us the objects to achieve this.
In the previous post, you have seen how to implement Iterator design Pattern. It also raised the question about the usefulness in ABAP as in ABAP, you have Internal Tables. The ITAB can handle all type of collection of objects easily. So, lets try to go away from ITAB usage for this post to see…