Warehousing/bw/blog?start 15: String Functions in SAP BW
Warehousing/bw/blog?start 15: String Functions in SAP BW
com/community/data-
warehousing/bw/blog?start=15
String Functions in SAP BW
Posted by Phani KV Feb 1, 2015
while we are extracting data form ECC/Third party tolls to BW we got the some time special
char errors . if we use the sting functions we aviod the special char issue errors.
1.Shift
2.Replace
3.Transalate
4.Concatenate
5.Condense
6.Split.
1 SHIFT – shift will move the char string by default left by 1 position.
Ex-
WRITE:/ V1,V2,V3.
Program output
2. REPLACE - Replace will replace the set of chars with another set of chars in a char string.
Ex-
Program output
Note -
3. TRANSLATE – translate to upper case to lowercase and lower case to upper case.
Program output
4. CONCATENATE – it will merge more than char string into one char string.
CTEXT1 = 'RAMA'.
CTEXT2 = 'KRISHNA'.
6. SPLIT – it will split one char string to many char string but should be the separated by unique
special char.DATA : LV_TEXT6 TYPE STRING,
LV_PROF TYPE STRING,
LV_CAREA TYPE STRING,
LV_CCENTER TYPE STRING.
LV_TEXT6 = 'ABCD&VA00&XYZZ'.
SPLIT LV_TEXT6 AT '&' INTO LV_PROF LV_CAREA LV_CCENTER.
WRITE:/ LV_TEXT6,
LV_PROF,
LV_CAREA,
LV_CCENTER.
Program output
Note -