Schedule  the file adapter

Hi experts,
I use file adapter to read files in the source directory,and I've setup IR and ID. It works very well.
Now I want to let this scenarios run from 12:00 A.M to 8:00 A.M.     What to do for this?
Many thanks.

Hi
The solution to your problem is detailed here
/people/shabarish.vijayakumar/blog/2006/11/26/adapter-scheduling--hail-sp-19-
Runtime Workbench -> Component Monitoring -> Communication Channel Monitoring should be accessible and you will need to have the authorizations of the user group SAP_XI_ADMINISTRATOR with the role modify.
regards
Monika

Similar Messages

  • Scheduling the file adapter

    Hi,
    i know that file adapter can't be schedualed, however my customer want to send me a message that a file has arrived and only then to wake XI to proccess it.
    I don't want to use BPM.
    Any thought of a workaround?

    Hi,
    I guess I have been seeing many requirements for 'scheduling XI messages' especially 'adapter-level scheduling'.
    'Adapter-level scheduling' ability is not currently available in SAP NW XI.
    What you can do is, make use of the 'Event-driven message processing' feature of SAP NW XI. What it means is, the adapter would pick up the message and it will be held in the XI pipeline for 'delayed message processing'. Then from the central scheduler you can send a trigger to XI to process the message.
    Here is a recorded Presentation on this topic:
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fd89cdb5-0b01-0010-6289-ac0ad1ccc5c0
    Here is a recorded Demo on how this can be configured using 'SAP Central Job Scheduling by Redwood' (any other central scheduler that is certified for BC-XBP can also be used):
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c0cfd2b5-0b01-0010-a8bd-c140d07d310c
    The recordings are available in the following Job Scheduling page (SDN -> SAP NetWeaver -> Plantform & Operations -> Administration -> SAP NW Central Job Scheduling by Redwood)
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/abb91c2a-0b01-0010-6ca6-9f0f62268454#idawk5oe [original link is broken]
    In the future you can expect something along the lines of 'a maintenance window at the Adapter/Channel level'. If and when this is made available, it may be possible to activate/deactivate the file adapter (i.e., the communication channel) from the central scheduler.
    Hope it is helpful.
    Thanks,
    Venky Varadadesigan
    Product Manager
    SAP NetWeaver
    M +1/832-287-2135
    mailto:[email protected]
    http://www.sap.com

  • Schedule sender file adapter

    hi all,
    Is is possible in some way to schedule the file adapter? My requirement is that the file is created in the source directory at 8:00 am but I need to pick up the file only at 11:00 am. How can I do this? How are these scenarios typically handled?
    thanks,
    lasya

    Hi,
    Unfortunately it's not yet available. According to recent thread on this forum, this functionality could appear with SP20 (thus about at the end of January), but it could be after...
    Sap TechEd news
    Another solution could be:
    1. Your sender sent the file in folder F1, when I want to do it.
    2. Create a litle Java function or a DOS command which take a this file from folder F1 and move it to folder F2
    3. Schedule this one by a Windows Task in order to plan it exactly when you want.
    4. Inside XI, your File sender CC pick up file in folder F2.
    Regards.
    Mickael
    Message was edited by: Mickael Huchet

  • Can I use a schema with no targetnamespace with the file adapter?

    I am loading a file using a file adapter configured to use an xsd from a third party, the third party controls the xsd and incoming xml and does not have a targetnamespace defined in the xsd or xml.
    When I define a file adapter for it the wizard indicates that I need to fix the xsd by adding a namespace. I dont have control over the xsd or xml as they are an external party.
    I think I can hand edit the wsdl and change the import statement that requires a namespace to an include statement with no namespace.
    Have you run into this before? Will that work?
    Thanks,
    John

    Hi John,
    Did we get any solution for this ?
    Even in our case, the third party controls the xsd & incoming xml message. Both does not have a targetnamespace defined. The file adapter wizard indicates that we need to fix the xsd by adding a namespace. As a workaround, we manually added the target namespace to xsd and created file adapater. Now the question is how do we automatically add the name space in xml message as well, so that it can be parsed by BPEL process
    thanks
    Yj

  • How to customize the File Adapter to put the header line in a variable?

    I have a file in which the first line contains the number of records contained by the file itself.
    Like this:
    4
    record1
    record2
    record3
    record4
    where each record is a delimited list of values
    I need to validate that the records are actually 4.
    in the documentation of the File Adapter I see that you can declare the first line as "header", but I have the impression that in this case it would be simply ignored, and not stored in a variable for later use......
    Is this correct?
    Any trick or workaround?
    thank you soooo much!

    it worked like a charm,
    here is the XSD I have used:
    http://www.javamonamour.org/2010/12/soa-sutie-file-adapter-parsing-complex.html
    ( I don't seem to be able to display correctly XML in this post :o( )

  • How can I read different files in the file adapter

    Hi,
    I have a scenario like file(content conversion and FTP) to Proxy and need to read 2 files which have different structures.
    The file structures is as follows.
    FileA.txt
    EMPID, Designtion,code,DOB,dept,deptID and 13 fields etc..
    FileB.txt
    officercode, dept,workspecs,FLAGarm,FLAGfoot and 27 fields etc.
    Both files needs to be read by the file adapter at same time and should send to the proxy to feed in ECC.
    Please help me in designing the above scenario with or without BPM.
    Thanks
    Manmadha

    Hello,
    Since u want to combine the two files from sender , you need to use BPM for it.
    First of all create Mapping. In your mapping program go to messages tab and add the two source messages types and in the target add the target message type. Come to your design tab and design the mappings.
    BPM:
    -- Insert Fork with two branches necessary condition. In first branch insert Receive step and check start process checkbox.
    --In second branch insert Receive step and check start process checkbox.
    -- Insert Transformation step after Fork branch step.
    -- Insert Send step [the outcome of transformation step needs to be send]
    Design the above structure, if you have any doubts, dp reply back.
    Best regards,
    raj.

  • Cannot process a Fixed Field Length file using the File Adapter (Sender)

    Hi -
    I have checked throughout these posts and blogs but I still have not been able to find a solution to my issue.  When using the File Adapter (Sender) I get a Conversion initialization failed with "xml.keyfieldName", no value found.  Why would I require a key field when I am using fixed field lenghts?  The file is comprised of 2 structures - 1 header and multiple details (see below).  There are no key fields in the flat file that I would be able to use.  Any suggestions?
    011000390      Customer Americas        20080605164317 000000000000000800000008000000000016000000                              
    12345678          100500       100500       Supplier 1                         0000000000030000002008040400                    
    12345678          100501       100501       Supplier 2                         0000000000052000002008042100 
    The File Adapter is configured as follows:
    Document Name = Rfchke00
    Document Namespace = 'my namespace'
    Recordset Name = Rfchke00
    Recordset Structure = Dtachkh,1,Dtachkp,*
    Recordset Sequence = Ascending
    Recordsets per Message = 1
    Key Field Type = String (Case-Sensitive)
    Dtachkh.fieldFixedLengths = 15,25,8,6,1,8,8,8,15,3,31
    Dtachkh.fieldNames = F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11
    Dtachkh.processFieldNames = fromConfiguration
    Dtachkp,fieldFixedLengths = 18,13,13,35,15,3,8,2,21
    Dtachkp,fieldNames = F1,F2,F3,F4,F5,F6,F7,F8,F9
    Dtachkp,processFieldNames = fromConfiguration
    Thanks,
    Dave

    Hi,
    you can use the module from which u can convert your structure to
    H011000390 Customer Americas 20080605164317 000000000000000800000008000000000016000000
    D12345678 100500 100500 Supplier 1 0000000000030000002008040400
    D12345678 100501 100501 Supplier 2 0000000000052000002008042100
    Please note the extra H,D in the struture added by the module.
    You can then use them as your key fieldValues.. The module should be deployed in Visual Admin and then can be used in the Module tab of your adapter CC
    While writing the content conversion after that please dont forget about the added new characters
    Please note also that i can find that the word supplier kept repeating in all the Dtachkp records
    Please use that
    Also if you feel that the field is of 13 characters and that would cause a problem dont worry... create a dummy field eg split tht 13 to two fields and use the common one as key field Value and identifier... as i see in ure case its like 500 Supplier , 502 Supplier . u can split the first 4 char and the remaing 9 char are key field value.
    try this out
    Rgds
    Aditya

  • "Performance" problems with the File adapter on Plain J2SE Adapter Engine

    Hi,
    At the moment I'm on a customer side to solve some XI issues for a few days. One of the issues is the performance of the Plain J2SE Adapter Engine, using the file adapter to transfer XML messages(already XI message format) from the legacy system to the Integration Engine. The File adapter has to deal with "large" XML messages(max at the moment is 65 Mb) and the engine fails with the following error when transferring the big XML file: "ERROR: Finished sending to Integration Engine with error "java.lang.OutOfMemoryError". Skip confirmation and quit this loop".
    As far I got the information from the customer the memory use of the Plain adapter engine is set to 512Mb. This is maybe to low. But I don't know where to look for this, I only have the adapter web interface in front of me, no access to the OS it self via for example remote connection.
    On the Integration Engine I know there is the ability to split large message with the file adapter(File Content Conversion), but I don't know this for the Plain Adapter Engine. Is there a possibility to do this also on the Plain Adapter Engine?
    Thanks in advance for any input.
    Greetings,
    Patrick

    Hi Sameer,
    Thanks for your answers.
    On the first solution, yes that is possible, we first decided to see if the legacy system can do the splitting, before starting developing a Java program.
    On the second solution, as far as I know is this solution possible on the Integration Engine. But we are facing the problems on the Plain J2SE Adapter Engine. I went trough that documentation(link:
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/246b3de666930fe10000000a114084/frameset.htm ), to look for I similiar solution in the Plain Adapter Engine. So my question is, is this possible with the Plain Adapter? And if so, what kind of parameters I need to use to achieve this.
    Regards,
    Patrick

  • Passing file name dynamically to the file adapter

    Hi All,
    I'm using a file adapter to create a file from the XML message after mapping in XI. The file name is given in the file adapter configuration. Is it possible to have the file name as a part of the message and pass it to the file adapter dynamically? Or is it possible to have the file name in some variable or something in XI (like a BPM variable) and pass it to the adapter for every message?
    Does someone have any idea?
    Thanks,
    Sandeep

    Hi Sandeep,
    This is possible.
    For creating filenames dynamically for your sender, you will have to crate a variable name ( eg: %VAR%) as you file name and then you will have to give the name of your file under variable substitution. Just check this link for more info,
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    In the case of receiver file adapaters, you have 5 options for file creation like,
    1.Create
    2.Append
    3. Add time stamp
    4.Add Counter
    5. Add Message ID
    You can choose any of these options or you can do it dynamically from you payload. Just check out this help link for more info,
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Hope this helps

  • Can I use the File Adapter to transfer files from/to my own PC

    Hello,
    Would it be possible to set tu the file adapter to send or receive files from my own PC's file system?
    For example I would like to transfer a file from my PC to PI instead of using PI's file system?
    Can I do that?
    Thanks
    Marcelo

    If your PC has Windows-based system, SAP XI is Unix-based, you have a problem: Unix can't connect to UNC-path - Unix doesn't understand path like this "
    mywindowspc\myfilesharefolder\", and Windows can't mount unix-drives. There are has a tool that can mount Windows UNC-file-share on NTFS like dirive UnixFS - but this tool is not freeware and has a problem when you switch off your PC without unmounting your Windows-dirives on Unix system. You can use a SAMBA, but Admins doesn't like to install this to Unix...
    So, if you want to use a File Adapter you can set only FTP path, create FTP-site on your own PC, and so on...
    Another way to send information from/to your own PC is "Plain J2SE Adapter Engine". This is a standalone part of SAP XI, you install it on your PC, configures URL of XI pipline, sets local folders to transfer from/to your PC, masks and types of your files, time to sending, any rules and DOS-commands for "before/after sending and receiving" and so on...
    In case of sending files from PC to XI, files transforms to XI-payload inside this Adapter Engine and then goes like XI-message to pipeline... When you send it back, payloads come to this Adapter Engine and transform to files on your PC.
    I used this Plain J2SE AE on my working notebook for checking sending messages to many different XI Systems.
    For more info: http://help.sap.com/saphelp_nw04/helpdata/en/6f/246b3de666930fe10000000a114084/content.htm
    Regards.

  • The file adapter takes also the mark of the beginning of the file as a char

    Hi guys,
    I need to use the file adapter for sending data into XI.
    My first column of the CSV file contain ID of the objects of length 8 chars. But when the adapter takes also the beginning of the file, the length starts to be 9 chars.
    How is it possible to disallow to take this mark?
    I didn't find any parameter in the file adapter settings, which could solve this problem.
    Thanx for answer! (Points guaranteed )
    Peter

    Hi Peter,
             While configuring sender file adapter, you can do the following.
           1. While defining Parameters for Recordset Structures , you can make use of the recordsetstrucure.beginSeparator function which will take the first string in the file as a begin seperator.
      i guess this would help you.
    regards,
    Aravindh.

  • Remove XML tags in the File Adapter

    Hi,
    I have a JDBC to File interface. However, there is a requirement to remove some of the XML tags from XML produced by the File Adapter.
    For example,
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_XML xmlns:ns0="namespace">
       <XMLIntegration>
             <Prices COLUMNS="Index, Date, Price">
             <Index>Fuel</Index>
             <Date>2007-05-01 00:00:00.0</Date>
             <Price>0</Price>
            </Prices>
          <Prices COLUMNS="Index, Date, Price"/>
      </XMLIntegration>
    </ns0:MT_XML>
    needs to be changed to
       <XMLIntegration>
             <Prices COLUMNS="Index, Date, Price">
             Fuel, 2007-05-01 00:00:00.0, 120.65
            </Prices>
      </XMLIntegration>
    Does anyone know how to do this? I'm using the File Content Conversion Message Protocol but I'm not having much success

    hi,
    you just need to have this:
    <XMLIntegration>
             <Prices COLUMNS="Index, Date, Price">
             Fuel, 2007-05-01 00:00:00.0, 120.65
            </Prices>
      </XMLIntegration>
    as your target message in your mapping
    and map all values to Prices tag
    you don't need no content conversion - just the mapping
    Regards,
    michal

  • Tuning the file adapter to parse subnodes

    I have been looking for a solution, that how to handle Hierarchies in receiver file content conversion but everyone's suggestion is to make it as flat structure, were subnodes cant be handled by File Adapter. But in my case, I should handle the hierarchies. So I traced the File adapter behaviour and now I'm able to achieve it in my case.
    My source data will be as follows,
    <Root>
    <Lineitem>
    <no>101</no>
    <name>pen</name>
    <Comment>
    <color>red</color>
    <price>20</price>
    </Comment>
    <Comment>
    <color>blu</color>
    <price>50</price>
    </Comment>
    </LineItem>
    </Root>
    My Receiver FCC parameters are
    LineItem.fieldFixedLengths = 3,3
    LineItem.absoluteRowWidth = 6
    Comment.fieldFixedLength = 3,2,3,2
    Comment.endSeparator = 'nl'
    Output:
    101pen
    red20
    blu50
    The reason I used 3,2,3,2 for Comment.fieldFixedLengths though it has only 2 fields because the parser considers the 'comment' as a field of 'lineitem' but for the 'comment' I had specified 'fieldFixedLength' parameters so it gets the fieldlength of 3rd field and omits the first two were it already passed.But for the other occurrances it going to take first two field lengths.
    The absolute row width is to make the subnode to be on next line.
    Though I achieved my need through this method, it has some drawbacks like
    >The number of elements in parent node must be greater or equal to child node.
    >Applicable only for fixedlength files.
    >wont applicable if it has more then two levels
    It works well, with many occurrences of both lineitem and comment.
    I would like to receive the suggestions,  since its not SAP recommended method.
    <<<soon to be blog'd in detail>>>

    Hi,
    Have a look at this.
    /people/karthiknarayan.kesavan2/blog/2007/08/22/file-content-conversion-for-multi-hierarchical-structure
    Regards,
    Akshay Jamgoankar.
    Reward Points if find useful.

  • Can I control  filenaming when archiving  files using the file adapter?

    Hi folks,
    Is there anyway to control the filename used when the File Adapter writes out to an archive?
    Second question, I also need to be able to pass a "filename" to the adapter from an "input file." Is there a way to do this in the file adapter?
    Sincerely,
    lpac

    Hi,
    I have done that with the ftp adapter. In the .xsl file I wrote the following after the <xsl:stylesheet version="1.0" ....> tag:
    <xsl:variable name="INFILENAME" select="ehdr:getRequestHeader('/fhdr:InboundFTPHeaderType/fhdr:fileName','fhdr=http://xmlns.oracle.com/pcbpel/adapter/ftp/;')"/>
    <xsl:template match="/">
    <xsl:variable name="OUTFILENAME"
    select="ehdr:setOutboundHeader('/fhdr:OutboundFileHeaderType/fhdr:fileName', $INFILENAME, 'fhdr=http://xmlns.oracle.com/pcbpel/adapter/file/;')"/>
    <opaque:opaqueElement>
    <xsl:value-of select="/opaque:opaqueElement"/>
    </opaque:opaqueElement>
    </xsl:template>
    </xsl:stylesheet>
    To use this with the file adapter, you would have to wirte file where is written ftp.
    Hope this helps,
    Zaloa

  • Restricting the File adapter to pick up only a part of the payload

    Hi ,
    I have a csv file like below,
    $H$,Header1, xyz, xyz
    $H$,Header2, xyz, xyz
    $H$,Header3, xyz, xyz
    $D$,Detail1,xyz,xyz
    $D$,Detail2,xyz,xyz
    $D$,Detail3,xyz,xyz
    Header and Details links have no link to each other!!! I just wanted to check if at all it is possible for the file adapter to skip the header llines and take only the detail lines.
    Does this require any tweaking in the nxsd that is generated??
    Any light on this would help... :)

    Hi Anuradha,
      Could you please kindly provide answers to the queries below so that forum members can have a clear picture of your requirement
    1. What is the operating system of your PI server?
    2. What is the version of PI you are working on?
    3. What exactly do you mean by statement " I want the adapter to pick only one file at a time rather than picking all the available files in the system."  since adapter will actually pick up files one by one only in each polling interval. This goes in PI pipeline
    one after another in quick succession.
    4. Do you mean that you want to insert delays between successive file pick up then Baskar has already answered your question.
    5. Do you want the channel to pick up only one file in a day out of all possible file?
    6. Could you please kindly provide any sample file name you are receiving in PI ?
    regards
    Anupam

Maybe you are looking for

  • Agent is determining properly but workitem is not coming in sap inbox.

    Hello Expert,                         In my workflow agent is determining properly. i have seen from workflow log. but the workitem(approval mail) is not coming into agents workflow inbox.the problem is happening in production. same workflow is runni

  • Displaying logo in Oracle Portal

    We are building a portal to service multiple distribution channels. The layout for each distributor is the same, but the logo and banner image at the top of the page changes for each distributor. We are tracking the distributor as an attribute in OID

  • SXDE upgrade: how much diskspace is needed, and where?

    I have an existing SXDE 9/07 install and would like to upgrade it to 1/08. I started the process, pointing it at my existing driver, and the upgrader halted, complaining about 'Insufficient disk space.' But it gave no guidance as to how much would be

  • Condition type-R002

    Hi    I have maintained the condtion type R002 in the prcing schema.   __Attributes of ROO2__   Header condition allowed   Item condition allowed   Group condition allowed But the system allows to center two times both in header condition & two times

  • Cross-referencing keywords in Bridge

    Can you cross reference keywords?  I have an album with photos tagged as 'sweden' but then there are a few in that folder with the tag 'sweden' AND 'airport'... When I select filter by keywords I'd like to click 'sweden' and 'airport' and have it onl