Question about J2SE-File-Adapter

Hallo,
i would send with the J2SE-File-Adapter a *.CSV to SAP XI.
The structure in the SAP XI is:
PlaintMaintenanceMessagetype
......Datasource..................string
......Data
..........item
..............EquipmentID.............string
..............FunktionalLocation......string
..............Data....................string
..............Time....................string
The *.csv File structure is:
6ATESTDEMOYVES,
1234,
Limo,
20060105,
122030,
The configuration of the J2SE-File-Adapter is:
classname=com.sap.aii.messaging.adapter.ModuleFile2XMB
version=30
mode=FILE2XMBWITHROWCONVERSION
##File Adapter specific parameters (example, see docu)
##file.type=BIN
file.type=TXT
file.encoding=UTF-8
xml.documentName=ns:PlaintMaintenanceMessagetype xmlns:ns="http://doehler.com/sapxi/krausdemosender"
xml.structureTitle=6ATESTDEMOYVES
xml.processFieldNames=fromConfiguration
xml.fieldSeparator=;
xml.fieldNames=Datasource,EpuipmentID,FunctionalLocation,Data,Time
But it not runing! Can anybody help me? Are any How to guide to send a *.csv with the J2SE-File-Adapter.
Thanks laura
With the XML File it works. But there are ofer 40000 records in the *.csv, and i will not create this in *.xml!
The structure of the XML.File are:
<?xml version="1.0" encoding="UTF-8"?>
<ns:PlaintMaintenanceMessagetype xmlns:ns="http://doehler.com/sapxi/krausdemosender">
  <Datasource>6ATESTDEMOYVES</Datasource>
  <Data>
    <item>
      <EpuipmentID>1234</EpuipmentID>
      <FunctionalLocation>Limo</FunctionalLocation>
      <Data>20060105</Data>
      <Time>122030</Time>
    </item>
    <item>
      <EpuipmentID>1235</EpuipmentID>
      <FunctionalLocation>Bier</FunctionalLocation>
      <Data>20060106</Data>
      <Time>122031</Time>
    </item>
   </Data>
</ns:PlaintMaintenanceMessagetype>

Hi Laura,
You can navigate thru these links to get more information:
http://help.sap.com/saphelp_nw04/helpdata/en/6f/246b3de666930fe10000000a114084/content.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e698aa90-0201-0010-7982-b498e02af76b
Cheers,
Chandra

Similar Messages

  • Questions about using FILE adapter to connect to other systems

    Hi,
    in my PI scenario i am facing a problem in usage of the file adapter.
    Our PI system is installed on a UNIX server. The target system for upload an download files is a WINDOWS system. The software installed on the WINDOWS system is only able to export the needed file lokal on the WINDOWS server.
    Between UNIX systems i can connect a together used fileshare folder. But this won´t help me in my UNIX <> WINDOWS scenario.
    I thougt on using an FTP server on the WIDNOWS system to make the PI able to connect via the FTP adapter but this works fine for one or two systems. I don´t think that this ist the best solution when connection to a lot WINDOWS systems, but mayby i am wrong.
    Actually i use UC4 to copy the files between the two systems.
    Any ideas how to deal generally with such scenarios?
    Many thanks
    Michael

    Even though if you map Unix and Windows OS to read the files, in the long run the design will put you in trouble. Means it requires constant support. Better you go with unix script as per the above suggestion.
    Regards
    Pothana

  • How to get the filename from J2SE File adapter

    In our project scenario , we are using J2EE and J2SE engine both .J2EE for mapping  and J2SE for Deliveying the message .
    In one senario, routing will be based on the filename .
    J2SE Sender File adapter --- XI Adapter --- XI pipe line
    So the File reaching to XI pipelane via J2SE File adapter--> XI adapter.
    When we are using the dynamic configurator in the XI to get the filename
    we are not able to get the file name  becasue it is coming to XI via
    XI adapter.
    How to get the filename ????Hope I am clear about the problem.

    hi,
    try this
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    //obtengo la Key del FileName
    DynamicConfigurationKey keyF = DynamicConfigurationKey.getName();
    http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/api/DynamicConfigurationKey.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
    /people/mohammed.zabiulla/blog/2008/03/26/have-you-ever-tried-to-determine-mail-cc-dynamically
    Hope it helps
    Thanks
    Rodrigo
    Edited by: Rodrigo Pertierra on Apr 11, 2008 9:31 AM

  • Question about download file in OAS4

    Question about download file in OAS4:
    I use Oracle Application Server 4.0.7 on my Windows NT 4.0 SP6;
    I use PL/Sql Cartridge developer a document system; It's use the
    upload/download in PL/Sql Cartridge;
    I read the document , the Upload/download in Pl/Sql Base on the
    Oracle Application Server's Content Service. the Problem is when I
    download a document, If I upload a Html or MsWord file, It will store in a LongRaw column, when me download ; It's tell me can't
    find a application to open this file; I will select a application
    from list to open the download file;
    As normal, It will open MsWord Automatic when download a "doc" file ; also It will open a new window of Browser to view a Html file;
    I check the download process on client Browser; when download
    file, The content-type always return "application/octet-stream";
    Also the download File will lost the postfix of the file,
    So Browser don't open the File Automatic;
    I think If I set the correct Content-Type , Browser can know how open the file; So I use owa_content.set_content_type procedure
    set the Doc file to "application/msword" , but the WEb Server always
    return "application/octet-stream";
    I didn't know how to do this problem, Plese help me.
    null

    I have a Tecra M2 and rely on your email update to ensure I have the latest drivers on my machine.
    When I received a Toshiba support email on 14 April 2005 giving reference to a QFE from Microsoft I assumed it would be necessary for my Tecra.
    I was very confused when I found that this QFE and subsequent ones posted on the 16 April 2005 relate to Pre SP2 critical updates no9t required if one has already taken earlier advice of updating to Service Pack, at the very least your narrative should make mention of this. I find it very difficult to believe that your updates are two+ years out of date.

  • Question about the DB adapter

    Question about the DB adapter
    ns2006.0.7
    Question:
    It seems that we can only have 1 db adapter, but in the adapter defiition we have to specify the database.  If I want to communicate to several different databases on different platforms, Oracle / SQL I need to install a DB adapter for each database connection. 
    I can't figure out how to add a second DB adapter, does anyone know how?
    Thank you
    Daniel
    Safeway Inc.

    Hi
    We're new at developing our own agents etc. We've leveraged the supplied DB agent and written the relevant adapter, however we're struggling with the transformation.
    Could I be cheeky and ask if anyone would be willing to share a transformation they have written for the DB adapter? Unfortunately no-one in our team has had past XML experience, so we're trying to backwards engineer from examples.
    Thanks, Meghan

  • I have a question about DWG files.  Can I open them on my MacBook Pro with OX 10.9.5 system?What app do I need to view and print them?

    I have a question about DWG files.  What app will allow me to open DWG files to view them on my Macbook Pro?

    Perform this Google search: ".dwg files on mac." The results should provide answers for you.

  • Does SCWCD ask question about J2SE

    J2SE are covered by SCJP. does SCWCD exam ask question about J2SE such as collection,assersion...
    Thanks

    of course you do need to have in depth knowledge about JSE as such knowledge will be assumed (after all, you did have to pass SCJP to be able to enlist for SCWCD).
    So the subjects may turn up in questions, but they won't be the things you're tested on.

  • Question about openning files using SDK 10.

    I have written a Plug-In for SDK 9 that works wonderfully. One of the functions is for the user to be able to page (Next/Previous) between PDF files on our server. This functionality now longer works without crashing Acrobat 10. All I am doing is creating the URL path to the next/previous PDF, creating a CustomFileSys with the path and calling AVDocOpenFromFile.
    Does this no longer work with Acrobat 10 SDK?
    Thanks!

    Should work fine, AFAIK.
    For this level of issue, I would open a formal support request with developer support.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Mon, 10 Oct 2011 08:51:08 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Question about openning files using SDK 10.
    Question about openning files using SDK 10.
    created by Greggars<http://forums.adobe.com/people/Greggars> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3963065#3963065

  • Questions about properties files

    Hello,
    I have two questions about properties files.
    1. Is it possible to import a properties file from another properties file?
    2. Is it possible to have variables in a properties file as described below in code snippet.
    Thanks in advance,
    Julien.
    Code snippet:
    var_one=foo
    var_two=$var_one bar
    The second line would then read "foo bar"

    Hello,
    I have two questions about properties files.
    1. Is it possible to import a properties file from
    another properties file?If you write your own code to parse whatever import statement you decide to put in the properties file, yes. But there's no provision to do so in the core APIs or in the standard usage of these files.
    2. Is it possible to have variables in a properties
    file as described below in code snippet.Same as the answer to your first question. Though this kind of thing is more common, so there might be a library at jakarta or sourceforge or mindprod or something that does this.

  • Question about pass file name and path to file write adapter

    I need to pass file name and path to file adapter for write. I got partial answers from thread Re: Get File name using File Adapter , but seems InboundHeader_msg or outboundHeader_msg only takes file name, how do I pass file directory?
    since I still have to specify file format (like xxx_%xx%.txt) in the file adapter wizard. Will this name conflict with what the name defined in InboundHeader_msg ?
    Similarly, how can I pass a file name and path to a file synchread adapter?
    Thanks,
    Message was edited by:
    user531689

    Just overwrite the filename in the WSDL file that was generated

  • Send Filename from j2se FILE Adapter

    Hi,
    I need store filename from local file to xml element. When I use j2ee adapter there is no problem. I sended Filename to Adapter Metadata and through DynamicConfigurationKey in mapping I write it to element.
    My question is: How could i do it in j2se plain adapter? (In our customer there is no way for using j2ee adapter)
    Many thanks,
    Paul.

    hi,
    try this
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    //obtengo la Key del FileName
    DynamicConfigurationKey keyF = DynamicConfigurationKey.getName();
    http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/api/DynamicConfigurationKey.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
    /people/mohammed.zabiulla/blog/2008/03/26/have-you-ever-tried-to-determine-mail-cc-dynamically
    Hope it helps
    Thanks
    Rodrigo
    Edited by: Rodrigo Pertierra on Apr 11, 2008 9:31 AM

  • J2SE file adapter

    i,
    When I post a XI message via SAP PI 7.10 SP7 integration server to a J2SE adapter engine to a file adapter, then when I use mode "XMB2FILE" in the receiver file adapter configuration on the J2SE Adapter Engine then the XML file is delivered into the appropriate folder with the correct XML format and content (As expected). However when I change the mode to XMB2FILEWITHCONVERSION then message fails in the integration Engine on the PI server.
    With:
    <Trace level="2" type="T">Addressing mode: url</Trace>
      <Trace level="3" type="T">Host = "HOST"</Trace>
      <Trace level="3" type="T">Port = 8111</Trace>
      <Trace level="3" type="T">Transport protocol = HTTP 1.0</Trace>
      <Trace level="3" type="T">Message protocol =</Trace>
      <Trace level="3" type="T">Path = /file/receiver?action=execute&pipelineid=Receiver</Trace>
      <Trace level="2" type="T">Auth mode: basicNonSAP</Trace>
      <Trace level="3" type="T">Conversion of language from char2 to char1</Trace>
      <Trace level="3" type="T">User = rip</Trace>
      <Trace level="3" type="T">Client =</Trace>
      <Trace level="3" type="T">Language =</Trace>
      <Trace level="3" type="T">Creating HTTP-client</Trace>
      <Trace level="3" type="T">HTTP-client: creation finished</Trace>
      <Trace level="3" type="T">Security: Basic authentication</Trace>
      <Trace level="3" type="T">Serializing message object...</Trace>
      <Trace level="3" type="T">HTTP-client: sending http-request...</Trace>
      <Trace level="3" type="T">HTTP-client: request sent</Trace>
      <Trace level="3" type="T">HTTP-client: Receiving http-response...</Trace>
      <Trace level="3" type="T">HTTP-client: response received</Trace>
      <Trace level="3" type="T">HTTP-client: checking status code...</Trace>
      <Trace level="3" type="T">HTTP-client: status code = 500</Trace>
      <Trace level="3" type="T">Deserializing message object...</Trace>
      <Trace level="3" type="System_Error">Error while sending by HTTP (error code: 500, error text: Internal Server Error:java.lang.NullPointerException)</Trace>
      </Trace>
      </Trace>
      <Trace level="3" type="System_Error">Error exception return from pipeline processing!</Trace>
      <Trace level="1" type="T">Persist Message in Retry State</Trace>
    A file is created in the target folder with no content and each time PI retries a new file is created.
    If I look at the J2SE adapter trace file the following error is displayed:
    Apr 3, 2009 3:05:03 PM   ...i.messaging.adapter.XMB2FileProcessor [Thread[Thread-1145,5,main]] Error: Message processing failed with
    java.lang.NullPointerException
         at com.sap.aii.af.sdk.xi.adapter.Conversion.convertXML2Plain(Conversion.java:621)
         at com.sap.aii.messaging.adapter.XMB2FileProcessor.persistFile(ModuleXMB2File.java:1658)
         at com.sap.aii.messaging.adapter.XMB2FileProcessor.onMessage(ModuleXMB2File.java:1346)
         at com.sap.aii.messaging.adapter.ModuleHttpServer$ListenerDetails.onMessage(ModuleHttpServer.java:448)
         at com.sap.aii.af.sdk.xi.net.HTTPRequest.run(ServerHttpImpl.java:437)
    Please can you assist in the resolution of this problem?
    Regards
    Willie Hugo

    Hi Stefan,
    Thank for the prompt reply. I am sending the XI message to a plain J2SE Adapter Engine. As I under stand the process, the XI message XML to flat file conversion will take place in the J2SE Adapter Engine in the File Adapter, configured there. If I under stand correctly we need to deploy a patch to the J2SE Adapter Engine and the note refers to XI 3.00 & 7.00, these Adapter Engines I can only assume is J2EE. Also the scenario described in the note is from csv to XML and not the required XML to CSV.
    Please can you assist further?
    Regards
    Willie Hugo

  • J2SE File Adapter fails (rcv adapter is STARTED but no messages)

    Hi,
    The J2SE Adapter Engine with a file receiver adapter keeps failing. The symptoms are as follows:
    1. We transfer a large number (20-25K) of files.
    2. At some point, the J2SE adapter stops receiving messages.
        The status on the adapter home page indicates that it is started. Restarting the file receiver adapter doesn't fix the problem.
    We noticed that before the crash the following entries appear in the J2SE Adapter Engine Trace files
    Mar 21, 2010 9:20:26 PM  ...ap.aii.messaging.net.HTTPServer.run() [Thread[Thread-24,5,main]] Info: TCP request received from pxpci.fil-eu.sv.philips.com
    Mar 21, 2010 9:20:32 PM  ...equest, HttpServletResponse response) [Thread[Thread-45969,5,main]] Error: java.lang.NullPointerException
         at com.sap.aii.messaging.adapter.Zone.service(ModuleGUIBrowserEngine.java:1167)
         at com.sap.aii.messaging.adapter.HTTPRequest.run(ModuleGUIBrowserEngine.java:406)
    Mar 21, 2010 9:23:26 PM  ...ap.aii.messaging.net.HTTPServer.run() [Thread[Thread-24,5,main]] Info: TCP request received from pxpci.fil-eu.sv.philips.com
    Mar 21, 2010 9:24:26 PM  ...ap.aii.messaging.net.HTTPServer.run() [Thread[Thread-24,5,main]] Info: TCP request received from pxpci.fil-eu.sv.philips.com
    Mar 21, 2010 9:25:29 PM  ...ap.aii.messaging.net.HTTPServer.run() [Thread[Thread-24,5,main]] Info: TCP request received from pxpci.fil-eu.sv.philips.com
    Mar 21, 2010 9:27:50 PM  ...i.messaging.adapter.HTTPRequest.run() [Thread[Thread-45973,5,main]] Error: java.util.NoSuchElementException
         at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
         at com.sap.aii.messaging.adapter.HTTPRequest.run(ModuleGUIBrowserEngine.java:368)
    Mar 21, 2010 9:27:53 PM  ...i.messaging.adapter.HTTPRequest.run() [Thread[Thread-45974,5,main]] Error: java.util.NoSuchElementException
         at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
         at com.sap.aii.messaging.adapter.HTTPRequest.run(ModuleGUIBrowserEngine.java:368)
    Do you know why this happens or how can it be fixed?
    Regards
    Divya

    The error in XI is
    IcmConnInitClientSSL: SapSSLSessionStart failed (-57): SSSLERR_SSL_CONNECT
    There were 22000 entries in the file adapter's ExactlyOnce DAT file.
    The restart of the adapter cleared this but it still does get any messages.
    Restarting the GUIBrowser service doesn't work - it just crashes the admin UI also.

  • J2SE file adapter checkModificationInterval

    Hello,
    We're using a standalone J2SE sender file adapter. This adapter polls at a certain directory. (XML)Files are posted in this directory via ftp. When files that are polled become relatively large >2 MB it occurs that part of the file is already processed when file has not been completely written into the directory. This causes an incomplete XML message to be sent to XI system causing an error message.
    The XML file is processed again when file has been written completely.
    However this should be avoided by using the parameter file.checkModificationInterval however we are not succeeding finding the right value for this parameter in combination with
    file.retryInterval
    file.pollInterval
    file.processingLocked
    Does anybody have a clue.

    Hi Emile
    You can just directly set the parameter to,
    file.checkModificationInterval=some milliseconds value
    The way this works is, the file adapter first reads the file, then it waits for the specified time and checks if there is any change in length. If the file length changes it will repeat the read procedure. Again the process is repeated, and if it finds that there is no change in length, the file is processed. The key here is to try and identify the approximate time interval that can be set.
    cheers
    Sameer

  • Question about pictures file in home folder

    I am trying to create more space on my hard drive and have a question about the pictures file.
    In addition to the iPhoto Library I have several folders named 1, 2, 3 etc each containing a bunch of photos; plus several hundred individual photo files.
    My question is whether these files are duplicates of what is in the iPhoto Library - and is there an easy way to find that out?
    And I guess also to find out how they got there in the first place. Could these be imports from disks as opposed to my digital camera?
    Thanks for any help,
    Laura

    Hey laura,
    I haven't used iPhoto for a while but from memory i think that i work similar to iTunes. Whne files are processed by iPhoto they are catalogued on the hard drive according to the iPhoto preferences. I would check out the iPhoto preferences and see if you can see anything in here that will tell you what is going on.

Maybe you are looking for