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

Input/output field length

Former Member
0 Likes
1,002

Hi experts..

In Module-pool programming , how to get length of an input/output field.

that field is of (CHAR)character format.

I want length of that field.

thanks..

7 REPLIES 7
Read only

Former Member
0 Likes
883

Double click on the input/output field in screen painter.

It will open attributes for that field.

here in this window u can see defined and visible length for that field.

Read only

Former Member
0 Likes
883

Hi,

go to screen Layout and double click on the filed which you wan to know the Input/Ouput lenght..

Check the Column -


begin--and Visible lenght..

the visible lenght is nothing but the screen Input/Ouput lenght in the screen.

regards,

Prabhudas

Read only

Former Member
0 Likes
883

If you go to the corresponding screen in SE51 or in SE80 you can see three tabs (Attributes, Element List & Flow Logic).

If you see 'Elements list' then you can all the list of elements which have been used in that screen with all the properties like Defined Length & Visible length & more information.

Thanks

~Satya

Read only

Former Member
0 Likes
883

Hi,

Kindly search in forum first than drop thread.

Just double click on that field you will get attributes of that field.

Regards,

Himanshu

Read only

Former Member
0 Likes
883

Thanks to all experts..

but I want to get the field length at the run time.

when user will run the transaction for that perticular program...then he will enter something in that field.

exmpl - if user enter 'MAT1' in that field...

i want that field length as '4', i think this length is other than defined length.

plz help me..

thanks in advance,

Read only

Former Member
0 Likes
883

Use function STRLEN

eg : i = strlen(lv_abc)

Read only

0 Likes
883

thanks Manoj..

It works..