Wat is the task container element

hi ,
im using a task and  sending a work item .
if i want to find the person to whom the workitem is triggerd,
which task container elment  hold this value..
olease suggest me ..
Raghu

I think you can use Function Module
SAP_WAPI_WORKITEM_RECIPIENTS
to retrieve the agents that has been assigned provided you have the workitem Id. In the Task container it will not be reflected unless you have designed like that.
Yes if the step is executed then the WI_ACTUAL_AGENT container element of the relevant task container will store the agent who executed it.
Thanks
Arghadip

Similar Messages

  • Add task container element

    I have a deceison step and in the container task I add a variable , and add this variable  to the description of the task , i triger the WF and it is working OK ,
    put when i try to do the same thing with new variable ( add another variable to the task container ) 
    and add it to description it dosnt appear .
    I do a new bindig to the step task
    any help please
    thanks and regardes

    Hi,
    U have created one new elemnet in task conatiner n it is not cming in task desc.
    For this, first check that d element which u created have right import,export properties.
    u have already created one element.....i.e. u know d procedure.
    then delete dis 2nd element n create it again....sometimes it helps
    hope it helps u!
    Regards,
    Mamta

  • Query regarding task container elements

    Hi,
    im very new to workflows,
    in task container ther r some default elements like WIgroup_ID,_workitem
    WIOBJECT_ID etc..........
    can any one tell the use of them,wher do we use them genrally

    This r my Mail IDs
    [email protected]
    [email protected]
    [email protected]

  • UWL standard item attributes - CreatorId and link with the task container

    Dear portal specialists,
    As you maybe know, for some workflows that come in the UWL, the column "From" indicates "Workflow system" as the creator of the item. 
    Example: A expenses is sent by an employee via ESS and falls into the UWL.  The column "From" should retrieve the employee name but actually it shows "Workflow System".
    My understanding so far is:
    - the creator of an item in the worklist is retrieved via a standard attribute "creatorId".
    - this standard attribute is defined like this in the documentation: "The user (if any) that created the item or initiated the workflow process. Is a portal user id if available".
    My question is: this creatorId attribute retrieves a specific parameter within the container BUT what parameter (the exact name like for instance WfInitiator) ?
    My final goal is to modify the container of every workflows that retrieve the "Workflow System" in the from column to send the correct name.
    Thanks a lot in advance for your precious comments,
    Cheers,
    David Fraiture

    Hello David,
    We looked into a similar issue regarding the UWL and have yet to find a solution. We have workitems whose from field are field with Workflow System as well, but what REALLY bothers us at the moment is that we have users in the from field whose usernames are prefixed with US. For example USHANS instead of HANS...
    The user comes out of the backend system like this, from the workflow. I was hoping to find a central place on the SAP System where I could make a change to keep it from doing that but to no avail...
    The problem is that the UME cannot resolve the user USHANS, and therefor the from field will display USHANS instead of the fullname of the user HANS...
    Do you have this problem as well? Please keep us posted if you find a solution yourself as well!
    Cheers,
    Hermann

  • Properties of the element of a task container.

    Hello there,
      The element I am binding from workflow to the container element doesn't allow me to change its property to 'import'
    When I check the binding. I get this diagnostic message:
    <element-name> is not an import element and is hence not to be changed
    Message no. SWF_BND_001016
    Diagnosis
    The current binding instruction is aimed at an expression whose basis element <element-name> is not an import parameter. Only import parameters should be filled.
    Procedure
    If the value has to be sent, the element <element-name> should be marked as an import parameter and thus included in the interface.
    Can anybody tell me how to fix this.
    Thanks and regards.

    Hi,
    From the problem that you have I assume that you are doing the binding from the Workflow container to the Task container. If that is right then check the following:
    1. The task container is nothing but a reflection of the method parameters. When you define your method in SWO1 then these parameters usually get generated automatically if you use a function module or a BAPI. You have the option of adding them as well. There you have the check boxes of Import, Export and Multiline. You can change them but since they are auto generated you should not change them as they are a reflection of the interface parameters of the Function module.
    2. If you want to change the entire container's property then go to the respective task either from the workflow builder or PFTC and then go to the tab "Container", select the container nd go to the properties tab and change the properties. However this applies to the container elements you have created and not the generated one (_WI_OBJECT_ID).
    Hope this helps,
    Sudhi

  • Reg: Access the container element value inside the Task's description tab

    Hi All,
          I need to call one of my container element into the task's description tab as text symbols.
    Please let me know how to do it.
    Regards,
    Selva.

    define an importing element in the task container.
    map this importing element with the element in the workflow container.
    now you can use this task container element in your description text box. (method exxplained in the previous post to this problem)
    rgds,

  • How to round value of container element in task description

    I am trying to round the value of the container element from 3 decimals to 2 decimals for display purposes.
    The command symbol in the task description is &_WI_Object_Id.OverallTotalCost&. I have looked at SAP Help and I have tried the suggestion of &_WI_Object_Id.OverallTotalCost(.2)& and &_WI_Object_Id.OverallTotalCost(Z.2)& with no success.
    I have also searched the sap-wug mailing list and SAP ITToolBox and found no references rounding a container element in a task description. I have seen code assigning a value to a packed decimal variable to round. But I have not been able to get this to work as a command in a description for a task.

    I created a new element in the container as suggested by Glauco and added the element binding in the workflow / task binding. Biggest hassle was finding a business object that had a type of 2 decimal places to use for the new container element.
    The reason why the SAPScript symbol for reducing the number of decimals does not work in Task texts is because the container elment symbols are resolved first as text. Therefore only the SAPScript commands that apply to text will work like length.

  • Multiline table container element does not display the contents

    Hi Guys,
    I am sending an email from the workflow. The workflow has few steps and in one of the steps the the workflow brings in few lines of text. This text is then stored in a multiline container element in the workflow.
    later in the workflow i am sending an email and this sendmail step is using the multiline containter. So in the body of the email i have used the container as shown below
    Your expense for the trip &TRIPEXP.TRIPNUMBER& has been rejected.
    The Reason for rejection(s) mentioned below:
    &CATSXT_LONGTEXT_ITAB##&
    Please change and submit again.
    However when i recieve the email i dont see any text. But when i look at the workflow log and check the contents of this table under the workflow container elements it has the data in it.
    Not sure where i am going wrong. I have checked the bindings and they are fine.

    Thanks Arghadip,
    Yes that was the missing link.
    One question:
    When i use sendmail step and use the variable drop down box i can see the workflow container elements. So why do i need the same container element in the sendmail setp? I just now created same element in the sendmail task. When i am able to access the workflow container elements in the send mail step then why there is a need to create a same container element in the send mail step and then do the binding for it to work?

  • Get container element of task container

    Hi,
    in my method of a Business Object I need to get the value of the element WorkitemID of my task container.
    I tried the following to read the value of the element:
    swc_get_element container 'WorkitemID' lv_wiid.
    But I don't get the workitemID of the task.
    What am I doing wrong here?
    Thanks for your help.
    Regards,
    Martin

    Hi Martin,
    Are you making a call to the BO method from the task you are using?
    If yes, then in the binding between the task container and the method container, pass the workitem element you need to pass to the method.
    In the BO method, add an input parameter 'WorkitemID' of the same type as the workitem element.
    Now create a data element in the method code of name 'lv_wiid' of the same type as WorkitemID.
    Then use the code:
    swc_get_element container 'WorkitemID' lv_wiid
    to fetch the value of the element in the code.
    Hope this helps!
    Regards,
    Saumya

  • Setting the container element values

    Hi Experts,
    While I am trying to set the container element values, it is resulting in an error.
    We are designing a leave request WF using WS12300111. We are using ABAP classes.
    Inside a method, I have written the following code :
    swc_set_element container 'PERNR' lv_pernr.
    It is giving an error. It says 'SWC_SET_ELEMENT' not defined.
    First of all i would like to know if we can use this statement in ABAP classes. If we have to set a value of a container element, how can we go about doing the same in ABAP classes.
    Kindly guide me on the same.
    Cheers,
    Belinda Clarke

    Hi,
    No, you cannot use those in the ABAP classes. (EDIT: Or you can, put it doesn't make really any sense.)
    Just make exporting parameters into your method. Put your variables (PERNR, etc.) in those. Then do the binding from method to the task container (in the task editor). This way you will get the values from a method to the task container.
    Regards,
    Karri
    Edited by: Karri Kemppi on Sep 9, 2011 9:24 AM

  • Container Element in the Mapping UDF

    Is there any way that to access the BPM container Element in the Mapping UDF. Can some one share the UDF code for this

    Hi,
    Refer BPM Container Element and Container in UDF Relation
    BPM Container Element and Container in UDF Relation
    Creating the container Object In Java Mapping
    Thanks
    swarup

  • Which container element contains the triggering event name?

    hi,gurus,
    i have a workflow template, and i want to use a 'switch' to deal with different triggering event inside the template logic.
    but i can not find a element in the container which supposed to contain the triggering event name.
    could you please help me ?
    br.
    zj

    Hello,
    The element which stores the name of triggering event is '_EVT_NAME' which is present in the event container. To use it in the workflow template, you have to create an element in the workflow container and bind this element to the above mentioned element through the binding for triggering event.
    Thus you can use the workflow container element in the switch.
    Hope this will help.
    Regards,
    Samson

  • Container Element in ALERT

    Dear Experts,
    Can you plz explain, when it is required to create a CONTAINER ELEMENT in Alert Configuration.?  As we can use the System Defined Variables like  SXMS_ERROR_CODE, SXMS_FROM_INTERFACE etc, what is the need for the container element?
    The System Defined Variables are filled by the System during Runtime, when such an error happens. But who ‘ll fill  the Customized Container Variable and how??
    Also while creating a Container Element for ALERT, the data type can be of OBJECT TYPE/ ABAP DICT.REFERENCE/ABAP DICT DATA TYPE. What is the significance of each?
    Plz explain.
    Regards,
    Navneet

    Hi Navneet,
    The container element contains all the control information required at run time in the form of constants and object references.
    To inform the WF which object was created in the step via the method the reference to the bus object is passed via the binding definition from the task container to the Wf container. An appropriate element was therefore created automatically in the WF container with the correct data type.
    The workflow container contains an element which is defined with a data type reference to the same object type that is created in the referenced task, this binding definition is proposed automatically when an activity is defined.
    If no element with an appropriate data type reference is available in the workflow container, a suitable element is added to the workflow container and the binding entered.
    For more info pz go through the link given below,u will get the useful info regarding creation of container element and much more .
    http://****************/Tutorials/Workflow/Workflow.htm
    Reward points if this helps
    Regards
    Vani.

  • Extended method in the task is not executing

    Hello Friends,
    I had extended the business object BUS2105 and added a new synchronous method which will return the PR items as objects in the form of a table. This method does not have an import parameter as I am using OBJECT-KEY-NUMBER and has a multiline export element of type BUS2009. Then I had Implemented, Released & Delegated my Z business object. All these activities were completed perfectly.
    Then in my workflow I had used this method in an activity step.  I had set the binding from Workflow container to the Task container( in the workflow container I am getting the EVTOBJECT into a workflow container element of type BUS2105 by binding from Event container to Workflow container) and then from the Task container to the Method container also. There were no inconsistencies during binding.
    During test run this works perfectly and returns the workflow with the PR items as objects into a multiline container element of type BUS2009. Then I tested using SWUE and triggered against the 'CREATED' event of BUS2105. There also this works perfectly as it should be.
    My problem is, when I create a PR from ME51N, execution of my workflow stops by this activity step which is using my custom method. From SWEL I can see that workflow workitem has been created. In the workflow log, the created PR number is coming up to the WIOBJECT_ID of the task container. But the method will not trigger. If binding was the problem, then this workflow should not work from SWUE or during test run.
    Can anyone help me to solve this issue? What else I should do to solve this?
    Thanks & Regards,
    Abijith

    Hi,
    "My problem is, when I create a PR from ME51N, execution of my workflow stops by this activity step which is using my custom method. From SWEL I can see that workflow workitem has been created. In the workflow log, the created PR number is coming up to the WIOBJECT_ID of the task container. But the method will not trigger. If binding was the problem, then this workflow should not work from SWUE or during test run."
    1. I hope the task would be a background task and that is the reason even after inserting a break point the execution of the method has not interrupted. When ever you want to debug a background task first make it as a fore ground task and make agent assignment as general task and then assign the recipient as yourself, so that the workitem comes to your inbox then you try to execute the worktiem after inserting the break point in the method. This way you can debug the method from the workflow.
    2. The other part would be as you said that the workflow hangs at this activity step , so make sure the PR is not locked, I mean sometimes it may be possible that the object might be locked and if any changes are done in the method. it fails.
    3. The reason I feel it is working from SWUE is that you have inserted values which are already existing in the system and they might not have locked by the system.
    so please check the above three points.
    Regards
    Pavan

  • Worflow container elements not populating

    Hi,
    I am using a simple method and populating certain parameters of the method. in stand alone from swo1 the method populates the container element. This method is then called from a task in workflow.
    The problem I face is that the workflow container elements are not populated, although the container elements at the task level are populated corectly in the workflow log. Even If I am binding a hardcoded value at the task to workflow binding level, the workflow container elements is not getting correct values; when I check the log and hence the workflow goes in error.
    I would like to know why the workflow container elements not getting filled with right values. I have done many workflows before but never faced such an issue before.
    Regards,
    Vishal Bhatia
    Edited by: Vishal Bhatia on Sep 19, 2011 2:33 PM

    Hi,
    I have checked the binding and workflow is activated again.
    Also buffering was done in SWU_OBUF.
    I also tried to run the workflow from SWDD itself and still the same problem. This is very strange. Never before i encountered such an error.
    Kindly suggest. I also tried to create a new task and change the names of container variables in workflow. The strangest thing is the hardcoding of value also not being passed.
    Types of parameters match and import export set accordingly.
    Regards,
    Vishal Bhatia

Maybe you are looking for

  • Printing from Lightroom (2.5 - 3) into Adobe Acrobat 9

    I just wanted to post that I have been searching for an answer about errors when printing from Lightroom to Acrobat. When I went to Win7 64 bit Professional and CS5 Design Premium two weks ago - all the problems started. Looking at the forums - I fou

  • Wired ethernet network disappears after upgrading to Yosemite

    I am a lone iMac on a Windows network, but have connected through ethernet without a problem for years. Since upgrading to Yosemite, however, my network has disappeared. My ethernet is connected, my IP address is the same as before (assigned by DHCP)

  • How do I get Korean characters to show up in the "Get Info" window if they show up normal in iTunes normally?

    The Korean characters show up fine when viewing the song in the Music section. However, when I right click the song and go to "Get Info" to edit the song's info, the Korean characters show up as boxes. It does not do this for the Chinese and Japanese

  • Can't Change Photo

    While I'm here, I've got another question, too.  I have been unable to change my profile photo for almost a year now.  Whenever I try I get the following message: Cannot create file "C:\Picture of me1.png".  A required privilege is not held by the cl

  • Changin multiple records simultaneously in Tiger Address Book

    I have Address Book 405 (the latest for 10.4.10). Is there an easy way, plugin, script that will allow me to change the same field in every record to have the same value? For example, suppose I have every record's country to 'USA' and want to change