Error in Workflow Multiline Container

I'm facing with two error during implementing multiline container: "Agent determination for step '0000000002' failed" and "Result of agent resolution does not agree with agents of task".
What I've done is:
- "AGENTS" container created which refer to USR02-BNAME. In the properties tab, I checked the multiline check box. The contents of this container is coming from method in the main workflow. In the workflow log, I saw this container filled correctly. Its contain 2 line of user id.
- I have subworkflow-2 that I set as multiline element in tab "other" and filled "AGENTS" container in that field. This subworkflow contain only one task that need to be executed by many user. The binding from previous subworkflow to this subworkflow-2 is: &AGENTS[&_WF_PARFOREACH_INDEX&]& --> &AGENTS1&
"AGENTS1" is single container which refer to USR02-BNAME.
- The binding from subworkflow-2 into task is: &AGENTS1& --> &AGENTS1&
When I executing this workflow and checked in the workflow log "AGENTS1" container is filled with "000001" same value with container WfParForEach_Index.
Hopefully out there can help me on this issue.

Hello,
I have the same problem. I've found this link http://mailman.mit.edu/pipermail/sap-wug/2008-March/028123.html where a possible solution is detailed.
I have planned to  made test on it in next day.
Regards,
Corrado.

Similar Messages

  • Workflows : Multiline Container Element problem.

    Hi,
    I got a new problem. Well I got a requirement to collect <b>COMMENTS</b> from <i>MULTI-LEVEL Supervisors</i> and display them in the <i>work item preview</i>. So in these regards, I had declared a Multiline Container element in my Workflow and passed it to some method to get the comments. Well I had succeeded till this point. But there is a problem when I tried to display them in WORKITEM.
    Well, all the lines are getting displayed continously in the Work Item preview.
    Is there any solution for this ?
    Like I want to display the Multiline Container element line wise. Not as a concatenated single line which is happening right now.
    In the Work Item Text part I used it as ...
    Comments from Supervisor : &COMMENTS&
    This is FYI...
    Please help me.
    Regards,
    Raja Sekhar.

    Hi Vinod,
    Well, I tried including the MULTI LINE Element in a Mail step. It gave me all the three options of printing.
    First one is...
    Only first line of Container element can be printed using
    &COMMENT&
    Second one is...
    All the lines of Container element can be printed in a single line as &COMMENT[]&
    Third one is...
    All the lines of Container element can be printed in seperate lines as &COMMENT##&
    I used the third one. It worked even the same in Work Item also.
    Regards,
    Raja Sekhar

  • Multiline container in workflow ?

    How Can I display multiline container element in the Send Email Task in workflow.
    I have one activity called Create PO in forground. I have to send the PO number and materials number to the responsible agent(I have agents) by Email.
    can I do it in workflow. please let me know.

    Hi Amar,
    We don't have any direct way to refer multiline container in send mail. You can achieve this indirectly. You create a big string in workflow container. Then create a custom object from SW01. Create a method in this object. This method should take the multiline element as the input and concatenates the lines and returns the big string. Now the object is created, create a new task before send mail stpe. This task will be calling the custom object method which takes the multiline element and returns the string. Then use this string in the mail. Hope this helps.
    Thanks
    hari

  • Urgent - How to pass value to Multiline container element in workflow

    Hi,
      I hav a requirement as below...
    1) In a Bus. Object, there is a method with a parameter which is Multiline.
    2) When I execute it directly from Bus. Object, I am able to populate any no. of lines to the multiline parameter & execute it. It is working correctly.
    3) Now I have created a task for the same Method & used it in my workflow.
    4) I want to pass multiline values to the parameter from workflow.
    5) I dont have any internal table being filled in the previous steps. I directly want to assign variables or constants to it.
    How can I do it????
    Thanks,
    Sivagami

    hi sivagami,
    Please help me. I am also facing same type of problem. i am new to workflow. i am using using FM sap_wapi_write_container. to write into the container. but here my problem is i don know wat is the element name to refer to the value. if i give any element naem its taking as separate element & not as the same multiline container. i hope u will be able to assist me since u have worked on the same type of problem.
    If u help i will be highly thankful to u.
    Thanks & Regards
    Nigesh

  • Multiline container element in workflow

    Dear all,
    I am using a multiline container element in workflow container.  Can anybody suggest how I can see the values of that element?  After workflow execution is COMPLETED and I go to SWI1, it shows only simple elements.  It doesn't show any of my multiline elements.
    Please help.
    Thanks in advance,
    Regards,
    Pranav.

    Hi Pranav,
    It does work in 6.20. I am not sure about 4.6C.
    Display Technical Details from the Workflow log for your WF instance. You can examine the Container values for each of the steps. See if the values show up (are you certain your multiline container has been populated?). If you are populating the multiline container from an object method, verify by testing your object method that the parameter are correctly defined and it is getting populated.

  • Workflow: check multiline container element for emptiness

    Hi!
    Please suggest how to check multiline workflow-container element for emptiness in condition block.
    Regards,
    Maxim.

    Hi Max,
    One way to do this is to add a process step which calls a function module passing the multiline container as the import parameter. In this function mod, you can check for emptiness and set a variable which will be the export parameter. Map this export parameter of the step to a workflow container field. Finally in the next step (control block) you can check the above workflow field.

  • How to pass values one by one from Multiline container in workflows

    Hi,
    I have used a structure in my workflow as multiline container.
    I want to pass values 1 by 1 to the workflow but not all the three values..so how do i pass the values 1 by 1 rather all at a time..
    kindly suggest me
    Thanks,
    Shanky

    Hi,
    Create a new container with type I and set the initial value as 1.  EX : Index.
    Pass your Multi-line container and this index container to a new method. Get the multi line container data's into an internal table
    and read the data based on the index and append the data's to a new multiline container.
    Second time increment the index container by 1. So now the value of index container will be 2.
    Pass the multiline container value and index to method. now it will read the second record from the internal table.
    Call the method using the loop step type.
    Thanks,
    Viji.

  • How to identify whether a multiline container is empty or not in Workflow?

    Hi Experts,
    Does any1 know how to identify whether a multiline container
    is empty or not in a workflow?
    Thanks.
    Points wil be rewarded.
    Vincent

    Dear Vincent,
    You can get the report name for the Business Object which contains the multi-line container, from the BO itself. Put a break-point in the report and try executing the workflow. The multiline container is like an internal table in the report. See if the internal table is initial while execution.
    Regards,
    Michael.

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

  • Output of multiline container element in email not working

    I'm trying to display a multiline container element in an e-mail from workflow. The element container contains 2 lines. I can see these have been populated in the log in SWIA. However, when using &ITAB##& to output these lines nothing is diplayed. I've also tried &ITAB[]& and &ITAB& all of which return no lines in the e-mail.
    Does anyone know if this is something I'm doing wrong or is there an error in R/3. I'm on release 4.6c.
    Thanks
    Karen

    This is getting annoying. This was sednging e-mails and printing the table in the e-mail fine. Then I had to add more fields to the table ITAB. After this the table wasn't showing again in the e-mail. I recreated the workflow, tasks and even the BOM, but still nothing.
    As before I can see the ITAB entries in the details of the e-mail task. But, they don't get written into the e-mail even though I'm selecting &ITAB##& from the Expressions section to put into the e-mail.
    Is there anything I haven't tried. Is there something I'm doing wrong? Is this a SAP problem that can be fixed with a note. I've had a look, but can't find anything about it.
    Thanks
    Karen

  • Multiline Container

    Hi All,
    I have a requirement where i have to pass a multiline container from a BO method to workflow. I created an export parameter and also i select option "multiline" also. But i am not getting the syntax "how to export it".
       SWC_SET_TABLE CONTAINER 't_container[]' ACCOUNT_ID.
    t_container[] is a container that i declare in the BO method, and Account_id is the export parameter.
    please reply if anyone has any idea.
    Thanks & Regards.
    Raman.

    Hi Raman,
    U r doing little wrong in your last statement.
    SWC_SET_TABLE CONTAINER 't_container[]' ACCOUNT_ID.
    The correct one wil be :
    *SWC_SET_TABLE CONTAINER  'ACCOUNT_ID'  t_container[].
    To overcome this confusion and error ...always follow below steps while creating method with export or import parameters.
    1> create method ztest
    2> Now go to parmeters and create export or import parametrs as per ur requirement...i.e zvar1 (multiline)
    3> Click on PROGRAM buttom to geenrate template for this method.
    4> U will see for all the import and export parameters given by  u ....the macro and data decalartion is automatically generated.
    5> In my case it would display code like..
    data: ZVAR TYPE WFCS_IMELD-MSGNR OCCURS 0.-------> same type given by u in export parameters
         SWC_SET_TABLE CONTAINER 'zvar1' zvar1.----> here variable under quotes id from *export parameter*                                                                               
    and other zvar1 without quotes u can replace from BO side varibale                                                                               
    to pass data.

  • How to test the rule if multiline container is passing to the task?

    Hi Experts,
                      I am working on leave workflow. I have to get the approvers based on no of days of leave and leave type. I am getting these details in ITEMS_TAB internal table. I am passing this table to a rule. Now my problem is when I tried to simulate the rule I am not getting any input screen to enter the data.
    ITEMS_TAB is an internal table type of   "PTREQ_ITEMS_WF_TAB_FLAT".
    In the rule I have created a container by selecting the radiobutton "ABAP Dict. Data Type" and entered the above reference parameter is it right way?
    Is it possible to test the rule independently if I use multiline container as import parameter in my rule?  If so can anybody please tell me how to test the rule?
    Thank You.
    Srija.

    Hi Pavan,
                     Thank you.
                     To copy the values I am not getting any input screen to input the values. I observed one thing that the type that I am referring in the Rule is a deep structure. Is this is the reason that I am not getting the input screen to enter the values?
    I tested by creating aother rule by taking a field for that rule I am getting the input screen to simulate the Rule.
    Can you please suggest if the rule will not work then what I have to do? without the rule how can I get the agents?
    Thank you.
    Srija

  • Problem using multiline container in Alert Category

    Hello, experts!
    Could you please suggest me how to solve the following issue.
    I have userdefined multiline container MY_CONTAINER with two elements FIELD (stores name of field) and VALUE (stores value of field). This container is filled in runtime by means of BADI extension. So in transaction ALRTDISP filled container looks like:
      MY_CONTAINER
          MY_CONTAINER[1]
              FIELD    SystemCode
              VALUE    42
          MY_CONTAINER[2]
              FIELD    Key
              VALUE    0292383728232
          MY_CONTAINER[3]
              FIELD    State
              VALUE    1
          ...and so on. Number of filled elements of container is unknown.
    I need to add the contents of this container to Long text of Alert Category in form of:
          SystemCode: 42
          Key: 0292383728232
          State: 1
    ...and so on.
    I added MY_CONTAINER on the Containers tab of my alert category. And in Long text included the following expression:
          &MY_CONTAINER[].FIELD[]&: &MY_CONTAINER[].VALUE[]&.
    But in long text it looks like:
          SystemCode Key State ...: 42 0292383728232 1 ...
    If the expression is like
          &MY_CONTAINER[].FIELD& - &MY_CONTAINER[].VALUE&
    then long text contains only the first element:
          SystemCode: 42.
    Does anybody know how to solve this problem?
    I think I need to use expressions (something like FOR-loop) for filling Long Text in Alert Categories. Is it possible?
    BR,
    Vika

    Hi Experts,
    still trying to work out but couldn't understand the behaviour.
    <b>If the Long text :</b>
    Error: &SXMS_ERROR_CODE& <b>of category &SXMS_ERROR_CAT&</b> was found in a message &SXMS_MSG_GUID& from the service &SXMS_FROM_SERVICE&  <b>and  Interface &SXMS_FROM_INTERFACE&</b>
    to test I am running the program <b>RSALERTTEST</b>
    <b>Msg got thru E-mail is </b>
    Error:  and category:<b> &SXMS_ERROR_CAT&</b> was found in a message  from the service  and Interface
    <b>
    And when I change the Long text</b>
    Error: &SXMS_ERROR_CODE& <b>and &SXMS_ERROR_CAT&</b> was found in a message &SXMS_MSG_GUID& from the service &SXMS_FROM_SERVICE& and Interface &SXMS_FROM_INTERFACE&
    After running the program <b>RSALERTTEST</b>
    <b>
    E-mail msg</b>
    Error:  and was found in a message  from the service  and Interface <b>&SXMS_FROM_INTERFACE&</b>
    coudn't able to understand why it is displaying the container variable as is in the mail.
    checked all the Alert Framework configuration, Everything looks good.
    Thank you,
    <b>MK</b>

  • Modelled deadline with  multiline container  subworkflow woes

    Hi,
    In a modelled deadline I am trying to put a subworkflow step with a mutliline container element
    ( ie when deadline reached, run the subworkflow once for everything in the container.
    Workflow(s) compile and activate ok, however at runtime
    I get the following error :
    Inconsistent workflow definition: Join for fork node no. 158 not found       
    (this is the subworkflow node)
    Extras -> Special functions -> Block correction didn't find anything. Tried saving & activating, logging on and off, sacrificing chickens.. well maybe not the last one
    yet !   Any ideas ?
    PS Binding : &W_FC_MGR[&_WF_PARFOREACH_INDEX&]&  =>  
                &W_AGENT&

    Hi Ian,
    Always mention system/version when asking questions.
    On older systems (4.6c I think) I've had some strange things happen when creating modelled deadlines manually. So I got into the habit of using the wizard to intially create all my modelled deadlines on pre-620 systems.
    Failing that, most of the time I've seen those type messages I was right and the WF builder was the confused one. The time-saving route is often to simply delete and recreate the offending step.
    Failing that, try creating it elsewhere in the WF and seeing if that checks out OK. If so, then cut-n-paste it to where you want in your deadline. If it complains after that (unlikely), log it with OSS.
    Cheers,
    Mike

  • Passing values from multiline container

    Hello Gurus,
    I am new to workflow and I have a requirement wherein I have a multiline container element (DiscDocStatus of type EDISCDOC-STATUS) filled with the status values.
    If all the values in container DiscDocStatus are 10 or 11, then I need to execute certain steps (step A and step B) and if any other value than 10 or 11, then I have to wait for 10 days and then do step A and step B.
    Could you please how to do it?
    P.S. I know...I am asking tooo silly thing...but do not have any option but to ask...apologies....
    Thanks

    Hi..
    In that case you can try as below & i checked the same. it works for me..
    1. Create a block step in your workflow... In local container tab of block step create a single value container element which has
    data type as line type of your multiline container...
    Say for eg: your multiline container has datatype as (char10) with multiline checkbox enabled then create this container element in
    local container tab with datatype as (char10) without multiline checkbox (ideally you can compare multiline container as internal table
    and this single line container as workarea)..
    2. In control tab of block step do the binding from multiline container to single line container. Leave the Block type dropdown in control tab as standard.
    3. Put a condition step within block with condition as single line container NE 10 and NE 11. (So in case the multiline element has even a single value which is not 10 or 11 then workflow control will enter this condition). Place a container step in outcome True of condition step to set a flag variable as X (Note: Create this flag variable in workflow container)
    4. Now outside the block again put a condition step which checks whether this flag variable is set as 'X' (if it has value X then it means that multiline container has atleast 1 value other than 10 & 11. If not it means all values are either 10 or 11). So If flag is X you have to wait for 10 days and then do step A and step B. If not you can execute steps A & B. For waiting for 10 days you can go for requested start deadline which will send the workitem to the inbox of approver only if the mentioned time period/deadline (in your case - 10 days) expires.
    Let me know in case of any issues.
    Regards,
    Bharath

Maybe you are looking for