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: 

Data type for Formal Parameter TYPE CLIKE

Amarpreet
Active Participant
0 Kudos

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

mani_sekar
Explorer
0 Kudos

Hi,

you can try using CHAR16384

Regards,

Manikandan S

10 REPLIES 10

Former Member
0 Kudos

This message was moderated.

0 Kudos

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

0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi,

     Do u try the type xstring ?

0 Kudos

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

mani_sekar
Explorer
0 Kudos

Hi,

you can try using CHAR16384

Regards,

Manikandan S

0 Kudos

Also you can try CHAR8000_D and CHAR30000

0 Kudos

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 .

0 Kudos

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

0 Kudos

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