What are the Operations we can perform upon ABAP Strings

ABAP STRING OPERATIONS

We can perform some basic operations on ABAP strings like concatenating them, splitting them, replacing them and searching some characters in a string. Let us see some of them:

CONCATENATE (Two Strings)

It is a keyword used to combine two or more strings into a single string.

SPLIT (A String)

It is a keyword used to split a string into smaller strings based upon a condition.

 

ABAP Strings

SEARCH (For A String)

This keyword is used to search character/string in other string. If found, it sets SY-SUBRC = 0 else sets it 4.

REPLACE (A String by Another String)

This keyword is used to replace a sub string with another sub string in the main string. If replaced, it sets SY-SUBRC = 0 else sets it 4.

For more operations on string go here.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.