Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

defference about C and STRING type

Former Member
0 Kudos

Hello Gurus,

C type and STRING type can all be used for string, what 's the difference?

Many thanks,

Frank

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Depending upon the requirement....Both of the Data type are of use.....Char you need for small variable that can contains Character only whereas String contains Alphanumeric Characters.

4 REPLIES 4

Sandra_Rossi
Active Contributor
0 Kudos

please look at [sap documentation|http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/frameset.htm]

Former Member
0 Kudos

Depending upon the requirement....Both of the Data type are of use.....Char you need for small variable that can contains Character only whereas String contains Alphanumeric Characters.

0 Kudos

Do you say that C cannot contain numeric characters while STRINGS can ? No, you're WRONG. The only difference is that C can hold up to 65535 characters while strings can contain more, there are also some other little differences...

Former Member
0 Kudos

with strings we can use following staements

SEARCH To search in a string

n REPLACE To replace the first occurrence of a string

n TRANSLATE To replace all specified characters

n SHIFT To shift a character at a time

n CONDENSE To remove spaces

n CONCATENATE To chain two or more strings together

n OVERLAY To overlay two strings

n SPLIT To split a string

cheers