Application Development 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: 

how to convert SAPFTPA from Unicode to Non-Unicode?

0 Kudos

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

6 REPLIES 6

gouravkumar64
Active Contributor
0 Kudos

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.

0 Kudos

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

raymond_giuseppi
Active Contributor
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

Hi,

If you replace sapftp in kernel folder with non-unicode version then SAPFTPA destination will be non-unicode.

Regards,

Alex

0 Kudos

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.