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: 

Wrong question

walkerist
Participant
3 REPLIES 3

Eduardo-CE
Active Participant
0 Kudos

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.

Sandra_Rossi
Active Contributor

Did you search?

raymond_giuseppi
Active Contributor

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?