Monday, 21 August 2017

Introduction to ERP

What is ERP?
ERP stands for Enterprise Resource Planning. ERP represents systems and softwares that are used by organizations to manage their day-to-day business activities like HR, financing, sales, manufacturing etc.,

Who are the business leaders in ERP Market?
There are many vendors in ERP market, out of those below three acquire most of the market.

1.   SAP
2.   ORACLE
3.   Microsoft



Previous                                                 Next                                                 Home

Friday, 18 August 2017

Developing on ABAP Application Server

In ABAP, applications are developed in Application server, not in your local file system.

What I mean is, you connect to the ABAP Application server using SAP GUI (or) from IDE like Eclipse. You create a program in the Application Server, open that program in Editor, update the program, and Activate it. Once you activate the program, the program is stored into the database and available to all other users, who has access.

Let me explain with an example.


User1 connect to the Application server and start developing the programs. Once he activate the program, it is deployed to the database.

In real-world, there are multiple users work parallely. Let me explain how it will work in ABAP.

user1 creates ‘Z_EMPLOYEE_LIST’
Suppose your organization wants to list all the employees in a report. User1 creates a program ‘Z_EMPLOYEE_LIST’.

When user1 creates a program ‘Z_EMPLOYEE_LIST’, internally it is created in Application server and gets the lock. Unless this lock is released by user1, no other user can able to modify this program.

Until user1 save the program, the program will reside in Application server main memory. Once user1 save the program system automatically place the program in central database as inactive version.


What is INACTIVE version?
INACTIVE version files are only visible to the program owner. It is only visible to user1. Other users are not able to see the source code of the program ‘Z_EMPLOYEE_LIST’.

Once user1 implemented complete program and ready to test, user1 activates the program. Once user1 activates the program, it is active and visible to all other in the system. Now other users can able to see the source code, but they can’t change. It is because the lock is still assigned to user1.

When the lock will be released on the file Z_EMPLOYEE_LIST?
Once the user closes the program ‘Z_EMPLOYEE_LIST’ from source code editor, the lock will be released automatically.

Previous                                                 Next                                                 Home

Map localhost and port to a domain

In my previous post, I explained how to map localhost to a domain. In this post, I am going to explain, how to map localhost:port to a domain.

When user hit the URL in browser, browser establish connection with web server in the port 80 by default in case of HTTP, 443 by default in case of HTTPS.

By running the application server instance on port 80, we can access the application by domain name (we can exclude port number).

I am going to show you, how to run the application on localhost (excluding port number), followed by running the application using domain name.

Running application on localhost (Excluding port)
It is very simple, make sure your application server runs on port 80.

For example, by default tomcat runs on port 8080. In eclipse, you can see the configuration of tomcat by double clicking it.


Change the port number from 8080 to 80.

Run the application on server.
Map localhost to domain
By modifying local dns settings, we can point the localhost (or) 127.0.0.1 to some domain name.

We need to modify the hosts file.

Operating system
Host file location
UNIX
/etc/hosts
Windows
C:\Windows\System32\drivers\etc\hosts

I am going to show the demo in windows operating system, procedure is same for UNIX.

Now open hosts file and add below statement to it.

127.0.0.1 myexample.com

You can access the application using domain name. See the below screenshot.

You may like


Access web application with domain name instead of localhost/ipaddress

Whenever you deploy an application on tomcat server, your url starts with http://localhost:8080/{your application name}.

In this post, I am going to show you, how to replace localhost with some domain name. For example, I am going to replace localhost with myExample.com.

By modifying local dns settings, we can point the localhost (or) 127.0.0.1 to some domain name.

We need to modify the hosts file.

Operating system
Host file location
UNIX
/etc/hosts
Windows
C:\Windows\System32\drivers\etc\hosts

I am going to show the demo in windows operating system, procedure is same for UNIX.


Let’s say, I deployed ‘HelloWorld’ application.
As you see above image, my application is running on localhost.

Now open hosts file and add below statement to it.

127.0.0.1 myExample.com

Hit below url, you can able to access HelloWorld application using domain name.
You may like



Thursday, 17 August 2017

ABAP Syntax



a.   ABAP program is a collection of ABAP statements.

b.    Every ABAP statement ends with '.' (dot).

Ex:
Write "Hello World".

Above ABAP statement writes the string "Hello World" to the console.

c.    Every ABAP statement follows following syntax
Keyword + Operand + Operator

Ex:
IF age < 18.
                  Write "Not Eligible to vote".
ENDIF

In the above example, 'IF' is the keyword, 'age' is the operand and '<'
is the operator.

d.   ABAP syntax is not case sensitive. The variable placeOfBirth,PLACEOFBIRTH, PLACEofBIRTH are same.

To make the programs, more readable, define a variable such that, each word in the variable name separated by underscore (_).
        
Ex:
place_of_birth, rate_of_intrest

e.   While defining classes, procedures you are supposed to use maximum of 30 characters. ABAP constrains 30 characters’ limitation on class and procedure names. There is no limit on variable names.

f.     A variable name should have only a-z, 0-9, _. You are not supposed to use special symbols like ?, $, % ( etc., while defining a variable.

g.   * is used to write full line comments and " is used to write partial line comments.

h.   String are enclosed in single quotes.
Ex:
name = 'Hari Krishna'
place_of_birth = 'Punuru'



Previous                                                 Next                                                 Home

Wednesday, 16 August 2017

Introduction to ABAP

ABAP stands for Advanced Business Application programming; it is a programming language for building SAP business applications. Most of the SAP business applications written in ABAP.

ABAP was influenced by the programming languages like PASCAL and COBOL, was developed to generate business reports. Later on it adopted to object-oriented concepts from other languages like Java and C++.

By using ABAP, you can create
         a. New Reports
         b. New Screens
         c. New Web Applications
         d. New Business Specific Applications
         e. Write Web services
         f. Customize existing Applications etc.,
        
Almost all the SAP business applications written in ABAP.

Unlike other programming language like C, C++, Java, ABAP applications do not store in your local file system. All the ABAP programs written by you stored in central database.

Can I access the ABAP source code?
If you have proper authorization to ABAP project, then you can access and view the source code.

Is ABAP procedural (or) object-oriented?
ABAP is a Hybrid language, it supports both procedural and object-oriented.

Is ABAP platform independent?
Yes, it is independent of operating system and the database. You just write the ABAP application, it run across different databases (oracle, mySQL, MAXDB, IBM-DB2).

Is ABAP backward compatible?
Yes, the code you written on old version of ABAP will continue to work on future releases also.


Previous                                                 Next                                                 Home

Abap For Beginners

ABAP Basics

      Introduction to ABAP
      ABAP Syntax
      Developing on ABAP Application Server
      Introduction to ERP
      Log in to SAP System using SAP GUI
      Get the SAP GUI version information
      Log off from SAP GUI
      Navigation in SAP GUI
      Getting list of previously executed transactions
      Display technical names of transactions
      Execute multiple transactions at a time
      Organizing Favorites
      Working with Transactions
      Types of Transactions

ABAP Workbench Tools

      ABAP Workbench Development Tools
      ABAP Editor : Hello World Program

ABAP Building Blocks

      Statements
      Comments
      Data Types
      Variables
      Defining variables using colon notation
      Define variable using LIKE keyword
      Defining Structured variables

Operators

      Operators
      Arithmetic Operators
      Comparison Operators
      Logical Operators
      Bit wise operators
      MOVE: Assign value to a variable
      Clear Variables

Conditional Statements

      Conditional statements
      IF statement
      IF-ELSE statement
      IF-ELSEIF statement
      CASE-ENDCASE statement

Loops

      Loops
      DO-ENDDO loop
      WHILE-ENDWHILE loop
      CONTINUE: Skip the iteration of loop
      EXIT – Terminate loop unconditionally.
      CHECK statement

Working with Strings

      Concatenate two strings

Working with ABAP Dictionary

      ABAP Dictionary
      Elements of ABAP Dictionary
      ABAP Dictionary: Domains
      ABAP: Data Elements
      ABAP: Structures
      ABAP: Table Type
      ABAP: Database Table
      ABAP: Foreign Key relationship

Function and Class builders

      Function Builder
      Class Builder

Previous                                                 Next                                                 Home