Polling for files using SAP workflow

Hi all. First of all, I am not sure if this is the correct forum for this question.. Please let me know if it needs to be moved.
I need to know if it is possible to use SAP Workflow to keep looking (polling) for files in a certain directory? I know I can do this in XI, but need to know if the same capability is available within Workflow? If it is possible, can anyone tell me how / where to find the information on how to do it?
Any help is greatly appreciated.
Cheers,
Thomas

Hi- Both the ways are possible
1. Extended Notification (you need to configure and schedule prog.) which will send email automatically to outlook (based on user's mail id in SU01D) whenever the approver receives new approval task and the email will have link to Approve/Reject (based on the underlying WF step). When approver clicks on the link, it will ask for user id/pwd and approver can take decision
2. You can also send plain email notification in WF using mail step to outlook and based on the mail, approver can take action from inbox
Vinoth

Similar Messages

  • Error encountered while polling a file using OSB

    Hi,
    This is the Exception when i try to poll a file using OSB
    <Error enco
    untered while polling the resource for the service endpoint ProxyService$CASE_RC
    $BUILD_DATA$FILE_HEADER$FileProcessPS: javax.naming.NameNotFoundExc
    eption: While trying to lookup 'wlsb.internal.transport.task.queue.file' didn't
    find subcontext 'wlsb'. Resolved ''; remaining name 'wlsb/internal/transport/task/queue/file'
    javax.naming.NameNotFoundException: While trying to lookup 'wlsb.internal.transp
    ort.task.queue.file' didn't find subcontext 'wlsb'. Resolved ''; remaining name
    'wlsb/internal/transport/task/queue/file'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(Basic
    NamingNode.java:1139)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:247)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
    Truncated. see log file for complete stacktrace
    Can i know what is the issue?

    Hi,
    * java.lang.OutOfMemoryError: PermGen space
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.getConstructor(Unknown Source)
    Solution: Increase the max permgen space -XX:MaxPermSize=256m
    There can be a leak in the permgen objects. If tuning parameters do not resolve the issue, we need to use the memory leak detector tools and find out which instances in the permgen space are not getting cleared.
    Reference - Weblogic wonders...
    http://weblogic-wonders.com/weblogic/2010/12/30/different-out-of-memory-issues/
    Cheers,
    Vlad

  • AutoCAD files using SAP XI

    Dear All,
    1. Is it possible to transfer AutoCAD files using SAP XI?
    2. Will the file adapter serve the purpose?
    3. If yes, are there any performance issues that need to be looked at in transferring AutoCAD files?
    Thanks and Regards,
    Ashwin

    Hi Ashwin,
    It is possible to process CAD files.
    It is possible with File adapters only. the performance could be analysed based on the size of files as well as for 2-D drawings in Auto CAD it will take less volume of file size but normally 3-D drawings consumes lot of space.
    there is one similar scenario to process image files in below link. This will give you step by step Idea about it.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10dd67dd-a42b-2a10-2785-91c40ee56c0b
    To open a DWG file in CDESK u need to have the Autocad s/w installed on ur system this is because when u tell SAP to open any type of file first it saves its original copy in a temp folder and to store any dam type of a file u need to have the application that supports that type
    of file
    there is some s/w called EI viewer I dont know much functionality of it but i guess its required for the drawings involving 3D view
    thanks
    Swarup
    Edited by: Swarup Sawant on Feb 4, 2008 10:08 AM

  • Polling xml file using file adapter

    Hi,
    when i am polling xml file using file adapter, xml file received properly.
    After receiving activity i am using assign activity to copy values to another variables, here i am getting error the values are not updated.
    My xml comes with out namespace, when we put namespace then only values are updated.
    What i need to do to update values.
    Regards,
    eeswar.

    after configuring the file adapter, define the interface of the BPEL using "based on the WSDL " option and select the wsdl of the file adapter , see whether it helps...

  • Send email on external email address using sap workflow

    Dear All,
    I wat to send email( on external email address) to all users on under one position in org unit using sap workflow.
    I have retrived all users under given postion using FM   'RH_OM_GET_HOLDER_OF_POSITION'.
    Please let me know how to get their email ids.
    Thanks & Regards
    Rajshree

    Hi Rajasree,
    You can get the email address by passing the PERNR of employee and read the infotype '0105' (communication) with subtype '0010'.
    DATA: lt_p0105 LIKE p0105 OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'HR_READ_INFOTYPE'
       EXPORTING
    *   TCLAS                 = 'A'
        pernr                 = pernr
        infty                 = '0105'
        begda                 = sy-datum
        endda                 = sy-datum
    *   BYPASS_BUFFER         = ' '
    *   LEGACY_MODE           = ' '
    * IMPORTING
    *   SUBRC                 =
       TABLES
         infty_tab             = lt_p0105
      EXCEPTIONS
        infty_not_found       = 1
        OTHERS                = 2.
    IF sy-subrc <> 0.
    * Implement suitable error handling here
    ENDIF.
    READ TABLE lt_p0105 WITH KEY subty = '0010'.
    email = lt_p0105-usrid_long.
    Regards,
    Pipit

  • Build daily Big flat file using SAP R/3 material master data

    Hi all,
    I must build an interface between SAP R/3 4.7 and an external application
    Daily a flat file must be generated contaning Material data in full exchange mode
    (volume 100 000 materials, <10 fields => ~ File of 30Mo)
    No complex mapping, only format mapping (Ex : Price quantity...)
    I don't know yet if I will use Idocs or BAPI to extract data. However, I'm sure I must use multiple inbound messages because of volume
    After reading documentation, I consider the both following solutions to manage it :
    1) A simple asynchronous interface with a file adapter in construction mode APPEND to build flat file progressively with arrival of SAP messages
    =>
    viable solution ?
    Is there problem of concurrent access to file in such a solution  ?
    (idocs or bapi data will be processed ones following the others )
    2) BPM Collecting and Bundling Messages - One Interface
    (Unlimited Loop with Deadline trigger correspondint to time I must build flat file)
    =>
    Each SAP message is a small message but the outbound XML will represent a 30 Mo flat file => Is it a problem ??
    Which solution do you advise ?
    Is there another ?
    Last question : (more general one)
    In such scenario, I can't see XI-value added comparing a creation of flat file directly with R/3.
    I will generate a big number of idocs, use a big part of XI memory ...
    Can you give me your opinion about it ?
    Thanks a lot
    Best regards
    Jean-Charles
    Message was edited by:
            Jean-Charles
    Message was edited by:
            Jean-Charles

    Hi Jean-Charles,
    >>>volume 100 000 materials, <10 fields => ~ File of 30Mo
    You have a performance task...
    >>>Is there problem of concurrent access to file in such a solution ?
    No, the adapter framework has its own queueing, the message would be stored and executed later. If sequence is important, you can use EOIO as well.
    >>>BPM Collecting and Bundling Messages - One Interface
    BPM is not required in your case, you should avoid becoz of performance task. You can append at file adapter, no problem. Bundling and splitting is even possible at Integration Server without BPM.
    >>>Each SAP message is a small message but the outbound XML will represent a 30 Mo flat file => Is it a problem ??
    Avoid using BAD words
    >>>Each SAP message is a small message but the outbound XML will represent a 30 Mo flat file => Is it a problem ??
    Use the <a href="https://websmp110.sap-ag.de/quicksizing">Quick Sizer</a> for sizing the hardware.
    Regards,
    Udo

  • BPM to get rid of polling for file adapter

    Hello,
    nice scenario here:
    We want to trigger a scenario for file to file transfer via an aRFC to be independent from the polling.
    Looks like this needs a BPM, which could be started via an aRFC (save e.g. the content of the RFC in a directory on the XI machine if necessary).
    But how to trigger now the sender adapter to pick up the prepared file (no relation to the content coming with the RFC) to deliver it?
    Looks like we do not really understand how to use the BPM? Any idea to solve that is welcome!
    Best regards
    Dirk

    Hi Dirk,
    take a look at this weblog by siva:
    /people/siva.maranani/blog/2005/05/22/schedule-your-bpm
    schedule your BPM and then you can use pooling
    for the file adapter cause the message will stay in BPM
    and you can control from the BPM
    Regards,
    michal

  • What's the work can we do for the position SAP-Workflow developer live link

    Hi,
    I got the requirement as a workflow developer.
    The requirement is to work as a SAP-Workflow live link open text developer.
    What does the  live link open text means?
    Early reply is highely appriciable.
    Regards,
    Chow.

    Hi,
    OpenText is a company providing different document management and archiving solutions. LiveLink is one of their archiving solutions. (Just use Google for more reference.)
    My guess is that you need to work with a workflow process that involves archiving of scanned invoices.
    Regards,
    Karri

  • Migrating sapwsdl file using SAP ES Explorer

    Is there any way to use the existing sapwsdl file which is created using SAP connector to SAP ES Explorer?
    Our aim is to use the SAP ES Explorer with Visual Studio 2005 version.
    Or is there any other way to migrate the application using SAP ES Explorer without using service registry.Please reply as soon as possible as we are not able to proceed further.
    Thank You,
    Juhi

    Hi Juhi,
    Pls. find my comments below-
    >>Is there any way to use the existing sapwsdl file which is created using SAP connector to SAP ES >>Explorer?
    Well, you need to understand that the working and underlying principles of Connector and ES explorer is different.
    1.SAP Connector is there to expose the RFC/BAPI from SAP ERP system and provide design time and runtime support for application development.
    2. ES explorer provides access to the services published into Service Registry, which can be consumed by application.
    >>Our aim is to use the SAP ES Explorer with Visual Studio 2005 version.
    >>Or is there any other way to migrate the application using SAP ES Explorer without using service >>registry.Please reply as soon as possible as we are not able to proceed further.
    Bottom line is, if you want to use ES Explorer you would have to ensure that there exists a Service Registry and Services are publish in that.
    Hope to clarify some of your points.
    Regards.

  • Sender SFTP Adapter channel is not polling for files

    Hello All,
    Couple of SFTP sender adapter channel was failing in Developent system with u201Cdirectory listingu201D error.All SFTP sender channels stopped polling for the files in Developent system  . We were unable to find the reason for adapter failure, Hence we restarted the j2ee server and adapter started polling files. Later we are facing the same issue in Quality system. THe adapter cahnnel is not polling files in Quality system even.
    All lean tool adapters were showing the u201CHost key was not accepted erroru201D on 27th of Feb . As per the other channel trace, the time stamp of last successful polling and error time stamp of lean tool sender channels are exactly same
    Eventhough two communication channels access the same SFTP adapter, one communicationchannel is getting 'Host key was not accepted error' but in other communication channel, files are getting picked.
    Please let me know the solution if you have come accross this issue previously
    Regards,
    DilipKumar

    Hi Mike,
    Thanks for your reply.
    Its not a standard SFTP adapter rather its a C-BURGER SFTP adapter.
    Sorry I did not mention this in my previous post
    Regards,
    DilipKumar

  • How to search for files using wildcards * and ?.

    Hi All,
    I've been searching the forum for a couple of hours now and have been unable to find a good example of how to search a directory (Windows OS) for a file using wildcards * and/or ?. Does anyone out there have a good example that they can share with me?
    Thanks

    Hi All,
    First of all I want to thank everyone for taking the time to respond to my question. All of your responses where greatly appreciated.
    I took the example code that was posted by rkconner, thanks rkconner, and modified it to allow me to search for files in a directory that contain * and/or ?. Yes, I said and/or! Meaning that you can use them both in the same file name, example: r??d*.t* would find readme.txt.
    I've posed my complete and thoroughly document code below. I hope it is very helpful to other as I have searched many forums and spent many hours today trying to resolve this problem.
    Enjoy
    * File Name: WildcardSearch.java
    * Date: Jan 9, 2004
    * This class will search all files in a directory using the
    * asterisk (*) and/or question mark (?) as wildcards which may be
    * used together in the same file name.  A File [] is returned containing
    * an array of all files found that match the wildcard specifications.
    * Command line example:
    * c:\>java WildcardSearch c:\windows s??t*.ini
    * New sWild: s.{1}.{1}t.*.ini
    * system.ini
    * Command line break down: Java Program = java WildcardSearch
    *                          Search Directory (arg[0]) = C:\Windows
    *                          Files To Search (arg[1]) = s??t*.ini
    * Note:  Some commands will not work from the command line for arg[1]
    *        such as *.*, however, this will work if you if it is passed
    *        within Java (hard coded)
    * @author kmportner
    import java.io.File;
    import java.io.FilenameFilter;
    public class WildcardSearch
         private static String sWild = "";
          * @param args - arg[0] = directory to search, arg[1] = wildcard name
         public static void main(String[] args)
              String sExtDir = args[0]; // directory to search
              sWild = args[1];   // wild card to use - example: s??t*.ini
              sWild = replaceWildcards(sWild);
              System.out.println("New sWild: " + sWild);
              File fileDir = new File(sExtDir);
              File[] arrFile = fileDir.listFiles(new FilenameFilter()
                   public boolean accept(File dir, String name)
                        return (name.toLowerCase().matches(sWild));
              for (int i = 0; i < arrFile.length; ++i)
                   System.out.println(arrFile.getName());
         }     // end main
         * Checks for * and ? in the wildcard variable and replaces them correct
         * pattern characters.
         * @param wild - Wildcard name containing * and ?
         * @return - String containing modified wildcard name
         private static String replaceWildcards(String wild)
              StringBuffer buffer = new StringBuffer();
              char [] chars = wild.toCharArray();
              for (int i = 0; i < chars.length; ++i)
                   if (chars[i] == '*')
                        buffer.append(".*");
                   else if (chars[i] == '?')
                        buffer.append(".{1}");
                   else
                        buffer.append(chars[i]);
              return buffer.toString();
         }     // end replaceWildcards method
    }     // end class

  • How to run .exe files using SAP

    Hi,
    How can I run my .exe files using ABAP/4 language? How can I pass parameters to my executable? Is there any documentation related with my question?
    Thanks.

    Here is how you can run a .exe from your ABAP.  I don't know how you would pass parameters.
    report zrich_0001
           no standard page heading
           line-size 300.
    data:
               ifile_table type table of file_table,
               xfile_table type file_table,
                return type i..
    parameters: p_app type file_table-filename
              default 'C:'.
    at selection-screen on value-request for p_app.
      clear ifile_table.  refresh ifile_table.
      call method cl_gui_frontend_services=>file_open_dialog
       exporting
          window_title       = 'Get App'
          multiselection     = space
       changing
          file_table         = ifile_table
          rc                 = return
       exceptions
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          others                  = 4.
      read table ifile_table into xfile_table index 1.
      if sy-subrc  = 0.
        p_app = xfile_table.
      endif.
    start-of-selection.
      data: app type string.
      app = p_app.
      call method cl_gui_frontend_services=>execute
        exporting
          application            =  app.
    Regards,
    Rich Heilman

  • SOST sender column is blank using SAP workflow email step

    Hello,
    I used email step in SAP workflow to send emails. Sender is blank in SOST when I tried to see the email processing status. I am not sure, what need to done here to fix this. Can someone please help me on this.

    Hi,
    well yes you can,
    either store your recepients in a container,
    use a loop in ur WF and include your SendMail Activity inside it, and depending on a check variable send your Mails to different recepients.
    else.
    i had a similar case, what i did was i created a DL-List and instead of SendMail i created a task that called my customized method of sending mails (SO_OBJECT_SEND).
    try it and comment,
    if helpful reward
    Cheers,
    Aditya

  • Unable to poll for files in FTP server using Proxy Service (in OSB Project)

    Here are the stepd followed for creating proxy service that should poll ftp server to retrieve files but polling is not happening and unable to see any errors in logs.
    1. Created service account by selecting resource type as static and providing the ftp user and password details.
    2. Created a New Proxy Service in eclipse
         Tab General - service type as Messaging Service
         Tab Messaging - Request Message Type as Text, Response message type as None
         Tab Transport - Protocol selected as "ftp"
              - Endpoint uri entered in the format - ftp://hostname:port/directory
    FTP Transport -Selected "external user" as User Authentication
              - Selected the Service Account thats created in step1/
                   - File mMask - *.*
                   - Polling Interval 60
                   - Read Limit 10
                   - Post Read Action - Delete
                   - Transfer mode - binary
                   - Download Directory - "some local directoy"
                   - Error Directory - "some local error directory"
    Could any one please help here to trouble shoot the polling issue and correct me if this is wrong approach.
    Thanks

    Did you configure the FTP adapter which is present in Weblogic server?I think he's using FTP transport in OSB and not the JCA adapter, if that's the case FtpAdapter configuration wouldn't help...
    unable to see any errors in logsThat's odd, try to mess up the hostname and see if you get a connection refused on the logs...
    It may be a permissions issue, the user you're connecting may not even "see" the files you place there... Try using the same user to create and to poll files...
    Cheers,
    Vlad

  • How many Communication Channels required for File--Bpm(SAP R/3)--File

    Hi
        Pl..help me on this
        I am doing the following scenario File 2BPM 2 File
        i.e File -
    BPM(ASync)
            BPM -
    SAP R/3(Sync)
            SAP R/3 ---BPM (Sync)
            BPM ---File (Async)
        For me it looks three CC's  but still i am not confident
        Can any one explain me on this
    Adv thanx
    Prasad K

    File(<b>CommChannel 1 -File Sender</b>) -
    > BPM(ASync)
    BPM -
    > SAP R/3(Sync) (<b>CommChannel 2 - RFC Receiver</b>)
    SAP R/3(Comm Channel 3 -RFC Sender) --- > BPM (Sync)
    BPM ---> File (Async)(<b>CommChannel 4 - File Receiver</b>)
    <i><u><b>So a TOTAL of 4 Comm Channels.</b></u></i>
    Since Sinchronous so 4 channels .. if you use idoc adapter instead of RFC 3 channels will do
    Cheers,
    Himadri
    null

Maybe you are looking for

  • DVD will not play on certain stand alone machines.  Help!

    Hello, everyone. I'm going crazy trying to find a solution to this. I burn a lot of DVDs for people using DVD-R media, and burned at 1x. For most people, that works fine. However, I have certain people who just can't get a clean copy - the video will

  • Why won't my computer shut down

    My computer will not shut down. Most the times it says that it is because applications are failing to quit.  Yes, I have tried to force quit  multiple ways, such as Command+option+esc.  I have also held down the mouse if on the dock, but the force qu

  • Use apex_application.g_unrecoverable_error := TRUE; and apex_collection.truncate_collection doesn't work

    I'm trying to print pdf using JasperReports Integration. I need to do an INSERT then clean all the page items(including the apex_collection.truncate_collection for truncate the collection)  and print with the Jasper call(all in one button). The Inser

  • What does EvalAsSchedulerSchema do

    Hi, It was recommended to me (as a possible way to avoid a software bug) to set EvalAsSchedulerSchema to 1 (true), but I have no idea what it does. I found it in the RWS registry set to 0 ( which must be the default because I have not set it), so it

  • How to export Safari bookmarks to Chrome?

    I love the iPad Mini, but Chrome has some knockout features - like single-line URLs, and queries you can dictate. How can I export my Safari bookmarks into my Chrome Browser on the Mini?