Workflow completing but not assigning to it all agent (multi line agent)

therer is a scenario in my project where one workflow is created with multiline agents i.e. one workflow assigne to multi users but when i am completing this workflow using SAP_WAPI_WORKITEM_COMPLETE its not assining to defined multi agents in "lt_con table" of next step of workflow.
as it is..
CALL FUNCTION 'SAP_WAPI_WORKITEM_COMPLETE'
            EXPORTING
              workitem_id      = iv_wf_id
              actual_agent     = 'OWNER1'
              language         = sy-langu
            IMPORTING
              return_code      = return_code
              new_status       = new_status
            TABLES
              simple_container = lt_con.
please tell me where i am missing  ?
Edited by: ashu@sap on Aug 29, 2011 9:54 AM

Hi,
  After reading all your posts as per my understanding.
1. You said that you have a dialog work item inside a loop and this has to get approved by different people at each level and at each level there could be a possibility that there can be multiple agents. In your current case it is working fine for one single agent.
  First of all why are you trying to populate the agents in a separate multiline container element. Why am I saying this is because when workflow already provides the technique to handle this kind of situation  by creating RULES and assign it to the dialog work item to determine the agents . If you would have created a rule to determine the agents based on the each level irrespective of the number of agents determined by the rule the work item will be sent to all the respective agents inbox.
So create a RULE in such a way that based on the loop iteration or level it should determine the agent and assign this rule to the dialog task.
2.  If am not wrong you might be using some kind of dynpro application so that is the reason you are trying to complete the work item by making use of function module. Clear me that is the user completing the work item from SAP inbox or UWL. also clear that is the task is a decision task or simple foreground task.
If the task is a decision task then make use of the function module SAP_WAPi_DECISION_COMPLETE. if the user is executing the work item from sap inbox then there is no necessary of completing the work item. system will take care of other things.
3. Finally You say that the work item is still appearing in the executed users inbox.
This could be possibly because of the way you are trying to complete the work item. So to overcome this error you need to redesign your workflow by adding RULE to the dialog task. Then you wont find any issues.
Please do not populate all level agents at one go. determine agent at each iteration of the loop independently.
Regards
Pavan

Similar Messages

  • I received an email saying my downloads were complete but not all were in the list. How come?

    I received an email saying my downloads were complete but not all were in the list. How come?

    I downloaded Breaking Bad Season 6 and paid for it.  The next episode according to my email is ready to download on itunes but it doesn't show up in my downloads list.  Does anyone know what I need to do?

  • How can I keep lion from generating .DS_Store files on windows network partitions, but not disable it for all network partitions?

    How can I keep lion from generating .DS_Store files on windows network partitions, but not disable it for all network partitions?  I am fimilar with changing the setting for all network partitions(defaults write com.apple.desktopservices DSDontWriteNetworkStores true), but that is undesirable when I connect my laptop to my home network. A preferable solution would be where I could control the writing of these files based on disk format (NTFS vs HFS+).

    Go to MacUpdate or CNET Downloads and search for ds_store. There are numerous utilities for preventing them from being transferred to Windows systems.

  • TA25361 I have a ton of documents and databases in AppleWorks v 6.0 that I can no longer open on my MacBook Pro.  Is there any way to recover this info?  Some documents can be opened and resaved with textedit, but not my database with all important addres

    I have a ton of documents and databases in AppleWorks v 6.0 that I can no longer open on my MacBook Pro.  Is there any way to recover this info?  Some documents can be opened and resaved with textedit, but not my database with all important addresses.

    I tried Peggy's List > Select All > Copy > Paste into an AW spreadsheet suggestion.
    In my case, pasting into the spreadsheet lost all text formatting (mostly text set to bold). The results of formulas were pasted, and checkboxes were pasted as "on" or "off". The DB did not contain any pop-up menus or radio buttons, but I expect they would transfer as a number showing the list position of the chosen item.
    Pasting the copied List view data into a Numbers table gave a result similar to that with AppleWorks. I selected B2 as the target cell (for top left cell of the pasted data) to avoid any effects of posting into a header row or column. Bold and regular text formatting looked the same as it had in AW's List view.
    Based on that, I'd slip the 'paste into an AppleWorks Spreadsheet step, and paste directly into a Numbers Table.
    Regards,
    Barry

  • I am having trouble running videos through Safari but not Google Chrome.  All I get is a black screen.  I have the latest adobe flash update and have enabled plug ins.  any suggestions?

    I am having trouble running videos through Safari but not Google Chrome.  All I get is a black screen.  I have the latest adobe flash update and have enabled plug ins.  any suggestions?

    Open System Preferences > Flash Player then select the Advanced tab.
    Click Delete All under Browsing Data and Settings
    Not empty the Safari cache.
    From your Safari menu bar click Safari > Preferences then select the Advanced tab.
    Select:  Show Develop menu in menu bar
    Now click Develop from the menu bar. From the drop down menu click Empty Caches.
    Now try a video.

  • Candy crush says in app purchase complete but not downloaded

    trying to purchase candy crush in app purchase and it says payment complete but not downloaded.when i click ok to download nothing happens.

    Candy Crush is not an Apple product, so you will have to contact them or seek out their Help pages.

  • HT4236 I have my photos in folders with subfolders on my pc.  When I sync to my Ipad I only get the folders but not the subfolders, so all pictures came over but not broken into each subfolder.  WHY?

    I have my photos in folders with subfolders on my pc  When I sync to my Ipad I only get the main folder but not the subfolders.  All pictures that are in the subfolders are synced but in no order.  I checked to sync all folders.  Help!

    Thanks for your reply.
    Does that mean that as its just another way of accessing my photos then it does not increase double up on memory ? In my photo library after repeated sycs on my IP 4 there appear to be 3 identical pictures in a row sometime just 2, why would this be if its just another way of accessing my pics, this confuses me.

  • I get mail on my phone but not on my computor, all it shows is loading mail and nothing happens

    i get mail on my phone but not on my computor, all it shows is loading mail and nothing happens

    Hello,
    On the POP account it sounds like you have this checked...
    Mail>Preferences>Accounts>POP Account>Advanced tab>Remove copy from Server after downloading.

  • Dont work adds of translation to me for example: quick translation, they is installed but not traduce any thing all the adds work less translations what can i do ?

    please i love mozilla and there is times what i want to translate any text from english to spanish but nothing i tve tried all the adds to translate but no load they is installed in my browser but simply dont work. tell me what can i do ?

    Everyone reading your posts here is just another MacBook Pro user. We're all volunteers, not Apple employees. No one here can speak for Apple.
    In my personal opinion, buying Apple products in a country where Apple has no stores and no corporate presence is a risk that the buyer takes knowingly. I don't think it's a wise risk, and I don't recommend that anyone take it. A small percentage of the products sold anywhere are going to have problems, and it makes more sense to buy an inferior product that can at least be serviced locally than to buy a superior product that may have to be sent thousands of miles for repair if anything ever goes wrong with it.

  • "Firefox is already running but not responding" - have tried all the usual solutions.

    The message I'm getting is the standard: "Firefox is already running, but is not responding." I'm using a PC with Windows 7.
    I've tried:
    - Opening task manager and manually ending the process. This didn't work because the process is not listed in applications, processes, or services.
    - Deleting the parent/lock file. This didn't work because the file is not in any of the firefox folders. I've checked APPDATA/Local/Firefox as well as APPDATA/Roaming/Firefox, and the original install folder just to be thorough. It's not a hidden file either - I have those set to display.
    - Creating a new profile and importing settings from the old one. I can't import settings because the old profile is still running.
    - Restarting before and after each of these potential solutions, including restarting in safe mode, shutting off the computer and waiting a bit before restarting, etc.
    All I really want back are my bookmarks, which I've spent quite a while creating. Unfortunately, there is no file I can find for the default profile that has the bookmarks stored. When I created a new profile, a folder appeared with its name in the APPDATA/Roaming/Firefox folder, with all of the bookmarks, etc. There is no such folder for the default profile though - which is the one I want. I've even tried switching to Chrome and importing bookmarks, but that doesn't work because the bookmarks can't be imported while Firefox is still running.

    Does a new profile work?<br />
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    If there is no profile present then you also get that error about "Firefox is already running but not responding"
    If you uninstalled Firefox at any time in the past and removed your personal data or deleted that profile folder yourself then you no longer have a profile to start with or restore files from.
    See:
    * http://kb.mozillazine.org/Recovering_a_missing_profile
    * http://kb.mozillazine.org/Profile_in_use

  • If my  ipod nano already has music on it but not my account will all my stuff be lost when i sync it to my account

    if my ipod nano already has music on it but not on my new account will all my stuff be lost when i sync it to my new accont and would i still be able to add stuff from the old account to my ipod

    All your iTunes Store purchases are linked to the account.  I do not think you can use two accounts with an iPod*, so you will have to choose one account or the other, and use only the things purchased under that account.
    *I've never actually tried, but that's my understanding.  You'd get a better answer by posting in the correct forum.  Try the iPod forums rather than the Using Apple Support Communities forum.

  • SD card detected but not assigned a device

    I have a Dell XPS 14 notebook which comes with a SD card slot. I plug in my SanDisk 8GB card from my camera and the following shows up in dmesg:
    [821605.639247] mmc1: cannot verify signal voltage switch
    [821605.750637] mmc1: new ultra high speed SDR50 SDHC card at address e624
    And that's it. The card is not assigned to any device. lsmod seems to indicate that I have the required modules loaded:
    ± % lsmod | egrep 'mmc|sdhci|sd'
    sd_mod 31361 3
    rtsx_pci_sdmmc 13911 0
    scsi_mod 132250 4 usb_storage,libata,sd_mod,sr_mod
    sdhci_pci 12604 0
    sdhci 28820 1 sdhci_pci
    mmc_core 95465 3 sdhci,rtsx_pci_sdmmc,sdhci_pci
    rtsx_pci 32305 2 rtsx_pci_ms,rtsx_pci_sdmmc
    lspci also shows the SD card controller:
    03:00.1 SD Host controller: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
    But fdisk -l just shows my hard drive
    ± % fdisk -l
    Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disklabel type: gpt
    Disk identifier: 0FBC37E2-A97E-4040-996C-F290C0C9CF0A
    Device Start End Size Type
    /dev/sda1 2048 1050623 512M EFI System
    /dev/sda2 1050624 976773134 465.3G Linux filesystem
    Anything else I need to do to get the SD card assigned to a device so I can mount it.

    It's considered a removable drive.  I have a USB card reader that if I insert it after the computer has been booted it gives me a little trouble, but having it inserted on booting it wants to put the device in a different order.

  • Output type is defined but not assigned to output procedure?

    Hi,
    I have defined the output type in spro, and have not maintained the output procedure, but still the output type and print output is given for the delivery, that i create.
    Please can anyone help me with why output is created even though I have not assigned the output type to the output procedure? what is wrong with the system?
    Regards,
    Kanwar

    Hi,
      Check in vv31/vv32 transactions, whether there is any document type assigned to the output type?,
    Hope this helps,
    Rgds,

  • Bash script running on my MBP 10.7.4 but not on other Macs (all 10.7.4)

    A friend of mine wrote me this short script to run in terminal that downloads a particular file every n seconds from a password protectected FTP site. The script worked on his linux machine and on my Mac but not on my collegues Macs. I'm wondering if anybody knows reasons why it may be failing on other Macs.
    We changing the first line from: #!/bin/sh to #!/bin/bash
    and exceuting with
    user_prompt_$ bash ./download_stats.sh
    Another idea is to script cyberduck but it doesn't support applescript though may have a comand line interface (looking into that at present).
    There error output from one of the accounts it fails on follows the script listing.
    #!/bin/sh
    # =================================================================
    # Download XML_stats Bash Script
    # Filename:     download_stats.sh
    # Arguments:    input_filename  - file to be downloaded from remote server. Optional.
    #               poll_interval   - seconds delay between downloads. Optional (input_filename must be present)
    # Use:          Invoke from shell, e.g. ./download_stats.sh
    # Author:       Luke Neeson
    # Date Created: 2012-05-31
    # Comments:     This script will download a given file, input_filename, at the given interval, poll_interval.
    # Notes:
    # - .netrc is required in the current directory and must contain the logon details for the fox server. This could be installed in the user home directory, if so, delete the line marked below.
    # =================================================================
    # If the .netrc is in the directory of this script, the following must be enabled. If the user's home .netrc is to be used, comment out the following line:
    export HOME="`pwd`"
    export input_filename="the_file_I_want_as_default.xml"
    export poll_interval=10
    if [ ! -z "$1" ] ; then
      export input_filename="$1"
      if [ ! -z "$2" ] ; then
        export poll_interval="$2"
      fi
    fi
    while [ true ]
    do
      ftp access.foxsports.com.au << EOF 2>&1 | sed 's/.*AUTH GSSAPI.*//g' | sed 's/.*KERBEROS.*//g'
      get  "$input_filename"
      quit
    EOF
      sleep $poll_interval
    done
    ERRORS RETURNED:
    a-mbp:~ macca$
    a-mbp:~ macca$ cd ~/stats/download_rugby_stats/
    a-mbp:download_stats a$ sh download_rugby_stats.sh
    : command not founds.sh: line 16:
    : command not founds.sh: line 19:
    : command not founds.sh: line 22:
    download_stats.sh: line 39: syntax error: unexpected end of file
    a-mbp:download_stats a$
    Those are the blank lines and 39 is the last line of script.

    Thanks Bob, Luke mentioned which but didn't go into it.
    cat -vte download_rugby_stats.sh   ——>    Does this look good to you?
    # ================================================================= $
    # Download Rugby Stats Bash Script$
    #$
    # Filename:     download_rugby_stats.sh$
    # Arguments:    input_filename  - file to be downloaded from remote server. Optional.$
    #               poll_interval   - seconds delay between downloads. Optional (input_filename must be present)$
    # Use:          Invoke from shell, e.g. ./download_rugby_stats.sh$
    # Author:       Luke Neeson$
    # Date Created: 2012-05-31$
    # Comments:     This script will download a given file, input_filename, at the given interval, poll_interval. $
    # Notes: $
    # - .netrc is required in the current directory and must contain the logon details for the fox server. This could be installed in the user home directory, if so, delete the line marked below.$
    # ================================================================= $
    $
    # If the .netrc is in the directory of this script, the following must be enabled. If the user's home .netrc is to be used, comment out the following line:$
    export HOME="`pwd`"$
    $
    export input_filename="Rugby_IRB20120101_Client.xml"$
    export poll_interval=10$
    $
    if [ ! -z "$1" ] ; then$
      export input_filename="$1"$
      if [ ! -z "$2" ] ; then$
        export poll_interval="$2"$
      fi$
    fi$
    $
    while [ true ]$
    do $
      ftp access.foxsports.com.au << EOF 2>&1 | sed 's/.*AUTH GSSAPI.*//g' | sed 's/.*KERBEROS.*//g'$
      get  "$input_filename"$
      quit$
    EOF$
      sleep $poll_interval$
    done$
    $

  • I am able t receive e-mails on my ipad3, but not send them. All my settings are correct

    I am able to send e-mails from my ipad3, but not send them. My settings are definately correct

    To expound a little on lllaass post ....
    Go into your email account's settings : Settings > Mail, Contacts, Calendars , tap on the account on the right-hand side, go into Account, then SMTP (under Outgoing Mail Server) and try filling in your email account name and password (they might show as 'optional' at the moment) and see if that helps

Maybe you are looking for