Multiline container table mod in ABAP WD

Hi,
   Looking for a quick guideline for macros/function modules to do the following:-
1] Read a multiline table into ABAP WD from workflow container
2] Append an entry to the table
3] Write the amended table into the workflow container.
I have seen several blogs already but there is quite a variance in the advice shown so I thought I would ask again and hope for clarification.
Cheers,
Ross G

Hi,
there is SAP_WAPI_WRITE_CONTAINER to change the container data of a workitem.
It uses the simple container structure so you don't really need to include <CNTN01> and use the macros for container modification
What is the functional requirement, if you're expecting some data in a workflow it should be provided in the workflow/event and not be fixed by some error prone abap or other work around.
Kind regards, Rob Dielemans

Similar Messages

  • 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

  • Make entries in a table in webdynpro abap

    Hi all,
    We have a requirement to make multiple entries in a Table in webdynpro ABAP.
    We have created a table and inserted inputfield as cellEditor
    but at runtime it is being displayed in readonly mode we cannot enter anything in that inputfield.
    inputfield is binded with a context and table is not in readonly mode.
    Please help in this regards
    thanks & regards.....
    Gaurav Makin

    Hi Gaurav,
    Make sure the context node bound to the table has cardinality 0..N.
    When the app starts you probably need to read the table contents from the database or some other source and populate the contect node.
    The table will allow the user to edit values only for the rows that have a corresponding element in the context node.
    If the initial content is empty, i.e. no elements in the context node then the user will not be able to edit.
    You will need to either initialize the context node with a bunch of elements if the number of entries is fixed and known beforehand,  or provide a way for the user to create a new row.
    You can do this by adding a toolbar to the table with a create button with a CREATE action and the following method:
    method onactioncreate.
      data:
        lo_element type ref to if_wd_context_element,
        lo_node    type ref to if_wd_context_node.
      lo_node = wd_context->get_child_node( name = 'your node name here' ).
      lo_element = lo_node->create_element( ).
      lo_node->bind_element( new_item = lo_element set_initial_elements = abap_false ).
    endmethod.
    Regards... Lucio Menzel

  • 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

  • Use Multiline Container Element in User Decision

    Hi Gurus,
        I have a Multiline Container in my User Decision Task. I am able to pull the data in a Standard Text to the Multi Line Container Element if type RSTXT-TXLINE. But how do I display the total data in all the lines in that element to the User Decision Workitem Text.
    Thanx & regards,
    Kan

    You cannot insert all the table entries in the Decision step workitem Text. it wont allow you to display, one of the possible ways to fix it is please check this [blog|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417500)ID1574174750DB11406479040085832269End?blog=/pub/wlg/15666]

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

    Hi,
    There are many invoices present in the incoming message.
    I have to make a single Bapi call for each invoice.
    For this purpose in the BPM I need to map the message to a multiline container, so that in the next block I can loop each line of this multiline container to the required Bapi.
    Now, I have this problem in the mapping of the received message into a multiline container. The transformation step in BPM is not giving any result in the output.
    For your reference, I am giving belwo the input and result of the mapping (into a multiline container below) I need
    1. Input:
          <ns1:MT_scan_invoice xmlns:ns1="urn:customers:invoice">
             <Invoice>
             </Invoice>
             <Invoice>
             </Invoice>
          </ns1:MT_scan_invoice>
    2. Result needed:
          <ns1:MT_scan_invoice xmlns:ns1="urn:customers:invoice">
             <Invoice>
             </Invoice>
          </ns1:MT_scan_invoice>
       <ns1:MT_scan_invoice xmlns:ns1="urn:customers:invoice">
             <Invoice>
             </Invoice>
          </ns1:MT_scan_invoice>
    I have done mapping where, I have mapped the "Invoice" node (which is unbounded) to the target node of "MT_scan_invoice ".
    In the 'Messages' tab of message mapping and in the 'Design' tab of interface mapping, I have changed the occurrence of the target message to '0..unbounded'. Also in the BPM the target container is multiline.
    The interface and message mapping in stand-alone mode is giving successful outputs. (as desired)
    Still the transformation step in Runtime is giving an empty output. Did I miss something in the mapping?
    Kindly help. For the last 2 weeks, I am stuck with this issue.
    Also kindly suggest alternate methods to generate a multiline container.
    Thanks,
    John

    Hi,
    In this case, you are splitting your single message based on some condition to multiple messages but with the same structure as that of source.
    Can you pls specify what is that condition?
    There is a possibility that mapping is wrong somewhere here.
    Also, befor this mapping there are two nodes at target side, 'Messages' and 'Message1'.
    Map these nodes with some constant even thought their occurence is 1..1.
    Regards,
    Supriya.

  • How to send message from multiline container to same webservice or bus. sys

    Hi All,
    I want to send message from multiline container to a syn web service sequentially.
    I am getting that multiline container after a transformations step (1: n mapping).
    where i dont known what will be the value for n (number of message in multiline container). This will vary; depend upon input message to BPM.
    Scenario is like this.
    1. Receive step
    2. Transfromation to 1: n
    3. Want to send message from multiline container to a web service (business service),default loop and block step doesn’t give desirable result.
    any help will be appreciable
    Regards,
    Adish

    Adish Jain wrote:>
    > where as, if I will use block, it will send the same message to multiple receivers which are present in multiline receiver container. So need to think in different manner.
    Not necessarily.
    When you use block step in ForEach mode, you can select the container variable from:
    - a receiver container;
    - an interface container;
    The line element can then be either a receiver or an interface.
    The problem is that for this to work, the interfaces need to be async (since they are to be used as containers) and hence you won't be able to make your scenario work.
    But again, explain why your scenario with loop step didn't work.
    The only gap here is how to determine the number of loops (defining the counter variable value). But that can be easily solved if you include a new message with occurrence 1 as a target message of your mapping and as a container in your bpm.
    This new message needs only 1 single field, that should be filled with the number of messages you've created in the mapping (you could use count standard function, f.ex.).
    In your bpm, make sure to pass this fields value into the counter container right after your transformation step.
    Regards,
    Henrique.

  • Server Proxy in back ground mode in ABAP?

    Hi,
    I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs -  SCMS_BINARY_TO_STRING).
    However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
    Not sure, if SET_XML(IF_WS_PAYLOAD) method can be used.
    Thank you,
    Mallik

    Hi Malik,
    I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs -  SCMS_BINARY_TO_STRING).
    If you think about this, it hasnt sense, a server always need to be alive wainting a communication. If you want to stop the server reception, the middleware system (in this case PI) would need to store the messages for a future server availability, then this would work only with async messages. I dont see right now the utility of this, may be don't overload the ECC system in a work hours, is this the problem?
    However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
    Are you talking about to do this conversion in a java mapping inside the PI? aren't you?
    Regards.

  • 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

  • Determine number of lines of multiline container in ccBPM

    Hi guys,
    during my process a loop over a multiline element and send each entry to SAP backend.
    After shipment of the message the process waits for some time, to prevent problems caused by parallel messages in the backend.
    At the moment I use a block in the "for each" mode. But with this solution the wait step is executed unnecessary, after sending the last message of the multiline container variable.
    Is there a possibility to check the number of entries and solve this issue with a normal loop step and preventing the process for unnecessary wait step?
    I search SDN for some information relating this issue, but without success.
    Any help appreciated, thanks in advance
    Kind regards
    Jochen

    Hi Shabarish,
    thanks for helping.
    You are right I want to know how many entries are in the multiline container.
    I also thought about an export parameter in the transformation step where the multiline message is created.
    In this parameter I could return the number of entries.
    Maybe this would be an adequate approach for this issue.
    Unfortunately I wasn´t able to evaluate such a export parameter, when I tried it last time.
    I mentioned the issue in this [thread|;.
    maybe you know how to solve this issue..?
    kind regards
    Jochen

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

  • Multiline Container Processing

    I have an existing workflow that I need to modfiy to make one of the steps use a multiline container element.  I want this approval step to be processed by all approving managers based on the number of manager id's in the container.
    I have a multiline container with data.  In my Task binding, I am binding it using the PARFOREACH Index element.
    I am not sure what I am missing. I know that the containter has data but the step is being skipped (based on documentation, the step is skipped for an empty table).
    Is there an additional binding that I need to consider?
    Been struggling with this for many many days.....any help would be greatly appreciated....Point will be awarded!

    From the [Wiki FAQ|https://wiki.sdn.sap.com/wiki/display/HOME/SAPBusinessWorkflow+FAQ]:
    Where can I find examples of workflow techniques?
    SWUI, SWUI_VERIFY, SWUI_BENCHMARK, SWUI_DEMO, SWUI_WFUNIT
    Edited by: Mike Pokraka on Jul 24, 2008 2:54 PM - provided full link and quote

Maybe you are looking for

  • How To Change of Credit Card Information When Purchasing an App?

    Hello, when I firest registered for my Blackberry ID, I have logged my credit card information. Unfortunately, due to security issues, I have requested to cancel that credit card and change to a new account number. However, when I try to purchase ano

  • 'timed out' - constantly!

    Unable to purchase from itunes as I am constantly getting the message that the account is timed out. Same thing happened when I went to edit my account. Managed to change my password and edit using another mac but am experiencing the same problems on

  • I can't install flashplayer in IE9 - tried multiple times -

    It gets to a point where it says to close IE (and it is already closed) and keeps prompting me to close IE... and cannot finish installing. I have Windows 7, 64 bit system. I didn't have problems until we upgraded to IE9... flashplayer is installed s

  • CRM 2007 when create new track have problem

    Hi, buddies: I am on CRM 2007 (CRM 6.0 SP01), and from Development and Extension Guide - SAP E-commerce 6.0, seems like I should chooese CRM JAVA Customer Project 5.0(CUSTCRMPRJ), and under this SC, you can see a lot of componets which is lower relea

  • HT201250 Can I retrieve a trashed folder that was emptied

    I accidentally threw away an important folder and emptied trash. Can I take my Mac back in time and undue my trash removal?