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

Response->GET_CDATA

Former Member
0 Likes
2,903

Friends,

I need your thoughts on ECC 6 UNICODE system.

We have an WEBSERVICE running fine at 4.7 which downloads data in STRING format from..

client type ref to if_http_client>>Response->GET_CDATA, converts the STRING INTO TABLE and uses GUI_DOWNLOAD to download the data in .DOC format.

But the same things gives JUNK at ECC 6 UNICODE system.

Do we need to convert data into XSTRING at UNICODE?

Please help.

Friends,

I need your thoughts on ECC 6 UNICODE system.

We have an WEBSERVICE running fine at 4.7 which downloads data in STRING format from..

client type ref to if_http_client>>Response->GET_CDATA, converts the STRING INTO TABLE and uses GUI_DOWNLOAD to download the data in .DOC format.

But the same things gives JUNK at ECC 6 UNICODE system.

Do we need to convert data into XSTRING at UNICODE?

Please help.

5 REPLIES 5
Read only

Former Member
0 Likes
1,731

Any thoughts?

Read only

0 Likes
1,731

On further investigation, we found that when the data is downloaded in STRING format from

CALL METHOD CLIENT->Response->GET_CDATA

RECEIVING

DATA = MessageHTML.

Some of the back slashes are replaced by forward slashes at the MessageHTM(STRING)

Has any one encountered this at UNICODE systems.

Read only

Former Member
0 Likes
1,731

Hi Anderson,

I also has faced this sort of scenario.

I made all the integers types to char types.

Hope this wil be the issue.

Here you declare STRING as of type CHAR and

also internal table fields as CHAR.

Regards,

Md Ziauddin.

Read only

0 Likes
1,731

Many Thanks Md Ziauddin for your time.

There are no Integer types, the only one variable that gets data from BSP is of STRING type.

What is done ....

First...

Data retreival

CALL METHOD CLIENT->Response->GET_CDATA

RECEIVING

DATA = MessageHTML.

Second....

Convert String to table

CALL FUNCTION 'CONVERT_STRING_TO_TABLE'

EXPORTING

I_STRING = MessageHTML

I_TABLINE_LENGTH = 1000

TABLES

ET_TABLE = it_DOCUMENT.

Third...

download it_DOCUMENT data in .DOC file from GUI_DOWNLOAD.

Read only

0 Likes
1,731

Tried converting to CHAR but that didnt worked.

Any ideas?