Skip to main content

ABAP BASICS

                                         ABAP

 >> Advanced Business Application Programming Language.

>> The source code of ABAP ,consists of either a statement or comment.

>>A statement is a collection of  operators , variables and keywords.

Operators:

   In ABAP  we  have  three types  of operators .

        a. Mathematical operators.

        b.Comparative operators.

         c.Relational /logical operators.


 Mathematical operators :-

    OPERATOR               DESCRIPTION                         EXAMPLE

            +                               Addition                                   3 + 2 = 5

             -                              Subtraction                               3 - 2 = 1

             *                              Multiplication                          3 * 2 =6

           **                              Exponential                              3**2 = 3^2 =9

             /                               Division                                    4 / 2 =2

          Mod                          Reminder of division                 5 mod 2 = 1

                                               of two integers       

 Comparitive operators :-

    OPERATOR               DESCRIPTION                         EXAMPLE

      <  (LT)                           Less Than                                a < b [a LT b]

      <  = (LE)                        Less Than or Equal                a < = b [a LE b]

      >  (GT)                           Greater Than                          a > b [a GT b]

       = (Eq)                            Equal                                        a  = b [a Eq b]

      < > (NE)                         Not Equal                                a < > b [a NE b]


Relational Logical  operators :-

    OPERATOR               DESCRIPTION                         EXAMPLE

       and                                and                                    a < b and a<c 

        or                                  or                                       a < b or a <c

       not                                  not                                    -----------------


Operands: 

        This  are  the  variables  which   need  to  perform   the  particular operations  

eg:      C =  A  +  B     ,  =  +  (Operators)  , C  A  B (Operands),   c=a+b (operation)

Variable:

  These  is  the name  given  to the  memory  location.   eg [A ,B,C]

Keywords:

  Keywords  are  used  to identify  the  type of the statement .

   keywords are (C C D D D E O).

  1.Calling Keyword.

 2.Controlling Keyword.

 3.Declarative Keyword.

 4.Definition Keyword.

 5. Database Keyword.

 6. Event Keyword.

 7. Operational Keyword.


Declarative Keyword:

Declarative keywords  are used to declare the variables in ABAP .Some of the declarative keywords are
        1. DATA
        2. PARAMETER
        3. TYPES
        4. TABLES

Comments:

Comments are  non executable statements .These are used to improve the readability of program.

If you want to use  comment ,then at begining of a line you must place   *  in the first column of the line.

ex:  * comments.

If you want to comment the part of the line then we use  " , from  ''  here on wards it reads as comment. 

 



           

Comments

Popular posts from this blog

ABAP BASICS CONTINUEATION

message: daily just follow my post maximum i will cover upto 90% of abap.                   DATA TYPES IN ABAP Data type specifies what type of the variable it is. data types in abap are divided into two categories.                                    NUMERIC DATATYPE                                   CHARACTER DATATYPE         1. Integer  [ I ]                                             1. Char  [ C ]           2. Float       [ F ]                                         ...

STEPS TO LOG ON TO SAP

            STEPS   TO   UP (ON) THE  SERVER: >> Double  click  on   the  SAP  Management  console  on desktop.   >> Select   the   server   , right   click ,   all tasks,  start. >> Provide  the  password. >>Expand  the server [ECC6], double click on the  ABAP WP               Table  in   the  leftside  , contiuncely  click  on  Refresh  button       until  the  status  is  wait   then  minimize  the  server. >>  Check  until  the  status  is  wait  ,if  it is  in  run  status  you             cannot  login.  so  check  until  status  is  wait. ...

INTRODUCTION TO SAP ABAP

                                                        SAP SAP   stands   as Systems Applications  and  Products in data processing. manufacturing unit Purchasing : The    purchasing department purchases  raw materials from the shops . Warehouse: The raw materials which are received  by  the unit is stored in the ware house. Finance: The amount of the raw materials are paid to shops by the finance department. Production: The production department looks after the production from the raw materials which are in the warehouse. Sales and Distribution: This department looks after the sales. Shipping: Shipping department looks after delevering the products from ware houseto the customers. And again finance department collects the amount from the customers. Human resou...