Saturday, January 14, 2017

ALV Super Class

Many Many years ago, in an SAP system not too far away was a group of developers that would put their idea's and help onto the SDN site to help up up and coming less experienced developers to keep growing their knowledge and maybe even leverage some of their code. In 2007 it was a lot easier to find good code from these great resources than it is now as these guys got to be so good, they now work directly for SAP. This is one of my dreams, though being my own company has worked out very well.
In this we find that ABAP oo was fairly complex and sparsely used but being explained better in more layman's terms by these great guys from enterprise geeks in their demonstration on how to leverage the newer way of showing ALV reporting using the CL_SALV_TABLE persistent class in SAP. They used a lot of their examples in custom function modules which to me were a little clunky and its easier now days to put re-usable code into classes and call them from your programs.
I am sure they do that now but haven't been following too close as I have been in an international implementation for the past 4 years.
When I picked up the project one of the first things I did was to put into the system one of my pets which I call the ALV Super Class. Based purely on the idea's that were sparked into my mind by the persistent ALV class from SAP as explained by our friends at Enterprise Geeks, I knew that trying to remember all those persistent objects would be a little difficult and may make coding an ALV report take longer than necessary so I created the Super Class. The Super Class stands by itself and when you want to leverage it you take and create yourself a new class and point to it as it's Super Class and then if you need to change some things like the constructor, the Custom labels, headers or footers you can do a redefinition of the method and then change the code to suit your needs. Which is very easy.

Here is what my ALV Super Class looks like at a high level:


Leveraging the Superclass will make coding so much easier as the majority of the code you need is already there. in your sub class add methods to get your data, process your data and call your view and redefine the handle links if you are using links. You can put in generic sort objects and hot key names and reuse those as well.

On a side note after taking webdynpro 310 and 410, and taking Fiori classes at open sap, And now hearing of the partnership between Apple and SAP, I think it may just be time to start transitioning from WebDynro  to Fiori as that will be the app of choice in this smart tablet smart hone world we now live in.

Wednesday, January 4, 2017

SAP and iOS

In my studies of SAP Fiori, I kept wondering why they kept trying to get it to look more like the windows 8 interface with the large tiles to tap on etc. I know that it was so clunky that windows 8.1 gave you the option to have a windows 7 look to the interface and windows 10 went further and made the tiles small and the interface more desktop computer compatible as not everyone has a touch screen and even if they do they do not want to be restricted to single tasking. That would be a big step backwards. So Windows is trying to get back to a user friendly interface with a powerful backend system that will give everyone the desktop experience they have learned and loved from Microsoft. Trouble is that even with all of windows advancements, and their latest Laptop (Surface) is the best advancement they have made so far, It still looks and acts like a windows computer which is great when making it double as a desktop, but still sucks as a tablet but is getting better.

SAP announced a partnership with Apple and is in the process of developing enterprise app to work right from your iPhone and iPad to connect to your backend system as needed and run apps to improve not only your productivity but your work as well. You actually may start liking your job...imagine that.

So I have been visiting the learning from  https://open.sap.com/   and may need to continue to further my value or even start developing my own.

Jeremiah 29:11

Sunday's message. "For I know the plans I have for you says the Lord, plans to prosper you and not to harm you, plans to give you a hope and a future" Jeremiah 29:11.
After being disappointed in not being able to get the car I hoped for, and settling for one that I could just pay for outright for my daughters use after the VW Diesel recall buys back my wagon, I knew not to be distressed or bummed. I thought that for everything there is a reason. This was on a Monday. Then Sunday rolls around and I felt the need to go to church. My church takes the weekend just after Christmas off to give the volunteers a break after the rush of Christmas and programs and so fourth, so I went to Harvest. Almost didn't go but we went anyway and Pastor James had a urge to change what he had planned to teach on to the passage above. Interesting as the way he presented it made sense and we always need a reminder of God's goodness and that He really does have a plan for us and if we are sensitive to the pulls of our own spirit , then we do follow the ways set before us. we know that for believers that the Spirit of the Lord bears witness with our spirit and we can follow the nudges to help guide us on our journey. It's now Wednesday and the reason for not taking on another financial burden just became clear as I have been informed that I am being rolled off from the project I have been working on for the past 3+ years. The time has come for all good things to come to an end and I am going to be looking for a new project at the end of the month. Though I don't know when, where or how, I know that God is good and His plan for me and my family is good and right now He is preparing something for me and I hope to know what that is in good time. But in the mean time, I can work at increasing my knowledge of SAP and with the experiences I have had in it over the past seven years will be considered valuable to a new client in the future.