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

Upload longtext from EXCEL

Former Member
0 Likes
1,150

Hi experts,

i am trying to upload a catalogue from an excel-file. I am using the FM: TEXT_CONVERT_XLS_TO_SAP.

I get my data into my internal table, but unfortunately the longtext can not be uploaded completly, because although my itab contains a string-field, i can not upload more than 255 characters per field.

Can anybody of you please advise what i need to do to get all characters into my itab?

Thanks in advance!

Points will be awarded for every helpfull answer!

Felix

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,060

HI

Replace the STRING TYPE by TEXT500 or TEXT600 as per requirement.

Aditya

Hi experts,

i am trying to upload a catalogue from an excel-file. I am using the FM: TEXT_CONVERT_XLS_TO_SAP.

I get my data into my internal table, but unfortunately the longtext can not be uploaded completly, because although my itab contains a string-field, i can not upload more than 255 characters per field.

Can anybody of you please advise what i need to do to get all characters into my itab?

Thanks in advance!

Points will be awarded for every helpfull answer!

Felix

7 REPLIES 7
Read only

Former Member
0 Likes
1,060

HI

Replace the STRING TYPE by TEXT500 or TEXT600 as per requirement.

Aditya

Read only

0 Likes
1,060

Hi Aditya,

sorry, but i am still getting only 255 characters into may text512 field.

Do you have a better idea?

Read only

0 Likes
1,060

Hello, I have debugg the funcion and I have seen that in sentence: CALL METHOD l_iref_spreadsheet->get_ranges_data the function get value of excel in the table l_table_range. This table is declarated of type SOI_GENERIC_TABLE that has a field "Value" where get the content of excel. The problem is that the field value of l_table_range is type char(256).

The solution may be that you copy the function to Z and modify this fields for more length.

Hope help you.

Read only

0 Likes
1,060

Did you try using GUI_UPLOAD instead?

Read only

Former Member
0 Likes
1,061

HI

Replace the STRING TYPE by TEXT500 or TEXT600 as per requirement.

Aditya

Read only

Former Member
0 Likes
1,060
Read only

former_member196064
Active Participant
0 Likes
1,060

Aparna is right, use GUI_UPLOAD.

I use it to upload my functional locations.

they have a long text descpription on them.

I created a table of type string & use it in the

GUI_UPLOAD CALL then parse based on

the delimiter from Excel...

You might be able to use a regular itab

with a string type field in that field's position. though.

Doug -