Issue fetching workitem recipients

I am trying get a list of recipients for a work item (task is of type general task) using the FM SAP_WAPI_WORKITEM_RECIPIENTS. The user to which this workitem id forwarded to has a position maintained in an organizational structure as well. Now, the issue is, when  I execute this FM for a workitem, it sometimes returns me the position (object type S), instead of the actual SAP user ID(object type 'US') in the RECIPIENTS table. Is there any logical reason for this?

I think SAP_WAPI_WORKITEM_RECIPIENTS gets what ever assigned to task. To get users use RH_USERS_OF_WI_READ directly.
Regards,
Krishnakumar PM

Similar Messages

  • Issues regarding workitem text

    HI All,
    I see the Workitem text mismatches when compared to Workitem lying in SBWP and the email send to ms outlook and also surprisingly when compared to SBWP and SOST I see the same mismatch.Can some one help me in finding the issue and also the first line of the email is the subject or title and from second line my custom workitem text follows I want to start the custom workitemtext from third line.I want a line gap in between the subject and the custom workitem text.
    Issue ) For example I am a calling text element ZXXXX created in so10 in workitem text .
    ZXXXX =  This Workflow was started by &INITIATOR& on &ACT_DATE& at &ACT_TIME&.
    Note: &INITIATOR& , &ACT_DATE&  and &ACT_TIME& are the variables created in the custom Decission task.
    Below is the code I have written in workitem text choosing command line option.
    INCLUDE 'ZXXXX' OBJECT 'TEXT' ID 'ST' LANGUAGE 'EN' .
    Output : 'This workflow was started by on at.
    Please let me know the solution to fix this.
    Thanks and Regards,
    Srini..

    Hi,
    ZXXXX = This Workflow was started by &INITIATOR& on &ACT_DATE& at &ACT_TIME&.
    &INITIATOR&, &ACT_DATE& and &ACT_TIME& are the variable is known in standard text element i.e. in tcode SO10. This variable may not known to workflow. Hence I would request you to  follow the specific.
    Declare the text element ZXXXX only upto value 'This Workflow was started by'.
    ZXXXX = 'This Workflow was started by'
    and use this workitem text as
    Workitem text = ZXXXX by &_WI_INITATOR& on &ACT_DATE& at &ACT_TIME&.
    &_WI_INITATOR&,  &ACT_DATE& and &ACT_TIME& are the variables of workflow container i.e. workflow container element.
    Thanks
    Sanjay

  • Facing some langauge issue in Workitem Text transalation

    HI Experts,
    I am facing some problem in a Custom workflow created by me. The scenario is like that, I have to show the Doc_nam in the WORKITEM TEXT dynamically, which I have picked from the container element and this Doc_name in linked withe Business Object APPR_DOC.
    Now the workitem is sent to the approver. If the approver is logged in EN ( English) lang, then I found the workitem text along with Doc_name is displayed dynamically as per the requirement. But if the approver is logged on in IT(Italian) then, I found that the workitem text is sent as it is, i.e. ' Approve &_WI_OBJECT_ID.DOCUMENTNAME& '. This is happening in the same client for different log on's with different Langs.
    I have tried all the possible way like Maintaining translation in SE63, Maintaining the Personal settings and many more. but could not find the way to solve the issue.
    Can anybody guide me the right way to solve the issue?
    Thanks & Regards,
    Sriyash

    First of all, make sure that the attribute is translated. Log in to the system for example in italian and open SWO1 and object APPR_DOC. Instantiate one object, and see whether the DOCUMENTNAME attribute gets translated.
    You might also want to check if these document names are event translated. They are most probably translated somewhere in SPRO. Maybe you need to log in to the system with other languages and maintain the object names in that way to get them translated. Anyhow, I am not sure about this part - your functional consultant might know this better.
    Regards,
    Karri

  • Issue :- Forwarded Workitem displayed in Both Inbox

    Dear Experts ,
    I am having the below issue related to Forwarded Workitem .
    I was having the problem of  " Workitem dissapears from SAP Inbox after forward "  , and was got resolved by implementing the SAP Note - 1308276 .  After implementing the Note , the below issue occurs .
    If a workitem is forwarded from User 1 inbox to User 2 inbox then ,  it should get dissapeared from user1 inbox and should get assigned to user2 inbox ,.   But now  the workitem is being displayed in both user1 & user 2 inbox .
    This issue occured after implementing the SAP Note - 1308276  .
    Let me know if any more clarifications needed .
    If any one has any idea related to the mentioned issue , suggestion will be highly appreciated .
    Thanks
    Prabhudutta Behera 
    +91-9657722358

    Hi,
    That really doesn't sound normal behaviour at all. I think you should check if SAP has provided a new note for this. And if not, then address the question to SAP.
    Regards,
    Karri

  • Issue with "previous recipients" and "open recent"

    Hi,
    When I upgraded my MacBook Pro, I had to manually copy my user folder to my new Mac and I think it's causing a problem with file permissions.
    The main issues of that, is every time I quit an app, my "open recent" list is emptied (and it's not linked with the new system in 10.6 in the global preferences). And the second, is that no new "previous recipients" are added in Mail.
    Has anyone a clue on what I can do?
    Thanks.
    Laurent

    Bump!
    Still looking for a solution.
    Laurent

  • Performance Issue - Fetching latest date from a507 table

    Hi All,
    I am fetching data from A507 table for material and batch combination. I want to fetch the latest record based on the value of field DATBI. I have written the code as follows. But in the select query its taking more time. I dont want to write any condition in where claue for DATBI field because I have already tried with that option.
    SELECT kschl
               matnr
               charg
               datbi
               knumh
        FROM a507
        INTO TABLE it_a507
        FOR ALL ENTRIES IN lit_mch1
        WHERE kschl = 'ZMRP'
        AND   matnr = lit_mch1-matnr
        AND   charg = lit_mch1-charg.
    SORT it_a507 BY kschl matnr charg datbi DESCENDING.
      DELETE ADJACENT DUPLICATES FROM it_a507 COMPARING kschl matnr charg.

    Hi,
    These kind of tables will be storing large volumes of data. Thus while making a select on it, its important to use as many primary key fields as possible in the where condition. Here you can try mentioning KAPPL since its specific to a requirement. If its for purchasing use 'M' and try.
    if not lit_mch1[] is initial.
    SELECT kschl
    matnr
    charg
    datbi
    knumh
    FROM a507
    INTO TABLE it_a507
    FOR ALL ENTRIES IN lit_mch1
    WHERE kappl = 'M'
    AND kschl = 'ZMRP'
    AND matnr = lit_mch1-matnr
    AND charg = lit_mch1-charg.
    endif.
    SORT it_a507 BY kschl matnr charg datbi DESCENDING.
    DELETE ADJACENT DUPLICATES FROM it_a507 COMPARING kschl matnr charg.
    This should considerably increase the performance
    Regards,
    Vik

  • Time Machine Permissions Issue "fetching" Please help!

    Hello,
    I did a fresh install of Mavericks and have accessed my time machine many times since then.  Tonight I tried to access it as usual, but all of a sudden I cannot access any files. 
    It says I don't have permission...nothing has changed!?  "The folder “Pictures” can’t be opened because you don’t have permission to see its contents."
    I have done ALOT of research, even on these forums, and have tired advice from Lych Davis (I think is his name), but it didn't work.  The permission says "fetching".
    I have tried to add me in the get info tab....Nothing shows up
    I have tried to delete the "fetching" acount....It won't die
    I went to my Users and Groups and my Group is, by default, set to "staff."
    I tried to "verify disk" in Disk Utitlity..it didn't help.
    Please help me...I have done NOTHING different, not even an OSX update since I accessed my TM a few days ago.  Please help me.

    anyone???

  • We are currently having issues fetching the applications and services list.

    Is there anywhere to get an ETA or some sort of status update instead of wearing out the refresh button?

    I'm still experiencing the same issue.  Has the fix been made available yet?  Eagerly awaiting acces!
    **EDIT I'm sorry, didn't account for the time zone difference.  I thought that the previous post was from hours ago.  **

  • Not able to fetch workitem from Multiple system ( version 4.6c ) in POWL Configuration

    Hi Experts,
    i am configuring SAP POWL in my EHP 6 System and i am able to get work-items from same system but i am not able to get from multiple system which version is 4.6c.below steps are already done.
    1.Create RFC Destination ( destination working fine )
    2.in SPRO,Cross-Application Components ->Processes and Tools for Enterprise Applications -> Inbox -> Assign Connected Back-End Systems to Inbox
         Added Destination for Old system 4.6c
    3.Create Exception Entry for that
    4.Business function FND_IBO_MULTIBE_1 activated
    5.Assigned below roles to respective users
    SAP_BC_BMT_WFM_INB_API_END_USR
    SAP_BC_BMT_WFM_INB_API_SRV_USR
    6.Added respective Task IDs in SPRO -> inbox- >Assign Task IDs to POWL Types
    Please help if i any config are missing.
    Regards,
    Pramod Gupta.

    Hi Siddharth Rajora,
    Thanks will that,but as you said 4.6c is not supported you have any document where its mention like that.so we can show our client and close this issue please share if you have.thanks in advance.
    Regards,
    Pramod Gupta.

  • Performance issue fetching huge number of record with "FOR ALL ENTRIES"

    Hello,
    We need to extract an huge amount of data (about 1.000.000 records) from VBEP table, which overall dimension is about 120 milions records.
    We actually use this statements:
    CHECK NOT ( it_massive_vbep[] IS INITIAL ) .
    SELECT (list of fields) FROM vbep JOIN vbap
                 ON vbepvbeln = vbapvbeln AND
                  vbepposnr = vbapposnr
                 INTO CORRESPONDING FIELDS OF  w_sched
                 FOR ALL ENTRIES IN it_massive_vbep
                 WHERE    vbep~vbeln   = it_massive_vbep-tabkey-vbeln
                    AND    vbep~posnr   = it_massive_vbep-tabkey-posnr
                    AND    vbep~etenr   = it_massive_vbep-tabkey-etenr.
    notice that internal table it_massive_vbep contains always records with fully specified key.
    Do you think this query could be further optimized?
    many thanks,
    -Enrico

    the are 2 option to improve performance:
    + you should work in blocks of 10.000 to 50.000
    + you should check archiving options, does this really make sense
    > VBEP table, which overall dimension is about 120 milions records.
    it_massive_vbep  into it_vbep_notsomassive (it_vbep_2)
    CHECK NOT ( it_vbep_2[] IS INITIAL ) .
      get runtime field start.
    SELECT (+list of fields+)
                  INTO CORRESPONDING FIELDS OF TABLE w_sched
                  FROM vbep JOIN vbap
                  ON vbep~vbeln = vbap~vbeln AND
                       vbep~posnr = vbap~posnr
                  FOR ALL ENTRIES IN it_vbep_2
                  WHERE vbep~vbeln = it_vbep_2-vbeln
                  AND      vbep~posnr = it_vbep_2-posnr
                  AND      vbep~etenr  = it_vbep_2-etenr.
      get runtime field stop.
    t = stop - start.
    write: / t.
    Be aware that even 10.000 will take some time.
    Other question, how did you get the 1.000.000 records in it_massive_vbep. They are not typed in, but somehow select.
    Change the FAE into a JOIN and it will be much faster.
    Siegfried

  • Issue in workitems

    Hi All,
    My requirement is as follows
    When employee applies a leave then work item is created for a manager for his approval, for example manager has left from the organization before approving the work item. As per the requirement we need to cancel this work item and program has to create new work item and it has to approve.
    anybody can tell me how to approach in this case.

    hi
    jus check this documentation
    http://help.sap.com/saphelp_nw04/helpdata/en/71/9eaa38bb69b505e10000009b38f842/frameset.htm
    hope this helps
    regards
    Aakash Banga

  • Workitem assignment on User workplace - FS-CM

    There is a issue on workitem assignment to user(agent), there are more
    workitem which is not assigned to user.
    How to know exactly findout those workitem which is not assigned to
    user(agent).
    Where to find the user details to whome the workitem has been assigned.
    Not finding the same in SWWUSERWI table.

    I think you can give a try to the FM SAP_WAPI_GET_WI_AGENTS
    SWL_WI_DISP_ACTUAL_AGENTS     
    SWL_WI_DISP_EXCLUDED_AGENTS   
    SWL_WI_DISP_POSSIBLE_AGENTS   
    SWL_WI_NOTES_DELETE_AGENT     
    SWL_WI_POSSIBLE_AGENTS_ASSGIN

  • Workitem showed up in UWL after 2 days of creation

    Hi friends,
        I got an issue reg. workitems. A workitem is showed up in users UWL after 2 days of its creation. The workflow will send workitems for the approval to multiple usres when status is changed. Now teh issue is, teh status has been changed on a particular day, but teh user got the workitem to his UWL after 2 days of status change.The workflow is working fine and we didnt find such issue till now.
      Could any one tell me what might be the possible reasons and ways to check for teh delay. ( We have checked with the users SBWP- Business workplace and there is only one entry in that. so this is surely not the reason for delay ).
    Thanks in Advance,
    Swarna Munukoti.

    Hi,
    The workitem in R3 will not appear in UWL automatically,  UWL configuration has to be done for bring the new workitem  from the R3 to UWL, the refresh duration in the UWL will be given 2 days in your case.
    Sol. Change it to 5 Seconds, then this problem will be solved.
    Regards,
    Surjith

  • How to redefine workitem text

    Hi,
    I want to redefine the workitem text of a standard SAP task (Task 10008212, check shopping cart in SRM). Using the transaction pftc_dis I changed the work item text and I can see only the redefined customer text when I display this task again.
    But the issue the workitem text change is not reflecting in the workitems for shopping carts.
    Can someone please let me know if this is the correct way to add a customer definition for a work item text.
    Regards,
    Soorya

    Hi,
    I followed the following procedure:
    1) Translation of f the task work item text (translation with SE63, transport object with key R3TR PDTS, ex: R3TR PDTS 91000031)
    2) Imported to production the missing translation (transport order created using SLXT)
    3) For the existing workitems I changed manually, using LSMW, the text using transaction SWI1; Edit -> display workitem ; goto -> technical workitem display; Edit -> Change; execute "Change workitem text
    Kind regards
    Jorge

  • Eager fetching

    I believe eager fetching can greatly benefit from more dynamic method then
    predefined fetch groups.
    Different queries pull different parts of object graph and only client using
    object model knows what's needed for a particular query. Trying to fit
    conflicting data needs into one set of fetch group is a challenge. While I
    would retain this feature I would like to propose field based eager fetching
    control. Which can also be used for Detached objects
    Lets say we have PO with POLine collection and each POLine references
    Product. If we want to eager fetch POs along with their lines and products
    we could say something like
    pm.getFetchConfiguration().addPath(com.peacetech.sales.PO.class, "lines");
    pm.getFetchConfiguration().addPath(com.peacetech.sales.PO.class,
    "lines/product");
    or
    pm.getFetchConfiguration().addPath(com.peacetech.sales.PO.class, pathList);
    of course we would need
    pm.getFetchConfiguration().removePath(com.peacetech.sales.PO.class,
    "lines/product");
    pm.getFetchConfiguration().addPath(com.peacetech.sales.PO.class); //remove
    all for given class
    This is just a crude example. In real life we should have few classes to
    support the idea and main class GraphConfig or something so users can
    configure, build and reuse those GraphConfig instances and use them for
    various purposes like eager fetching and detaching without conflicts
    I think it would be enormous help to uncouple so many conflicting issues
    (fetch optimizations, optimistic locking field groups, detached graphs etc)
    from one very limited concept of predefined fetch groups

    Mark,
    I mentioned this possibility in on of my prior posts. It is not exactly what
    I want (since it lack interclass relations which let you express hints for
    deep graph rather than for a class and its fields) but close.
    If you maintain your metadata files by hand it is too much effort but since
    almost all my models and metadata are generated I can easily do (and undo)
    it for each and every class/field and I will give it a try :-)
    Alex
    "Marc Prud'hommeaux" <[email protected]> wrote in message
    news:[email protected]...
    Alex-
    Well, you could always simulate dynamic fetch groups by defining a
    different custom fetch group for each field (provided your license has
    the capability to use custom fetch groups). For simplicity, you could
    name each fetch group to be "ClassName.fieldName".
    That way, you could do something like this:
    KodoQuery kq = (KodoQuery) pm.newQuery (MyClass.class, "someQuery");
    kq.getFetchConfiguration ().addFetchGroup ("MyClass.fieldA");
    kq.getFetchConfiguration ().addFetchGroup ("MyClass.fieldB");
    kq.getFetchConfiguration ().addFetchGroup ("MyClass.fieldC");
    kq.getFetchConfiguration ().addFetchGroup ("MyClass.fieldD");
    Collection results = (Collection) kq.execute ();
    It would them be pretty simple to make a static helper method that will
    do thing like includeAllFieldsInFatchGroup() or
    includeNoFieldsInFetchGroup().
    In article <[email protected]>, Alex Roytman wrote:
    David Tinker says multiple fetch group is the solution:
    Hi Alex
    You can create as many fetch groups as you like in the meta data (with
    JDO
    Genie anyway). I think it is much better to get tuning information likethis
    out of the code. It should be added externally much like you add indexesto
    database tables in response to query search requirements. I understandthat
    sometimes you will need programatic control but mostly it is better notto
    pollute the code.
    JDO 2.0 is going to standardize the concept of a use-case. This willdelimit
    business operations to the JDO implementation so it can applyappropriate
    meta-data defined fetch groups or locking strategies. You will be ableto
    use a vendor supplied tool to analyze the performance of yourapplication
    and construct fetch groups for different use-cases (businessoperations). No
    change to the code is necessary.
    Here is an example:
    CODE
    pm.beginUseCase("com.peacetech.sales.displayOrder");
    POClass o = (POClass)pm.getObjectById(oid, true);
    .... other JDO code ....
    pm.endUseCase();
    The meta data for the use-case will specify the fetch group to use when
    looking up the instance (and locking behaviour etc.). Other use-casescan
    have different settings. Only the being/end calls are needed in the codeto
    make this happen.
    Note that this is a very long way from being finalized. I have just madeup
    this example and how it works in JDO 2.0 is likely to be different.
    Use-case support will show up in JDO Genie beta releases soon. Wealready
    have powerful performance monitoring and analysis support in our GUI
    Workbench and very flexible fetch groups.
    Cheers
    David
    Here's my opinion
    David,
    Thank you for your response. Multiple fetch groups do give moreflexibility
    (I do not believe Kodo supports it though) but does not alter myposition
    >>
    I do not want to pollute my metadata with tons of fetch groups creating
    dependencies between my code and those fetch groups. JDOQL languagebeing
    what it is already creates unavoidable dependency between field namesfilter
    strings so I want to keep it the same way with other things which are
    essentially references to persistent fields (Disconnected instancesdepth
    control, Eagar fetching ....)
    As for polluting my code. I want to assure you everything configurablewill
    not be in my code but in JNDI or config files. As long as JDO givesclear
    API for expressing graph path selection
    Use case concept ties nicely with Graph Path selection concept. In factthis
    GraphPaths class along with some additional options is your use case.
    It is much easer for me to refactor and keep in sync field names and my
    GraphPath than fetch groups.
    Alex
    "Abe White" <[email protected]> wrote in message
    news:[email protected]...
    I think the basic idea you've suggested is a good one. We'll certainly
    consider it for a future release. The JDO 2 spec team is also
    pondering
    these problems...
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

Maybe you are looking for

  • Dataflow problem, queuing in subvi dequeuing in main vi

    ive stuck on a very simple data flow problem here, I'd like to pass data being enqueue in the subvi and dequeue in the main vi consumer loop. Ive attached the vi, since im already stuck on this problem, i was hoping i could learn a few things, specia

  • Production Order - Invalid storage location

    Hello, I have made a production order through mrp for a halb. The issue is that when I try to release the order it gives me a message that "storage location 3603 is invalid for material nthl****". In MM03 -> MRP2 in Issue stor. location the correct v

  • Help! I can't import photos!

    I just installed LR onto my Macbook and when I go to import photos and I click on a source.  Select a folder of photos nothing happens.  There is a circle at the bottom of the window that spins, but other than that, I get no images. What can I do?

  • Open Source solution for Map Display on Web

    Hi Does anybody knows an Open Source solution for displaying Maps on Web. Something like the MapXtreme equivalent of Open Source. Regards, N�stor Bosc�n

  • Retreiving a fat16 or 32 partitions real uuid on snow leopard

    Hello, I do have a big problem. Since on mac at least on snow leopard I'm unable to retreive the real partition UUID from a fat formated fat16 or 32 usb stick. The problem is that this stick is a real official document for work. The stick needs regul