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: 

Long text upload

Former Member
0 Kudos
109

Hi,

I am uploading text from excel file into a internal table.

i have declared the internal table in this way

DATA: BEGIN OF IT_DATA OCCURS 0,

STTAG LIKE RC271-STTAG,

HTEXT(1032) TYPE c,

IWERK LIKE PLKO-IWERK,

ARBPL LIKE RCR01-ARBPL,

VERWE LIKE PLKO-VERWE,

VAGRP LIKE PLKO-VAGRP,

STATU LIKE PLKO-STATU ,

STRAT LIKE PLKO-STRAT,

VORNR LIKE PLPO-VORNR,

ITEXT(1032) TYPE C,

ARBEI LIKE PLPO-ARBEI,

ARBEH LIKE PLPO-ARBEH,

END OF IT_DATA.

but while uploading the text in HTEXT field it is only taking upto 255 characters.

I need to upload text upto 1032 characters.

Please suggest me the solution.

Thanks & Regards

Kapil

2 REPLIES 2

Azeemquadri
Contributor
0 Kudos
77

Try using type string instead of type c.

Former Member
0 Kudos
77

Hi Kapil,

Take internal table with one field.

That field refers to one type pool field named as TRUX.

Then longtext will be uploaded from excell file with out any error.

Hope this helps you, reply for queries, Shall post you the updates.

Regards.

Kumar. .