Application Development and Automation 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: 
Read only

defference about C and STRING type

Former Member
0 Likes
1,566

Hello Gurus,

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

Many thanks,

Frank

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,508

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
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,508

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

Read only

Former Member
0 Likes
1,509

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.

Read only

0 Likes
1,508

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...

Read only

Former Member
0 Likes
1,508

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