‎2007 Jul 06 12:29 PM
Hi,
Would it be possible to provide me the name of the function module that can return the type and length of a variable?
Thanks a lot for your help,
Mohamed
‎2007 Jul 06 12:31 PM
Hi,
You can use CL_ABAP_TYPEDESCR and method
DESCRIBE_BY_NAME.
Regards,
Sesh
‎2007 Jul 06 12:56 PM
Hi,
if you want to manipulate strings, use strlen( var ).
regards
‎2007 Jul 06 12:59 PM
try this..
REPORT ychatest.
DATA : v_name(15),
v_type(1),
v_len TYPE i.
DESCRIBE FIELD v_name TYPE v_type LENGTH v_len IN BYTE MODE.
WRITE : v_type , v_len.
‎2007 Jul 06 1:01 PM
Hi Fassi,
Better you use <b>describe</b> statement in ABAP
check the below code.
data: v_name(20) type c.
data v_ln type i.
data v_type .
describe field v_name type v_type.
describe field v_name output-length v_ln.
write:/ v_ln.
write:/ v_type.