Wednesday 26 September 2012

SAP for a layman...

Whenever you hear the word SAP from a layman , in almost all the cases they pronounce it wrong as "SAP" (like the sap of the tree) , it happens with me also when i first speak this word  . Actually the correct way is "ess-ay-pea" pronounced as S (separate) , A (separate) and P (separate) not in continuous 'SAP'.

SAP  stands for Systems Applications and Products in Data Processing is a software that integrates all the business functional areas of  a company in a synchronous way .
The business fnctional areas or functional modules or application areas represents various modules on the basis of the business areas such as
1.SD - Sales and Distribution.
2.PP - Production Planning.
3.WM - Warehouse Management
4.MM - Material Management.
5.FI - Financial Accounting.
6.PM - Plant Maintenance etc

Let me explain the above definition in detail , Tata Motors producing variety of cars having headquaters in different different locations of India say for example Hyderabad , Delhi , Mumbai and Bangalore . Now at the time of festivals suddenly the selling of cars increases , so the sales department ,SD(Sales and Distribution) has to inform the PP(Production Planning) to give more cars to the Warehouse Management , the Production Planning in turn send report to MM(Material Management), which in turn send report to different different vendors to get the different parts of cars such as tyres , steels , glass etc and finally report goes to FI (Financial Accounting) and the final report of the entire process goes to the CEO . The entire process have to be done at the same time to be more productive . Now suppose the SD module is maintained differently from other modules , so the revenue generated from sales and more requirement of product has to be updated manually into other modules , which is not at all synchronous and more prone to errors.
Thus to solve this problem we use SAP because it has very high level of integration between various functional modules which ensures proper synchronization and consistency with zero error . SAP integrates all its functional modules because of its centralized database for all the different modules of business.
Now upto this point you are clear about SAP , now know some of the facts about SAP
SAP came from the German word "Systeme, Anwendungen, und Produkte in der Datenverarbeitung".
It is developed by five IBM employees Hans-Werner Hector , Hasso Plattner , Dietmar Hopp , Klaus Tschira and Claus Wellenreuther in 1972 .

Saturday 25 August 2012

Object Oriented Programming

Object Oriented Programming as the name suggest is a programming technique which revolves around objects . In simple terms it is the process by which the real world problems are converted into software solutions . Let us take an example , tata safari is the real world object of class car , this object has two characteristics i.e it has a state(attribute or data)  and behavior (methods or functions).The state includes engaged gear , current speed etc and the behavior includes accelerations , changing gear , applying brakes etc . The software solution of the above will be attributes (data or state) and behavior (methods or functions) .
Attributes includes :   data : engaged_gear  type c,    (In ABAP)
                                             current_speed  type n.
                                   or
                                   int current_speed; (In Java)
Behaviors includes : method apply_brakes()
                                    {
                                        current_speed = current_speed - 2.
                                     }
                                    method accelerations() etc.
Following are the features of Object Oriented Programming

1.Class -  Class is a pattern or style based on which all the objects in that class is created . Class is a collection of attributes and behaviors of similar types of objects.
But a class does not have its physical existence it is the objects present in a class that have physical existence like the folders in our computer does not have physical existence rather it is the files that present inside the folder has physical existence i.e occupies some memory .
  • Attributes : Attributes contains the data that can be stored in the objects of a class.
  • Behaviors : Behaviors refers to the functionality of the object.
2.Object -  Object is the runtime instance of a class which has physical existence and having its own attributes and behaviors . We can create any number of objects based on a single class and the process of object creation is known as instantiation.

Example - Human is a class because we can not touch human i.e it does not have physical existence but we can touch the hands , nose , hair which are the objects of human class .
Car is a class because we can not touch car but we can touch indica car , safari car etc which are objects of class car.

3.Abstraction - Abstraction is a feature through which the essential parts of the object is represented hiding the background details.
  • Data is abstracted by high level language constructs such as numbers ,letters , high level data concepts etc.
  • Functionality is abstracted by presenting interfaces that hide complex logics such as methods or functions.
Example - When we are driving car we simply apply the brakes without knowing what is happening in the background that stop the car i.e unnecessary details are abstracted.

4.Encapsulation - Encapsulation is the packaging of attributes(data member) and behaviors(member functions) into one reusable module where user can only call certain functions or methods  but cannot access the data directly.This feature enables the class to hide the implementation details of the class.
It helps in data data hiding which leads to data security(making attributes and behaviors private) .

Example - Think of the capsules that doctor recomend you , which is nothing but the packaging of different benefitial drugs , leaves etc into one reusable module.

5.Polymorphism -  The term is derived from greek words poly means many and morphos means forms . So polymorphism means method having same name have different forms i.e objects from different classes react differently to the same method calls.

Example - Our behaviour is different when we are with our parents , different when we are with our friends , teachers etc . Similarly same method behaves differently based on which class object call it.

6.Inheritance -  Inheritance is the feature through which the attributes and behaviors of one object can be reused in other which leads to reusability and reusability leads to less amount of coding.

7.Exception Handling  -  Exception handling is a feature through which user can handle the abnormal behavior (number divided by 0 is an example of abnormal behaviour) of the programme . Whenever an exception , control navigates to the exception block handles the exception and exit out of the programme normally.

If you like this tutorial , please like and comment...