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

Data type for Formal Parameter TYPE CLIKE

Amarpreet
Active Participant
0 Likes
6,579

Hi I'm hoping a for a really easy way for get this over with .

I have a requirement to convert a very huge report into CSV .

I'm using the Class CL_RSDA_CSV_Convert method ( Slam )  to convert each line into comma seperated format .

the export parameter for this method is of Type CLIKE

if I use a parameter of type C with length 4000* , conversion to CSV happens ,

if i use a STRING for longer conversions the method dumps out with ILLEAGL_SUBSTRING*****.

I would really appreciate it if someone could guide me as to what Type i can use with this class to get a longer output than 4000* characters .

Thanks

Amarpreet.

1 ACCEPTED SOLUTION
Read only

mani_sekar
Explorer
0 Likes
3,783

Hi,

you can try using CHAR16384

Regards,

Manikandan S

10 REPLIES 10
Read only

Former Member
0 Likes
3,783

This message was moderated.

Read only

0 Likes
3,783

It's dumps out with the error : reference to an unassigned field symbol .

Read only

0 Likes
3,783

This message was moderated.

Read only

Former Member
0 Likes
3,783

Hi,

     Do u try the type xstring ?

Read only

0 Likes
3,783

this gives me a Type not compatible with the formal parameter error .

Read only

mani_sekar
Explorer
0 Likes
3,784

Hi,

you can try using CHAR16384

Regards,

Manikandan S

Read only

0 Likes
3,783

Also you can try CHAR8000_D and CHAR30000

Read only

0 Likes
3,783

Amazingly this works for upto 30000 characters and if this isn't enough,

i'd say its the business's probelm .

But for the sake of Technical understanding i would still want to understand why string doesn't work .

Thanks .

Read only

0 Likes
3,783

Hi,

String is not having any limit in characters and when in runtime it will allocate the space according to value.

but CLIKE is required static space before value assignment

Regards,

Manikandan S

Read only

0 Likes
3,783

Sounds reasonalble, i think , thanks .

But i got stuck again .

Turns out AL11 Files have a limit too .

so all the data i have is still not transfereing to the csv file as the AL11 files cannot have that much data in one row .

Any work around for that .

Thanks