In FTP server file not storing in proper order when 'FTP_R3_TO_SERVER'

Dear ,
when i used FTP_R3_TO_SERVER to download data in FTP server 
i checked in FTP server  file is not storing in proper order in FTP server . plz help how to get the file in proper order .it urgent . full points must be given. i given code below .
DATA : BEGIN OF iresult OCCURS 5,
rec(450),
END OF iresult ,
DATA :
dest LIKE rfcdes-rfcdest VALUE 'SAPFTP',
compress TYPE c VALUE 'N',
host(64) TYPE c.
DATA: hdl TYPE i.
DATA: BEGIN OF result OCCURS 0,
line(100) TYPE c,
END OF result.
DATA : key TYPE i VALUE 26101957 ,
dstlen TYPE i,
blob_length TYPE i.
host = p_host  .
DESCRIBE FIELD p_password LENGTH dstlen IN CHARACTER MODE.
CALL 'AB_RFC_X_SCRAMBLE_STRING'
ID 'SOURCE' FIELD p_password ID 'KEY' FIELD key
ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD p_password
ID 'DSTLEN' FIELD dstlen.
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
user = p_user
password = p_password
host = host
rfc_destination = dest
IMPORTING
handle = hdl
EXCEPTIONS
not_connected = 1
OTHERS = 2.
IF sy-subrc = 0.
CONCATENATE 'cd' ftppath INTO ftppath SEPARATED BY space .
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
handle = hdl
command = ftppath
TABLES
data = result
EXCEPTIONS
command_error = 1
tcpip_error = 2.
IF sy-subrc = 0 .
CLEAR result .
REFRESH result .
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
handle = hdl
command = 'ascii'
TABLES
data = result
EXCEPTIONS
command_error = 1
tcpip_error = 2.
IF sy-subrc = 0 .
DESCRIBE TABLE iresult LINES lines.
blob_length = lines * width .
clear : lines.
Delete the existing file
CONCATENATE 'del' ftpfile INTO delfile SEPARATED BY SPACE.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
handle = hdl
command = delfile
TABLES
data = result
EXCEPTIONS
command_error = 1
tcpip_error = 2.
*End of deleting the existing file
CALL FUNCTION 'FTP_R3_TO_SERVER'
EXPORTING
handle = hdl
fname = ftpfile
blob_length = blob_length
TABLES
blob = iresult
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3
OTHERS = 4.
IF sy-subrc 0 .
WRITE 'Error in writing file to ftp' .
ELSE.
WRITE 'File downloaded on the ftp server successfully'.
ENDIF.
ENDIF.
ELSE.
WRITE : 'Path on ftp not found : ' , ftppath .
ENDIF.
CALL FUNCTION 'FTP_DISCONNECT'
EXPORTING
handle = hdl.
CALL FUNCTION 'RFC_CONNECTION_CLOSE'
EXPORTING
destination = 'SAPFTP'
EXCEPTIONS
OTHERS = 1.
ELSE.
WRITE 'Could not connect to ftp' .
ENDIF.
ENDFORM. " FTPFINANCEACCESS_DOWNLOAD
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'PASSWORD'.
screen-invisible = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Edited by: manoj kv on Feb 27, 2008 12:55 PM
Edited by: manoj kv on Feb 28, 2008 5:37 AM
Edited by: manoj kv on Feb 28, 2008 5:39 AM
Edited by: manoj kv on Mar 5, 2008 2:15 PM
Edited by: manoj kv on Mar 7, 2008 12:51 PM

Hello,
Did you try to put 'X' to the parameter CHARACTER_MODE.
Hope it will help you
Olivier

Similar Messages

  • TS2512 i m trying to convert dpx files to mov in colour 1.5.3 but in file browser files are not seen in proper order for ex files names are 12345 it is coming as 23145 bcoz of which in output also its coming in wrong order

    i m trying to convert dpx files to mov in colour 1.5.3 but in file browser files are not seen in proper order for ex files names are 12345 it is coming as 23145 bcoz of which in output also its coming in wrong order

    1) What you downloaded should be a packed file (zip, tar.gz, etc) that needs to be unpacked into the directory of your choice.
    2) & 3) are answered by Ant's installation documentation (the page you're quoting from):
    http://ant.apache.org/manual/index.html

  • 10.3.9 problems with FTP server - port not open?

    I have set up the ftp server in MacOSX Server 10.3.9 and I think the configuration is correct, but I am unable to access it from a client. When I check the open ports on the server from the client (running 10.4.10), ports 20 and 21 are not open, even though the firewall is not running. How do I open these ports, or start the server listening on them? The FTP server is running as far as Server Admin is concerned, although I have to say that I can't see a process in Activity Monitor with ftp in its name.

    I think I might have got a bit farther with this problem, but this just gets me nearer to the problem, not to a solution.
    When I stop the ftp service I get an error message in the console that says:
    server servermgr_ftp: ftp config:Error:Unable to hup xinetd - pid file shows pid='(null)'
    I believe that this means that Server Admin has tried to get xinetd to read its config file but since xinetd is not running (and hence no pid is available) it is unable to do this.
    If I try and start xinetd from the terminal I get the following error message:
    server xinetd[5484]: bind failed (Permission denied (errno = 13)). service = ftp
    server xinetd[5484]: 5484 {init_services} no services. Exiting...
    I now know that xinetd is the process that (amongst other things) listens on port 20-21 for an attempt to establish an ftp session and then launches ftpd to service that connection. At least I think that is how it works! Or should work...

  • Sun server - file not found warning message - send-file reports: HTTP4142

    (File not found)
    [25/Sep/2012:17:37:34] warning ( 9732): for host 127.0.0.1 trying to GET /vt/css/body_ie8.css, send-file reports: HTTP4142: can't find C:/Program Files/Sun/WebServer7/https-AC7440R877W6X.com/web-app/AC7440R877W6X.com/vt/css/body_ie8.css.
    sun server is trying to find file body_ie8.css which is not exist. now i m testing application in ie8 so getting error like this. If i run same application in ie6 i will get body_ie6.css. if i create dummy files with these name i wont get any error message.
    another sample error message
    warning (14280): for host 127.0.0.1 trying to GET /vt/css/icefaces_ie.css, send-file reports: HTTP4142: can't find C:/Program Files/Sun/WebServer7/https-AC7440R877W6X.com/web-app/AC7440R877W6X.com/vt/css/icefaces_ie.css (File not found).
    I m running JSF framework icefaces implememntation

    Hi:
    After some days and several test I discover the solution.
    I'm using Unicodes in the messages text (like \u00e9, \u00e1) and due to a typing mistake, in just a word the sequence \u00es appears instead of \u00e9.
    It seems \u00es is not a valid Unicode code and that was the cause of this particular error.
    I think this kind of message error must change depending which web server is used.
    As i said, i'm using the embedded oc4j server.
    Bye.

  • FTP server file reader

    Hai,
    I want to read the files present in FTP server without downloading.
    Using (org.apache.commons.net.ftp.*); this package I can view the files and directories present in particular host and can even download.
    But I want to read the files in directories without downloading them for displaying the file contents in my JApplet.
    How can I achieve this?
    Waiting for reply...
    Dhurai

    this is the wrong forum for such q.

  • FTP server file path

    Hi Experts,
    I need to place the file in "C:/CacheSys/PI" in FTP server.
    what is the target directory i must specify in Communication channel.
    Kind Regards,
    kiran

    Hi
    you can use the same name in the target directory.
    but the folder that you create should be on the same path.
    C:/CacheSys/PI
    go to c: dir , then go to Cachesys then go to PI and put the file in this folder.
    if you still face the problem please reply me back.
    Thanks
    Rinku

  • Multiple FTP server files for sender File adoptor

    Hi,
    we have a requirement to pick files from different FTP servers and send it as a proxy message to ECC.File structure format for both FTP server locations is same and I need to send as a same proxy message.
    Please let me know how to achieve this. Thanks.
    Regards,
    Rajesh

    Hi Rajesh,
    Here you are having two FTP Server to pick the files so that you need to create below list of objects.
    For two different FTP Server you need to create two different sender systems
    2 sender File channels
    2 sender agreements
    2 receiver determinations
    2 interface determinations(use single inbound interface in both interface determinations)
    2 receiver agreement
    If you want to use single sender then
    2 sender File channels
    2 sender agreements
    2 receiver determinations
    2 interface determinations(use single inbound interface in both interface determinations)
    1 receiver agreement
    thanks,
    madhu

  • Calendar server: File not found.

    I upgraded from Mac OS Server 10.6.8 to OS X 10.8.2 with Server 2.2. Things went moderately well.
    Circumstances: Prior to the upgrade, I was running services: iCal, AFP, Open Directory, Web, including wiki. I eliminated my need for some services, thus, on the new server I only need to run Calendar and Wiki. I turned off the others. Both before and after, I was bound to Active Directory, which is where my hundreds of user accounts reside.
    I have dozens of wikis, available at web addresses such as:
    https://wiki.example.com/wiki/projects/class1astronomy/
    https://wiki.example.com/wiki/projects/class2economics/
    https://wiki.example.com/wiki/projects/chapel/
    Each wiki includes a calendar. Example calendar addresses:
    https://wiki.example.com/wiki/projects/class1astronomy/calendar/
    https://wiki.example.com/wiki/projects/class2economics/calendar/
    https://wiki.example.com/wiki/projects/chapel/calendar/
    Issue: Many of the calendars have upgraded successfully. However, roughly 20-25% of the calendars are failing. If attempting to view the calendar via the web, these failing calendars start to load, but then return the error, "Calendar server returned an error: File not found."
    Ideas?

    Have same on Server X 4.0. Just installed it and run to discover. Didn't made much setups but I remember that I changed language and try play with resource on server. Don't know which file missing due to my fresh installation, reinstallation and trying to solve it by playing with folder /library/server/calendar and contacts - no results.

  • Reading and transfering FTP server files

    Hi Everybody,
    I will be really thankful if anybody can guide me for following-
    1. How to read/access a file on FTP server ?
    2.How file on FTP sever can be downloaded on presentation server?
    Thanks.

    Hi ,
    Check Function Group SFTP from se80.
    Check this post.
    http://wiki.sdn.sap.com/wiki/display/ABAP/WorkingwithFTP+Server

  • Credit Card Processing in SAP-CC# not stored in Sales Order or Cust Master

    Scenario
    1. Customer creates internet order, enters CC # which is authorized by CC processor via interface.
    2. If successful, order passed on to SAP, delivery is made, Invoice is created.
    3. No credit card number is stored on Order or Customer Master. The authorisation details are stored on Internet Order etc.
    4. Invoice created is an open item in customer account (ONE TIME Customer Account) referencing Web Order Number.
    5. NO FCC1 is possible since no CC# stored.
    6. User logs on to Credit Card companies website and downloads credit card funding information.
    7. Creates a journal entry in system to credit one time customer account with Lumpsum amounts and debits CC Clearing Account.
    8. Clears Customer Invoices in One time Customer account against the Lumpsum amount posted above.
    7. Uploads EBS  and clears the debit in CC Clearing Account by crediting the same account and debiting bank account.
    Q1. Is there a way we can upload the transaction level details which the CC processing company can provide to clear the invoices and debit the CC Clearing Account? (Automate Step 7 and 8)
    Q2 We are exploring options to convert data into EDI820 or format the data in Lockbox BAI2 and clear invoices etc
    Has anyone implemented the scenario above wherein the Credit Card numbers are not stored in SAP?
    Any help is appreciated.

    Hi All,
    Additional information, i do not see the following in Shop Admin under Transaction tab
    1) Payments -Check Box
        By Invoice possible
        By Cash on Delivery possible
        By Credit Card possible
    2)Preassignment: Payment  - Radio Button.
       By Invoice *
       By Cash On Delivery *
       By Credit Card *
    Please also let me know whether CRM_ISA_BASKET_PAYMT needs be called
    Thanks
    Krishna

  • Server does not recognize my username/password when trying to email photos

    I am trying to mail photo's from my Iphoto's through my email account.  However each time I try to send the pics I get a message that the server does not recognize my username/password.  I have a password for my Bell sympatico account which is the account I am trying to use, but when I enter that password I get the does not recognize message.  I then tried to use my Apple password and again same message.
    Thank you to anyone who can help me
    Maureen

    Hi Bob,
    The following is exactly what I do,  I go to IPHOTO and click on the photo I want to send, then I go to the Share menu and insert the email address where I want it sent.  In that message it shows my other account which is my email address that I use all the time for all my correspondance.  So I have that as the address I am sending from
    Then I hit send and a text box comes up saying there is some text related to the photo looks like you could put a description here so I just hit Send anyway.  Then I hit the send key and that is when the message box pops up with my complete email address with ;smtp.me.com" at the end . None of those letters or characters are in my email address.  Any help you can offer I am greatly appreciative!
    Cheers
    Maureen

  • Title set files not in correct physical order

    Hi I was wondering if anyone could help. I have had a problem with a replication batch. The dvds play fine on some players but don't on others. The Master was checked for errors and came back as having its "title set files not in the correct physical order, a problem that may effect the playability". The discs were authored in DVDSPro 3 and I didn't think there was anyway to change the VTS order. If anyone can help it would be most appreciated as I need to supply a new ammended master.

    15 times, eh, Jake?
    I don't think so.
    I know the approximate periodicy of this error in DVD SP generated output, and it's extremely rare. In fact, this "Title Set not in the correct order" rule (ID 420) of ImageAnalysis is listed by Eclipse as a DVD-Audio error.
    In fact Dale, if you'd like, contact me through my website link below and I'll help you get this next submission perfect, at no charge - in exchange for letting me see just what the heck you did to that original Image!
    You really need to let DVD SP generate a DDP Image and submit this next one already tested with Eclipse, and on DLT.
    Let me know,
    Trai
    Trai Forrester
    TFDVD Research Labs
    http://www.DVDVerification.com

  • My screen says VPN connection you were disconnected because the ppp server is not responding try reconnecting.  When I hit "O.K." IPad shuts down.  Any suggestions, please?

    My screen says VPN connection you were disconnected because the PPP server is not responding.  Try reconnecting.  When I touch "O.K." screen goes dark after a couple of seconds.  Any ideas to solve this, please? 

    I have no solution. I am using Lion on Mac Air connecting to 3g using a Huawei 156 dongle modem and  i keep getting cut off with this message
    You were disconnected because the PPP server is not responding.
    I need a solution too

  • Audiobooks not playing in proper order

    I have an iPod Classic, 80GB, on up to date software (v 1.1.2, according to iTunes, which is on v 12.1.0.50). I have several audiobooks, some of which were loaded into iTunes from CDs rather than being downloaded from the iTunes Store. The iPod apparently syncs properly with the iMac, which is on Yosemite 10.10.2. (I don't think the issue is anything to do with the OS, since it was evident on the last two OSes as well.
    The issue is that on the iPod under the Audiobooks menu the books are displayed and play in alphabetical order of the names of the tracks, not in the book order. Some of the track names are 'Track 1, Track 2', etc. This makes for interesting variety, but it's difficult to follow the plot!
    I have tried resyncing after changing the sort order in iTunes, but nothing seems to make any difference. I have worked around the issue by creating playlists and merging tracks, but this is less than satisfactory.
    Am I doing something wrong or is the iPod faulty? Thanks for any help offered.

    Unchecked tracks are skipped during normal track to track playback and are usually excluded from syncing to devices. I use them for things like bonus interview tracks which I will keep in my library but don't want to play accidentally when listening to the album. There is a preference to hide the checkboxes if you don't have a use for them.
    tt2

  • FTP to file server - file not reached to file server but in XI success

    Hi
    Scenario is
    XI is picking file from SAP and sending to a file server. In XI ,communication channel and sxi_moni shows message transferred successfully.
    But the file server guys din't receive any file. Can any one tell where the message can be lost. If file is not reaching destination then how come in XI its showing SUCCESSFUL message.
    Regards

    Hi,
    Your communication channel is not able to connect with the FTP sever.
    Check in RWB the communication channel log also user id, password mentioned in communication channel.
    Check whether that user has authorization to create file on FTP sever.

Maybe you are looking for

  • Passing a parameter to a formula

    Ok - tried everything and I am at a loss... I need to pass a parameter to a report  in order to provide the path of the images to a report. The path is contained in the web.config and extracting that in a code behind variable works fine (szReportsIma

  • Best way to do a 4:3 pan & scan in terms of resolution?

    Brethren, I need to deliver a broadcast quality version of my project in 4:3 pan-and-scan. The project is made up of five 20 minute long pieces, usually holding about 1 or 2 layers of video, sometimes 3 or 4. I've read a few other threads on this top

  • Lenovo Vibe X - language problem - Mobile brought in beijing.

    Hi, Please help me out in the following problem.  I brought a new mobile in beijing china - Lenovo Vibe X, where i get the phone with all chinese language. i did changes in the settings. still all my apps are in chinese and basic commands from the ph

  • CS4 - Way to inexpesively buy CS3?

    I went from CS2 to CS4 and am wondering if there is an inexpensive way to buy CS3? I don't understand scripting and can't get it to work with CS4 making the working area window the entire width of the desktop. Is there some way to inexpensively buy C

  • Complaint about customer service representative

    I'd like somebody to provide me with some contact information so I can forward the text of a chat session with a representative that provided extreme sarcasm and lack of overall responsiveness on an issue.