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

String length?

Former Member
0 Likes
566

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

former_member194152
Contributor
0 Likes
518

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.

Read only

vinoth_aruldass
Contributor
0 Likes
518

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