2010 Jun 02 7:21 AM
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.
2010 Jun 02 9:56 AM
2010 Jun 02 3:37 PM
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.
2010 Jun 02 4:00 PM
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.
2010 Jun 02 5:57 PM
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.
2010 Jun 03 7:37 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |