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

Downloading Data- Application Server.

Former Member
0 Likes
709

Hi,

When I download data into application server am getting the following error UC_OBJECTS_NOT_CHARLIKE..

What can be the reason??

Am using the following code.

OPEN DATASET FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT MESSAGE W_MESSAGE

IF SY-SUBRC = 0

LOOP AT IT_DOWNLOAD INTO WRK_DOWNLOAD.

TRANSFER WRK_DOWNLOAD TO file .

ENDLOOP.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
667

Hi,

From 'Unicode code check active' programs, You will get this error while writing datas from WorkArea/internal table into Application server. The below data types should be changed to Char type of same technical width e.g type QUAN - length 13 -> Char(13)

QUAN

DEC

INT2

CURR

UNIT

Regards,

Karthik.

6 REPLIES 6
Read only

Former Member
0 Likes
667

hi,

try thios code it will solve your issue

DOWNLOAD FILE IN APPLICATION SERVER

if : v_file is file path

and

it_line is the table which has all data in it

open dataset v_file for output in binary mode.
        if not sy-subrc is initial.
          retcode = sy-subrc.
          exit.
        endif.
        loop at it_tline.
          transfer it_tline to v_file.
        endloop.
        close dataset v_file.

regards

rahul

Edited by: RAHUL SHARMA on Apr 9, 2009 4:08 AM

Read only

matt
Active Contributor
0 Likes
667

What's the structure of wrk_download? Does it contain any numeric fields? You might have to convert them to text before downloading.

Read only

Former Member
0 Likes
667

Hi,

Please do this.....

If the Data in application server has any separators.....

declare itab

begin of itab,

record(totallength),

end of itab.

Then using Data set append each and every line to the Internal table itab.

After doing that,

Loop at itab.

split itab-record into filed1 field2 field3 field4 (etc...).

append it to the internal table you want.

endloop.

Thanks & Regards,

Vamsi

Read only

Former Member
0 Likes
667

There is mapping of Non CHAR to CHAR values ,

UNCHAR objects to CHAR Like .

check ur data mapping.

Rhea.

Read only

Former Member
0 Likes
667

Hi Renu,

Look at this,

It will solve your problems,

[regarding downloading data into application server|;

DATA : cr_lf TYPE C,

DATA l_string type string.

CR_LF = CL_ABAP_CHAR_UTILITIES=>CR_LF.

OPEN DATASET P_DSNI FOR OUTPUT IN LEGACY TEXT MODE.

IF SY-SUBRC EQ 0.

LOOP AT ITAB.

CONCATENATE ITAB-FIELD1 ITAB-FIELD2 CR_LF ITAB-ERRMSG CR_LF INTO l_STRING.

TRANSFER l_string TO P_DSNI.

ENDLOOP..

CLOSE DATASET P_DSNI.

ENDIF.

AND Please close your previous threads, Lets make the forums a better place.

Thanks & regards,

Dileep .C

Read only

Former Member
0 Likes
668

Hi,

From 'Unicode code check active' programs, You will get this error while writing datas from WorkArea/internal table into Application server. The below data types should be changed to Char type of same technical width e.g type QUAN - length 13 -> Char(13)

QUAN

DEC

INT2

CURR

UNIT

Regards,

Karthik.