File adapter, File encoding national characters

Hi,
I have a problem with national characters (ÅÄÖ) when sending (receiver adapter) files with the fileadapter.
When i specify Transfere mode = Binary and File Type = Binary everything works fine but when i use Transfere mode =+ Text+ the national characters gets converted to "?". I have tried to set File Type = text and tryed File Encoding with UTF-8 and ISO-8859-1 without success.
Please help!
Regards
Claes

Hi,
Check this out: <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42">How To… Work with Character Encodings in Process Integration</a>
Regards,
Jakub

Similar Messages

  • Communication channel - Sender File Adapter - File Encoding

    Hello colleagues,
    I'm using a sender file adapter to send flat files to the IE for further mapping and transformation @runtime. The flat files which are received by the file adapter are based on two different codepages:
       -> MS-DOS Codepage 437
       -> Windows Codepage 1252.
    Do you know by chance which kind of file encoding I have to set in the configuration of the respective sending file adapter for these two code pages?
    For the windows codepage 1252 I'm using the file encoding ISO-8859-1, which works quite fine. However, for the input files based on codepage MS-DOS 437, I do not know which kind of file encoding  to use. If anyone could help me with that issue, I would be very glad.
    Best regards
    Stefan

    HI,
    Find below link for more help
    http://www.kostis.net/charsets/trans130/cpdos.htm

  • Receiver File Adapter - File Content Converstion

    Hi,
    I have an xml-output (as a string) but I need to use the content converstion tool in the receiver file adapter to make this into one string without the nodes etc. Example of the format that i want the file to be in:
    1AXXX10363501       00000013PC..........etc.
    And I need each instance of SBR in a new row. How can I do this? Please tell me if things are unclear.
    Example of the structure the file has now without content converstion.
    <?xml version="1.0" encoding="UTF-8"?>
    <StockBalanceFlatfile><Rows><SBR>
    <Type>1</Type>
    <Mode>A</Mode>
    <Owner>XXX</Owner>
    <SKU>10363501</SKU>
    <Quantity>00000013</Quantity>
    <UOM>PC</UOM>
    <Attr1>2476</Attr1>
    <Status>0000</Status>
    <Filller>----
    </Filller>
    <ELM>*</ELM>
    <CRLF>CRLF</CRLF>
    </SBR></Rows></StockBalanceFlatfile>
    Best Regards
    Claes

    Claes,
      Use the below content conversion parameters.
    <u>Content Coversion Parameters</u>
    <b>Recordsetstructure</b>    StockBalanceFlatfile,Rows,SBR
    <b>Name</b>     <b>Value</b>
    SBR.endSeparator           'nl'
    If it doesn't help, reply back.
    Best Regards,
    raj.

  • Sender File Adapter : File Name Determination

    Hi All,
    My Scenario :
    1) Im my scenario i need only the "FileName" of the File when picked up by the Sender File Adapter.
    2) Rest Content of the File need not be in the XML file format.
    Now what i did was developed "File Adapter Module " to get the "FileName" when picked up by the Sender File Adapter.
    Outcome : When i put the developed module at first and put the file in specified folder allowint the Sender file Adapter to pick up. Now Everything is fine working when one kind of File is placed as per my Content Coversion paramaters.
    Actual : My Client would place file of any kind (.jpeg -> Mostly , gif ) i need to get only the file name in the Outbound interface , which i would split it further to my Target Interface.
    How could i achieve this , when i took away this content conversion , in sxmb_moni it shows error.I need only the filename in the Outbound not the Content , moreover the hit is i donot know what could be content of my file as it could be different and varing , so i could not set particular content conversion paramters:
    Second Question:
    Now my outbound XML interface looks as below when i test with a file , with proper content conversion paramerters:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <MT_DMS_FINAL>
    - <Record>
    - <Row>
      <FirstName>2323_eer_rtr</FirstName>
      </Row>
      </Record>
      <FileName>d:\mdmtest\srinivaS\padusrini.txt</FileName>
      </MT_DMS_FINAL>
    Well i have designed in my MI only FirstName , how to capture this element "FileName" which i can use it in mapping , if i have to write any UDF to capture it ,please guide me.
    thx in advance for u r help
    with regards
    Srini

    Hi Guys ,
    Can i use File Content Conversion for .pdf document , my pdf doc content is not known, means it"s a complete info doc.I may get .jpeg any picture or drawing.
    I thought i can use below file content conversion paramters:
    Document Name : MT_DMS_FINAL
    RecordSet Name : Record
    RecordSet Structure : Row,*
    Row.fieldNames - FirstName
    Row.fieldSeparator - ;
    Row.processFieldNames - fromConfiguration
    Row.additionalLastFields - ignore
    Row.missingLastfields  -  ignore
    Now i put a pdf doc of unknown content , and my assumption was some set of charater would be dumped in  XML and rest would be ingonered which is least bothered part in my scenario , unless i get the filename from runtime ot Adapter module developed
    But in RWB CC monitoring i see below error :Error: org.xml.sax.SAXParseException: Illegal XML character:  &#xb;.
    Any views on this , can any one help me out with the above requirment. Hope u guys got wat am trying to put out here
    thx in advance for u r help
    with regards
    Srini

  • Doubt regarding Recever file adapter file content conversion (FCC)

    Hi Expetrts, below is the my target structure.
    <?xml version="1.0" encoding="TF-8"?>
    <ns1:MT_StatusChange xmlns:ns1="urn:passhe.com/ChangeOfStatusISA26">
         <IV_ST_OBJID>65390091</IV_ST_OBJID>
         <IV_BEGDA>25082008</IV_BEGDA>
         <LT_STUDENT_STATUS>
               <item>
              <HS_CAMPUS>65</HS_CAMPUS>
              <STOBJID>65390091</STOBJID>
              <STUDENT12>michal</STUDENT12>
              <HS_STATUS>MISC</HS_STATUS>
               <item>
            <LT_STUDENT_STATUS>
    </ns1:MT_StatusChange>
    How to configure in File Content Conversion Recever File Adapter for above target structure. i have done as below, but i am getting error.  please correct me where i did mistake.
    Recordset Structure : IV_ST_OBJID,IV_BEGDA,LT_STUDENT_STATUS,item
    IV_ST_OBJID.fieldNames : IV_ST_OBJID  -> for this field there is no subfield
    IV_ST_OBJID.fieldSeparator: , (comma)
    IV_BEGDA.fieldNames : IV_BEGDA -> for this field there is no subfield
    IV_BEGDA.fieldSeparator: , (comma)
    LT_STUDENT_STATUS.fieldNames  : HS_CAMPUS,STOBJID,STUDENT12,HS_STATUS
    LT_STUDENT_STATUS.fieldSeparator: 'nl'
    item.fieldNames  : HS_CAMPUS,STOBJID,STUDENT12,HS_STATUS
    item.fieldSeparator: , (comma)
    I am getting below error:
    'Conversion configuration error: Unknown structure 'ns1:MT_StatusChange' found in document', probably configuration error in file adapter (XML parser error)'
    Thanks
    Dhanush.

    Hi Dhanush,
                        It is better always if u have a structure with Header and trailers if u have a subsrtuctures in it & always try make it in this format:
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_ContentConversion_Test>
       <Header>
          <F1>HF1</F1>
          <F2>HF2</F2>
       </Header>
       <Item>
          <F1>IF1</F1>
          <F2>IF2</F2>
       <Item>
       <Trailer>
          <F1>TF1</F1>
          <F2>TF2</F2>
       </Trailer>
    </ns0:MT_ContentConversion_Test>
    Try to go through this blog it will be very helpful to u :
    /people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts
    Regards,
    Vinod.

  • File Adapter -- File Format (Mapping Error)

    Hi All, am using a file adapter to pick up file using content conversion , but i can see it happens to be mapping error, i have set all in right format but below one thing i cud not understand how to change, as shown bellow.
    Test XML format in mapping:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_DMS_FINAL xmlns:ns0="http://dms:scenario">
       <Record>
          <Row>
             <FirstName/>
          </Row>
       </Record>
    </ns0:MT_DMS_FINAL>
    actual XML picked up by Sender File Adapter:
      <?xml version="1.0" encoding="utf-8" ?>
      <ns:MT_DMS_FINAL xmlns:ns="http://dms:scenario">
      <Record>
      <Row>
      <FirstName>296501_000_00</FirstName>
      </Row>
      </Record>
      </ns:MT_DMS_FINAL>
    The difference between both is the "ns0" and "ns" , how to make it equal , which part is to be modified to make it equal, kindly revert back with solution.
    With regards
    Srinivas

    Hi ,
    Thx for replies , i followed as shown in above blog and went fine but there is mapping error as shown below,
    xml format after pick by sender file adapter
      <?xml version="1.0" encoding="utf-8" ?>
      <MT_DMS_FINAL>
      <Record>
      <Row>
      <FirstName>296501_000_00</FirstName>
      </Row>
      </Record>
      </MT_DMS_FINAL>
    xml file format from test tab in Message mapping
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_DMS_FINAL>
       <Record>
          <Row>
             <FirstName>296501_000_00</FirstName>
          </Row>
       </Record>
    </MT_DMS_FINAL>
    See above xml first statment is different , how to make it equal
    Help
    Srini

  • File Adapter: File Deletion Failure

    Hi everyone.
    My File Adapter is having trouble deleting a file that I placed on a server through FTP. Even after executing chmodd 777 on that file. But, my File Adapter will delete a file that was created by another File Adapter on that same server.
    Any suggestion as to why the File Adapter is able to delete a file created by another File Adapter but not able to delete a file uploaded through FTP?

    984188 wrote:
    It is relevant in this case. As my original post stated, my SynchRead File Adapter will delete a file that is create by my Write File Adapter.The way you write the file is irrelevant... The user that is writing the file is the key... It works FileAdapter to FileAdapter because in that case the user that creates is the same that deletes... Anyway, the solution for your problem is to chmod directory where the files are...
    I reckon your directory is sticky so one user can not delete files from the other user...
    Read this...
    http://linuxgazette.net/issue39/tag/5.html
    Cheers,
    Vlad

  • Sender file adapter, file existence check in archive folder if exists rename the same and proceed with current file

    Dear SAP Gurus
    Interface flow:
    File --> File and RFC.
    We have a requirment where PI needs to check the file existency in archive folder and if there is a file already exists with same name we need to rename that file and archive the current file as is...
    Note* Customer don't want to add time stamp!!!!
    For ex today first message processed with file name "UBMO_delta20140626.xml" and archived as is- UBMO_delta20140626.xml
    and customer sends a second file on the same day with same name(UBMO_delta20140626.xml) in this case before archiving PI needs to check whether there is a file exists already in archive folder or not if there is, then it should rename the same like(UBMO_delta20140626_1.xml) and proceed with current message processing and archive the same name(UBMO_delta20140626.xml).
    Many Thanks in advance...
    Nagesh

    Hi Nagesh,
    I think you can use the feature of run operating system command before message processing. you can refer the below wiki for information.
    SAP XI File Adapter OS Command Line Feature - Process Integration - SCN Wiki
    regards,
    Harish

  • Sender File adapter File Conversion with key fields

    Please help me guys, I already spent way too much time on this!
    I checked a couple of BLOGs and I think I'm doing the right thing except I'm not getting the result I would expect.
    I'm trying to create an IDoc using the from a flat file.
    I get the following error:
    During the application mapping com/sap/xi/tf/_MM_TEST_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~
    The Source file is this:
    H
    L0015
    The file adapter does create the XML below (looks fine):
      <ns:MT_SINGLE xmlns:ns="http://PPSC_TO_BO_INVOICE">
      <HEADER>
         <ID>H</ID>
      </HEADER>
      <LINE>
         <ID>L</ID>
         <SITE>0015</SITE>
      </LINE>
      </ns:MT_SINGLE>
    When I test the map in IR, with the XML that this file adapter created (above) it works fine!
    Also if I take away the HEADER from the source structure everything works fine and I can create the IDoc, therefore I think something must be wrong in the file conversion, the mapping is so simple there is nothing to fail there.
    The file conversion parameters that I have:
    Document Name: MT_SINGLE
    Document Namespace: http://PPSC_TO_BO_INVOICE
    Document Offset:
    Recordset Name: 
    Recordset Namespace:
    Recordset Structure: HEADER,1,LINE,*
    Recordset Sequence: Ascending
    Recordset per Message:
    Key Field name: ID
    Key Field Type: String (Case-Sensitive)
    LINE.fieldNames: ID,SITE
    LINE.fieldFixedLengths: 1,4
    LINE.keyFieldValue: L
    HEADER.fieldNames: ID
    HEADER.fieldFixedLengths: 1
    HEADER.keyFieldValue: H
    What am I doing wrong???
    Any help is much appreciated.
    Thanks,
    Viktor Varga

    Hi Viktor,
    Basic rules:
    1. Down load XML payload(output From Adapter) and test it in IR mapping program. If it is working there is no reason why it will fail in Runtime. Also Check Cache is up to date.
    Generally the problem lies with namespace.
    Hope this helps
    Regards,
    Satish

  • File adapter: file processing in correct sequence

    Hello All
    We have inbound file scenario.
    File will be picked up and processed by XI and sent to SAP system.
    All the files have to be processed in the same sequence.
    Once the file is picked and processed in XI, data will be sent to receiving SAP system thru proxy call.
    But, if there is an error in processing received data in the receiving system (because of duplicate data or any other application related error, which is specific to receiving application), how can we stop XI from picking and processing the next file?
    Second file should be picked and processed by XI only after 1st file is successfully processed by the receiving system.
    How can i ensure this?
    Please let me know...
    Many Thanks
    Chandra

    Hi Chandra
    If you are on NFS then you can enable Processing Sequence by Name or Date in sender file adapter. With this you need to implement EOIO this allows messages to be picked in sequence and process in queue. If one of the file failed the queue will error.
    To avoid more than one thread processing you can use additional parameter "clusterSyncMode" refer Note 801926.
    With the above other solution can be creating a SYNC  or interface that can act as an ACK from the system then you process the next message. BPM can also be useful if you use Fault messages and capture them for errors for processing of next message.
    Hope above info can be used to come to a final approach for you
    Thanks
    Gaurav

  • File Adapter - File Content Conversion to XML last element missing

    I'm using the SAP File Adapter with File Content Conversion to convert | (pipe) delimited records into XML.
    When the last field is blank, I would expect that an empty node gets created, however, the node doesn't get created at all.
    For example given these settings...
    Record.fieldSeparator = |
    Record.endSeparator = 'nl'
    Record.fieldNames = FIELD1,FIELD2,FIELD3
    Using this three record file as my data...
    |123|XYZ
    ABC||XYZ
    ABC|123|
    When converted to XML, this is what the recordset XML structure looks like...
    <Recordset>
    <Record>
    <FIELD1 />
    <FIELD2>123</FIELD2>
    <FIELD3>XYZ</FIELD3>
    </Record>
    <Record>
    <FIELD1>ABC</FIELD1>
    <FIELD2 />
    <FIELD3>XYZ</FIELD3>
    </Record>
    <Record>
    <FIELD1>ABC</FIELD1>
    <FIELD2>123</FIELD2>
    </Record>
    </Recordset>
    Notice that the last record is missing the "FIELD3" element.
    Edited by: William Krick on Jun 17, 2011 4:49 PM

    Giuseppe Agnello wrote:
    > Sorry, there was a typo in the parameter name.
    > Word fields should start with capital F.
    > Try with Record.missingLastFields, with value "add"
    >
    > http://help.sap.com/saphelp_nw70/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    >
    > Similar issue was resolved with same parameter in this thread:
    > Sender file adapter with FCC not creating last field
    That did the trick.  It was a typo.  Thanks Giuseppe.
    I'm willing to bet that this parameter was added to fix the parsing bug without breaking existing users that had already worked around the original bug.   You shouldn't really have to special case the last field.

  • Sender File Adapter - File Content Conversion

    Hello,
    i do have a problem with the file content conversion at the sender file adapter.
    I have configured the file content conversion with key field defined
    keyfield: key
    recordsetstructure is set as head,1,item,*
    head.fieldSeparator  | 
    head.beginSeparator  |
    head.endSeparator  |
    head.keyFieldValue  H
    head.fieldNames  key,....
    item.fieldSeparator  | 
    item.beginSeparator  |
    item.endSeparator  |
    item.keyFieldValue I
    item.fieldNames  key,....
    When i run it like this it will not read since it has a problem to identify the key fields.
    When ever i change the whole logic to be not based on fieldseparator but on fixed length, everything is working perfectly fine.
    but this unfortuantly doesn't help as i have no fixed structure for the rest of the fields.
    also when i change the recordsetstructure to head,1,item,1 my file is also processed correctly, of corse only for the first line, it at least tells me that the file structure is correctly defined.
    Can anyone help why the identification for the keyfields doesn't work with field names and separator but in the same set up with fixed lengths ?
    thanks a lot

    Hello All,
    thanks for the helpful answers.
    So i tried Jayan tip and removed the begin Separter.
    Unfortuantly my file is really looking like this |H|...|...| for the header record
    and for the item record |I|...|...| ( this was an" I" like in Item ...
    In my opinion this means i really do have a begin seperator which is the same like the field separator.
    When i removed it from both the file and the config it started to work.
    So i wrote an java function which will trow away the first digit in this case and integrated it in my szenario.
    So that when this file is read there is no | as a begin flag anymore.
    And the whole thing starts to work, this sounds more like a bug then a feature but anyway i am happy.
    so thanks a lot
    Tina

  • File Adapter: File name when using event

    I'm using the Bea file adapter 7.0 to retrieve ascii files from the file system
    and this triggers a business process in WLI. Is there any way that you can get
    the name of the file when doing this? And is there a way to dynamically name a
    file when you write it to the file system using the file adapter?

    Dear Prakasu,
    In reply to your help
    "Select the Time out tag.
    Fill the require time limit.Like if you want to process a file with in 10 min then maintain 10 min.
    If the file is not transfered with in 10 min then adapter consider an error and through the error.Use alert for adapter errors and send the alert."
    I didn't find Time Out in sender Adapter,Time Out Flag is visible in OS CMDS..
    Can you explain me in more details..
    Thanks
    Prabhakar

  • Need help in file adapter file format

    While accessing an exeL (.xls)file as input using file adapter what will be the format of the sample file. If i give .txt then it is not showing any column.

    BPEL cannot read excel files without some custom java code. If you want to do just pass through you can use opaque message type.
    If you need to do transformation your file needs to be text based. So if you convert you xls file to a csv file you will be fine. Renaming the extension is not enough.
    There are many solutions out there for reading excel files.
    cheers
    James

  • FTP file adapter: file access permissions do not allow the specified action

    Hi,
    I have the File to JDBC scenario. The file is extracted in AL11 folder of the Sending (BW) system.
    The folder is FTP enabled and the Unix admin says he has given full authorization to both the folder and ftp user.
    But in the File CC I get the following error "Could not process due to error: com.sap.aii.adapter.file.ftp.FTPEx: 550 TSMSACAIX5350.tar.gz: The file access permissions do not allow the specified action."
    Can some one advice what is wrong. Im pretty much sure it has to be a problem with the UNIX permission. But the unix admin person says he has given a full permission.
    I need to know what permissions needs to be given??  Is there different permissions for application level and OS level??
    Pls advice
    Thanks
    Prasanna

    >
    Prasanna Shanmugasundaram wrote:
    > Hi,
    > I have the File to JDBC scenario. The file is extracted in AL11 folder of the Sending (BW) system.
    > The folder is FTP enabled and the Unix admin says he has given full authorization to both the folder and ftp user.
    > But in the File CC I get the following error "Could not process due to error: com.sap.aii.adapter.file.ftp.FTPEx: 550 TSMSACAIX5350.tar.gz: The file access permissions do not allow the specified action."
    >
    > Can some one advice what is wrong. Im pretty much sure it has to be a problem with the UNIX permission. But the unix admin person says he has given a full permission.
    > I need to know what permissions needs to be given??  Is there different permissions for application level and OS level??
    >
    > Pls advice
    >
    > Thanks
    > Prasanna
    In CC you set ON the delete mode, after processing file? Maybe, the file have read only permission....

Maybe you are looking for

  • Quality issues with Pre and the Touchstone, are you kidding?

    Hi there, I´m really pissed off Palm and the quality of their products: I got yesterday my third Palm Pre, first one had the oreo-effect (it was possible to move the slider arround 0.5 cm to the right and left), the second one had a problem on the di

  • PI sheet : CO54 messages

    Hi Experts, We have a z Function module for a PI sheet process message. The functionality coded in this FM is to post a GR (material document). We have a event driven job which is triggering this Z fm. We are facing the issue, in some cases there are

  • PR line item deleted after GR done

    PO 4501031282 item 10 is stil valid with respect to  req 11627204 has been deleted.  How is this possible? Last GR done 16.01.2011 and requisition is deleted 10.05.2011.  How is it possible to delete PR line item after GR has been done?

  • Displaying Folder name in WEB I Report

    Post Author: mega-bo CA Forum: WebIntelligence Reporting Hey, I need to display the folders path, where the report has been taken/open from, in the WEB I report. like this Eg.,-.. /Datawarehouse folder/Lab Test/Lab Result Report any formula?

  • Portal Certification

    hi all, i need information about system monitors in SAP Web AS Java and SAP Web AS ABAP? can any body help me or has some info about it?