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

Wrong question

walkerist79
Participant
3 REPLIES 3
Read only

Eduardo-CE
Active Participant
0 Likes
1,018

Hello,

You can use Strlen,

DATA: int TYPE i,
      word1(20) TYPE c VALUE '12345'.
      word2(20) TYPE c.
      word3(20) TYPE c VALUE '   4         '.

int = strlen( word1 ).WRITE   int.

int = strlen( word2 ).WRITE / int.

int = strlen( word3 ).WRITE / int.

The results are 5, 0, and 4respectively.

Regards, Eduardo.

Read only

Sandra_Rossi
Active Contributor
1,018

Did you search?

Read only

RaymondGiuseppi
Active Contributor
1,018

Why do you want to get this, do you want actual length of external view (output) of each field for each record or just actual maximal length by field or theorical maximal output length?