Jump to content

Recommended Posts

Posted

[size=3][background=transparent]

[b] Introduction to ABAP[/b]
[/background][/size][background=transparent]

[color=#333333][font=Arial]
ABAP stands for – Advanced Business Application Programming.It is a programming language for developing applications for the SAP R/3 system.[/font][/color][color=#333333][font=Arial]
The latest version of ABAP is called ABAP Objects and supports object-oriented programming. SAP will run applications written using ABAP/4, the earlier ABAP version, as well as applications using ABAP Objects.[/font][/color][color=#333333][font=Arial]
Without further adieu , lets dive into ABAP.[/font][/color][color=#333333][font=Arial]
Note, this tutorial will not go into extensive details on ABAP language constructs (which become very boring to read ) but quickly introduce key concepts to get you started so you can focus your attention on more important topics.[/font][/color]
[b] Data Types[/b]
[color=#333333][font=Arial]
Syntax to declare a variable in ABAP -[/font][/color][indent][background=transparent]
DATA [i]Variable_Name [/i]Type [i]Variable_Type[/i].[/background][/indent][color=#333333][font=Arial]
Example:[/font][/color][indent][background=transparent]
DATA employee_number Type I.[/background][/indent][color=#333333][font=Arial]
The following is a list of Data Types supported by ABAP[/font][/color] [b]Data Type[/b] [b]Initial [/b][b]field length[/b] [b]Valid [/b][b]field length[/b] [b]Initial value[/b] [b]Meaning[/b] [i][b]Numeric types[/b][/i] I 4 4 0 Integer (whole number) F 8 8 0 Floating point number P 8 1 – 16 0 Packed number [i][b]Character types[/b][/i] C 1 1 – 65535 ‘ … ‘ Text field(alphanumeric characters) D 8 8 ’00000000′ Date field(Format: YYYYMMDD) N 1 1 – 65535 ’0 … 0′ Numeric text field(numeric characters) T 6 6 ’000000′ Time field(format: HHMMSS) [i][b]Hexadecimal type[/b][/i] X 1 1 – 65535 X’0 … 0′ Hexadecimal field [color=#333333][font=Arial]
[b]Processing Data[/b][/font][/color][color=#333333][font=Arial]
[b]-[/b] Assigning Values[/font][/color][indent][background=transparent]
a=16.[/background][background=transparent]
move 16 to a.[/background][background=transparent]
write a to b.[/background][/indent][color=#333333][font=Arial]
- Arithmetic Operations[/font][/color][indent][background=transparent]
compute a = a*100.[/background][/indent]
[b] Control Statements[/b]
[color=#333333][font=Arial]
Following control statements can be used -[/font][/color][color=#333333][font=Arial]
- If … EndIf Loop[/font][/color][indent][background=transparent]
if [not] exp [ and / or [not] exp ].
……..
[elseif exp.
.......] [else.
.......] Endif.[/background][/indent][color=#333333][font=Arial]
- Case statement[/font][/color][indent][background=transparent]
Case variable.
when value1.
………
when value2.
………
[ when others.
.........] Endcase.
Do.[/background][/indent][color=#333333][font=Arial]
-While loop[/font][/color][color=#333333][font=Arial]
[indent][background=transparent]
While <logical expression>.[/background][background=transparent]
…..[/background][background=transparent]
…..[/background][background=transparent]
Endwhile.[/background][/indent][/font][/color][color=#333333][font=Arial]
- Do loop[/font][/color][color=#333333][font=Arial]
[indent][background=transparent]
Do <n> times.[/background][background=transparent]
…..[/background][background=transparent]
…..[/background][background=transparent]
Enddo.[/background][/indent][/font][/color]
[b] Logical Operator[/b]
[color=#333333][font=Arial]
A list of logical operators[/font][/color][list]
[*]GE or >=
[*]GT or >
[*]LE or <=
[*]LT or <
[*]EQ or =
[*]NE or <>
[*]
[/list][/background]

Posted

nenu sw job cheya gaani.. il follow dis... just ltt sesthunna anthe

Posted

nice man!! frogramming vaste share ur stuff too disco eddam

Posted

[quote name='Maverickpuli1' timestamp='1367432173' post='1303692433']
nice man!! frogramming vaste share ur stuff too disco eddam
[/quote]


was SAP BO consultant mayya.. but now into business.. but love programming..

Posted

SAP discussion thread ani undhi .. andharu akkadiki rand .. kummesukundhaam..

Posted

[quote name='iTeachSAP' timestamp='1367432342' post='1303692452']
SAP discussion thread ani undhi .. andharu akkadiki rand .. kummesukundhaam..
[/quote]
definitely man

Posted

[quote name='aamerica_seenu' timestamp='1367432260' post='1303692443']


was SAP BO consultant mayya.. but now into business.. but love programming..
[/quote]
nice man following dreams good to see that!!

×
×
  • Create New...