03-26-2013 1:46 PM
Dear All,
I am trying to change the target system to Non-Unicode to get Character size as 1 but still it is showing as Character size 2 bytes and target system as Unicode(even after conversion).
Screen shot attached for reference.
Please help, its very urgent.
Thanks in adv
Deepak
03-26-2013 2:03 PM
Hi,
At first See sap notes 547444-RFC enhancement for solution.
Then also check notes 1156948.
At last check sap help for this
http://help.sap.com/saphelp_nw04/helpdata/en/3f/7ffb40ef74f923e10000000a155106/content.htm
Hope it will helpful For u.
Thanks
Gourav.
03-28-2013 6:29 AM
Hi Gourav,
None of these notes are helpful for me. Coz, I have upgraded version 720 of SAP and in that there's no such option of MDMP.
And nor any explicit code page allocation is proving any help to me.
Regards,
Deepak
03-26-2013 2:10 PM
Why do you want, this destination is usually generated (it is the AS itself) ?
Do not confuse this RFC destination with the acttual FTP server called next (FTP_CONNECT).
Regards,
Raymond
03-26-2013 2:42 PM
Hi Raymond,
Yes, I know that SAPFTPA is self generated using program RSFTP005 for file transfer in background.
But, on using RFCDES-RFCDEST VALUE 'SAPFTPA', my file being transferred is having extra padding of blank characters after each character. And that extra padding is due to the Unicode character conversion(which takes 2-bytes unlike Non-Unicode).
Am attaching a part of my code which represents the ftp connection and file transfer.
***************************************************************
IF it_ftpwbse IS NOT INITIAL.
CLEAR: ws_slen.
ws_slen = STRLEN( pwdvmi ).
CALL FUNCTION 'HTTP_SCRAMBLE'
EXPORTING
SOURCE = pwdvmi
sourcelen = ws_slen
key = mi_key
IMPORTING
destination = pwdvmi.
*----------------------------------------------------------------------------*
*--Connect to FTP Server
*----------------------------------------------------------------------------*
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
user = p_usr
password = pwdvmi
host = p_dhost
rfc_destination = dest
IMPORTING
handle = dhdl
EXCEPTIONS
not_connected = 1
OTHERS = 2.
DESCRIBE TABLE it_ftpwbse LINES x.
blob_length = x * 25.
*------------------------------------------------------------------*
*--Place the file in the FTP server
*------------------------------------------------------------------*
CALL FUNCTION 'FTP_R3_TO_SERVER'
EXPORTING
handle = dhdl
fname = wbsefile
blob_length = blob_length
* CHARACTER_MODE = ' '
TABLES
blob = it_ftpwbse
EXCEPTIONS
tcpip_error = 1
command_error = 2
data_error = 3
OTHERS = 4.
******************************************************************
Regards,
Deepak
04-02-2013 1:26 PM
Hi,
If you replace sapftp in kernel folder with non-unicode version then SAPFTPA destination will be non-unicode.
Regards,
Alex
04-04-2013 1:13 PM
Hi Alex,
We have already updated our kernel with latest version and hence is not advisable by our basis guy to get down to lower one.
I have got the solution anyways..
So thanks.