Error in line break in a file adapter

Hi,
I have a problem with a file receiver adapter. In File Content Conversion I put 'nl' in the endSeparator parameter but when I see the "output.txt" file generated all data are put in same line separated by rectangular characters.
I think this rectangular characters are the line breaks characters. My problem is that the target application don't recognized those rectangular characters like line breaks.
Also i tried to put in endSeparator the ASCII character '0x0A' but the line break neither work.
In file Encoding parameter I tried with every charset encodings like: US-ASCII, ISO-8859-1, Windows-1252... but the line break don't work.
Could be important the operating system over XI is running? SAP and XI is running over a AS400 system.
Thanks in advance for any reply.

Hi Prashanth,
Thanks for reply.
I Tried with UTF-8 and it doesn´t work.
I tried with almost all known charsets but none of them work. The line break doesn't appears.
I want write:
line1
line2
line2
If i open the notepad in the file appears:
line1line2line3...
The target application doesn't recognized the  character like a line break.
but if i copy the text of file and i put it in a doc file or in this forum, for example, the line break appears.

Similar Messages

  • File adapter-How to set line break in text file-split record into two lines

    Dear Guru's,
    I have to solve following problem with XML (with mulitiple records) to TEXT file scenario using file adapter. I have to output for ever ONE data record in XML always two identical lines in text file. Second line should have a little bit different mapping in few fields like date,... So I did duplicate fileds in my output structure in mapping and need to know how to set line break in the middle and see half of structure in first line and next structure half in second line
    My output structure in mapping is:
    CASHFLOW
    - INTERFACE
    - GESELLSCHAFT
    - ANWENDUNG
    - PRODUKT
    - VERTRAG
    - BETRAG
    - WAEHRUNG
    - DIRECTION
    - BEWEGUNGSTYP
    - FAELLIGKEIT
    - ZINSFESTSTELLUNG
    - ZAHLUNGSTAG
    - RENDITE
    - INTERFACE2
    - GESELLSCHAFT2
    - ANWENDUNG2
    - PRODUKT2
    - VERTRAG2
    - BETRAG2
    - WAEHRUNG2
    - DIRECTION2
    - BEWEGUNGSTYP2
    - FAELLIGKEIT2
    - ZINSFESTSTELLUNG2
    - ZAHLUNGSTAG2
    - RENDITE2
    Question is how can I set on receiving file adapter in Content Conversion Parameters that fields from first structure half INTERFACE...RENDITE should be outputed in one line and fields from second half of structure INTERFACE2...RENDITE2 should start on second line in final text file.
    I'm getting at the moment one line only and I need to know how can set line break so that second line starting with INTERFACE2(CA)...RENDITE2 will start in new line.
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000",CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
    This should be final output:
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000"
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
    My file adapter settings:
    RecordsetStructure=CASHFLOW
    CASHFLOW.fieldNames=INTERFACE,GESELLSCHAFT,ANWENDUNG,PRODUKT,VERTRAG,BETRAG,WAEHRUNG,DIRECTION,BEWEGUNGSTYP,FAELLIGKEIT,ZINSFESTSTELLUNG,ZAHLUNGSTAG,RENDITE
    CASHFLOW.fieldSeparator=,
    CASHFLOW.endSeparator='nl'
    CASHFLOW.fieldNames=INTERFACE2,GESELLSCHAFT2,ANWENDUNG2,PRODUKT2,VERTRAG2,BETRAG2,WAEHRUNG2,DIRECTION2,BEWEGUNGSTYP2,FAELLIGKEIT2,ZINSFESTSTELLUNG2,ZAHLUNGSTAG2,RENDITE2
    CASHFLOW.fieldSeparator=,
    It wont help if I add two identical structures in mapping because in output i would see for multiple entries section with first lines only and after that section with second lines only. And CASHFLOW is one part of more complex mapping ...
    (This is final output structure RecordsetStructure=HEADER,CASHFLOW,CONDITION,REFERENCE,CONTRACT - more sections with different data and all these should have duplicate lines at the end)
    Thanks a lot for any help
    Cheers
    Marian
    Edited by: Marian  Luscon on Jul 14, 2009 11:44 AM

    Hi Ivan,
    right, I did test just for sure.
    Putting constant 'nl' into field CASHFLOW-INTERFACE1 didnt help - still getting one line instead two lines.
    CA ,"0100" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,2 ,12 ,2009-01-28 ,2009-01-27 ,2009-01-28 ,"0.0000000" ,'nl' ,"GTP1" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,1 ,10 ,2009-01-27 ,2009-01-27 ,2009-01-27 ,"0.0000000"
    So there is still question. Is there any way (mapping,...) how to output always 2 lines in text file for one record in XML. It always does 1 record in mapping structure = 1 line but we need 2 lines ...
    Example:
    Input: 4 records in XML
    Output: 8 lines in final text file ...
    Thanks to you all guys
    Marian

  • Line Break for XML File

    All,
    I am able to generate xml file from an internal table. The problem is, if I open the file in IE everything looks good. When I open it in notepad or notepad++, everything is in one line. Can you tell me how to generate a line break after each tags.
    Please find the following code used by me for reference.
    LOOP AT lt_ohd INTO ls_ohd.
        ls_temp_ohd = ls_ohd.
        AT FIRST.
          l_ixml = cl_ixml=>create( ).
          l_document = l_ixml->create_document( ).
          l_element_ohd  = l_document->create_simple_element(
                      name = 'OHD'
                      parent = l_document ).
        ENDAT.
        AT NEW cc.
          CLEAR : lv_inhaltskom, lv_text.
          lv_inhaltskom = ls_temp_ohd-cc.
          CALL FUNCTION 'ISM_SELECT_TEXT_JJTIKO'
            EXPORTING
              pv_inhaltskom = lv_inhaltskom
            CHANGING
              pv_langtext   = lv_text.
          TRANSLATE lv_text TO UPPER CASE.
          l_value = lv_text.
          l_element_county  = l_document->create_simple_element(
                      name   = 'city_county'
                      value  = l_value
                      parent = l_element_ohd  ).
        ENDAT.
        AT NEW order.
          l_element_neighborhood  = l_document->create_simple_element(
                      name    = 'entry'
                      parent  = l_element_county  ).
        ENDAT.
        l_value = ls_temp_ohd-neighborhood.
        l_element_address  = l_document->create_simple_element(
                    name   = 'neighborhood'
                    value  = l_value
                    parent = l_element_neighborhood ).
        l_value = ls_temp_ohd-address_detail.
        l_element_address  = l_document->create_simple_element(
                    name   = 'address_detail'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-order.
        l_element_address  = l_document->create_simple_element(
                    name   = 'order'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-item.
        l_element_address  = l_document->create_simple_element(
                    name   = 'item'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-cc.
        l_element_address  = l_document->create_simple_element(
                    name   = 'cc'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-address.
        l_element_address  = l_document->create_simple_element(
                    name   = 'address'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-price.
        l_element_address  = l_document->create_simple_element(
                    name   = 'price'
                    value  = l_value
                    parent = l_element_neighborhood ).
        l_value = ls_temp_ohd-bed.
        l_element_address  = l_document->create_simple_element(
                    name   = 'bed'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-bath.
        l_element_address  = l_document->create_simple_element(
                    name   = 'bath'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-opentime.
        l_element_address  = l_document->create_simple_element(
                    name   = 'opentime'
                    value  = l_value
                    parent = l_element_neighborhood  ).
        l_value = ls_temp_ohd-state.
        l_element_address  = l_document->create_simple_element(
                    name   = 'state'
                    value  = l_value
                    parent = l_element_neighborhood ).
        l_value = ls_temp_ohd-zip.
        l_element_address  = l_document->create_simple_element(
                    name   = 'zip'
                    value  = l_value
                    parent = l_element_neighborhood ).
        l_streamfactory = l_ixml->create_stream_factory( ).
        l_ostream = l_streamfactory->create_ostream_itable( table = lt_xml_table ).
        l_renderer = l_ixml->create_renderer( ostream  = l_ostream
                                              document = l_document ).
        l_rc = l_renderer->render( ).
        l_xml_size = l_ostream->get_num_written_raw( ).
      ENDLOOP.
    Regards,
    Salil
    Edited by: salil vaidya on Jan 18, 2011 2:34 PM

    Thanks.
    But now, I have a syntax error.
    BEGIN OF xml_line,
              data(256) TYPE x
    END OF xml_line.
    DATA: lt_xml_table      TYPE TABLE OF xml_line,
          ls_xml_table      TYPE xml_line.
    LOOP AT lt_xml_table INTO ls_xml_table.
        CONCATENATE ls_string cl_abap_char_utilities=>cr_lf INTO ls_string.
        MODIFY lt_xml_table FROM ls_xml_table INDEX sy-tabix.
        CLEAR : ls_xml_table, ls_string.
      ENDLOOP.

  • Got compilation error about 'create instance activity' using file adapter

    Hi,
    I am creating a very simple bpel process using file adapter. in my 'Receive' activity, I selected 'create instance' , as the tutorial says.
    I got this compilation error during deploying.
    'Error(31): [Error ORABPEL-10051]: multiple create instance activity [Description]: in line 31 of "D:\OraBPELPM_1\integration\jdev\jdev\mywork\BPELPractices\FileAdapterTest2\FileAdapterTest2.bpel", Conflicting createInstacne="yes". Instance is already created by another activity. [Potential fix]: Remove createInstance="yes" attribute from this activity. '
    Several people had the same problem in my team. I wonder if this is a common issue. how to fix it?
    Thanks,
    Kate

    You must be having another receive/pick activity within the same process that has "createInstance" set to yes.
    Thats why its complaining.

  • Line break in txt file

    Can someone help me?
    I just wanna make a line break in a txt file...
    I tried it this way
    FileWriter fw = new FileWriter("W:\\write.txt");
    fw.write(string1 + "\n" + string2);
    fw.close();
    I don't know why it doesn't work.
    in the file it apears just a black block, but if i copy it in this text area, theres automaticly a line break
    thx for your support
    Guardian

    Everything has been said, but I thought I'll just make it more clearly :-)
    The thing is:
    Unix use a line break; <or was it vice versa>
    Afterwards someone decided text had to be devided in linebreaks and paragraph;
    That's why you have <p> and <br> in html
    Now line break just means, I'm on the end of a line and i must break but i don't want to
    so please if you can, hold it on the same line when displaying.
    So to keep multiple platform oparability it's a good thing to use both:
    newline character + carriage return = break to other line

  • White lines generateds in a File Adapter when using variable substitution.

    Hi all,
    I have been a problem in File generated by XI, my File Adapter is using variable substitution with reference to a field of my message type. Because it, the files generated has white lines in top of file.
    What can I do to not apears these lines ?
    Thanks

    Regis,
    Try to give a more detailed description of your problem otherwise I don't know who's gonna answer...
    Alexx

  • Error during mapping service, RFC-XI-File Adapter

    Hello,
      I have the following problem: I am using RFC to send some data to XI and then to File Adapter, however I get a short dump with "5990 Error during mapping service in XI". Even though mappings works, I tested using the document that comes in XI in Repository without any errors.
           What does this error means and is there any way to get more detailed explanation of my error. Thank you in advance for your help,
                   Dmitriy Mindich

    Synchronous RFC
    1. CALL FUNCTION func DESTINATION dest
                         parameter_list.
    Asynchronous RFC
    2. CALL FUNCTION func STARTING NEW TASK task
                    [DESTINATION {dest|{IN GROUP {group|DEFAULT}}}]
                    parameter_list
                    [{PERFORMING subr}|{CALLING meth} ON END OF TASK].
    Transactional RFC
    3. CALL FUNCTION func IN BACKGROUND TASK
                         [DESTINATION dest]
                         parameter_list
                         [AS SEPARATE UNIT].
    Use help function of your ABAP editor for more details.
    Regards
    Stefan

  • DB Mutex Error with Outbound operation using Normal File adapter in HA env

    Hi All,
    I Have a simple process which picks data from a weblogic jms queue and writes it to a file. Each day this task is carried out once in a day and it writes approx 30k records to the file. the process is made singleton (singleton property on inbound JMS adapter) and used the HA file adapter to write to the file. This setup gave rise to lot of DB Mutex errors. To avoid the DB mutex issue i pointed the file adapter to use the Normal file adapter connection factory instead of the HA File adapter one used earlier. The surprising thing is even this gave rise to DB mutex errors.
    1. Am i missing something here,according to my understanding using a normal file adapter conn factory even in a HA environment should not be creating multiple locks on the file write.
    2. Can i change the standard DS used in the file adapter to a custom DS? will that solve the problem?
    I hope the scenario is clear. Following is the error extract seen at the process and log level
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'Write' failed due to: Unable to acquire mutex for interaction. Unable to acquire mutex for interaction. Unable to acquire lock on resource for "DatabaseMutex::acquireNoSave". ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    Thanks
    Nikhil

    We are getting the same error in 11.1.1.5 PS4 version also.Can you post the content of your .jca file here?
    Regards,
    Anuj

  • Insert line break into .txt file

    Alright, so I am writing out to a simple .txt file, and I
    need to force a line break in it. My immediate thought is to use
    "\n" as that is a line break. So, I write it out to the text file,
    and instead of a line break, I see the "complex character" symbol
    (you know, that square that shows up with unknown characters). I
    have tried the various ASCII values to no avail, tried \r, even
    tried copy-pasting a line break in from notepad. Nothing seems to
    be working for me. How do I do this?
    _logFile = "\n";
    stream = new FileStream();
    stream.open(file,FileMode.WRITE);
    stream.writeUTFBytes(_logFile);
    stream.close();

    in windows use "\r\n"
    i.e. _logFile = "\r\n";

  • Line break when spooling file

    Say if you create a spool file and your going to execute a
    select statement to write data to this file.
    Is it possible to get a select statement to automatically put a
    line break and go to the next line in the file it is spooling
    to??
    Say for example:
    Select 'DROP TABLE'||table_name||';'||
    'CREATE TABLE'||table_name||';'
    from user_tables;
    I apologize if this is confusing. Thanks.
    Troy

    I tried what you suggested for a unix system and I still have a
    problem. Sometimes there is a line break in between my insert
    and select statement when i try to run to the spooled script
    afterwards.
    For example:
    select 'INSERT INTO temp_table (name, height, numrows) '||chr(10)
    ||'SELECT name, height, 0 from index_stats;' from dba_indexes
    where owner = 'USER1' and index_name NOT LIKE 'SYS%';
    It will be like:
    INSERT INTO temp_table (name, height, numrows)
    SELECT name, height, 0 from index_stats;
    This only returns the record but doesn't insert it in the table.
    Any other suggestions on how to fix this would be greatly
    appreciated?? Thanks.

  • Dreamweaver CS6 - Losing Line Breaks of PHP Files

    Hi all,
    If this has been asked and answered, I apologize. I have scoured the forums and Google for this, but coming up empty.
    Yesterday, upgraded from DW CS5 to 6. First site working on, opened up both .htm and .php files. Made simple changes, and uploaded to the server (both within, and outside of DW).
    All the PHP files are immediately broken. When viewing the page code via my FTP program, all the formatting has been removed (basically line breaks). Obvioulsy, this would see like a "file type" issue. I have tried what seems to be every combination of settings in the Pref>New Document> config box and none make a difference.
    I also know this could be depended on my server type (Linux). The HTML pages don't seem to mind that all the line breaks are gone from the code, but PHP pages do.
    Attaching what the code looks in DW, but then looks like after I save it and view it via my FTP.
    Any help would be greatly appreciated!

    Hi Jon - I'm back! So - now that I have the Code Format toggled to Linux, it works perfectly when I put up my PHP files.
    However, I'm learning that when I put up .html files - they go up completely empty. Everything is stripped out - when I view it within my FTP software the pages are entirely blank.
    I have many sites that have files of each type, and this was never an issue with Dreamweaver 5.
    Thoughts?

  • Error while using module in receiver file adapter??

    Hi,
           I am using user defined module(for converting EBCDIC type of data to ASCII type of data)  in receiver file adapter, while running the module it is giving erors in audit log
    Exception caught by adapter framework: class com.sap.aii.af.mp.module.ModuleLocalHomeImpl0_0 can not be casted to ModuleLocalHome or SModuleLocalHome
    MP: exception caught with cause java.lang.ClassCastException: class com.sap.aii.af.mp.module.ModuleLocalHomeImpl0_0 can not be casted to ModuleLocalHome or SModuleLocalHome
    Please help.
    Thanks.
    Madhusudhan.

    hi ....Stephan
    now we are getting the below exceptions in the message disply tool audit log
    Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.Exception.
    MP: exception caught with message null
    Thanks,
    Madhusudhan.

  • Can I stop batch reading, if any error comes in a batch, in File Adapter

    Hi All,
    I am reading files in batches of 100 lines as there are 1000 records. Can I stop further reading of records from a file, If any error comes in any batch.
    e.g. If my file adatpter is readinf 101 lines, if any error comes in this line, then it should stop reading line 102 and so on.
    Regards

    Hi Vikas,
    I am not sure what you mean exaclty by stop reading - would you be fine if the other lines are rejected till end of file, if an error is encountered?
    Then you can achieve that by ensuring that your schema does not have nxsd:uniqueMessageSeparator="${eol}" in the schema element.
    http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_file.htm#CACEGBFD
    I am not entirely sure if that would be a good design decision though.
    Regards,
    Shanmu.
    Edited by: sthiagar on Feb 5, 2010 9:23 PM

  • File Adapter FTP Error : 501

    Hi All,
    I am getting following error in the communication channel for File Adapter.
    'com.sap.aii.adapter.file.ftp.FTPEx: 501 IP Address for data destination doesn't match client's.'
    Communication channel details are as follows -
    FTP protocol is used with Port 21.
    Data connection - Active
    File type : Binary.
    The same interface is working fine in Development, Quality and Pre-Prod environments.
    This issue is coming only for Production FTP server.
    From the error text, it appears as a network issue.
    Please to let me know if anyone has came across such issue earlier, and what the the possible reasons - solutions to resolve this.
    Thanks a lot.
    Regards,
    Minal

    >
    Minal Vaidya wrote:
    > Hi All,
    >
    > I am getting following error in the communication channel for File Adapter.
    >
    > 'com.sap.aii.adapter.file.ftp.FTPEx: 501 IP Address for data destination doesn't match client's.'
    >
    > Communication channel details are as follows -
    > FTP protocol is used with Port 21.
    > Data connection - Active
    > File type : Binary.
    >
    > The same interface is working fine in Development, Quality and Pre-Prod environments.
    > This issue is coming only for Production FTP server.
    >
    > From the error text, it appears as a network issue.
    > Please to let me know if anyone has came across such issue earlier, and what the the possible reasons - solutions to resolve this.
    >
    > Thanks a lot.
    >
    > Regards,
    > Minal
    this seems to be something to do with your firewall... you can have your network team involved so that the can work a solution.
    a good read: http://lists.opensuse.org/opensuse-security/1999-11/msg00099.html

  • Reg: UNIX shell script at File Adapter

    Hi all,
    I am doing a File to file scenario and using command line arguments in Sending file adapter. I am using UNIX shell script ".sh" file for executing the command.
    I gave the following path at "Run OS command before message processing" parameter:
    /temp/xidelivery/send/FILOSC004_shell.sh
    and this file contains following code:
    <b>#!/user/bin/sh cp /temp/xidelivery/send/FILOSC004_in.txt /temp/xidelivery/send/FILOSC004_input_copy4.txt</b>
    I put the source file, FILOSC004_in.txt and shell script files at the respective paths.
    If I give "cp" command directly in command line it is working fine. But I could not execute this with shell script. Can any body give me the reason where I gone wrong.
    Regards,
    Pavani.

    Hi,
    can you try this,
    bash /temp/xidelivery/send/FILOSC004_shell.sh
    let me know.
    hey you can check the blog below to catch the OS errors,
    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    Prasad Babu.
    Message was edited by:
            PrasadBabu Koribilli

Maybe you are looking for

  • Error while crawling LOB contents SharePoint 2013

    Error while crawling LOB contents SharePoint 2013 I have Configured the BDC Service application using SQL external content. The connection was successful and I am able to see the external content in the List "BDC Demo" . But when I search in the BDC

  • How to find out where used list of Table or T-code

    Dear ABAP gurus I know many of you have done this several times. wish to find out which Transaction code INSERTs the data into the table IHPA. I did the where  used list - SE11 ( for specific key work called INSERT ). Used the Table called D010TAB wh

  • IPad won't sync: iTunes could not backup the iPad because a session-

    I can no longer sync an iPad with iTunes. Each time I try, I get the following error dialog from iTunes: iTunes could not back up the iPad "Name of iPad" because a session could not be started with the iPad. I'm using iTunes 10.1 (54) on Mac OS X 10.

  • Problems while trying to burn project

    Good morning i'm trying to burn project with idvd from ilife 11. every time the process stuck at the final stage (i think) - i get "multiplexing and burning" message, below that "done"' is written, and below that - "rime remaining: about one minute".

  • Server Specs

    Hello Kind Identity Management Folks! We are getting ready to purchase and setup our production server environment for our Identity Management Project. We will be managing about 40,000 accounts. The majority of the management tasks will involve manip