Skip to Content
0
Former Member
Jul 24, 2010 at 10:29 AM

Creating character variable with dynamic length

2905 Views

Hello Experts,

I need to send contents of an internal table via FTP in character mode,

the entire contents of a internal table is concatenated in a string(v_string) which needs to be moved to the character variable of same size say l_count = strlen( v_string ).

can anyone help me to define the character variable say of length l_count.

I have already tried creating a dynamic character variable using CREATE DATA.

eg DATA: dref TYPE REF TO DATA.

CREATE DATA dref TYPE c LENGTH l_count.

but this is not working.

Any response will be helpful.

Thanks & Regards,

Sumukh Kapoor.