GetFileNameBean for file adapters

I've created a adapter module to get file name and to update o/p stream with this filename - as per How to create modules pdf file.
I ran into this OSS note - 819761 which says the following
"<b>Important: Please note that the file name information is only accessible by modules that run in the File Adapter sender module chain.</b>"
Can anyone tell what this means. I'm using the deployed EJB in the receiver adapter.
And my scenario is File => XI => File.
What does <b>sender module chain</b> mean??
Thank you for all your help.

Hi Parimala,
In Sender Adapter Module , you have access to File name etc. But in Receiver Adapter Module, module is executed first and then control is given to XI.
http://help.sap.com/saphelp_nw2004s/helpdata/en/cd/5af7c0c994e24fb0d0088443513de2/frameset.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a
Hope this helps
Regards,
Moorthy

Similar Messages

  • Adapter engine showing error for file adapters

    Hi,
    I had configured communication channel using FTP . Because of which the Adapter engine is showing red in the component monitoring. It is saying one of the communicaion channel has error. But when I do a check in the CCs they doesn't show any error. I am getting the same error for NFS as well.
    Has anyone come across such a kind of situation? Is it because of wrong entry in CC parameters or is it some BASIS configuration (patch) issue?
    Could anyone of you give some guidance on this?
    Thanks and Regards
    Sanil

    Sanil,
    Just for testing purpose , delete ur comm.channel and check whether still u r facing the errors. If no errors then its bcoz of u comm.channel. Then we can narrow down the approach. Even after deleting the comm.chanel u get error then check all the channels across all clusters.
    Note:After deleting the channel ,give some time and check the same.
    Best regards,
    raj.

  • Dynamic Configuration for two file adapters communication channels

    Hello Experts!!!!!!
         In one of the interface in my landscape, I am using two file adapters for creating two files with different names and at two different destination on F.T.P.
    However the receiver service for both the communication channel are same.
    In message mapping I am using multi mapping to create two files out a single message.
    Now i have a requirement of changing file path and file name using dynamic configuration for both the comm channel.
    When i doing dynamic coniguration for both the comm. channel. My interface is creating two files but with same name and on same destination which is set for second communication channel through dynamic configuration.
    Here, I guess the second dynamic configuration is over writing the first dynamic configuration and hence creating two files with same name and at same destination.    
    Please suggest, if separate dynamic configuration for separate communication channel of same receiver service can be done?
    Thanks & Regards,
    Amol

    Thanks for your prompt responses!!!!!
        Is there any way, By which in dynamic configuration I can find out the communication channel name and then change its parameter.
    I mean if iam using say comm. channel A and B.
    Then in dynamic configuration for A, I will first take communication channel A by calling it and then change its path/file name.
    and then do samething for comm. channel B in its dynamic conf.
    Regards,
    Amol

  • Flat files required for Universal Adapters HR Payroll

    Hi Folks
    we are implementing new HR Analytics using Universal adapters HR Payroll subject area.
    where can i get the Flat files which are designed and delivered for Universal Adapters which contains the Field names etc.
    i searched in web and found no clue of it and neither on Metalink.
    please help
    thank you
    kumr

    Data lineage for 795 , Search for doc id 735950 :
    OR
    https://metalink3.oracle.com/od/faces/secure/km/DocumentDisplay.jspx?id=735950.1&h=Y.
    796 :
    Oracle® Business Intelligence Applications ETL Data Lineage Guide Release 7.9.6 (Doc ID 829385.1) is now avalaible on Metalink3.
    Below is the URL,
    https://metalink3.oracle.com/od/faces/secure/km/DocumentDisplay.jspx?id=829385.1
    rm

  • How to add header line in a file from XI system using file adapters

    Hi All,
    I need to add header line (Column names) in a file coming from XI system.
    I am using file adapters.
    Thanks & Regards,
    Gaurav Mittal

    The Receiver File Adapter is configured, using the following settings:
    1) Choose File Content Conversion as the Message Protocol.
    2) You give the ‘addHeaderLine’ parameter as 1
    3) For the ‘fieldSeparator’ parameter you need to give field separator for both list and substructure (referring to the data type above). For eg: it may be a ‘,’ (comma) for substructure in a comma separated file.
    4) The ‘endSeparator’ parameter needs to given for substructure only. For eg: it may be a ‘nl’ (new line)
    5) Give the file name, the directory and the Construction mode. Activate all the settings. Receiver File Adapter with F.C.C. is configured.
    please visit the blog.
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

  • UTF encoding issues on file adapters and mappings

    Hi,
    We did some tests regarding to UTF-8 and UTF-16 encoding using file adapters. Our conclusion so far is (when using Windows OS):
    1. Inbound adapter can handle UTF-8 and UTF-16 correctly, but do not specify the encoding!
    2. XI mappings will set the XML encoding to UTF-8 correctly when sending an UTF-16 file to XI.
    3. Outbound adapter can only handle UTF-8 (and US-ACSII and ISO-8859-1) correctly.
    The exact test results are:
    >>Outbound file adapter bug.
    If no encoding is specified in the outbound file adapter, UTF-8 and UTF-16 are handled correctly. However if the encoding is set to UTF-16, XI mapping will fail with the error:
    During the application mapping com/sap/xi/tf/_CHRIS_OUTBOUND_TO_INBOUND_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: Fatal Error: com.sap.engine.lib.xml.parser.Parser~
    Part of the trace:
    com.sap.aii.ibrun.server.mapping.MappingRuntimeException: Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_CHRIS_OUTBOUND_TO_INBOUND_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) a0d, a0d, 6e3c(:main:, row:3, col:2) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:72) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:78) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest
    >>Inbound file adapter bug.
    If the encoding of an inbound file adapter is set to UTF-16 everything works ok (except the XML encoding is not set correctly, but this may be a mapping issue and not an adapter issue). However the default UTF-16 encoding seems to be UTF-16BE, where I would expect UTF-16LE since this is the most commonly used encoding.
    If the encoding UTF-16LE or UTF-16BE the characterset used in the message is correct, except the BOM of the file. The BOM is empty which means UTF-8 encoded file. Since the file is UTF-16BE or UTF-16LE encoded, this is wrong and the correct BOM should be added by the adapter.
    Encodings like US-ASCII and ISO-8859-1 are handled correctly.
    >>Mapping bug
    When we send in a message encoded in UTF-8 and want to send it out as a UTF-16 encoded message, we need to set the XML encoding to UTF-16. Normally this is done by an XSLT mapping using the <xsl:output encoding=”UTF-16”/> command.
    The UTF-8 message will get processed by the XSLT and any special character will be converted to its UTF-16 value. However the output message is not UTF-16 encoded (1 byte in-stead off 2 bytes).
    When this 1 byte message is send to the inbound adapter (encoding is set to UTF-16) the message will be translated from 1 byte to 2 byte (UTF-8 to UTF-16). The characters that were converted from UTF-8 to UTF-16 will be read as single byte characters and will be converted again. This will result in an incorrect message with illegal characters.
    So basically characters will be converted to UTF-16 2 times, which is incorrect.
    Maybe someone can confirm this on another XI system (maybe different OS). If you need test files or mapping, please let me know.
    Kind regards,
    Christiaan Schaake.

    Update after carefully reading all the UTF related documents on the internet.
    For UTF-16 the BOM is required and the adapter is handling this correctly. (encoding=UTF-16 will create the BOM).
    For UTF-16LE and UTF-16BE the BOM must not be set. The application should be able to handle the conversion. The adapter is working correct again.
    If the adapter is set to binary mode in stead of the text mode, the file will always be read correctly.
    About the mapping issue, I'm still experimenting with this one.
    Kind regards,
    Christiaan Schaake.

  • FTPS or SFTP for file scenario. Suggstions

    Hi,
    I have searched blog in sdn but do not get good blogs/links.
    For File scenario which to use FTPS or SFTP.
    How to do the configuration in XI and Visual admin.
    Full points will be awarded.

    Hi,
    1) SFTP (Secure File Transfer Protocol)
    "SSH File Transfer Protocol" or SFTP is a network protocol that provides file transfer and manipulation functionality over any reliable data stream. It is typically used with the SSH-2 protocol to provide secure file transfer. SFTP encrypts the session, preventing the casual detection of username, password or anything that is being transmitted. One key benefit to SFTP is its ability to handle multiple secure file transfers over a single encrypted pipe. By using a single encrypted pipe, there are fewer holes in the corporate firewall.
    SFTP:
    As per the latest SAP PI/XI support pack, it does not support SFTP via File Adapter.
    So alternative approach to cater this requirement from XI is to make use of Unix Script at OS level to transfer the files from/to third-party systems.
    Inbound Interface - i.e. third-party system ->XI->SAP: 
    File is transferred to a folder in SAP XI landscape from the third-party legacy system using UNIX Script with secured protocol. Once the file is ready in the XI landscape, File Adapter will poll this directory and file is picked up by NFS protocol.
    Outbound Interface – i.e. SAP->XI->third-party system: 
    XI is responsible for writing a file into a folder in the XI landscape. These files are transferred to the third-party system by executing UNIX scripts with secured protocol i.e. via sFTP.
    Pre-Requisites: 
    Public key should be exchanged between external systems and the PI system.
    UNIX shell script has to be developed and scheduled.
    Advantages: 
    Highly Secured.
    Ability to handle multiple secure file transfers over a single encrypted pipe .By using a single encrypted pipe, there are fewer holes in the corporate firewall.
    Disadvantages:
    Two-Step process i.e. XI>Temporary folder>External System and vice-versa
    Files have to be temporarily stored in XI server.
    Multiple failure points i.e. XI and Unix script execution
    Maintenance of an external UNIX script.
    Difficulty in monitoring the execution of the shell script as it cannot be monitored thru XI.
    Need to generate keys and install it in the SFTP site as a pre-requisite i.e. SFTP clients must install keys on the server.
    SFTP uses keys rather than certificates. This means that it can't take advantage of the "chains of trust" paradigm facilitated through Certificate Authorities.
    Files from the XI server should be deleted/archived in a periodic manner to increase the disc space so that it will increase the performance.
    Note: UNIX shell Script can be executed as a background job ‘or' can be triggered from SAP XI through OS command at File adapter level.
    Secure FTP (SSH) with the FTP Adapter
    Secured File Transfer using SAP XI
    Secure FTP in SAP XI
    SFTP (FTP over SSH) in XI
    /people/krishna.moorthyp/blog/2007/07/31/sftp-vs-ftps-in-sap-pi
    encryption adapters or how to secure data
    /people/krishna.moorthyp/blog/2007/07/31/sftp-vs-ftps-in-sap-pi
    Regards,
    Phani
    Reward points if Helpful

  • How to insert data coming from 2 different file adapters in to one DB adapt

    Hi
    i want insert data in to database containing two diffferent tables, so i imported tables in to DB adapter by creating relation ships.But, data for two tables are in xml format & two are in different locations.So, i used 2 file adapters to get data from 2 different & i used BPEL(Define service later) Service. now in bpel i used receive activity to receive one file adapter data ( i checked create instance in receive) then used transform activiy for tranformation & finally invoke activity to invoke DB adapteer........similarly i repeated sequetially to 2 file adapter, by keeping 2nd receive(no need to check create instance) next to invoke.*Problem is after deployment finished only data coming from 1st receive is inserting to the table...& 2 nd receive not working it showing as Pending & showing as Asynchronus Call back inte console*
    I configured all the adapters perfectly..........Can any one can help me how to Commit 2 nd receive to insert data in the 2nd table
    Regards,
    jay

    Thank u both for ur replay.........
    I am doing this in 11g there is no problem regarding transform activity.
    My requirement is
    two different files from two different folders in a drive & we can't use one file adapter bcoz both have different columns(only few are common columns) so we use two different xsd's .So, i am using two file adapters to insert in database having two different tables with respect to two different files data coming from two file adapters. i am using one DB adapter to insert bcoz both tables are in same database with relationships & i used BPEL(define service later) .
    NOW PLEASE SUGGEST ME THE FLOW IN BPEL TO INSERT BOTH FILES IN THERE RESPECTIVE TABLES IN DATABASE.
    The flow i did 1st file adater--->receive--->transform---->invoke----->DB adapter.....Then again repeating this as keeping 2nd receive below 1st invoke
    2nd file adapter-------->2nd receive---->2nd invoke------>same DB adapter
    MY problem is only data coming from 1st process is inserting & 2nd one is not working as i discussed earlier........I USED READ FILE OPTION, UNCHECKED DELETE FILES OPTION & SET DIFFERENT POLLING FREQUENCY FOR BOTH FILE ADAPTERS.
    I tried to set correlation but it is not working & later tried i kept non-blocking invoke as TRUE in DB adapter also didn't work...........also i tried this transaction property in bpel component _<property name="bpel.config.transaction"_
    many="false" type="xs:string">required / requiresNew</property>...............BUT NO CHANGE...........
    Regards,
    jay
    Edited by: 910162 on Apr 5, 2012 12:38 AM

  • Regarding advenced mode option at sender,reciever file adapters

    hi.
    can any xi prof tell about the use of advanced mode at sender,reciever file adapters.
    and one more thing that i foung difference is at sender  adapter advanced mode 
    there are some options like msecs to wait before modification check and the other one is maximum file size bytes .
    waiting for any great response.
    u r great answer would be appreciated.
    bye.
    regards.
    seeta ram.

    check out this thread
    Re: Dynamic file name in Receiver File Adapter
    Check these also .
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
    /people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution
    http://help.sap.com/saphelp_nw04s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    hope this can help u

  • How to use trigger file functionality in File Adapters - Match file names

    Hi,
    I am using trigger file functionality in File adapters to pick up data files as:-
    <property name="TriggerFilePhysicalDirectory" value="/pub/Dev/eastern/brs/"/>
    <property name="TriggerFile" value="*.trg"/>
    Here any file with .trg extension is taken as a trigger file and File adapter randomly picks up one of the data files.
    My requirement is that the trigger file will be of the same name as that of the data file like:- <data_file>.data <data_file>.trg
    How to implement this feature using trigger file functionality of File adapters??

    The trigger file is any file that indicates(triggers) that the actual data file has been put in ftp location, i.e- determines the state when data file should be read.
    This helps usually when a large data file is being transferred and at that incomplete state the FTP adapter tries to read it(which is not desirable)
    It is configured when you create the ftp adapter service in your process(in wizard) or u can manually configure that in the JCA file for the FTP Adapter service as below:-
    <?xml version="1.0" encoding="UTF-8"?>
    <adapter-config name="FlatStructureIn" adapter="File Adapter" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/FileAdapter" UIincludeWildcard="*.txt" adapterRef=""/>
    <endpoint-activation operation="Read">
    <activation-spec className="oracle.tip.adapter.file.inbound.FileActivationSpec">
    <property.../>
    <property name="*TriggerFilePhysicalDirectory*" value="/tmp/flat/ArchiveDir"/>
    </activation-spec>
    </endpoint-activation>
    </adapter-config>
    Reference: http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10231/adptr_file.htm#CIAJCBGI

  • Set polling time with BPEL and ESB File Adapters

    We have create file adapters in BPEL and ESB. We see where you can set the frequency for polling but do not see a place to set the polling time. We would like it to check a directory every 24 hours at midnight. We can set the 24 hours but not the midnight. How does ESB and BPEL determine the time to run based upon the interval?

    Oracle SOA is started, from the time the adapter is loaded, the interval counting starts. It is not on a particular time.
    If you want to start a BPEL process on a certain time, you could use the quartz timer fucntionality of BPEL to start an instance on a particular time (like unix cron tab).
    Marc

  • Regarding File Adapters

    Hello
       I am working on File Adapters and would like to know as to how do you go about specifying the record substructure when you select the File Content Conversion in the Message Protocol of the Adapter configuration.I went through the help content on XI but was not clear.
    Thanks and Regards

    Hi Sharat,
    Please go through these links:
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    I hope if it helps, you'll give me points.
    Thanks & Regards
    Varun Joshi

  • Inconsistent  Data for File Content Conversion

    HI XI Friends,
    Its IDOC to File Scanario,
    File is of .txt file..
    my IDOC contains 14 segments
    some times some segements will not come with Idoc..
    first three characters represent segment numbers..
    structure of txt file
    00112345       address1  street1
    00212345       office1      street1
    00312345       homw2     city2     street2
    if that IDOC doent contain 002..then .txt file should be..
    00112345       address1  street1
    00312345       homw2     city2    street2
    all Segement in that idoc are optional..
    if I use Fixed lengh in File Content Conversion then ther would be blank row  for 002 if that IDOc doent Conatin
    00112345       address1  street1
    00312345       homw2     city2    street2
    please guide me...how to use content conversion in this case..
    regards
    Munna

    Hi ,
    Thank you very much for your response..
    .txt file is of fixed lenths with no field Seperator
    IDOC contains number segements..
    the resultant txt file if we created first 3 segements data..
    00112345 address1 street1
    00212345 office1 street1
    00312345 homw2 city2 street2
    if we create 001 segment and 003 segement the text file should be
    00112345 address1 street1
    00312345 homw2 city2 street2
    but for new row of each segment ... endseperator 'nl' after first segemnt in Content conversion parameter and 002 segement values..and again endSeperator 'nl'...
    if we are not sending 002 segement data in the IDOC ..then it will give blank
    00112345 address1 street1
    00312345 homw2 city2 street2
    my requirement is if we dont send 002 segement data then no blank row .how to check if the segement is having data or not  and also how to declare it in Content Conversion parameters of File Adapters.
    please guide me
    regards
    Munna

  • URM 11g adapter for File Share

    Hi All,
    Has anyone tried to setup a URM 11g adapter for File Share/system. I could not get any documentation on this for 11g. There is 10g documentation which I tried but could not proceed much. If someone could point to an admin guide for 11g adapter that would be of great help.
    Thanks,
    - Anand

    10g adapters work with 11g as well!
    - Sudha

  • Schema for File with Multiple Fixed Records using Native Schema builder

    Hi All:
    The below is the sample file format which i need to read through file adapter
    HeaderReacord
    FailureOrderRecord
    ChildFailureRecord
    ChildFailureRecord
    SuccessOrderRecord
    SuccessOrderRecord
    HeaderReacord
    FailureOrderRecord
    ChildFailureRecord
    In the above file, totally three records are repeatedly present with fixed length eg. HeaderReacord length is 50, SuccessOrderRecord and FailureOrderRecord length is 100, ChildFailureRecord length is 25. The file may have more than one header group i.e. A single header group contain one HeaderReacord, more than one SuccessOrderRecord, more than one FailureOrderRecord and more than one ChildFailureRecord after each FailureOrderRecord.
    I have created the below xsd for this scenario and get the below output. Kindly tell how to do this in Native builder using fixed length type for different fixed records options
    <xsd:element name="BatchOrder">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="OrderGroupCollection" type="OrderGroup" minOccurs="1" maxOccurs="unbounded"
    nillable="false"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:complexType name="OrderGroup">
    <xsd:sequence>
    <xsd:element name="HeaderRecord" type="xsd:string" minOccurs="1" maxOccurs="1"
    nillable="false"/>
    <xsd:element name="RecordList" type="RecordList" minOccurs="1" maxOccurs="unbounded"
    nillable="false"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="RecordList">
    <xsd:sequence>
    <xsd:element name="OrderRecord" type="xsd:string" minOccurs="1" maxOccurs="1"
    nillable="false"/>
    <xsd:element name="ChildErrorRecord" type="xsd:string" minOccurs="0"
    maxOccurs="unbounded" nillable="true"/>
    </xsd:sequence>
    </xsd:complexType>
    Output:
    =======
    <BatchOrder>
    <OrderGroupCollection>
    <OrderGroup>
    <HeaderRecord>HeaderReacord</HeaderRecord>
    <RecordList>
    <OrderRecord>FailureOrderRecord</OrderRecord>
    <ChildErrorRecord>ChildFailureRecord</ChildErrorRecord>
    <ChildErrorRecord>ChildFailureRecord</ChildErrorRecord>
    <ChildErrorRecord>SuccessOrderRecord</ChildErrorRecord>
    <ChildErrorRecord>SuccessOrderRecord</ChildErrorRecord>
    <ChildErrorRecord></ChildErrorRecord>
    <ChildErrorRecord>HeaderReacord</ChildErrorRecord>
    <ChildErrorRecord>FailureOrderRecord</ChildErrorRecord>
    <ChildErrorRecord>ChildFailureRecord</ChildErrorRecord>
    </RecordList>
    </OrderGroup>
    </OrderGroupCollection>
    </BatchOrder>

    you cant acheive this heirarchy using the file adapters cont. conv, cos it supports only to a single level.
    Maybe you can have a module or use the conversion agent !!
    Some good reads on the Conv. agent!!!
    /people/william.li/blog/2006/03/17/how-to-get-started-using-conversion-agent-from-itemfield
    /people/paul.medaille/blog/2005/11/18/conversion-agent-a-free-lunch
    /people/alexander.bundschuh/blog/2006/03/14/integrate-sap-conversion-agent-by-itemfield-with-sap-xi
    /people/paul.medaille/blog/2005/11/17/more-on-the-sap-conversion-agent-by-itemfield

Maybe you are looking for

  • Reader 11 not opening files

    Reader 11 not opening files.  Get error code "runtime error"  Runtime requested program to shutdown.  Contact your application support. I've used for years.  HELP. Barry Colton [email address removed]

  • Does anyone know if ICloud is going to work with 64 bit computers?

    Mobile Me did not work with the new I7/64 bit computers. they would not sync. I'm wondering if ICloud is going to work with 64 bit comptuers?

  • BAPI to retrieve All my Trips By personnel number

    Hello, Many Thanks in Advance. 1. Is there BAPI to retrieve all employee's trips just by personnel number? 2. How to use the bapi 'BAPI_TRIP_GET_OPTIONS'? This returns a lot of tables! 3. could the bapi structures be used to create tables? how could

  • ALV screen status

    I have copied program RIAUFK20 to ZRIAUFK20.  I have made a few changes to set the G_repid to RIAUFK20 as it was before, in order to keep the same field cat and screen variants.  BUt for some reaosn when performing the below call to the ALV grid, I d

  • Mini to 20GB 4th Gen

    Not sure if this post belongs here but I also posted it in ITUNES forum. Long story so pelase bear with me. My wife's mini died. I have a 4th gen click wheel 20gb. I decided to upgrade and give her mine. I signed on to windows XP as her. Started ITUN