Workflow Multiline

I have a Z business object.
I have declared parameter in Business object as multiline.
Same i declare it in task.
I have a module pool, in which i am having one table control with one column.
There is one button through which i can send the mail.
I use FM SAP_WAPI_START_WORKFLOW for this.
Suppose i insert 5 values in Table control, When i check the log, the 5 values are comming in the multiline parameter of task container, but it is not passing to parameter of business object. It only taking first record.
How can i pass all the 5 values from task to business object?
Please Help !
With Regards,
Nitin

HI Nitin
First you need to check how you have defined your method in BO.
If you have used a FM for the same, then you need to check your parameter data type. You have to declare it with table type.
If no FM has been used, then you need to use the statement
SWC_GET_TABLE <BO-container> <WF-container>.
SWC_SET_TABLE <BO-container> <WF-container>.
Thanks
Lalit Gupta

Similar Messages

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

  • 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

  • FM to read multiline WF container from abap webdynpro

    Hi Gurus,
    We are stuck in reading workflow multiline container in our ABAP webdynpro code. Hope some one can assist us.
    Let me brief you the issue.
    We need to read the workflow multiline container using our webdynpro program. we are using the FM SAP_WAPI_READ_CONTAINER to read the container elements of the workflow by passing workitem id as an input. But this FM is failing to pick the multiline container. Can any one of you advise the alternate way to proceed with this ?
    Merry Christmas to all.
    Cheers,
    BG Suseendran

    Hello Suseendran !
                   Thanks for your Christmas wishes.
                   You can use the following function modules :
                    SWI_READ_CONTAINER_OBJECT
                    SWW_WI_CONTAINER_READ
    Regards,
    S.Suresh

  • BOR reference in ABAP Class

    Hello,
    I am writing method in ABAP class which I will link to the Workflow Step. I want  to access values of one of the Workflow Element which is Multiline and refering to BOR Object Type. My queries are as below:
    1. How should I define Importing Parameter of Method which will import values from the Workflow Element which is Multiline and refering to BOR object type.
    2. If I change value of that Workflow Element (Multipline refering to BOR object type)  in ABAP class method, will it be automatically reflected in Workflow Container due to binding?
    Edited by: Ashwin Sonkusare on Apr 1, 2011 3:35 PM

    Hi,
    1. How should I define Importing Parameter of Method which will import values from the Workflow Element which is Multiline and refering to BOR object type.
    Please create a table type same as workflow multiline element type. ( You can also use standard table if present ).
    Then use this table type as the type of the import parameter of the class.
    Then u can pass the multiline element of workflow to  abab calss
    2. If I change value of that Workflow Element (Multipline refering to BOR object type) in ABAP class method, will it be automatically reflected in Workflow Container due to binding?
    If u change the Workflow Element (Multipline refering to BOR object type) in ABAP class method, then  u need to update the values of the workflow multiline element through reverse binging ( binding abap class to WF ).
    Thanks and regards,
    SNJY

  • Parallel Block (ParForEach) end condition doesnt work

    hello
    I have a parallel block in my workflow (multiline) .
    In this defintion i have also configured an end condition.
    ( &Approved& = 'X'  for example)
    My intention was that the workflow continues after  the block when:
    1) all parallelblocks are processed.
    2) the end condition was met.
    But this second scenario( end condition was met) doesnt work.
    When approve = X in one block, the other parallel blocks arent logically deleted.
    is my assumption wrong? has anyone ever experienced this behaviour?
    thanx
    Hayo

    Hello,
    In fork normally you define how many branches are required to complete a job.
    Let say u have 3 approvers for one work item  say A,B, and C.
    If one of these approve you move on to the next step so in this case branches are 3  but necessary branch required is 1.
    I believe that u must be setting flag 'X' when it is approved correct.
    So just play with the necessary branches and you will be available to do it.
    Regards,
    Nabheet Madan

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

  • Looping through Multiline list in Workflow

    We have a Workflow that sends an email with an Office document (ie., Excel) as an attachment to each Executing Service Engineer on service items that are relevant for planning. In an attempt to do that we loop through a multiline list, which is used to hold the relevant service items for processing.
    1.     We created an activity step Initialize work items count to store the number of service work items, e.g. Work_items_count
    2.     We use a loop step (loop until) to keep looping while work_items_count has a value greater than zero.
    3.     Within the loop, we use another activity step Get install item ibase components that processes the first item of the multiline container element Work_items and returns the ibase components for the Executing Service Engineer. After processing has completed, we delete the item from Work_items and decrement the counter work_items_count by 1.
    4.     As part of the final steps in the loop, an Excel document is created from a template using a standard object method WF_DOC-CREATE. The document is than converted to an SOFM object using standard object method WF_DOC-CREATE_SOFM, and than an email is generated with the SOFM object as an attachment using standard object method SELFITEM-SENDTASKDESCRIPTION.
    The problem that’s occurring is that on the second loop pass, the status for activity step Get install item ibase components is set to ready expecting user intervention. I know that it’s a dialogue step, but why than does it execute seamlessly on the first loop pass? I’ve set the agent assignment on the Workflow and on the task to General task so that anybody can execute it so I don’t think it’s an agent assignment problem.
    Does anyone have any suggestions? Do i need to use dynamice parallel processing in this case?

    We have a Workflow that sends an email with an Office document (ie., Excel) as an attachment to each Executing Service Engineer on service items that are relevant for planning. In an attempt to do that we loop through a multiline list, which is used to hold the relevant service items for processing.
    1.     We created an activity step Initialize work items count to store the number of service work items, e.g. Work_items_count
    2.     We use a loop step (loop until) to keep looping while work_items_count has a value greater than zero.
    3.     Within the loop, we use another activity step Get install item ibase components that processes the first item of the multiline container element Work_items and returns the ibase components for the Executing Service Engineer. After processing has completed, we delete the item from Work_items and decrement the counter work_items_count by 1.
    4.     As part of the final steps in the loop, an Excel document is created from a template using a standard object method WF_DOC-CREATE. The document is than converted to an SOFM object using standard object method WF_DOC-CREATE_SOFM, and than an email is generated with the SOFM object as an attachment using standard object method SELFITEM-SENDTASKDESCRIPTION.
    The problem that’s occurring is that on the second loop pass, the status for activity step Get install item ibase components is set to ready expecting user intervention. I know that it’s a dialogue step, but why than does it execute seamlessly on the first loop pass? I’ve set the agent assignment on the Workflow and on the task to General task so that anybody can execute it so I don’t think it’s an agent assignment problem.
    Does anyone have any suggestions? Do i need to use dynamice parallel processing in this case?

  • How to use data of multiline element from workflow container

    Hi,
    Can you please tell me how to access rows of multiline element of workflow container.
    Scenario is like below.
    I have values in a multiline container(table) of workflow container.
    Now inside Fork branches  i need to check for specific data in the above table and with that condition i have to send workitem.
    I hope u can understand,otherwise please revert.
    Thanks in advance,
    Madhu

    You cannot didrectly check the condition...
    what you have to do is.. write a inside the method as below and set the flag...and use the flag in condition editor...
    SWC_GET_TABLE CONTAINER 'AGENTS'  lt_agents.
    loop at lt_agents ino wa_agents.
    if wa_agents = 'A'.
    lv_flag = X.
    endif.
    endloop.
    SWC_SET_ELEMENT CONTAINER 'FLAG' lv_flag.
    Create an export parameter FLAG as char1 with export marked.
    Do the neccesary bindings from task to workflow.
    Then in workflow check this flag in condition editor.

  • Passing multiline element to workflow container ? how do i ?

    Hello Folks,
    I need to pass an internal table to the workflow container...In this container i had already created an Multiline element which the right table type assigned..
    I need to call this Workflow using FM SAP_WAPI_START_WORKFLOW.... Eg:
    CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
      EXPORTING
       TASK                      = WFNAME
       LANGUAGE                  = SY-LANGU
       DO_COMMIT                 = 'X'
       USER                      = SY-UNAME
       START_ASYNCHRONOUS        = 'X'
      DESIRED_START_DATE        =
      DESIRED_START_TIME        =
      DESIRED_START_ZONLO       = SY-ZONLO
      IFS_XML_CONTAINER         =
      IMPORTING
       RETURN_CODE               = lv_return_code
       WORKITEM_ID               = lv_workitem_id
      NEW_STATUS               =
    TABLES
       INPUT_CONTAINER           = lt_container_wf
       MESSAGE_STRUCT            = lt_message_struct
       MESSAGE_LINES             = lt_msg_lines.
    lt_container_wf values should have an internal table to be passed a multiline element.....
    I am unble to pass it this way and the error i get is that " Single Line element  <XXXX> is being passed several times...
    How do i tell the system the the element which is passed is a mulitple element..
    Regards,
    Anand

    check this code snippet
    include <cntn01>.
    DATA:
          lv_retcode   TYPE  sysubrc,
          lt_cont   TYPE TABLE OF swcont,
          ls_cont   TYPE          swcont,
          lt_kna1   TYPE TABLE OF kna1,
          ls_kna1   TYPE kna1.
    SELECT * FROM kna1 INTO TABLE lt_kna1 UP TO 10 ROWS.
    swc_create_container lt_cont.
    swc_set_table lt_cont 'CUSTOMER' lt_kna1.
    CALL FUNCTION 'EWW_WORKFLOW_START'
      EXPORTING
        x_task                = 'WSXXXXXXXX'
    TABLES
       X_CONTAINER           = lt_cont
    EXCEPTIONS
       INVALID_TASK          = 1
       NO_ACTIVE_PLVAR       = 2
       START_FAILED          = 3
       GENERAL_ERROR         = 4
       OTHERS                = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

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

Maybe you are looking for

  • Page Setup options cached somewhere?

    I'm trying to help someone in my office who can no longer select "Tabloid" size paper in the Page Setup. We have a Xerox Splash G640 which gives me about fifteen different page sizes in the Page Setup window, but even after deleting her printer from

  • Opening an FDF that references a PDF in Firefox and Safari

    Our ASP.NET application serves up fdf and the associated pdf files from an underlying database. We use Fdfacx to generate the FDF with a reference (set using FDFSetFile) to a PDF. Both FDF and PDF URLs have parameters. When we use IE7, all works fine

  • How can I get back deleted photos from my iPhone 5?

    I have deleted photos by accident- is there away I can get them back?

  • Upgrade - Restore Problems

    tried upgrading my iPhone 4 software and it failed.  Restore failed with a code -1  Now phone won't work, upgrade or restore.... suggestions?

  • Unable to print to printer in remote office

    When the user tries to print we see the print job being created on the redirected printer status screen (HP MFP M127) but the print job is never printed (we see it come in the spooler and out) In the event log we see the following error:  How can we