0% found this document useful (0 votes)
7 views

1. Data Types & Operations- SABAP

The document outlines various data types in SAP, including Integer, Numeric, Character, Date, Time, Packed Decimals, and Float, along with their syntax and requirements for size notation. It also describes different operations such as Comparison, Logical, Arithmetic, and String operations, detailing their functions and examples. Each operation type is briefly explained, highlighting how they are used in SAP programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

1. Data Types & Operations- SABAP

The document outlines various data types in SAP, including Integer, Numeric, Character, Date, Time, Packed Decimals, and Float, along with their syntax and requirements for size notation. It also describes different operations such as Comparison, Logical, Arithmetic, and String operations, detailing their functions and examples. Each operation type is briefly explained, highlighting how they are used in SAP programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Data Types:

In SAP, we have the following data types.


1. I ( Integer )
2. N ( Numeric )
3. C ( Character )
4. D ( Date )
5. T ( Time )
6. P ( Packed Decimals )
7. F ( Float )
Integer: For this data type, we don’t require size notation.
Syntax as follows

Numeric: This data type needs size notation, syntax as


follows.
If size is more, then
the initial places will
be filled with ‘O’
Character: This types is used to store character values. Size
notation is required.

Date: This type is used to store date values. Size notation is not
required. YYYYMMDD is SAP standard date format.

Time: This type is used to store Time values. Size notation is not required.
HHMMSS is SAP standard time format.
Float: This type is used to store decimal values. Size notation is not
required

The output is displayed in


external system format.

Packed: This type is used to store decimal values, but we can specify the length
for both value and decimal places.

Though I pass 2 decimals ‘56’, the


output contains 3 places for decimals.
1. Comparison Operations
Operations:
2. Logical Operations
3. Arithmetic Operations
4. String Operations

Comparison Operations:
GT >

GE >=

LT <

LE <= Like wise we can write the code for all


comparison operations.
EQ =

NE <>
Logical Operations: And ( If all the conditions
correct )
OR ( If any one of the condition
is correct)
Not

If both the conditions are correct then ‘A’ will be displayed else ‘B’ will be displayed.
Note@ For OR , if any of the condition is true ‘A’ will be displayed otherwise ‘B’.

NOT:
Arithmetic: + Addition
- Subtraction
/ Division
* Multiplication
MOD Modulo Division ( Remainder)
** Powers
String Operations:
1. Strlen
2. Translate
3. Condense
4. Concatenate
5. Split
6. Replace
7. Shift
1. STRLEN: This is used count the no. of characters of a character
type variable.

2. Translate: Used to convert the characters to


upper/lower cases.
3. Condense: Used to delete the gaps.

4. Concatenate: Used to concatenate (club ) two or


more variables.

5. Split: Used to split the variable at some point.


6. Replace: Used to replace a character with another.

A is replaced with ‘=‘ only at first occurrence.

A is replaced with ‘=‘ at all occurrences.


7. Shift: Used to move the variable.
Thank U
Bhanu’S

You might also like