Loading
Basic ABAP key words..
String operations:
<!--[if !supportLists]-->v <!--[endif]-->Translate
It is a keyword used to change the case of the input string to another case.
Syntax: translate a to lower case
<!--[if !supportLists]-->v <!--[endif]-->concatenate
It is a keyword used to concatenate n no of strings.
Ex: Parameters: a(10),
B(10).
Data c(20).
Concatenate a b into c separated by space.
It is not possible to concatenate numeric value.
<!--[if !supportLists]-->v <!--[endif]-->Split
It is a keyword to split a particular char.
Ex: Parameters: a(20),
Data : b(10),
C(10).
Write: /b,
c.
o/p: a = india ,usa
b = India , c = usa
<!--[if !supportLists]-->v <!--[endif]-->Replace
It is used to replace particular char with some other char.
EX: Parameters: a(20).
Do.
If a CA ‘,’
Replace ‘,’ with space into a.
Else.
Exit.
Enddo.
Write a.
o/p: a = India ,usa ,uk
<!--[if !supportLists]-->v <!--[endif]-->Offsetting
It is a mechanism to move the control to the particular position of the string.
EX: A = I N DI A
0 1 2 3 4
B = A +2(1)-ào/p : D
B = A +2-à o/p: DIA
B = A+2(2)-ào/p DI
B = A+0--à o/p : INDIA
<!--[if !supportLists]-->v <!--[endif]-->String Length(Strlen)
Used to find out the string length
EX: Parameters: a(20).
Data B type i.
B = strlen( a ).
Write B.
o/p 5.
This entry was posted on Wednesday, September 21, 2011 at 7:59 AM. You can follow any responses to this entry through the RSS 2.0. You can leave a response.
- No comments yet.