File adapter query

Hi,
A custom XML document containing vendor information is picked from the file system by file adapter. The message is mapped to XML-IDOC format and then routed to the IDOC adapter
While generating the IDOC in the receiver system the IDOC goes in error status 56.
In this scenario is it not necessary to create partner profile and distribution model which i have not created.
Kindly suggest what could be the problem.
Regards
Monzy

Monzy,
You always need a IDoc partner profile (transaction WE20) to get IDoc in and out of SAP R/3.  All the SAP XI IDOC adapter is doing to passing IDOC-XML data to SAP in metdata using an RFC function module (either  INBOUND_IDOC_PROCESS, IDOC_INBOUND_ASYNCHRONOUS or IDOC_INBOUND_IN_QUEUE) or receiving the IDoc data and converting into IDoc-XML
Regards,
Simon

Similar Messages

  • File Adapter Query, when PI server restarts polling starts

    Hi Experts,
    I have one problem with File sender adapter if someone can suggest solution or easy way to handle situation.
    I have a interface with 50 file adapters.
    I am activating all file adapters with poling interval 24 Hours.
    And I am activating all adapters after 10 minutes interval so that all should not run at same time.
    So every thing is good.
    But the problem is that whenever BASIS team restarts the SAP-PI server. All 50 file sender adapters get restart at same time (i.e. all poling starts at same time which I do not want because of file size of all files and dependency of one interface i/p on other file o/p).
    So every time when server is getting re-started, I have to re-activate all 50 adapters by sitting for many hours after every 10 minute interval.
    Can someone suggest any solution for above problem, or itu2019s not possible to control sender file adapter poling start when server starts instead of time when I activate it originally?
    Regards

    Hi Rohan,
    As far as I know, it is not possible to schedule the adapter when the server gets restarted.
    Lets see what experts say on the same.
    Thanks,

  • Standard File adapter Query !!

    HI Guys,
    Does standard File adapter has got ability to pick a file  based on required file name.
    Ex: If we have 30 files in one folder, 6 file name are like xml_666778_001.xml, xml_666778_002.xml,xml_666779_001.xml, xml_666778_003.xml, xml_666779_002.xml, xml_666780_001.xml.
    First I need to pick xml_666778_001.xml,xml_666778_002.xml,xml_666778_003.xml process it and keep with the same name like xml_666778.xml
    Next I need to pick xml_666779_001.xml,xml_666779_002.xml process it and keep with xml_666779.xml etc.,
    In this customer landscape, We have got 20 distribution centres. Each Distribution center sends more than 5 files a day. File name comes like xml_divisionnumber_001,xml_divisionnumber_002.xml etc. One division all files comes in one shot like ex:10:30:52. Sometimes we get 2 divisions with only one minute difference, but I need to pick only one division all fiels at a time, first I need to process all that one division files to bundle it(i developed this interface) and keep it on application server folder.  I deleloped one more interface to pick this bundle message   and split this message into ABAP proxy.
    I am expecting your wonderful ideas please about this situation.
    Thanks in advance
    Kind Regards
    San
    Edited by: ASandhya on Jul 20, 2010 7:06 AM

    Hi Udo,
    I do agree and I have developed BPM messages merge. But my question is in 100 files I need to pick only 5 or 6 files with the file name like xml_00666787_001.xml like xml_00666787_005.xml  and bundle it with as a target file with the name of xml_00666787.xml. In next process again  I need to pick only 5 or 6 files with the file name like xml_00876778_001.xml like xml_xml_00876778_002.xml  and bundle it with as a target file with the name of xml_00876778.xml etc I need to pick all that 100 files by 20 times like this.
    Q. How can we take dynamic file name this in Sender side fileadapter to pick particular files??
    Many Thanks
    Kind Regards
    San

  • Real time : File Adapter : query

    Hi Folks,
    At development time( file adapter) we test our scenario by creating a sample XML file using message mapping tool .
    The type of message we get from this contains Message Type tag with namespace Attribute.
    <ns0:MT_XYZ xmlns:ns0="urn:xyz">
    My question is in do in real time we need to tell them that create message type with the anmespace attribute we are using ? and also how to suppress namespace and will it bring any complications in the process ?
    Regards,

    Santosh,
    1.     When using the File adapter and Content Conversion to read the file into XI, you can allocate a specific message namespace
    2.     If the namespace does becomes an issue for your scenario then use an additional mapping step to remove the namespace.  For example we have the
    Mesage Type MT_NAMES which has a a type of NAMES
    Subelement NAMEREC (0 .. unbounded)
    Subelements NAME1 and NAME2
    Sample xml
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns1:MT_NAMES xmlns:ns1="http://namespace">
    <NAMEREC>
    <NAME1>AAA</NAME1>
    <NAME2>BBB</NAME2>
    </NAMEREC>
    <NAMEREC>
    <NAME1>CCC</NAME1>
    <NAME2>DDD</NAME2>
    </NAMEREC>
    </ ns1:MT_NAMES>
    Apply the XSL map
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"     
    xmlns:nsNN="http://namespace" >
         <xsl:template match="/">
              <xsl:for-each select="nsNN:MT_NAMES">
                   <NAMES>
                        <xsl:copy-of select="NAMEREC"/>
                   </NAMES>
              </xsl:for-each>          
         </xsl:template>
    </xsl:stylesheet>
    The namespace has been removed from the xml
    <?xml version="1.0" encoding="utf-8" ?>
    <NAMES>
    <NAMEREC>
    <NAME1>AAA</NAME1>
    <NAME2>BBB</NAME2>
    </NAMEREC>
    <NAMEREC>
    <NAME1>CCC</NAME1>
    <NAME2>DDD</NAME2>
    </NAMEREC>
    </NAMERS>
    Regards,
    Mike

  • Query operation in file adapter

    Dear All,
    we have faced several issues in using polling for production env.
    We have to ensure sequential nature of data, which means FIFO order of inserts
    is there any alternative to using polling - Receive in file adapter ?
    Can we use {query database adapter  - invoke activity } in file adapter ?
    Please let me know if any body as any leads.
    Appreciate your response.
    Regards
    Arc

    we cant use Invoke activity for Read functionality for File Adapter but there is another way to achive this we can use two recieve activities in one BPEL please find the Sample here $BPEL_HOME\samples\tutorials\109.CorrelationSets
    Krishna

  • Query regarding file content conversion using file adapter

    Hi All
    I have a question regarding file content conversion in file adapter.
    I have a file coming in the following format.
    AA,111,222,333
    BB,444,555,666
    CC,777,888,999
    My incoming message structure has a hierarchy. The CC record is a structure part of BB record. BB record is a structure part of AA record. It is like this:
    AA,111,222,333
    <<BB,444,555,666>>
    <<<<CC,777,888,999>>>>
    After file content conversion, in the resulted xml, i am getting a flat hierarchy instead of nested hierarchy.
    Is it possible to get a nested hierarchy as a result of file content conversion?
    Please let me know
    Thanks
    Chandra

    Hi Udo
    According to your suggestion, I am trying to use mapping.
    I am getting a flat file and i am reading it.
    This is my source structure:
    AA,11,22,33
    BB,44,55,66
    CC,77,88,99
    This is my required targer structure:
    AA,11,22,33
    <<BB,44,55,66>>
    <<<<CC,77,88,99>>>>
    To explain this, BB record can have multiple records of CC records.
    AA records can have multiple records of BB record.
    I am using removecontext node function.
    CC (Source)  (removecontext)-> CC (target structure)
    But here, when i rightclick on source CC field in the mapping editor, i cannot see any other context except root node. So, how can i proceed here??
    Many Thanks
    Chandra

  • File Adapter to read from remote file server query

    Hi all,
    I want a SOA 11g application to read files on remote server using File Adapter. Is it possible to configure the File Adapter to read from remote location instead of locally. Is it possible. Is yes where can I find the associated remote file configuration documentation.
    Thanks
    Edited by: user5108636 on 19/09/2010 19:49

    I also changed one more properties the FTP connection factory called serverType=win. I get bits and pieces in each document. Is there any working example to connect to an FTP server running on Windows using Ftp Adapter. Still not working.
    These are the error logs related to it. Please suggest
    ####<Oct 12, 2010 1:17:22 PM EST> <Info> <Common> <server_name> <WLS_SOA> <[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <46e7c258a0e5cad6:-145e5cdb:12b99475c2b:-7ffd-0000000000046afa> <1286849842995> <BEA-000628> <Created "1" resources for pool "eis/Ftp/FtpAdapter", out of which "0" are available and "1" are unavailable.>\
    [2010-10-12T12:56:07.142+11:00] [WLS_SOA] [NOTIFICATION] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@170e13a9] [userId: weblogic] [ecid: 0000IiTsVSi9xWD_n91FiZ1CfLfc00006s,1:24709] [APP: soa-infra] [dcid: 46e7c258a0e5cad6:f9faea1:12b852b7f0f:-8000-00000000000005ed] FTP Adapter FetchAvlFiles Recovery still not possible after 1500 attempts due to javax.resource.spi.IllegalStateException: [Connector:199176]Unable to execute allocateConnection(...) on ConnectionManager. A stale Connection Factory or Connection Handle may be used. The connection pool associated with it has already been destroyed. Try to re-lookup Connection Factory eis/Ftp/FtpAdapter from JNDI and get a new Connection Handle.
    Thanks
    Edited by: user5108636 on 11/10/2010 19:05
    Edited by: user5108636 on 11/10/2010 19:22

  • File Adapter: need to include filename in content being written

    I want to use the file adapter to write a file, using the filename convention to generate part of the name dynamically.
    However, I need to include the filename used for the output file in the actual content too.
    Any ideas if this can be done?
    Thanks
    Toby

    At a customer we implemented the file adapter to create a file based on a specic name for appending:
    <assign name="AssignStaticFilename">
    <copy>
    <from expression="'Output.csv'"/>
    <to variable="gFileAdapterOutboundHeader" part="outboundHeader" query="/ns2:OutboundFileHeaderType/ns2:fileName"/>
    </copy>
    </assign>
    In de FileAdapter WSDL we set:
    <jca:operation
    LogicalDirectory="OutputDirectory"
    InteractionSpec="oracle.tip.adapter.file.outbound.FileInteractionSpec"
    FileNamingConvention="%SEQ%"
    NumberMessages="1"
    OpaqueSchema="false"
    Append="true" >
    </jca:operation>
    Does this help you, based on a given input to set the filename and this variable to put it into the file?

  • File name in file adapter

    Hello Guys,
    I need to get a message from RFC, map it in a way that I wouldn't need to do any file conversions in file adapter and send it to FTP. How could I set the file name in this case?
    PS: the file name cannot be included in payload, while I don't want to do any conversations of that payload...
    Many thanks for your answers,
    Milan

    Hi Milan,
    Is your query related to  sending the file name from the source xml document to the reciever file adapter. If so this can be achieved.
    Pls. do the following.
    1.  in the mapping program that you are using populate the filename coming from the source into the target in any of the fileds.
    2.Sender adapters can write adapter-specific attributes to the message header; these can then be evaluated at configuration time
    3. To change the adapter-specific attributes of the message header by using message mappings, you access the required classes of the mapping API by using a mapping runtime constant.
    To access the classes DynamicConfiguration and DynamicConfigurationKey by using the mapping runtime constant DYNAMIC_CONFIGURATION, use the method getTransformationParameters() of the container object.
    Create an simple user defined function in the mapping and use the following code.
    Imports: com.sap.aii.mapping.api.*;
    Parameter: String filename
    Paramter: String filename;
    filename = fileName + ".DAT";
    DynamicConfiguration conf = (DynamicConfiguration) container
           .getTransformationParameters()
           .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    conf.put(key, filename);
    return filename;
    You donot need to hard code the value of the filename in the file adapter for your interface.
    In SXMB_MONI, when you see the pipeline services you would see that the value of the filename is populated in the message payload.
    Thanks
    Indranil

  • Pdf files in FILE Adapter

    Hi All,
    I just wanted to know whether we can process pdf files through FILE adapter in XI.
    If yes, Kindly let me know the procedure.
    Thanks in advance,
    Sudhasree.

    There are a lot of info about processing PDF files on [SCN|http://www.sdn.sap.com/irj/scn/advancedsearch?query=howtoPDFconversionagent]
    One of them:
    [How to Receive and Convert PDF Documents with SAP Exchange Infrastructure (NW2004)|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9913a954-0d01-0010-8391-8a3076440b6e]
    BR,
    Dzmitry

  • File name naming convention in File Adapter configuration in ID

    Hi All ,
    I have a query related to xml filename created in IDOC-XI-FILE scenario based on value of one of IDOC field .
    The scenario is like this :
    I have to send one xml file per store for material master . In this case how can I define my file name with store name in File adapter configuration in ID .
    Naming convention should be
    <b><storename>_date_masterdataname.xml</b>where store name is one of field of IDOC .
    Plz help me .
    Thanks in Advance
    Regards
    Prabhat Ranjan

    Hi Prabhat,
    take a look at this weblog:
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
    you have to specify variable substitution
    (in the file adapter)
    and give the path to the store name (in the variable sustitution table)
    you <b>file name schema</b> (from the file communication channel can look like this)
    %storename%_date_masterdataname.xml
    Regards,
    michal
    Message was edited by: Michal Krawczyk

  • The same filename from a sender to a receiver file adapter - SP14

    Hi Expers,
    I Have Gone through the link which is given bu Michal.
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Here My Questions are.........
    1.Should we give any file name in the receiver side Adapter in this scenario.?????
    2.How wil be the Sender and Receiver Communication channel Parameters????
      What Are they???????
    Please Clarify me...
    Regards
    Khanna

    Hi Rajesh,
    Is your query related to sending the file name from the source xml document to the reciever file adapter. If so this can be achieved.
    Pls. do the following.
    1. In the mapping program that you are using populate the filename coming from the source into the target root element.
    2.Sender adapters can write adapter-specific attributes to the message header; these can then be evaluated at configuration time
    3. To change the adapter-specific attributes of the message header by using message mappings, you access the required classes of the mapping API by using a mapping runtime constant.
    <b>Note: You donot need to specify any filename in the receiver communication channel.</b>
    To access the classes DynamicConfiguration and DynamicConfigurationKey by using the mapping runtime constant DYNAMIC_CONFIGURATION, use the method getTransformationParameters() of the container object.
    Create an simple user defined function in the mapping and use the following code.
    Imports: com.sap.aii.mapping.api.*;
    Parameter: String filename
    Paramter: String filename;
    filename = fileName + ".DAT";
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    conf.put(key, filename);
    return filename;
    You donot need to hard code the value of the filename in the file adapter for your interface.
    In SXMB_MONI, when you see the pipeline services you would see that the value of the filename is populated in the message payload.
    Thanks
    Indranil

  • Sender File adapter Pooling interval & file Size issue

    Hi ALL,
    I have a file size of 400 MB to be picked to be the sender file adapter i am facing issue that the system is unable to even pick the file and place in the Q for Processing.
    1)we have no mapping no content conversion ....only pick the file from one loaction and place it in 3 different locations with 3 different names ...can any one help me in solving this .. ? the best workable method to achive this .
    2) this file is getting created once in a day .say 2 PM .so i can give the poll intravel to 24 hours ..but some times ..the file creation in server gets delayed ..but they cont wain for the next 24 hour to come for processing the file ..so my query is can we reduce  the poll intravel for 2 PM till  3PM hour for some 3 times ..and once it reches 3PM  it can poll as usual with a gap of 24 hour time ..
    thanks
    RK

    Hi Rupash,
    >>I have a file size of 400 MB to be picked to be the sender file adapter i am facing issue that the system is unable to even pick the file and place in the Q for Processing.
    Never use File adapter for picking large file (maximum size which I have seen it to work successfully is 200 MB)
    Instead go for Java proxies. Check this forum post for the discussion:
    Java proxy to use XI as a file mover
    Also if you want some more info on Java proxies refer these blogs and articles:
    /people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    >>this file is getting created once in a day .say 2 PM .so i can give the poll intravel to 24 hours ..but some times ..the file creation in server gets delayed .
    You can do a availability time planning refer these links for more information:
    Planning Availability Times
    http://help.sap.com/saphelp_nw04/helpdata/en/45/06bd029da31122e10000000a11466f/content.htm
    Controlling a Communication Channel Externally Locate the document in its SAP Library structure
    http://help.sap.com/saphelp_nw04/helpdata/en/45/0c86aab4d14dece10000000a11466f/content.htm
    Regards
    Suraj

  • Appending in file and supplying file name at run time using File Adapter

    Hi,
    Can we use File Adapter to write in a file in append mode. i.e. a BPEL process opening a file appending some text and closing the file each time it called.
    Another query is can we create the file at run time with the supplied file name?

    In order to append to a file, we can use Append="true" in the interaction spec for the File/Ftp adapter.
    <jca:operation
    FileType="ascii"
    PhysicalDirectory="/home/adapter/output"
    FileNamingConvention="OutputFile.txt"
    NumberMessages="1"
    Append="true"
    >
    Filename we can specify in wsdl...

  • Problem in File Adapter jca.file.FileName

    Hello, I have problem in sending variable data to the file adapter property
    I have defined Variable FlowData of Type Element from a XSD
    When I am trying to assign the variable data to the File adapter it is throwing error
    *<bpelx:inputProperty name="jca.file.FileName"*
    variable="flowData"
    query="ns2:flowData/ns2:fileInfo/ns2:name"/>
    Error query "ns2:flowData/ns2:fileInfo/ns2:name" is invalid, because step 'ns2:flowData' is not valid.
    Please help me!!

    Hi,
    Try to add a slash */* at the beginning of the xpath...
    */ns2:flowData/ns2:fileInfo/ns2:name*
    Cheers,
    Vlad
    Give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question
    https://forums.oracle.com/forums/ann.jspa?annID=330

Maybe you are looking for

  • In General Ledger report i want "cheque Number" Column

    Hi All, I am seeing General Ledger report in-built in sap B one 2005 for one single bank G/L A/C. i want one column in this report "Cheque Numbers" which is posting in Outgoing Payment, any body help on this. Regards, S.Mobin.

  • In JDO, can a foreign key be part of a primary key?

    Hi, it's possible to have a foreing key a part of a primary key in JDO? The JDO checker is complaining about that. It says "Primary key field 'person' cannot declare relationship". For example, if I have an entity 'Person' (id, name) and and entity '

  • Attaching document to e-mail

    I am trying to attach a Pages document to my AOL e-mail. But the document appears grayed out. Any solution to this? Thanks.

  • Copy/paste to pdf

    how do I copy and paste a word or wordpad text to a pdf document?

  • Various input  for filename

    I have a program in java which takes the qualified filename as a string. I don;t want to change the string name every time in the code if I want to do the same processing on a different file. can you please tell me how can i give the user a facility