File is placing in Non-sap system problem

Hi all,
I am placing file in different IP address 150.150.120.123 successfully by using FMs
HTTP_SCRAMBLE
FTP_CONNECT
FTP_COMMAND
FTP_COMMAND
FTP_R3_TO_CLIENT
But i am getting problem of all are not coming line by line.
the file is placing but records are all line items placing continuously continuation with ','. Actually i have to get file records like this
0001000265,070914,,,1000,16.0000,67322.00,2.0000,1346.00,HRCF
0001000267,070914,,,1000,16.0000,67322.00,2.0000,3446.00,HRSCF
0001000278,070916,,,1000,16.0000,67322.00,2.0000,4546.00,HRPO
But i am getting now file records as
0001000265,070914,,,1000,16.0000,67322.00,2.0000,1346.00,HRCF,0001000267,070914,,,1000,16.0000,67322.00,2.0000,3446.00,HRSCF,0001000278,070916,,,1000,16.0000,67322.00,2.0000,4546.00,HRPO
Just like coming records continuing with ','.
DATA: v_aux(4) TYPE c, v_cr TYPE c.
v_aux = cl_abap_char_utilities=>newline.
v_cr  = v_aux+1(1).
I am using this V_cr when concatenating those fields then also i am getting problem.
I need to place all records items wise.
But i am getting now as all items are continuing with ','
Pls if any one knows solution how to get records item wise without continuation all records with ','.
Pls help me
Regards,
J.Lokesh

Try using CR_LF instead of NEWLINE. Also I think that "end of line" character may also be affected by the FTP settings (not related to SAP). I vaguely remember having somewhat similar issue with FTP and mainframe. The file looked fine when downloaded to PC but mainframe "saw" only one long line.
Also take a look at the parameters in the FMs that you've mentioned, maybe there is something about the file type or end-of-line.

Similar Messages

  • Problem transferring file to non-sap system from R/3

    Hi,
    I used one Z function module to transfer file to non-SAP system as follows.
    CALL FUNCTION 'Z_INTERFACE_OUT_1'
           EXPORTING
                INTID           = V_INTID
                EXTRACT_DATASET = P_V_FILENAME.
      IF SY-SUBRC = 0.
        WRITE: / P_V_FILENAME, 'file has transferred successfully'.
      ELSE.
        WRITE: / P_V_FILENAME, 'file transfer has failed.'.
      ENDIF.
    I am getting message 'file has transferred successfully'. But it is not found on destination system.Can anyone please tell me the reason.
    Thanks,
    Venkatesh.

    Hi,
    You can use transaction code SNOTE to see whether a particuler OSS note is implemented or not.
    First navigate to GOTO> Download SAP Note and import the OSS note to your system.
    Then navigate to GOTO > SAP Note Browser and check the status of the OSS note, it will show whether it is implemented in your system or not.
    Also in the OSS note, there is release specific information. You can check whether that OSS note is applicable to your release or not.
    Regards,
    Gaurav

  • File Transfer from non-SAP System.

    Hi Experts,
    We have the requirement to copy/transfer file from non-SAP system to SAP system file server. Can we use these FMs FTP_CONNECT, FTP_COMMAND and FTP_DISCONNECT?
    or can we also use SXPG_COMMAND_EXECUTE?
    Thanks,
    Edson

    Hi Varma,
    Thanks. I'm looking at the FTP_COMMAND FM. If I got it right the 'command' parameter here should be the OS level commands? Example would be cp <file path from source> <file folder of destination> for unix. ?
    Thanks again,
    Edson

  • Down-/Upload files via Web Services using a NON-SAP system!?

    Hello,
    is it possible to down-/upload files via web services using a NON-SAP system!?
    Regards,
    Jens

    Hi Jens,
    I am not sure about your requirement here. What i could understand is that you want to check whether service could handle file processing?
    1) Uploading file - You can build a Webservice which has import/export parameters as the file structures and implement the proxy class in such a way that the passed data is written to application server.
    2) Downloading file - Same as uploading file, but the proxy class would have the code to extract data from the application server and pass them as output parameter.
    Functionality of Non SAP system: The system which calls these services should be able to convert the output of proxy data into file in case of downloading the file and it should be able to convert the file data into export parameters in case of uploading file.
    Hope this helps.
    Regards,
    Prasanna

  • Problem in Fetching data using RFC FM from NON SAP system

    Hi All,
    Need help from experts on data transfer using RFC from a non SAP system/database. I have creasted the destination in sm59.
    I have created a function module too which has an import parameter as a query and export parameter as an internal table.
    No when i test run this function module it returns some entries. But when I call this FM in a program it throws a dump 'rfc_external_abort' .  Here is what the call to FM looks like in my program. Please guide me on this.
    Thanks in advance,
    Saket.
    DATA : lv_query TYPE string,
           it_gddbdata TYPE ZC9_TAB_SOLMAN_XI_RFC.
    lv_query = 'SELECT *  FROM GDDB.VW_GDDB_PERSONS WHERE LASTNAME = ''''A'''''.
    CALL FUNCTION 'Z_C9_SOLMAN_XI_GDDBCON'
    DESTINATION  'D39'
      EXPORTING
        in_sql_query       = lv_query
    IMPORTING
       ET_GDDB_DATA       = it_gddbdata

    Hi,
    your question..
    DATA : lv_query TYPE string,
    it_gddbdata TYPE ZC9_TAB_SOLMAN_XI_RFC.
    lv_query = 'SELECT * FROM GDDB.VW_GDDB_PERSONS WHERE LASTNAME = ''''A'''''.
    CALL FUNCTION 'Z_C9_SOLMAN_XI_GDDBCON'
    DESTINATION 'D39'
    EXPORTING
    in_sql_query = lv_query
    IMPORTING
    ET_GDDB_DATA = it_gddbdata
    you are telling that you are fetching the data  from non sap system  using RFC function module.. how it is possible..you canot fetch the data from non SAP system using RFC FM alone.. you have to use the concept BAPI.. it will work..
    I hope this will help  you..
    Regards,
    Kiran

  • Uploading data from non sap system to sap system

    hi to all experts,
    my requirement is to upload data into the sap system from non sap system . the data is in  a flat file ,but the problem is that  in the flat file all the field lengths and fields are not in order or same as sap system. How to upload the data into sap system ....

    hi,
    the data is in a flat file,but the problem is that in the flat file all the field lengths and fields are not in order or same as sap system.
    If the data is in excel sheet use this FM.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME                      = P_FILE
          I_BEGIN_COL                   = 1
          I_BEGIN_ROW                   = 1
          I_END_COL                     = 17
          I_END_ROW                     = 3000
        TABLES
          INTERN                        = itab
    EXCEPTIONS
      INCONSISTENT_PARAMETERS       = 1
      UPLOAD_OLE                    = 2
      OTHERS                        = 3
    It will read the data from excel sheet column wise and then store it in ITAB. you can change the order after reading the file.
    In case of Text file use FM  GUI_UPLOAD.
    You can change the order of the fileds after reading it from file, but the length and all you have to make compatible to SAP standard fields.
    Regards,
    Sachin

  • Unable to send IDOCs from SAP PI 7.3 system to a NON-SAP system

    Hi Experts,
       We have a simple file to IDOC scenario in our SAP PI system. There is no mapping as the file is already in the IDOC-XML format.
    However , the target system is a NON-SAP system. We are using a TCP/IP RFC destination to connect to it.
    Here are the settings we have done,
    1) Creates a 3rd party technical system and business system in SLD.
    2) We have assigned a logical system name for the business system (LSKABA100).
    3) Created a port in IDX1 with the same name LSKABA100 and assigned the TCP/IP RFC destination. The RFC destination is pinging fine.
    4) Imported the metadata for the IDOC from a SAP port and copied the same to LSKABA100 port.
    5) Created the sender agreement, receiver determination, interface determination and receiver agreement in ID.
    When we send the file, there is an error on SM58 transaction of our PI system. It says "RFC_ERROR_SYSTEM_FAILURE: IDocException occurred."
    Other than that it does not provide a lot of details.
    We have seen this thread and this blog but did not get any break through.
    Please help us, if someone has any ideas.
    Best Regards,
    Ravikanth Talagana

    Hi all,
        I am not using any SAP Jco user either in my config or in the RFC destination.
    What is the user id that needs to have the authorization?
    I am using a TCP/IP RFC destination and it does not have any user id/pwd.
    There is also, no problem while doing a connection test to the RFC destination.
    Best Regards,
    Ravikanth Talagana

  • Consuming webserives in sap of Non sap system

    Hi Guys,
    I want to consume web services in sap of a non sap system (which is service provide) , but i am encountering a problem that how can I use WSDL file (which contains Service provider data) of service provide to use in abap code to use further, without PI, please guide in this regard as i followed different tutorial which only guide me communicate between two sap system, but i want consume web service of non sap system
    please help me as I am beginner,
    Thanks

    Hi Ravi ,
    Thank you so much  for your help, When I Wsdl url file is received from Service provide, and I am going to utilize this url to fetch data out of it then how Can I access method of this wsdl file to fetch accurate data?
    like the link you provided to me in this ,from where I got to know that GET_QUOTE
    CALL METHOD LV_QUOTE->GET_QUOTE
    is the wsdl file method.
    and second this I want to ask IS there  any need to parse xml to abap, or I just follow your tutorial  as it is you provided to me?

  • Connect b/w SAP and Non SAP -system

    Hi All,
    I have a requirement where i need to connect between a SAP system and Non-Sap System.
    the front end is an E-Build tool (for construction Industry) from where the user will pick the data and the data should get store at the backend i.e in the SAP system.
    E-build is a tool for construction industry with lots of flexible options for the user to check for their house, along with their prices.
    These all data needs to be captured and store at the backend.
    Can any one suggest me which method shall i go for this in ABAP(and How)  or need to go for the XI-Netweaver or EP technology.
    Thanks & Regards
    Mona

    you better to go for middleware tools .  keep files( whichs contains data to be stored in SAP)  in one folder at 3p systems  and  middleware adapters will pick that filles automatically and sent it to Application server or then process the data into SAP.
    tks.. venkat

  • How to extract data from ODS to non-SAP system

    Hi,
    Can anybody tell me, step by step, how to extract data from ODS to a non-SAP system?
    Is it possible to do it without programming effort? And is there volume limits for this kind of extraction?
    The non-SAP system is an unix system.
    Thanks in advance
    Ella

    Ella,
    You can look at it from the concept of a BADI / Infospoke
    Extract the data from the ODS to a Flat file / RDBMS using an infospoke. I am not sure as to how the infospoke loads data into the RDBMS ( did it very long ago ) but then you can push it into an RDBMS and I am sure it will be system neutral.
    Hope this helps...
    Arun
    Assign points if it helps

  • Idoc  b/w sap(r/3) and non sap system .

    hi gurus,
    how i pass an outbound idoc  b/w sap(r/3) and non sap system .
    which  function module we will use in this scenerio for inbound and outbound idoc both
    please guide me  with an example .

    Hi Pawan,
    Non SAP system should have RFC adapter in order to receive and send Idocs from/to SAP.
    If this is not your case, you should us a Integrator Middelware with RFC and standard adapters like SAP Exchange Infrastructure.
    If for example, your non SAP system is able to process data from flat files you can build next interface: SAP send Idocs to middleware that receive them using RFC adapter, middelware maps Idocs into flat file and send it to a one of non SAP system folder using FTP adapter. Non sap system triggers the flat file into its applications.
    Reward points if useful.
    Roger

  • Receiving IDocs from non-SAP system ...

    Hello guys,
    I have problem with implementing IDoc-XI-IDoc scenario. The sender system is a subsystem (non-SAP system) sending IDocs but XI is not able to receive them. I thing the IDoc metadata can not be found.
    Logical system name of the sender is IF6020DEV. I registered the system in SLD. In Integration Directory I imported the Bussines System IF6020DEV to my scenario and I created communication channel of type Sender IDoc Adapter in it.
    In IDX2 I created new port called IF6020DEV and I copied needed metadata into the port. But it doesn't work. Probably I don't do it right because I'm beginner with SAP XI.
    Could you give me any advice how to configure XI for receiving IDocs from non-SAP system?
    Thank you in advance!
    Regards
    Zbynek

    Thank you very much. The issue described in refered discussion is almost same issue what I'm solving. Unfortunetally the described solution dosn't work for me.
    The sender system still returns following error. I know you probably won't understand it because you don't know the subsystem, but maybe you could get some idea what is wrong.
    05/29/09 16:09:19.482 idoup2 Logon...
    05/29/09 16:09:19.482 idoup2 RfcOpenEx (TRACE=1 CLIENT=110 USER=xxxxxx LANG=D LCHECK=1 GWHOST=xxxxxx GWSERV=3361 ASHOST=xxxxxxx SYSNR=61 PASSWD=<password>)
    05/29/09 16:09:19.529 idoup2 Logon RfcOpenEx result=1
    05/29/09 16:09:19.607 idoup2 Call to (IDOC_INBOUND_ASYNCHRONOUS) failed (3)
    05/29/09 16:09:19.607 idoup2 Handle=1
    05/29/09 16:09:19.607 idoup2 key............:
    05/29/09 16:09:19.607 idoup2 status.........:
    05/29/09 16:09:19.607 idoup2 message........:IDoc-Adapter Eingang: Der Absenderport ist initial
    05/29/09 16:09:19.607 idoup2 internal status:
    05/29/09 16:09:19.607 idoup2 idoc_upload failed with rc=(3), try(2)
    05/29/09 16:09:20.607 idoup2 key............:IDoc-Adapter Eingang: Der Absend
    05/29/09 16:09:20.607 idoup2 status.........:EXCEPTION SYSTEM_FAILURE RAISED
    05/29/09 16:09:20.607 idoup2 message........:IDoc-Adapter Eingang: Der Absenderport ist initial
    05/29/09 16:09:20.607 idoup2 internal status:
    05/29/09 16:09:20.607 idoup2 idoc_upload failed with rc=(18), try(1)
    05/29/09 16:09:21.607 idoup2 Logoff...

  • Sending IDoc from Non-SAP system to XI

    Dear all,
       We have a non sap system which needs to send IDoc to XI, Please could you answer my following four questions
    1. What should be the values for the following fields in the IDoc control record
    e.g. RCVPRN = <logical system name of XI>
    SNDPOR
    SNDPRT
    SNDPRN
    RCVPRT
    RCVPOR
    2. How does XI decide which port(idx1) to be used when it receives an idoc
    3. The third party system is a non sap one, so it does not have a client no, so I would assume, I need to use another SAP system as a meta data provider, in that case, how would i tell XI to use that port when it receives IDocs from the non-SAP system ?
    4. In what step does XI use the logical system name of the Business system(in SLD)?
    Thanks in advance
    cheers
    danus
    Edited by: Chidambaram Danus on Jan 25, 2008 2:21 PM

    Hi
    there is bit wrong interpretation of the statement
    If the sender system is a non-SAP system, the sender service is identified from the logical system name of the sender port.
    If the sender system is nonSAP it indicates taht the data is coming to XI from non sap systems such as file, database, webservice etc. to XI and from XI it will pass to sap as IDOC inbound.
    For this you need to create the logical system in SAP (receiver) and pass on that value to IDOC header.
    You could maintain it in the Business service used for Sender system (nonSAP). here it will be available in the tabs ---> History.
    note : IDOC is the concept of data container in SAP, you will not be able to have the IDOCs in non sap systems...
    Thanks
    Swarup
    Edited by: Swarup Sawant on Jan 25, 2008 2:54 PM

  • Distributing customizing(control) data from SAP ECC to a non SAP System

    Dear Experts,
    I am currently working on an interface for distribution of different data to a non SAP System. One of these is customizing data (Company code, purchasing org. plant etc). The system expects a file and we shall implemet the following scenario: IDOC>XI>File
    Questions:
    1. Is it possible to use CONDAT Idoc to transfer customizing data to a non SAP System or is this only used for synchronisation of data between SAP Systems?
    2.In case CONDAT cannot be used would you recommend creating a custom table, message type etc. for this case?
    Please advise.
    Thank you so much

    Hi Narasimha,
    We can do this with the help of PI. Please find the below link.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/404ee507-3fbc-2e10-00bc-be90ab28d036?QuickLink=index&overridelayout=true&52239687237174
    Its from SAP PI to any other system.
    Check this link too.. Proxy with Attachments.
    Regards,
    Siva

  • Sending special characters to non-unicode non-sap system: user exit

    Hello All,
    We are sending data from a SAP unicode system to a non-sap non-unicode system via IDOC. The idoc is standard idoc GLMAST which contains gl account information.
    Some text fields contained in this idoc can contain special Polish characters. If they are sent unchanged to the non-unicode system, they give problems in the destination system.
    What we would like to do is to build a user exit to convert these special characters, for example : 'é' becomes 'e', ....
    We used enhancement object ALE00001, function EXIT_SAPLBD11_001 and implemented it, but it seems this exit is not called. Can this user exit be used for this functionality?
    We also tried to change in SM59 the type of system of the destination to non-unicode, so that SAP replaces those special characters by #. But, than the error 02. Codepage not found is given in the idoc. Note: the link to the external system is not set up yet, so no actual connection is possible. Is this why we receive this error, and will this functionality work in the end with a non-sap system?
    Thanks for helping.
    Kind Regards,
    Bart Pelsmaekers

    I faced this problem in many project i implement below logic.
      DATA: c_splchar(2) VALUE '90',
            c_defaultchar(1) type c VALUE '#'.
    You have to move one by one character to this function module
              CALL FUNCTION 'URL_ASCII_CODE_GET'
                   EXPORTING
                        trans_char = spl_char
                   IMPORTING
                        char_code  = spl_code.
    All non unicode(Better you check) are always greater than 90.
             if spl_code is gt c_splchar.
                move c_defaultchar to c_splchar.
             endif.       
    "Reward points if usefull"
    Thanks,
    Narayan

Maybe you are looking for