File to File interface Count

HI ALL,
I have a file to file scenario used to move 100 PDF files from System A to B . i give wildcard * in the sender communication and used ASMA to name the file in the receiver side.
the requirment is client is asking to send a e-mail aftre sending all the files successfully from A to B the content in the email needs to be the  number of files sent and time of the last file sent ..
how can i achive this in PI..?
thanks
souz

Hi Dominic,
you need to use BPM  and counter variable  to get  the number of files coming in...and assign a increment in the container operation.
what about using  OS command  in the sender file adapter ?
A not so good idea below
What about putting a counter in the file name , is it allowed ,I think if you are allowed to add the counter and timestamps then you can see the file count and time of last processed in the file name itself. then you can  design another interface to send a mail ...somehow
Regards,
Srinivas
Edited by: Srinivas on May 12, 2010 12:42 AM

Similar Messages

  • Count of no.of files passed for interface

    Hi friends,
    Can we have a Count of no.of files passed for interface per day..I need it to be an automated process like the no of files interface has processed has to be updated in the daily report.. Can we have it as automated other than manual check.. Is this possible?

    Hi Mahesh,
    Here are the tables where the message will be stored in tables.
    Transaction Codes - (SE11, SE 16)
    SXMSPMAS XI Messages - Master
    SXMSPHIST XI Messages - Master History table
    SXMSPEMAS Integration Engine: Enhanced Message Queue (Master)
    SXMSPVERS Integration Engine: Message Version
    SXMSPERROR XML Message Broker: Message Queue (Incorrect Entries)
    SMPPMAP3 Mapping Runtime: Mapping
    SMPPREL3 Mapping Runtime: Mapping Relation
    SMPPSPLIT XI Mapping: Merge and Split
    SXMSPFRAWH Integration Engine - Header Table for Raw Data for Performance Evaluation
    SXMSPFRAWD Integration Engine: Data Table for Raw Data for Performance
    Adapter Engine Tables -
    Schema Name - SAPSR3DB
    XI_AF_MSG AF XI Message
    XI_AF_MSG_AUDIT audit log entries
    If runing on PI 7.1, table names are as follows -
    BC_MSG AF PI 7.1 Message
    BC_MSG_AUDIT PI 7.1 audit log entries (**)
    Thanks,

  • Idoc to file with file name as ABCD timestamp and count

    Hi,
    Greetings!
    I have an requirement like iDoc to File and the output file name should be ABCDYYMMDDXX (e.g ABCD14091701) in PI 7.1
    where,
    Default = ABCD
    YY = year
    MM = month
    DD = date
    XX = sequence no. on the same day; e.g. first batch on same day = 01, second batch on the dame day = 02
    I tried checking many blogs but its not meeting this requirement.
    Kindly please help me out in completing this interface.
    Regards,
    Vinoth

    Hi Vinoth,
    Below is the code. Use it in-conjunction with your dynamic config code.
    String inputFile = "D:\\Receiver"; //This is your target receiver folder
      String dateStr = DateFormat.getDateInstance().format(new Date());
      dateStr = dateStr.substring(0, 2)+ dateStr.substring(3, 5)+ dateStr.substring(8,10);
      final String fileNamePattern = "DEFAULT"+dateStr;
      File file = new File(inputFile);
      File[] listFiles = file.listFiles(new FilenameFilter() {
      @Override
      public boolean accept(File dir, String name) {
      if(name.contains(fileNamePattern))
      return true;
      return false;
      //System.out.println("Number of files in the directory "+inputFile+" : Next Counter"+ (listFiles.length+1));
      int counter = listFiles.length+1;
      String fileName = "";
      if(counter < 10)
      fileName = fileNamePattern+0+counter;
      else
      fileName = fileNamePattern+counter;
      System.out.println("Name of the file will be:"+fileName);
    Hope it helps!
    Best Regards,
    Anand Patil

  • Error while testing File-PI-SOAP interface

    Dear All,
    We are working on File-PI-SOAP interface in which we have exposed a functional module from ECC server as receiver webservice. When we are testing the the interface we are getting following error :
    Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/PLAIN; HTTP 407 Proxy Authentication Required.
    In the receiver SOAP communication channel we have provided the required ECC login & proxy authentication credentials and also we are able to open the URL from PI server. Kindly let us know what more settings are required o make this interface running.
    Regards,
    NJ

    Hi,
    This is a synchronous interface and I want to send the output from webservice as a file to third party system.
    We are just working on a demo interface, so we have created a webservice of a function module of ECC and also our interface is File-PI-SOAP.
    We have also given the login credentials for proxy authentication but still we are getting the error the
    SOAP: error occured: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/PLAIN; HTTP 407 Proxy Authentication Required
    Kindly let us know, how can we resolve this error.
    Regards,
    NJ

  • Getting error while reading file from /data/interface

    HI Experts,
    while i am executing the job MPU* in ECC it write error file in /data/interface/sidclntxxx/IN/MPU742. now for the tcode ZMM_MPU_ANALYSIS it ask that error file, it is reflecting "error reading log file /data/interface...". now i am not getting the email also that supposed to get. please help
    Edited by: stiw382 on Dec 1, 2011 1:17 PM

    > while i am executing the job MPU* in ECC it write error file in /data/interface/sidclntxxx/IN/MPU742. now for the tcode ZMM_MPU_ANALYSIS it ask that error file, it is reflecting "error reading log file /data/interface...". now i am not getting the email also that supposed to get. please help
    is that file accessible on the operating system? Is the filesystem mounted?
    Z-transaction codes are customer developments, since nobody here knows, what this program does I suggest you contact the developer of that transaction.
    Markus

  • File adapter: file_name with counter, stable after restart J2EE

    Hello guys,
    we are on XI 7.0.
    in a receiver file channel we have to create file names with a stable counter (7digits).
    The payload is IDOC flat file after ABAP mapping (not XML format).
    The  bad thing with the counter is that it is not stable. After restart of J2EE engine the counter starts again more or less
    from the beginning (also described in a FAQ OSS note).
    Does anybody have an idea how we could realize a stable counter for file names that also increases the counter after restart of J2EE. Is individual programming necessary? module ?
    We thought about SAP number ranges (DB) but how to integrate this in the file channel. Also generating the the number in ERP and send it in the IDOC to XI, but after the ABAP mapping to IDOC flat file we cannot use the payload for variable replacement.
    Every help is appreciated
    best regards
    Hans

    Hello Georg,
    You can achieve this by developing a Customized adapter module,
    Try to maintain the counter in one of the temporary file in the XI system, read the counter number from the temporary file and increment the counter by 1.
    rename the receiver filename with the sufix as counter.
    replace the counter number in the temporary file with the latest counter number i.e increment by '1'.
    regards,
    Chandra Shekhar

  • ERROR: MyService.jws:715:There are two or more operations with the same schema-element 'ns0:MyNameSpace' on the input message in a web service file or callback interface.

    I have two web service operations that have the same complex type as their input
    parameter. I want to map this type to an existing schema. I can successfully
    do this with the first operation using XQuery but when I attempt to do this with
    the second operation I get the following error:
    ERROR: MyService.jws:715:There are two or more operations with the same schema-element
    'ns0:MyNamespace' on the input message in a web service file or callback interface.
    ERROR:      SUGGESTION: Use different schema-element values for each of those operations.
    How can I use different schema-element values? The input parameters are to be
    mapped to the same schema and same element since they are the same for both operations....

    I am having the same problem. How did you resolve this..?? could you please tell me the solution??
    Thanks
    Shari

  • Interface mappin in File to File using BPM

    Hey guys
    why is it that in a asynchronous File to File scenario using BPM,we make interface mapping between outbound message interface and the abstract message interface whereas in general its between outbound and inbound message interface.also why we dont have any interface mapping between Abstract interface and inbound interface.
    thanx
    ahmad

    Ashish,
    From the link,
    http://help.sap.com/saphelp_nw04/helpdata/en/43/d92e428819da2ce10000000a1550b0/content.htm
    <i>Every step of an integration process uses Integration Server resources.
    &#9679;      Every message that is sent to the Process Engine is duplicated.
    &#9679;      Every message that is sent from the Process Engine is duplicated.
    &#9679;      A work item is created for the process itself and for every step the process contains.
    This means that for a process that just receives one message that is sent without being processed further, four messages and three work items are created.
    For this reason, you must ensure that you take Integration Server resources into account when you define integration processes. </i>
    So, by having the transformation outside the BPM , you are avoiding one message to be stored inside your BPM and therby the replication. The message that hits the BPM is the transformed message directly which avoid consumption of resources.
    So, as much as possible keep mappings outside the BPM.
    Regards,
    Bhavesh

  • File-PI-SOAP Interface error

    Dear All,
    We are trying a interface in which we wanted to do Post Goods Issue in SAP from a file. We have exposed our Z-RFC which will do PGI as webservice and has imported its WSDL in PI.
    Then, we have created a File-PI-SOAP interface. Now, when we are testing the interface we are getting success message in SXMB_MONI but in RWB, message for picking the file is success and when I am opening the message details its showing
    " 500 Internal Server Error" ""Application error occurred during the request procession."
    Details: "The WebApplicationException log ID is [001A64D0A1FC005F0000004600002E4800CEA8DA2043BF9A]."
    Same error is showing for the receiver message but at payload I am able to see the correct values.
    Kindly let us know, if any configurations are to be required to remove thsi error.
    Regards,
    NJ

    Hi,
    >500 Internal Server Error
    does mean the server does not understand the request. I your case: You want to make use of a service which assumedly no exist. May be you have to release or activate it or to do something in SOAMANAGER. Please check your service first with SOAP UI.
    Regards,
    Udo

  • File to File Interface without ESR objects

    Hello everyone,
    I have a requirement where our business users will  produce the .csv files in one location and we need to move to another location.
    I recon that we can build this File to File interface( usin FCC) without using ESR objects, can any one help me with the procedure since i am new to PI.  
    Thanks in advance

    HI Chandrika ,
    File to File Interface without ESR objects
    this is very simple , you need to create Configuration objs
    1. sender Communication channel and agrrenment
    2. receiver Communication channel and agrrenment
    3. u have to provide dummy service interface names and name space in interface determination,
    4.in receiver determination , we have to provide source and receiuvers bu.components and remaining dummy names.
    thanks,

  • Loading data into csv file based on the count of data in table in ODI

    Hi,
    I have a requirement like i have data in table and need to be loaded in csv file.
    If the count of the data in the table exceeds the csv data limit then i need to call the same procedure again to
    generate one more csv file and load the remaining data into it.my data in the table may vary all the time.
    I am new to this ODI.Can anyone tell any ways to do it in ODI or tell me any logic to do this?
    Thanks in advance..
    Edited by: 883410 on May 22, 2012 12:01 AM

    What limit on the csv file are you talking about. There isn't a limit (unless you are on Unix where the filesize is limit is 2GB). Are you talking about opening it in earlier versions of Excel where the display limit is 60,000 rows as this is irrelevant for your operation?

  • Files, directories and subdirectories count

    Hello,
    I'm currently building a small AIR application via Flash Builder 4 (FLEX 4) that will count the number of files (EVERY type of file)
    in a certain directory (choosen by the user) the problem gets when I have subdirectories,
    tried recursive (which is basicly the only solution) and got stuck and confused with myself, can anyone help a brother out here?
                private var directory:File = File.documentsDirectory;
                [Bindable]
                private var count:int = 0;
                public function browseForDirectory():void
                    directory.browseForDirectory("Select Directory");
                    directory.addEventListener(Event.SELECT, directorySelected);
                public function directorySelected(event:Event):void
                    directory = event.target as File;
                    var files:Array = directory.getDirectoryListing();
                    for(var i:int = 0; i < files.length; i++)
                        myPath.text = directory.nativePath;
                public function countFiles():void
                    var files:Array = directory.getDirectoryListing();
                    for (var i:int = 0; i < files.length ; i++)
                        count++;
                        if (files[i].isDirectory)
                            count += countFiles();
                    myResult.text = count.toString();
    Hoping for a quick response, Thanks!

    Here is how it is done in java as far as file recursion.  The main deficiencies I see with your code is that you don't discriminate if a file is a directory or a file.  You have to discriminate, so that if your file is a directory, you can invoke the "count" function on it.
    http://www.javapractices.com/topic/TopicAction.do?Id=68

  • CS5 error message - file-format module interface

    First post - sorry if it's not in the best place.  CS5 has suddenly fallen over with the following error message when trying to open a raw file (.CR2 / 5DII), which it could open previously:
    "Could not complete request because of a problem with the file-format module interface".
    Googling has not produced much at all on this topic, and none of it helpful.
    Any thoughts on this please?

    Thanks for getting back to me.  I've made a little progress.  It seems that my usual identity is corrupted, or is being affected by PS crashes, which are crashing the DDE server window and also preventing some other applications (such as Adobe Acrobat Pro 9 and even Internet Explorer) from running in that identity too.  If I close and restart that identity, it's fine again as long as I don't even open PS.
    So I created a new identity just to see if PS would run OK there, and it did, for about 4 hours, but then errors started to recur, such as 'PS has encountered an expected problem and needs to close....' when opening raw files.  As I'm trying to finish off editing a set of wedding photos, this is a pain.
    I'll try reinstalling PS, but I suspect the problems I'm seeing may be due to a lack of resources.  So, reluctantly, I'm thinking it may be time to replace my faithful and carefully maintained Pentium 4 running XP, and enter the dizzy world of 64-bit.  One issue may be installing CS5 on a new machine, since I only have an upgrade disk, having migrated all the way from a full copy of PS6, via a CS2 upgrade.  I understand that it would be wise to go for Windows 7 Pro, which contains an emulation of XP and therefore allows older 32-bit software to be installed.  Any other points to consider?
    By the way, your suggested search for the file 'camera raw.8bi' turned up two versions - the CS5 one, and the older CS2 file.

  • "quoted string not properly terminated" error in File to Oracle interface

    We have an interface at our site that is a simple file to Oracle interface. We used the sqlldr LKM and the SQL Control Append IKM. The interface bombs out when one of the unmapped Oracle fields has this for a string literal in it: '--A'. It's a size 3 varchar field in Oracle. We can put in other literals fine in it, but using the '--A' one brings back this error in the Insert portion of the interface:
    1756 : 42000 : java.sql.SQLException: ORA-01756: quoted string not properly terminated
    java.sql.SQLException: ORA-01756: quoted string not properly terminated
    I ran the sql query that ODI bombs out on and the record inserts fine inside sql developer.
    Anybody else experience this and if so what was the solution to get past this?
    We're using ODI 10.1.3.5.5.

    Hi A,
    I tried this but it didn't work. I am puzzled as to why OBIEE prints any special character after a % twice. For example %& becomes %&& or %' become %'' . I guess it is the Evaluate function that is fiddling with the % .
    Thanks.
    Edited by: 900740 on Feb 9, 2012 9:22 AM

  • KM File Unique user hit count

    Hi All,
    Is there a way to know the hit count for a KM file (Unique user hit count). As KM maintains read and unread flag for each user.

    Hello, yes, you could activate KM Activity Report, go to
    System Administration > System Configuration > Knowledge Management > Content Management > Global Services > Activity Reporting Service (advanced option)
    restarting is necessary, a .txt file will be created every day on the server at
    /usr/sap/<SID>/<INSTANCE ID>/j2ee/cluster/server0/<activiy report folder default/custom name>
    which can then be analyzed with excel, normal filters/subtotal function or
    if you prefer use a BI tool
    on the beggining the "Main File Format" is a string quite confusing, please refer
    to the following document for more in depth configurations
    http://www.sdn.sap.com/irj/scn/events?rid=/library/uuid/20bdc97c-face-2b10-dfab-c85ed4a4ebe6&overridelayout=true
    kind regards,
    Rafael

Maybe you are looking for