Assigning a value to container element in rule defination

I am using a rule to determine an actual agent. I am using a function module containing actor_tab and ac_conatiner in TABLES parameter. the agent determined is appended to internal table actor_tab. I want this agent to be available in a container element(say: APPROVER) to use it further. I am trying to assingn the agent value to container element using macro  swc_set_element ac_container 'APPROVER' agent-name. But its not working...any other way to assgn this agent to the container element. Bindings from workflow container to rule container are proper.
Edited by: Rishi Bhatia on Oct 19, 2008 2:46 PM

i think you cannot modify the container element from Rule.
the agents of the task determined by the Rule will be stored in some variable of the container automatically (i think it is RuleResult.Agents). you can check this yourself and then bind this element of the task to your APPROVER element.

Similar Messages

  • Get the value of Container element in message mapping

    Hi,
    Is it possible to read the value of container elements(bpm) in a UDF defined in message mapping. If yes, please tell me how?
    Thanks and regards,
    Siji

    Siji,
    Refer thread - Creating the container Object In Java Mapping
    Regards,
    Geetha

  • 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.

  • Debug Container Element Transfer

    Dear all,
    In our scenario a String variable was sent to workflow as event container element. It is then transferred to a workflow container element. Then it is given to an element in a task container. But now the execution has some problem. How should I debug the workflow and find the runtime value of container elements?
    Thanks
    Jerome

    Shweta,
    Yes, the triggering event has the input for the workflow.
    I just catch the event trace. But cannot find the runtime value of event container elements there. Only the following information:
    Event Instance ID
    Object Type
    Object Key
    Event
    Event Creator
    Creation Time
    How can I make sure whether the event contains the correct value?
    Thanks, Jerome

  • Clear container element

    Hello guys,
    I need to clear one container element of one workitem.
    It's possible through SAP_WAPI_WRITE_CONTAINER or SWW_WI_CONTAINER_MODIFY?
    The function SAP_WAPI_WRITE_CONTAINER only insert one value in container element, but not clear.
    Any idea?
    Thanks!!!
    Kleber

    Hello Imthiaz and Martin,
    I have one program that run after the user click in "OK" button in "Work item display tab page" (in "Work item display tab page" you can customize the work item display with an additional tab page).
    The user can change any parameters, and after click in "OK" button, one container element must be clear and should receive new data.
    Thanks!
    Kleber

  • Regarding container elements

    please tell me how to transfer container elements from rule container to workflow container and can we debug rule

    HI,
    its like normal task <---> workflow container binding only. And, yes, you can debug the rule. If you are using Rule with FM, then it's just anyother FM debugging.
    1 . Rule binding is same as task binging only , we need to     pass all the import parameters  correctly , make sure that all neccessary parameters are passing correctly then will get exact Agent .
    2. we can dubug the Rule by putting  /h  or
    by putting Break point inside the Function module
    For this we need to Go to PFAC tcode there u can put directly /H  - > Debug
    other wise select Function module then put Break- point Inside the Fm and Debug.
    Regards,
    Vijaya

  • Container element value late update in ECC6

    Hi All,
    I have a problem with container element "RECEIVED" which has incomplete value. I'm using function SAP_WAPI_READ_CONTAINER (simple container) in my custom object ZBUS2081 method priceapproval. When 2nd person want to approve the workitem, the container value of element name "RECEIVED" only has previous approval person instead of table that has 2 line values (previous person who has already approved and 2nd person who want to approve this workitem).
    We have upgrade our SAP version from 4.7 into ECC6/ERP6, which in 4.7 version this container element returned table of 2 line values.
    Since the container element value has late to update the value, then it did not recognise as a final approval at the end of workflow step and raise an error for agent determination. If there is any related SAP note, please let me know.
    Thanks,
    Charlie

    Hello Charlie !
                Your RECEIVED container stores approver details.
                Please check the binding between method container to task container to workflow container.Imperfect binding could be a reason why approver details are not populated properly.It seems your container is multiline container.Make sure the method,task and workflow containers are multiline enabled. 
               Check at SWO1, whether the PRICEAPPROVAL method behaves as expected and if you are using rule for agent determination, you have to check the rule at PFAC as well as binding details.Also check at workflow log.
                Hope you have delegated ZBUS2081.
    Regards,
    S.Suresh

  • ECC 6.0 - WS20000050 - Container Elements from Workflow to Rule in step 172

    Hello Guys/Gals,
    Hope you all are doing good.
    Greatly appreciate if you could help on this with some tips.
    We are under the process of the upgradation to ECC 6.0. Decided to use the std WF WS20000050  for travel request.However work flow ended in error at step 372(Approve Travel request) saying
    "Source (expression '&TRIP.EMPLOYEENUMBER&') of binding assignment is not available" and
    "Source (expression '&TRIP.TRIPNUMBER&') of binding assignment is not available" and
    Error in the evaluation of expression '<???>&TRIP.TRIPNUMBER&' for item '1'..etc.
    Can anyone tell what is are the container elements need to be passed and possible errors.
    Good Day.
    Raj

    Hello,
    Check in SWO1 if the BO related to the TRIP container element has those attributes (EMPLOYEENUMBER and TRIPNUMBER) and if so then check in the workflow log if they have a value.
    regards
    Rick Bakker
    Hanabi Technology

  • How to assign value from one element to another ?

    Hi,
    I am stuck up in silly problem.
    I have an XML as string i have used parseEscapedXML() to convert it in to XML object Type. see following code.
    <assign name="Assign_3">
    <copy>
    <from expression="ora:parseEscapedXML(ora:getContentAsString(bpws:getVariableData('inputXML')))"/>
    <to variable="inputVariable" part="payload" query="/ns1:email"/>
    </copy>
    </assign>
    above is working fine. In Debug window i can see values in "/ns1:email/ns1:ovdTriggeredDate" but now i need to assign "/ns1:email/ns1:ovdTriggeredDate" to another variable. see following code for refrence.
    <assign name="Assign_2">
    <copy>
    <from expression="ora:getNodeValue(bpws:getVariableData('inputVariable','payload','/ns1:email/ns1:ovdTriggeredDate'))"/>
    <to variable="Variable_2"/>
    </copy>
    </assign>
    in above code "ovdTriggeredDate" is a string and "Variable_2" is also String.
    i dont know why above code is not working
    Can anybody help me in this?
    Thanks in Advance.
    Nimisha

    Hi,
    ovdTriggeredDate is type of an element which is of type string. and Variable_2 is also of type string variable.
    see following use case.i have xml as a string
    inputXML = <email><ovdTriggeredDate>16thFeb</ovdTriggeredDate></email>
    i need to convert string to XML object. now i am assigning this value to Schema.following is my schema.
    <xsd:element name="email">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="ovdTriggeredDate" type="xsd:string" minOccurs="1"/>
    </xsd:complexType>
    </xsd:sequence>
    </xsd:element>
    i am able to convert XML string to xml object. now i need only one variable of xml. so i am assigning "ovdTriggeredDate" to string variable "variable_2"
    but its giving me exception. any idea ?
    thanks,
    Nimisha

  • How do you assign multiple values to a single element in an array?

    I'm probably not wording the question right.
    I have an array, let's call it M[], and for each element in the array (we'll say M[1]), I need assign three integers: row, col and value.
    I need to set it up so I can do something like this:
    A.row = M[i].col;
    A[i].col = M[i].row;
    A[i].value = M[i].value;
    The algorithm isn't what I need help with, it's assigning .col, .row and .value to an index of an array.
    Please help if you can.

    You are right. You did not word your question perfectly, but I still think I get what you want.
    First of all: A single element in an array always has exactly one value. No more, no less.
    But that's not a problem. The element in an array is either of a primitive type (boolean, byte, char, short, int, long, float, double) or it's a reference (to a Object, String, MyClass, ...).
    You can simply write a class that holds your three values and create an array of that type:
    public class SomeData {
      public int row;
      public int col;
      public int value;
    // somewhere else:
    SomeData[] a = new SomeData[10];
    a[0] = new SomeData();
    a[0].row = 10;
    a[0].col = 5;
    a[0].value = 42;Note how you only assign a single value to the element (a[0]) itself. All other assignment actually go to fields of the object refered to by that element in the array.
    Also note that in Java types (such as classes, interfaces, ...) should start with a upper-case letter, while variables (local variables, members, parameters) and method names should start with a lower-case letter.
    Edit: I'm getting old ...

  • Container element value does not display

    Hi,
    I am facing a strange issue.
    There is one step in my custom workflow which sends sap mail. The subject of the e-mail has a container element &notif&. When I check the workflow log this container element gets set with a value just before this step and so I expect it to be displayed in the e-mail .
    But the issue is i am getting the mail in my inbox which says ....&notif& ......
    i.e Instead of displaying the value of this container it displays the text &notif&.
    The same container element is used in the same e-mail message body where it displays correctly.
    has anyone faced this kind of an issue before?
    Thanks,
    Simmi

    Yes it is set to Expression.
    This mail step was not created from scratch.
    I just changed a few texts in the subject of this Mail step in an already existing workflow without touching the container element in the subject. But after i did this change and tested teh workflow, the container element no longer displayed any value in the subject, but it does continue to show value in the message body.
    Any suggestions to solve towards this issue will be extremely helpful.
    Thanks,
    Simmi

  • Container Element Value in Runtime

    I am somewhat new to Workflow.
    I have an error status on WorkFlow, for the reason that the value is not retrieved for the Container Element in the Workflow Condition. How can we check that whether the value is being retrieved by the container element in the Runtime?

    Hi Jaideep,
    When the state of the workflow is set to errror, please go to the workflow log in 'List with technical details' mode (cube button).
    Select the step that is in error and open the 'Step History' tab.
    Here you would come to know the exact error that is being encountered.
    Also you can debug the BO methods if called by setting the method as foreground and putting a breakpoint in the method.
    The method would go into debugger when executed and there you can debug it.
    Hope this helps!
    Regards,
    Saumya

  • How to pass value to Multiline container element in workflow ?

    Dear Experts,
    I am using the BAPI "SAP_WAPI_WRITE_CONTAINER" to write into the workitem container elements. now i want to write the data into a multiline container element. i am unable to do the same. please guide me how to write the data into multiline container.
    I am getting the data from portal so i am using the BAPI to populate the container.
    Please help me out...
    Thanks & Regards
    Nigesh

    Hi,
    Use the following code:
    DATA:  lv_text             TYPE        string,
              lt_cont_vals        TYPE        swconttab,
              lt_cont_defs        TYPE        swbconttab,
              lo_oref             TYPE REF TO cx_root,
              lo_workitm_cntxt    TYPE REF TO cl_swf_run_workitem_context,
              lo_wi_conv          TYPE REF TO if_swf_cnt_conversion,
              lo_wi_cnt           TYPE REF TO cl_swf_cnt_container,
              lif_wi_cnt          TYPE REF TO if_swf_ifs_parameter_container,
              lo_exception_return TYPE REF TO cx_swf_cnt_container.
    ***--- Get work Item Context
       TRY.
           CALL METHOD cl_swf_run_workitem_context=>get_instance
             EXPORTING
               im_wiid     = im_wi_id
             RECEIVING
               re_instance = lo_workitm_cntxt.
         CATCH cx_swf_run_wim INTO lo_oref.
           lv_text = lo_oref->get_text( ).
       ENDTRY.
    ***--- Get Instance of the work Item Container
       CALL METHOD lo_workitm_cntxt->if_wapi_workitem_context~get_wi_container
         RECEIVING
           re_container = lif_wi_cnt.
    ***--- Type casting work item container into class CL_SWF_CNT_CONTAINRER
       lo_wi_cnt ?= lif_wi_cnt.
    ***-- Set the value
       TRY.
           lo_wi_cnt->if_swf_cnt_element_access_1~element_set_value(
             EXPORTING
               name             =  'ITEM'
               value            =  t_item[]
         CATCH cx_swf_cnt_cont_access_denied.    " Change Access to Container Not Allowed
         CATCH cx_swf_cnt_elem_not_found.    " Element Not Found
         CATCH cx_swf_cnt_elem_access_denied.    " Element Must Not Be Changed
         CATCH cx_swf_cnt_elem_type_conflict.    " Type Conflict Between Value and Current Parameter
         CATCH cx_swf_cnt_unit_type_conflict.    " Type Conflict Between Unit and Current Parameter
         CATCH cx_swf_cnt_elem_def_invalid.    " Element Definition (For Example, Type Name) Is Invalid
         CATCH cx_swf_cnt_invalid_qname.    " Qualified Name Invalid/Already Being Used
         CATCH cx_swf_cnt_container.    " Exception in the Container Service
       ENDTRY.
    * VERY IMPORTANT -- Save changes to DB
       TRY.
           lo_wi_cnt->save_to_database( ).
         CATCH cx_swf_cnt_invalid_por.    " Invalid Persistent Object Reference
       ENDTRY.
       lo_workitm_cntxt->publish( ).
       COMMIT WORK AND WAIT.

  • Passing value of multi line container element to send mail step?

    Hi ,
    I am using send mail step type to send mail . in this mail i want to send data of multi line container element but it is writing only one line item even though my container element is holding tow line items. so how to process all line items of multi container  element in a mail. please suggest me......
    do i need to use loop until step ?
    Thanks,
    Rahul

    Hi Chindanand ,
    i tried with the same now but in the mail it is not showing me any value instead it si giving me <po_items > not found.
    po_items is the name of my multiline container element and i am simply using these po_item in mail.
    please tell me what to do......as its urgent.....
    Thanks,
    Rahul

  • Pass Container Element Value Dynamically

    Hi Experts,
    We are facing an issue with Workflows. Whenever I restart a WF that has already ended up in Error, I need to pass it Certain Container Element Values Dynamically as it restarts the same WF again with the same Container values and it again ends up in Error. Is it possible that I can change these values during Runtime.
    I have searched few SAPNotes also but could not find some Solution. Is anyone has worked on this Scenario before please respond.
    Is this Possible.. Because this is the only way how we can allow that background Process to work.
    Regards,
    Kanika

    hi,
    >In SWIA select a work item that will prompts you to next window.
    >In the next window select technical details -> that will opens other window
    This works fine.
    >in that window select edit -> change
    that will display some containers like
    Logically delete
    change container
    deadline monitoring
    This is not happening... Unable to fins anything known as "Edit/Change"..
    Hope i could attach screen-shots...to know where im missing this link
    regards,
    kanika

Maybe you are looking for

  • Enterprise web parts for Standard users

    Hi, We have scenario where a customer does not currently have budget to provide all users with Enterprise CALs, and thus we have this question... In their SharePoint Online environment, if you have a user with an Enterprise (E3) CAL build a page with

  • How can I make an image link to a movie?

    I noticed something really awesome in the free Biology textbook on iBooks, and I wanted to try to recreate it in iBooks author, however I cant quite seem how to figure out how it was done. In the Biology book, there is an image of a gentleman on page

  • PDF Print Menu Missing

    After Installing Leopard, I no longer have the PDF pulldown in my print dialog box. Anyone else having this problem?

  • Requesting advise from fellow Forum Members

    Unfortunately my Grandmother is starting to lose here memory in old age. She lives closeby, but alone and is visited by carers and family members five times a day. At the moment she is prone to ringing random telephone numbers saying that she needs t

  • IWeb Archive slow to load in browser

    My readers have complained that it takes a long time to access my iWeb archive when they click on the Archive button. Some of them use Safari, others IE on Windows. Anyone know how to improve the loading time? My pages have at least one photo each bu