‎2009 Apr 09 9:00 AM
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.
‎2009 Apr 09 11:08 AM
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.
‎2009 Apr 09 9:08 AM
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
‎2009 Apr 09 9:08 AM
What's the structure of wrk_download? Does it contain any numeric fields? You might have to convert them to text before downloading.
‎2009 Apr 09 9:16 AM
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
‎2009 Apr 09 9:17 AM
There is mapping of Non CHAR to CHAR values ,
UNCHAR objects to CHAR Like .
check ur data mapping.
Rhea.
‎2009 Apr 09 9:20 AM
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
‎2009 Apr 09 11:08 AM
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.