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: 

String length?

Former Member
0 Kudos

HI All,

i have three fields which is declared as a string in proxy.

I am using these three fields in my ABAP program.

But the length of these fields should not be more than 34.

Please how to do this in program with out changing the datatype in proxy.

Thnks..in advance...

Regards,

Santosh

Moderator message: please do more research before posting.

Message was edited by: Thomas Zloch

2 REPLIES 2

former_member194152
Contributor
0 Kudos

you can use strlen function to get string length in abap, use like :

Data : Length type i.

length = strlen( <variable> ).

here is length variable you will get exact length for string.

vinoth_aruldass
Contributor
0 Kudos

combine those 3 fiels by

concatenate f1 f2 f3 into f4.

len = strlen( f4).

you can find the string length by len.

hope this helps,

Vinoth