Abap String İşlemleri

14 Ağustos

2015

Abap String İşlemleri :

Birleştirme :


CONCATENATE string_1 string_2 INTO lv_string .

Ayraçlı Birleştirme :


CONCATENATE string_1 string_2 INTO lv_string SEPARATED BY "\".

Split :


SPLIT LIST AT "," INTO string_1 string_2 string_3.

Split to internal table :



SPLIT LIST AT "," INTO TABLE NAMES.

Büyük Harfe Çevirme :


SHIFT string_1.
SHIFT string_2 BY 3 PLACES.
SHIFT string_3 RIGHT.

Boşlukları Silerek Büyük Harfe Çevirme :


SHIFT NAMES RIGHT DELETING TRAILING SPACE.

Replace ve Translate :


DATA: STRING(80),

REPLACE "&" WITH "X" INTO STRING.

TRANSLATE STRING USING "&X".

EXPRESSION = "a ** 2 + b ** 2 = c ** 2".
TRANSLATE EXPRESSION USING "axbycz".
   REPLACE "," WITH "" INTO lv_degisken.
   REPLACE ALL OCCURRENCES OF "," IN lv_degisken WITH "".

İtab Search String :


SEARCH TEXT FOR "California".
IF SY-SUBRC NE 0. WRITE "Not found". ENDIF.
SEARCH TEXT FOR "cAliforniA".
IF SY-SUBRC NE 0. WRITE "Not found". ENDIF.
SEARCH TEXT FOR "New M".
IF SY-SUBRC NE 0. WRITE "Not found". ENDIF.

Yorumlar

Yorum Yapın !

%d blogcu bunu beğendi: