Friday, April 26, 2013

0 Difference between TYPE and LIKE in ABAP

Difference between TYPE and LIKE in SAP ABAP : TYPE : It will allocate memory during execution (object type).        TYPE will improve performance.        It is used when userdefined object link with SAP system data type.        TYPE refers to the user defined data types        TYPE,assign datatype directly to the data object while declaring.       LIKE :  Tt will allocate memory immediatly.         It is when data object link with the other data object.         LIKE refers to existing data type of data...

Thursday, April 25, 2013

0 Formatting options for all Data Types in ABAP

Formatting options for all Data Types in ABAP :              Option       Function LEFT- JUSTIFIED Output is left-justified. CENTERED Output is centered. RIGHT- JUSTIFIED Output is right-justified. UNDER <g> Output starts directly under field <g>. NO-GAP The blank after field <f> is omitted. USING EDIT MASK <m> Specifies format template<m> USING NO EDIT MASK Deactivates a format template...

0 Variables in SAP ABAP

Variables in  SAP ABAP : Variables are named data objects, you can declare variables statically using declarative statements, or dynamically while a program is running. They allow you to store changeable data under a particular name within the memory area of a program. DATA is a keyword which is used to declare the variables in SAP ABAP Syntax : DATA < Variable Name> Type <Data Type>                            (Or) DATA <Variable Name> Like <Data Type> Ex: DATA V1 Type I.        DATA V2 Like I. Type...

0 First ABAP program

First ABAP program:     ABAP Editor(se38) : used for Writing Report programs..etc   Log on to sap   Go to SE38 transaction code Enter the program  name  Note : Program Name starts with Z (or) Y click on create Then one popup window will trigger  Enter the Title and select the type as executable program Click on save then it will ask the package name Enter the package name as $TMP Click on save Then it will open the ABAP Editor  like this Where we can develop our code *&---------------------------------------------------------------------* *& Report  YDEMO01 *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT  YDEMO01 . * Declare Variables data var1 type i. data var2 type c. data var3 type string. data var4 type dats. data var5 type tims. data var6 type p decimals 2. data var7 type n. data var8 type char10. * Assigning values to those variables var1 = 100. var2 = 'A'. var3 = 'dfsmngbsmnghbmngb'. var4 = '20110909'. var5 = '095612'. var6 = '100.25'. var7 = 1. var8 = 'CAREER IT'. * Display Output write var1. write var2. write var3. write var4. write var5. write var6. write var7. write var8. Note...

0 Data Types and Data Objects in ABAP

Data Types in abap: 1.Data types are pure descriptions. 2.There is no memory associated with data types. 3.Data types describe the technical properties of data objects Data objects 1.Data objects are the physical units a program uses at runtime. 2.Each data object has a specific data type assigned to it. 3.Each data object occupies some space in memory. Data types Default values Key words Integer 0 I Numeric 0 N Character Space C(or) Char Date 00000000 DATS Time 000000 ...

0 Operators in ABAP

Operators in SAP ABAP In the abap we have 3 types of operators 1.Mathematical Operator 2.Comparitive Operator 3.Relational (or) Logical Operator Mathematical Operator: •         Basic operations +,-, / and * along with functions like sin, sqrt etc. are supported •         Priority of the operations –        functions , –        exponential –        multiplication  ,division -       addition  , subtraction ...
 

SAP-ABAP Copyright © 2011 - |- Template created by Vishnu - |- Powered by Blogger Templates