Inbound File Adaptor

Hi Guys,
I have a situation where I would like to receive an XML file into XI and map it to an IDOC and post a transaction in R/3.
I have been able to pick up the XML using the inbound file adaptor.  The problem that I am experiencing is that the XML file is encoded using UTF-16.  The XML file also has BOMs.  I have tried creating a new data type from the XSD but get a parsing error. So I created a new data type manually using the values that are given to me in the XSD file.  When I try and test the mapping I get an error.  I keep getting a parsing error that indicates to me that it cannot map the XML file that it receives to the data type that I have created.  It appears that XI is not able to read this UTF-16 file.  Has anyone had this situation before? Can XI handle UTF-16 and BOM?
When creating the data type, do I have to include the BOM and BO elements?
Any help would be appreciated!
Thanks very much,
Miguel

Hi Rajan,
Yip, I have tried this already and it works fine.  I have also tried uploading an IDoc and that too works fine.  This leads me to think that my problem actually lies in the way that my data type is defined and not the actual file adaptor. I think that by finding out whether I should include the BOM and BO elements in my data type would probably help towards solving this problem, because I think that if XI is able to read UTF-16 fine, then it would automatically know that a BOM and BO element is going to be there and would ignore these elements in the XML file.
Here is the test XML file that I am trying to read into XI:-
<?xml version="1.0" encoding="UTF-16"?><BOM><BO><AdmInfo><Object>13</Object><Version>2</Version></AdmInfo><Documents><row><DocNum>127</DocNum><DocType>dDocument_Items</DocType><HandWritten>tNO</HandWritten><DocDate>20050908</DocDate><DocDueDate>20050908</DocDueDate><CardCode>0000000006</CardCode><CardName>Test 2</CardName><Address>3
1690 MBABANE
SWAZILAND</Address><DiscountPercent>0.000000</DiscountPercent><DocCurrency>GBP</DocCurrency><DocRate>0.000000</DocRate><DocTotal>58.750000</DocTotal><Reference1>127</Reference1><Comments/><JournalMemo>AR Invoice - 0000000006</JournalMemo><PaymentGroupCode>-1</PaymentGroupCode><DocTime>1410</DocTime><SalesPersonCode>-1</SalesPersonCode><TransportationCode>-1</TransportationCode><PartialSupply>tYES</PartialSupply><Confirmed>tYES</Confirmed><SummeryType>dNoSummary</SummeryType><WareHouseUpdateType>dwh_Stock</WareHouseUpdateType><ContactPersonCode>67</ContactPersonCode><ShowSCN>tNO</ShowSCN><Series>1000</Series><TaxDate>20050908</TaxDate><Address2>Street 1
Garankuwa
1560 SOUTH AFRICA</Address2><ShipToCode>Ship to</ShipToCode><Rounding>tNO</Rounding><RevisionPo>tNO</RevisionPo><BlockDunning>tNO</BlockDunning><PaymentBlock>tNO</PaymentBlock><MaximumCashDiscount>tNO</MaximumCashDiscount><DeferredTax>tNO</DeferredTax><NumberOfInstallments>1</NumberOfInstallments><ApplyTaxOnFirstInstallment>tYES</ApplyTaxOnFirstInstallment><UseShpdGoodsAct>tNO</UseShpdGoodsAct><DocumentSubType>bod_None</DocumentSubType></row></Documents><Document_Lines><row><BaseType>-1</BaseType><ItemCode>A1000</ItemCode><ItemDescription>Boxing Gloves</ItemDescription><Quantity>1.000000</Quantity><Price>50.000000</Price><Currency>GBP</Currency><DiscountPercent>0.000000</DiscountPercent><LineTotal>50.000000</LineTotal><VendorNum>Box 12321</VendorNum><WarehouseCode>01</WarehouseCode><SalesPersonCode>-1</SalesPersonCode><CommisionPercent>0.000000</CommisionPercent><AccountCode>410000</AccountCode><TaxLiable>tYES</TaxLiable><UseBaseUnits>tNO</UseBaseUnits><SupplierCatNum/><CostingCode/><ProjectCode/><BarCode/><TaxPercentagePerRow>17.500000</TaxPercentagePerRow><VatGroup>O1</VatGroup><PriceAfterVAT>58.750000</PriceAfterVAT><Height1>0.000000</Height1><Height2>0.000000</Height2><Width1>0.000000</Width1><Width2>0.000000</Width2><Lengh1>0.000000</Lengh1><Lengh2>0.000000</Lengh2><Volume>0.000000</Volume><VolumeUnit>4</VolumeUnit><Weight1>0.000000</Weight1><Weight2>0.000000</Weight2><Factor1>1.000000</Factor1><Factor2>1.000000</Factor2><Factor3>1.000000</Factor3><Factor4>1.000000</Factor4><SWW/><Address>Clockhouse Place
London
Middlesex TW14 8HD
UNITED KINGDOM</Address><ShippingMethod>2</ShippingMethod><DeferredTax>tNO</DeferredTax><CorrectionInvoiceItem>ciis_ShouldBe</CorrectionInvoiceItem><CorrInvAmountToStock>0.000000</CorrInvAmountToStock><CorrInvAmountToDiffAcct>0.000000</CorrInvAmountToDiffAcct><ExciseAmount>0.000000</ExciseAmount><ConsumerSalesForecast>tNO</ConsumerSalesForecast><U_Franch>HK</U_Franch></row></Document_Lines><SerialNumbers/><BatchNumbers/><Document_LinesAdditionalExpenses/><DocumentsAdditionalExpenses/><WithholdingTaxData/></BO></BOM>
Thanks for the help,
Miguel

Similar Messages

  • Performanse problem: file adaptor

    hi all,
    i read data from 17 mb file with file adaptor after i insert that to database. there is a performance issue. my file's wsdl is below. Any Suggest?
    <jca:operation
    PhysicalDirectory="/home/oracle"
    ActivationSpec="oracle.tip.adapter.file.inbound.FileActivationSpec"
    PhysicalArchiveDirectory="/home/oracle/tmp"
    DeleteFile="true"
    IncludeFiles=".*a\.txt"
    PublishSize="1000"
    PollingFrequency="120"
    MinimumAge="0"
    OpaqueSchema="false" >
    </jca:operation>

    Hi...
    File size a problem with File and Ftp adpater, to resovle this you can use file debatching in the in read adater (file/ftp).
    Update the WSDl of adapter for doing the same .
    In that case there will be more then one instace of BPEL ,as per the define size of debatching.
    Thanks

  • File adaptor

    hi, i have a doubt . my requirement is i want to send a flat file as a flat file using file adaptor. in that my structure consists 236 fields, i cant specifiy each and every field in that. it takes more time.
    is there is any alternative for this.

    Hi,
    If both sender and receiver are flat file with content conversion with coma saeparated then there is a way to solve it.
    - first my doubt is , you wat the same file from source to target , no structure modification, is it correct , or you want do some thing in mapping ??
    So-
    create a data type under row as root node with 0..unbound, message type . and create outbound interface and inbound interface with same mt.
    so no need of mapping.if you dont have to do any thing in mapping except one to one.
    and rest of config is same .
    Only you have to give the file cc is
    file record structure ; row
    processing parameters
    ignorerecordset ; true
    row.fieldSeparator : ,
    row.endseparator ; 'nl'
    Regards
    Chilla

  • Is it possible to create an inbound SOAP Adaptor for an ESB routing service

    I have been given a pre-defined wsdl file that defines the inputs to an ESB service and I wa wondering whether it is possible to create an inbound SOAP adaptor or whether this is actually an outbound adaptor. I am new to SOAP adaptors so need a little bit of guidance.
    Hopefully someone can help.

    Hi,
    In your case you need to create an Routing Service. If you create an esb project you can select Routing Service from the ESB Services entry in the Component Palette. You then get the option Select Existing WSDL. The SOAP adapter is only used for outbound SOAP messages. If you define a routing service it is available as a 'webservice' with a wsdl (in this case the one you define) from the console.
    Kind Regards,
    Andre Jochems

  • Inbound Files Create Sales Order With Reference To Quotation

    Dear All,
    I am working one Assignments For Sales Order Creation Through Inbound Files and Its working fine.
    But I have one Issue during creation of Sales Order through inbound files ( Which Contains Quotation Number Which Already Exist in SAP ) and Quotation Number updated in PO Number (BSTKD) filed in Sales Order.
    And My Problem is How we can update Quotation in Document Flow during creation of Sales Order through inbound files..
    Any Help or Suggestion will very helpful for me.
    Thanx in Advance.
    Regards
    Vijay Maurya

    Dear All,
    I am working one Assignments For Sales Order Creation Through Inbound Files and Its working fine.
    But I have one Issue during creation of Sales Order through inbound files ( Which Contains Quotation Number Which Already Exist in SAP ) and Quotation Number updated in PO Number (BSTKD) filed in Sales Order.
    And My Problem is How we can update Quotation in Document Flow during creation of Sales Order through inbound files..
    Any Help or Suggestion will very helpful for me.
    Thanx in Advance.
    Regards
    Vijay Maurya

  • Issue in File Adaptor

    Hi,
    I am using a file adaptor to poll file from a location and process the records and to call an java callout in the same proxy which will accept filename with file path as argument.But this java callout always reurns filenotfound error.I also tried to give stage directory value/archive directory along with file name.But getting the same error.Kindly help me to find the location of polled file(but proxy is still processing).
    Thanks
    Jayanthi

    poll file from a location ... proxy which will accept filename with file path as argumentJava callout will run on the host OSB server is running... File must be in that same host... If it's not you will have to write the file before passing to the java callout... But probably passing the content as a byte array to the java callout would be a better option...
    Cheers,
    Vlad

  • Error in Inbound File Adapter

    Hello,
    The scenario :
    Flat File => XI => Enterprise (4.7)
    I'm getting the following error in the Adapter Engine at time of Reloading the new inbound file adapter.
    ==========
    <i>***** Tue Jul 06 11:46:54 EDT 2004 *****
    11:46:59 (4023): File adapter initialized successfully
    11:46:59 (4007): File adapter started
    11:47:03 (4050): ERROR: Unexpected exception "com.sap.aii.messaging.adapter.ftp.FTPEx: Unknown extension in database file name." occurred</i>
    ==========
    The inbound file adapter is as below ... :
    ==========
    <i>classname=com.sap.aii.messaging.adapter.ModuleFile2XMB
    mode=FILE2XMB
    XMB.TargetURL=http://host123:8001/sap/xi/engine?type=entry
    XMB.SenderBusinessSystem=Sender_System
    XMB.SenderInterfaceNamespace=http://abc.com/xi/
    XMB.SenderInterfaceName=DataFile_Out
    XMB.User=xisuper
    XMB.Password=xipass
    XMB.ReceiverBusinessSystem=ENT
    XMB.ContentType=text/plain
    XMB.ContentKind=T
    XMB.QualityOfService=EO
    file.sourceDir=
    file.sourceFilename=DATAFILE
    file.processingMode=test
    file.pollInterval=060
    ftp.host=100.200.300.400
    ftp.port=21
    ftp.user=userid
    ftp.password=passwd
    ftp.mode=Text</i>
    ==========
    Any help is greatly appreciated.
    Thanx in advance.
    Homiar.

    All,
    Problem is solved. I changed the value for the Source directory & the adapter started to poll.
    Thanx,
    Homiar.

  • File Adaptor....... system command after file processing

    i am creating 2 files with file adaptors..
    lest say a1.txt and a2.txt..
    in the file adaptor i am specifying the path of a batch file which is located at the same location where these 2 files are created......this batch file should run after message processing
    i am using this .bat file to create a file by combining these 2 files and delete these 2 files after that...
    but nothing seems to be happening..after the 2 files are created.
    seems like the command is not getting triggered which it is suppose to after message processing.
    please help

    Hi Tarun,
    Check this blog, Might give u some idea as well...
    <a href="/people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions: Command line sample functions</a> By Michal Krawczyk
    <a href="/people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi Command - Executing Unix SHELL scripting</a> By Sameer Shadab
    Regards
    San
    Where there is a <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/weblogs?blog=/weblogs/topic/16">blog</a> there is a Way.

  • Get File name of the inbound file during mapping

    Scenario: to read the file name of the inbound file (which has date required for the mapping) during runtime.
    The requirement is to read the date of the inbound file (passed to the XI pipline by the file adapter) and populate the same in the outbound mapping structure.
    Any idea about how to do this?
    (I went through few options of using java.util.map. not successful yet)

    Hi Anand,
    I posted the same question a time ago, without any help....
    Can I find out the full filename of input file in message mapping?
    Posted: Nov 23, 2004 1:00 PM
    I have in XI 2.0 the following scenario :
    In the inbound fileadapter I read my input file. The filename of the input file is part fixed, part variable (Like INDATA01.txt, INDATA03.txt, etc).
    So in my Adapterconfiguration, I specify the filename with a wildcard (INDATA*.txt).
    What I now want to do, is in my Message Mapping use the full filename , so I can do something different for every filenumber. Is there a way where I can get the full filename available in my message mapping (I did not find the filename in the XML in the message trace).

  • Post multiple IDOCs from a single inbound file

    Hi.
    I have an inbound file with a single record structure. Each record has a field "DocumentNumber". There may be multiple records with the same DocumentNumber. The Document Number will increment to 2, 3 etc. Each set of records with the same DocumentNumber relates to a single IDOC that I want to post.
    IE
    1, various fields   <- IDOC 1
    1, various fields   <- IDOC 1
    2, various fields   <- IDOC 2
    2, various fields   <- IDOC 2
    3, etc
    I plan to use the BPM to split (transform) the file message into multiple IDOCs, using a message mapping defined in the Designer. I have done all this, and defined my Source Message as Single Occurrence (1) and my Target Message as 1:Unbounded. I therefore have a mapping within the target "Message1" structure.
    Can anybody tell me how to define my mapping flow to create a new target structure IDOC when the DocumentNumber field increments?   I was wondering about "createif" where DocumentNumber <> a global field set tot he previous value....
    Any help would be very much appreciated.
    JW
    [email protected]

    Hi Tony,
    first you have to change the occurens - look in this Blog:
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    Mapping - you need to use node funktions if you use graphical mapping (f.e. SplitByValue, CerateIf and so on)
    Good for that is this blog:
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    If you need more - keep on asking
    Regards Matt

  • File adaptor Content conversion problem

    Hi all,
    I have a client proxy > pi> CSV file scenario which im working on currently - everything is fine apart from 1 really annoying thing.
    The problem is this that when data is extracted from SAP it should put in 6 fields within the file produced e.g:
    field1,field2,field3,field4,field5,field6
    Which is fine however if one of the fields is blank there should still be the blank space which should appear instead of what it is curently doing which is ignoring the blank and shifting everything else left by 1 so:
    if out of 6 fields only 5 come out currently its doing this:
    field1,field2,field4,field5,field6      (Notice field3 is missing and there is no blank space in its place)
    What it should be doing is this:
    field1,field2,,field4,field5,field6       (Notice the blank space)
    I have gone through all the content conversion parameters I know for receiver file adaptors none have worked so if you know any which will do this please let me know!!
    Also if you know of other ways your ideas will be greatly appreciated.
    Many thanks in advance
    Edited by: Saqib Karim on Mar 5, 2009 5:45 PM

    >
    Saqib Karim wrote:
    > Hi Chirag,
    >
    > Does this mean that there is nothing in the file adaptor to cater for this and the only way is through mapping?
    >
    > I was hoping for an easier more straight forward solution along the lines of content conversion since this means that it has to apply to ALL FIELDS in the mapping!!??
    >
    > Thanks
    you solution is to alter the mapping in a simple way.
    If you are using graphical mapping then use this logic;
    Source field -> if EXISTS -> Target
                          else -> Pass an empty constant -> Target
    This will make sure an empty tag is created a the target and FCC will work fine.

  • Operating system command in file adaptor

    Hi,
    I am doing file to Idoc scenario, can i use the Operating system command in file adaptor to compress the file at FTP server and decompress the file at IE. I don’t know is it possible and if yes then how or is there any other way to handle the big files as the network speed is very low.
    Any clues!!!!!!!!!!!
    Thanks in advance
    Regards
    Swatantra

    Have a look into these threads - they seem to have the solution u need (i havnt tried it though)
    Unzip file using operating system command in file/ftp receiver adapter
    How to zip and unzip xml files dynamically by XI

  • How to increase the files picked up by File Adaptor per poll interval

    Hi,
    We have a scenario where in we post 80 files in the source directory and and the file adapter is configured for every 300 sec but i have noticed that the File adaptor is picking up one or two files per poll interval.Can some please suggest how to increase the number of files picked up by File adaptor
    Thank You,
    Nandini

    Nandini:
    Did you mention all the files names in the Adapter channel. One thing you can do is use wild cards and file adapter picks most of them
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
    In case if your files are huge, then I guess file size may cause to process few files during each poll

  • File adaptor not working.

    Hi ,
        I am trying some scenario using file adaptor but it is not working. I tried with Runtime Workbench but my adaptor entry is not there in Adaptor monitoring.
        Can anybody plz tell me how to check whether adaptor is working or not?
        I am new to XI detailed explanation will be helpful.
    Thanks in advance.
    Atul.

    Hi Atul,
    Just adding on to what Shabrish has suggested..
    I Guess you should first see if the file is being picked... for that do the following.
    While configuring your Sender File Adapter, let the mode be DELETE. This way, we will know if the file is being picked by the File adapter. The file will be deleted and you can be sure that it has been picked up.
    In your runtime workbench home, there will be a tab, Component Monitoring, click on it. Select status as all, and click on display. The components will be displayed on ur screen. In that, under Integration Server, there will be a link for Adapter Engine. Click on it. Now, scroll down, and u will see a link to adapter monitoring, there under FILE ADAPTER see the log of the file adapter
    and also, you can see the flow of your message in the integration engine in SXMB_MONI.
    Do this and let us know what is happening...
    Regards,
    Abhy

  • XI3.0  Inbound File Adapter  Error on ModuleSLDAccessir.

    Greeting,
    I have just installed the technical Adapter for XI.3 I tried to use the Inbound File adapter, unfortunately I had two big issues:
    1- I was able to execute run_adapter.bat but nothing was reaching the XI system.
    When I checked the Log File: I found the following error:
    Oct 13, 2004 1:22:08 PM  ...aii.messaging.adapter.ModuleSLDaccess [Thread-9] Error: Initializing ModuleSLDaccessor failed with 'java.lang.NoClassDefFoundError: com/tssap/dtr/client/lib/protocol/HTTPException'
    2- Second issue: when I try to access the adapter via the browser, the HTML page are not correct ! there is no text displayed. I just got code like :  {!%5124_G_XMIT%!}
    is there other setting to do ? I followed exactly the install book !
    Thanks for your help.
    Regards.
    M. Zehana
    Any help is more than welcome.

    Check that you are using XI 3.0. You dont have to use the run_adapter.bat unless you are using the J2SE adapter ( which is 2.0 ) to communicate with an XI3.0 IS.  If you have XI3.0 the adapters are configured in the integration directory which are now called communication channels. Therefore an inbound file adapter will be called a sender communication channel.  You can create a communication channel either within a scenario or directly in the objects area for the Service ( business system etc ).
    Mark

Maybe you are looking for

  • How to add CIN condition types in Purchase Order Report

    Hi, I'm developing a purchase order report using smart forms. I have add the conditions: BED, ECess, SECess and VAT. Where from I can get each of the above values. I was told that I can get break up of CIN Tax through following Link 1.) EKKO-KNUMV <-

  • How to test system down in XI? Kindly help!

    Hi Experts,     I have a JMS -> XI ->SAP R/3 scenario.     If the remote SAP R/3 is down then I have to trigger an alert.     In the runtime workbench, i have configured the alert in Alert Configuration.     In this I have given the alert category, r

  • How can i restore my ipod touch 4g (?) without passcode or itunes

    Hi and thank you for helping as this is urgent. I forgot my passcode for my iPod, and guessed it to many times so it got disabled. The problem is I don't have iTunes and can't get it on my laptop, but need to restore my device. Right now on the scree

  • Using SSIS and SSRS with Essbase

    In Essbase, is it possible to do your ETL function using Sql Server Integration Services? And generate reports from the cube using SQL Server Reporting Services? TIA

  • Video filter viewing

    How can I view video filter changes? F'rinstance if I want to use a cylinder distortion, if I apply the filter, the preview is covered by the filter slider dialog. I want to see the changes to the image as I make them. Thanks from SF