Skip to Content
0
Former Member
Jul 11, 2007 at 05:53 AM

Length of a String

25 Views

Hi,

I want to find a length of a string.

This is my program to write the length of a string.But iam getting errors. Plz correct it.

PARAMETERS: P_STR(30) TYPE C.

DATA:

W_LEN TYPE I.

  • FIND LENGTH OF A STRING

W_LEN = STRLEN(P_STR).

WRITE:/ 'LENGTH OF', P_STR IS', W_LEN.

Thanks.