Refresh the values in multiline container

Hi All,
Can any one help me on this.
How to refresh the values in  multiline container of  workflow.
Any function module are available to refresh the multiline container .
Thanks,
Harsha

Hi,
What do you mean by refresh?
Have you tried SAP_WAPI_WRITE_CONTAINER? Always check workflow functions SAP_WAPI for any workflow functionality. If you don't find one for your purposes within SAP_WAPI*, the functionality probably cannot be achieved (at least not easily).
Regards,
Karri

Similar Messages

  • 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

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

  • 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

  • Not Able to Pass the Values to WorkFlow Container

    Hi All,
        Iam calling a WF from a BSP application by using the FM       
    EWW_WORKFLOW_START
    for this fucntion module iam passing a table  to the parameter
    X_CONATINER = t_values
    but I am a bit confused that how this table is assigned to the workflow conatiner.
    what I want to know is I need to assign the values of t_values to the WF conatiner elements .
    Thanks In Advance.
    Regards
    Pavan

    Pavan,
    try this code and include this in your corresponding include.
    Make sure that your workflow has a multiline import element with the same name as of the internal table. Here, WERKS.
    REPORT yh_sample.
    DATA : t_container TYPE TABLE OF swcont WITH HEADER LINE,
            wf_id TYPE swwwihead-wi_id.
    DATA: werks TYPE STANDARD TABLE OF werks_d WITH HEADER LINE.
    DEFINE swc_set_element.
      call function 'SWC_TABLE_SET'
        exporting
          element       = &2
        tables
          container     = &1
          table         = &3
        exceptions
          type_conflict = 1.
    END-OF-DEFINITION.
    werks = '1000'.
    APPEND werks.
    werks = '1003'.
    APPEND werks.
    werks = '1056'.
    APPEND werks.
    swc_set_element t_container  'WERKS' werks.
    CALL FUNCTION 'EWW_WORKFLOW_START'
      EXPORTING
        x_task          = 'WS99901222'
      IMPORTING
        y_workflow_id   = wf_id
      TABLES
        x_container     = t_container
      EXCEPTIONS
        invalid_task    = 1
        no_active_plvar = 2
        start_failed    = 3
        general_error   = 4.
    IF sy-subrc = 0.
      COMMIT WORK.
      MESSAGE 'success' TYPE 'S'.
      WRITE:/ wf_id.
    ELSE.
      MESSAGE 'Error' TYPE 'S'.
    ENDIF.
    Regards
    Indu.

  • 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

  • Reg: Refreshing the Values saved in the View

    Hi,
    I'm having a popup window, it is getting opened when i click on link. in the popup view i'm entering some values and saving it and closing the popup.
    the problem is when click the link and open the popup again, i'm having the saved values there, but i need a refreshed page.
    How to do this, Help me out with detailed procedure
    Thanks & Regards,
    Suresh

    You would be saving the values in some context...
    why dont you invalidate the context node every time you open the view wdDoInit() method...
    In the pop window's wdDoInit() method....write following:
    wdContext.nodeXYZ().invalidate().
    where XYZ is the node with attribs containing the data.
    Regards
    Deepak

  • Receiver determination step in the BPM and multiline container

    i have made a file2file scenario where:
    there is a BPM,
    the BPM has a send step which contains a receive step,
    a transformation that mapps the incomin message to two messages(Split-messgae case),
    and then a FORK step which sends the two messges to through 2 SEND steps to the intended receiver services.
    It didnt work......and i followed a blog->  /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure   ............... which suggested to have a
    "receiver-determination" step in the BPM before the SEND step.... it says that this
    "receiver-determination" step will put the message in a MULTILINE container..
    i m confused bout this step ........ can anybody explain.....
    please help

    HI,
    In receiver determination step selctthe multi line container element.in container editor create the one element with type as receiver and select the check box.
    A Receiver Determination step returns set of receivers configured for the output abs interfaces in the directory and puts it into receiver which is a multiline container receiver element
    Regards
    Chilla

  • To hold the value of a container in BPM

    Hi,
    How to access the value of the counter outside an  infinite loop in the BPM, i have to use the counter calculated in the first infinite loop in the next while loop.
    Let me know if any one has done this..
    thankx,
    Shree

    You mean inside the same BPM?
    If that's so, you can use the local container you are using as counter wherever you want in the BPM. So, you can change the container in a step and use the same container (read its value) in any steps after that.
    Regards,
    Henrique.

  • Plz ans this:after refreshing the values should not change

    hi,
    In my applcation iam using jsp as view.
    After entering the values if we refresh the page the values are
    invissible.Plese any body tell me is there any way to protect this one.

    use <jsp:usebean...
    suppose usebean id = beanid
    eg. for input type text use
    <input type="text" name=address value=<%=beanid.getAddress()%>
    like wise you proceeed..
    the above syntaxes maybe not properly. take care..

  • How to refresh the data in a container and to update the new data

    Hi,
    I have created a Module Pool Program in which i have two containers to display the long text.
    Initially this container is filled and based on some condition i want to update the text in the same conatiner.
    I am using the below two classes to do all this.
    cl_gui_textedit,
    cl_gui_custom_container,
    Could someone help me how to remove the long text in the container and update the new long text.
    I am getting the new long text but not able display it in the same container. Please someone help me how to refresh and update the container.
    Thanks in advance.

    Hi
    Try this.
      IF cl_gui_textedit  IS INITIAL.
      create control container
        CREATE OBJECT cl_gui_custom_container
           EXPORTING
                container_name = 'Container Name''
           EXCEPTIONS
                cntl_error                  = 1
                cntl_system_error           = 2
                create_error                = 3
                lifetime_error              = 4
                lifetime_dynpro_dynpro_link = 5.
    create text_edit control
        CREATE OBJECT cl_gui_textedit
           EXPORTING
                parent = cl_gui_custom_container
                wordwrap_mode = cl_gui_textedit=>wordwrap_at_windowborder
                wordwrap_to_linebreak_mode = cl_gui_textedit=>false
           EXCEPTIONS
                error_cntl_create      = 1
                error_cntl_init        = 2
                error_cntl_link        = 3
                error_dp_create        = 4
                gui_type_not_supported = 5.
      ENDIF.
    *--use method to set the text
      CALL METHOD cl_text_edit->set_text_as_stream
        EXPORTING
          text            =  t_lines ( Internal table with long text).
        EXCEPTIONS
          error_dp        = 1
          error_dp_create = 2
          OTHERS          = 3.
    regards,
    Raghu.

  • Execute action is not refreshing the values in the VO

    Hello,
    I'm using JDeveloper 12C.
    I have a view object with my fact table and i set my where-clauses in a method in the AppModule and it updates the sizes and values depending on the query i pass.
    I have anothe view object that gets the distinct fk_store ids from my factTable and i execute the VO to get the updated distinct ids but it is always showing all the distinct ids and not the actual distinct ids.
    Here are my queries and code:
    (for the distinct ids)
    SELECT distinct (FactSales.FK_STORE )      
    FROM  v_fact_sales_new FactSales
    (code for getting the updated ids from the fact table)
            BindingContext bctx = BindingContext.getCurrent();
            BindingContainer bindings = bctx.getCurrentBindingsEntry();
            OperationBinding executeWithParams5 = bindings.getOperationBinding("Execute");
            executeWithParams5.execute();
            DCIteratorBinding conIter = ADFUtils.findIterator("DistinctCustomer1Iterator");
            Row[] r = new Row[conIter.getAllRowsInRange().length];
            r = conIter.getAllRowsInRange();
            System.out.println("Valor das rows: " + r.length);
    If i look in the FactTable Iterator i get the correct elements, not all the elements but i can't get the distinct ids from that iterator. Any idea of why this is hapenning ?
    Regards,
    Frederico.

    After i execute the AppModule function that executes the query passed, i make sure the FactTable has the correct values:
    DCIteratorBinding conIter = ADFUtils.findIterator("VFactSalesNewView1Iterator");
            Row[] r = new Row[conIter.getAllRowsInRange().length];
            r = conIter.getAllRowsInRange();
            System.out.println("Size final depois do metodo: " + r.length);
    But if i create a view criteria and use executeWithParams, which params can i pass ? the best way is to get the distinct values that are currently on the IteratorVFactSalesNewView1Iterator and thats what i want to do..
    Lets say that my factTable has the following attributes: Id, FKStore, FKCustomer, .... , Revenue, etc. etc. (other measures)
    I pass my query to the AppModule, it executes the query and my factTable now has 50 rows (for example, 50 rows = result of my query)..
    Now i want to get the distinct FKStores, FkCustomers, etc. to highlight my Store table, my customer Table, etc. etc.
    I thought i could to a execute with my VO to do that, but it access the Database where all my rows are present, not the filtered rows.
    Any idea of how to do this "little change" Frank ?
    Regards and thanks,
    Frederico.

  • Refreshing the value of a field in a table and displaying it on the screen.

    how do i mimimize calls to the database in the following scenario?
    I need to show the latest value of a field in a table in a database through a java program. in a concurrent access environment, there are chances of multiple users getting stale values. how do I overcome this problem through code?
    please advise.

    There are many ways of doing this. However its worth noting that RDBMS database are not messaging, event driven systems and are not best suited to do what you want to do. You should only consider doing this if you have a low rate of changes.
    You can
    - Poll the database table and look for changes.
    - Add a trigger to the table to record the keys which have changed. The have a query to find just the key which have changed.
    - When a field changes, also send a broadcast/topic message.
    - Add a trigger which sends a JMS message when a change occurs. (This is entirely DB/JMS specific, you need to find if this is possible)
    Again, databases are not ideally suited to event driven, real time updates. There is no simple, clean solution.

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

  • Using the values in the Nested table container

    Hi All,
    I have a requirement where the values present in the nested table container should be used in the item text(send mail step).
    I have tried using like &req.itemtab.att [ 10 ]& as i want to display 10 element in the table att which is nested in table itemtab. Still its not working.
    provide solution how to use valued in nested tables.
    Thanks,
    Preethi.

    I really doubt , wheter you will be able to use the syntaxt which you have mentioned here.
    Another thing I could not get which have mentioned as atts 10 ??
    Earlier I was under assumption that your multiline element has only one field.
    however in your case , I think you should put a logic in workflow and separate the date values in multiline container element, and then use this container element directly in mail step.
    Regds,
    Akshay
    Edited by: Akshay Bhagwat on Feb 7, 2008 10:53 AM

Maybe you are looking for

  • SUM function with condition in RTF template

    Hi All, I have a problem in calculating the SUM in RTF template with condition, Here is the XML - <LIST_G_LINE_NOTES> - <G_LINE_NOTES> <LINE_TRX_ID>1567856</LINE_TRX_ID> <LINE_ID /> - <LIST_G_TRX_LINE> - <G_TRX_LINE> <CF_ITEM_NO>SDCN1144B</CF_ITEM_NO

  • ISE Guest Portal only redirect HTTPS traffic.

    I have a wireless deployment consisting of the following: 5760 WLC & ISE 1.2 Am I missing something here I have 4 similar deployments, and never had these issues: On Android / Apple devices, the guest portal does not pop up automatically & On a Windo

  • HTML Files Displaying Differently In Safari?

    I've got several HTML pages that I've created from Excel files. I've noted some differences in the way these pages display in Safari (I'm running version 2.0.3 of Safari on OS 10.4.5). First, there's a line of text in these files displaying in the wr

  • MP3 flash player not displaying in IE

    Hi all, I'm pretty new to flash and I'm unsure why this mp3 player isn't displaying on IE. It works fine on Firefox. I didn't originally create this, but am working on it after it was built. The code looks somewhat old and different to me, so I'm not

  • How can I transfer older Claris Works and AppleWorks files to new iMac.  I use Pages, and MacWord, Excel, etc. as well.

    March 20, 2013 I have a new iMac using Pages and Microsoft Word, Excel, etc. for mac.  I'd like to transfer older ClarisWorks and AppleWorks files to my new computer.  Can this be done?