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

Similar Messages

  • Extra event container element in BUS2203

    HI All,
    I have a standard workflow template WS10400002 which has some start condtions defined. If you check in the binding between event container --> workflow container, there is a extra element for "Gross Amount(USD)". Kindly let me know how we can have an extra element.
    I copied the template to my Z template and there that extra element is not available.
    Kindly check in your systems and let me know.
    There is no delegation of BO done.
    Thanks & Regards,
    Srinivas Rao.

    Hi Pavan,
    Thanks for the reply. I will make my question more clearer.
    I dont want to do anything right noew regarding start condition set up . It is already done in the STANDARD template WS10400002. What I wish to understand is, when you will check the template in your system and check the event-> workflow binding, you will notice that there is extra container element "Gross Amount(USD)". Where did this come from ?
    I hope I am clear this time..
    Waiting for your reply..

  • How to give Container Elements for FM EWW_WORKFLOW_START

    hi experts,
    i am new to workflow,
    i am using the FM EWW_WORKFLOW_START to start a workflow.
    my issue is that i am using the std BO BUS2017
    i am not getting the element name that i need to pass to the container.
    When i see in SWDD it shows
    Import Parameter BUS2017 in the list of workflow container elements. but when i pass the OBJKEY: materialDocument and matdocumentyear like
    concatenate '5000000305'  '2009 ' into text1.
    swc_set_element   t_cont  'BUS2017' text1 .
    its not getting passed to the workflow.
    but i added 2 new elements mblnr and year to the container and i pass it , it gets passed.
    how can i know the exact Element name?
    or where could i be wrong?
    thanks and regards,
    Gunj M.

    Hello,
    Here's some sample code of how to pass an object:
    INCLUDE <CNTN01>.
    data: lv_rc like sy-subrc.
    data: lt_messages type standard table of SWR_MESSAG.
    data:
    begin of lv_object_instance,
      objtype type swo_objtyp,
      objkey  type swo_typeid,
    end of lv_object_instance.
    * Define the container
    swc_container lt_wf_cont.
    * Create the container
    swc_create_container lt_wf_cont.
    * Clear the container (not necessary here)
    swc_clear_container lt_wf_cont.
    lv_object_instance-objtype = 'FORMABSENC'.
    lv_object_instance-objkey = '0000000088'.
    lt_wf_cont-element = 'ABSENCEFORM'.
    lt_wf_cont-value = lv_object_instance.
    append lt_wf_cont.
    CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
    EXPORTING
       TASK                     = 'WS30000015'
    *   LANGUAGE                 = SY-LANGU
       DO_COMMIT                = 'X'
    *   USER                     = SY-UNAME
    *   START_ASYNCHRONOUS       = ' '
    *   DESIRED_START_DATE       =
    *   DESIRED_START_TIME       =
    *  IMPORTING
       RETURN_CODE              = lv_rc
    *    WORKITEM_ID              = lv_wfid
    *    NEW_STATUS               = lv_wistat
    TABLES
       INPUT_CONTAINER          = lt_wf_cont
       MESSAGE_LINES            = lt_messages
    *   MESSAGE_STRUCT           =
    *   AGENTS                   =
    regards
    Rick Bakker
    Hanabi Technology

  • BPM - Viewing Container Elements

    I have a small BPM Scenario, in which I receive a message and Transform it and send it to the Receiver. It ran OK.
    I am trying to see the content of Container Element!
    To do the above taks I did the following
    So from MONI I clicked the PE in the INBound, it took me to Workflow Log ,then I clicked one of the Step and it took me to  "Display Work Item Screen", in this screen from the Menu   Extras --> Container  I see one message went in. I clicked that and a window opened below, I right clicked Nested Table --- Messages.  But I am unable to see the container Element content
    Please help me. Thanks friends.

    Hi Karen,
    Even screen shot in the document shows SXMB_MONI (Step 8). But the only difference is SXMB_MONI will shows only the input message to your BPM but if you go through the steps mentioned in the document it will show you the selected message only.  This will be useful when you have multiple mapping steps in your BPM or multi mappings. Say you have two mappings in your BPM (MAP1, MAP2). If you directly go to SXMB_MONI and double click on a message it will just show you the input to the BPM.
    But if you go through the steps specified in the document it will show you input message to map1, output message of map1 and similarly for map2(input/output). All this four messages input/output for map1 and map2 which cannot be seen directly through SXMB_MONI. only through the steps specified you can see all these four messages.
    This will make sense when you have multiple mappings or multimappings.
    hope this clears your doubt...
    Regards
    Anand

  • Container Element Text Being Truncated in Email

    Hello,
    If a user rejects a Purchase Requision, I have added a Hard Check (BADI)  that requires the user to enter a "Reason for Rejection."
    In my BOR (ZBUS2105) GET_DATA method, I retrieve the "Reason for Rejection" text and add it to the Container.
    In my "Send Rejection Email" step, I set the "Reason for Rejection" text in the email body.
    When the email is sent, only 76 chars of the "Reason for Rejection" text is transferred from the Container to the email, however, in SWIA (Workflow logs), I can clearly see that my Container element contains about 210 chars of text.
    Also, the "Reason for Rejection" Container element is defined as CHAR255 (max value size allowed by the Container).
    Does anyone know why the "Reason for Rejeciton" text would be getting truncated in the email?
    Thanks!

    Hi Matthew
    Try to have a look at oss notes 975947, 808259, they might help you solve this issue
    Regards
    Morten Nielsen

  • Container Element Names

    I would like to know where I can find the element names used in SRM containers so as I can retrieve the values using swc_get_element, etc.
    Thanks
    Cindy Sy

    Hi,
    I am not clear of this question.
    But still I can give you some inputs as per understanding.
    See, the data transfer between Workflow and Method is done through Container Elements Binding. So for you to get to know the name of the Container element in METHOD,You can refer the PARAMETERS defined for the method.Whatever mentioned in PARAMETERS,you can use with MACROS - SWC_SET/GET_ELEMENT/TABLE.
    Coming to RULES,you can determine the RULE CONTAINER ELEMENTS in the Rule Definition.
    I hope this helps.
    If it still doesnt help, please let us know the detailed requirement.
    Regards,
    <i><b>Raja Sekhar</b></i>

  • How to determine worklfow container element  for BUS2031?

    Hai,
    I am new to W/F. I would like to know how to detemine workflow container element  for Customer Quotation generated(BUS2031)- [event] created.ie based on what?
    Example :&Jquotation&,&JtransactionCode& etc.....
    any screen shot docu for binding/import/export purpsoe.
    Points will be given.
    With Regards,Jaheer

    Hai Aditya,
    Thanks for your reply.
    yes . I want to know what base we can create container element.
    Flow is like this :somebody create quotation , it will for manager approval & finally goes(mail) to customer.
    For this I am using object type BUS2031. Now I want to create w/f container element(in workflow template).From BUS2031(customer quotation), I understand that I need to create one w/f container as &Quotation&.what are others container element I have to create. This is my questions.
    I hope now it is clear.
    If you have any workflow documents/sample please send it to me [email protected]
    With Regards,Jaheer.
    -Jaheer

  • Container element not available when task is background

    Hi All,
    We have a task and method. the method works fine when tested individually, returns the correct values.
    However when the task is executed in background mode, the element in container is not updated. If the processing mode is foreground, the element is rightly updated in container.
    Clearly it has nothing to do with binding since I get the elements when I execute the task in foreground.
    any ideas would be welcome.
    thanks,
    Gautam

    Actually, I believe the problem is related to binding.
    When called in the foreground, object references (and data references) are present in memory for all subsequent processing.
    You probably need to make the CONTAINER "Persistent".
    In your code, call the macro SWC_CONTAINER_TO_PERSISTENT <container name here>.   For example:
    SWC_CONTAINER local_container.
    SWC_CREATE_CONTAINER local_container.
    "  Set you Container elements
    " SWC_SET_ELEMENT local_container 'Element01' lv_element01.
    " SWC_SET_TABLE local_container 'Element02' lt_table02.
    SWC_CONTAINER_TO_PERSISTENT local_container.
    " Start your workflow passing local_container.
    Something like this...
    Hope this is relevent . . . Apologies if not . . .
    Regards,
    Tom Carruth

  • Read Workflow Container Elements attributes

    Hi,
    I am using a F.M <b>'RH_GET_TASK_ATTRIBUTES'</b> to get the attributes of the <b>Workflow container</b> elements.
    But the above F.M does not show the element attributes that I create inside the Workflow Builer under <b>Workflow Container Block</b> and I dont select either Import or Export Properties.
    Is there any F.M that reads ALL Workflow Container elements.

    If you want to clear a single element, use a container operation and assign it to space. If you need to clear an internal table, create another internal table container element that is always empty. Then, inside the container operation assign the empty table to the table you want to clear.
    Basically, you are doing this:
    container_element = space. OR container_element = ' '.
    container_internal_table[ ] = container_empty_internal_table[ ].

  • Container element is not being displayed in email

    Hi Experts,
      I inserted an element from container into email text as below
    The task has been pending in inbox for more than &ins_num& days.
    The value of &ins_num& in container is 9
    In output I get
    The task has been pending in inbox for more than  days.
    Please let me know what is wrong. The binding works fine. No error in workflow.
    Thanks.

    Hi Miak,
    Greetings..:-)
    > I inserted an element from container into email text as below
    > The task has been pending in inbox for more than &ins_num& days.
    > The value of &ins_num& in container is 9
    > In output I get
    > The task has been pending in inbox for more than days.
    > Please let me know what is wrong. The binding works fine. No error in workflow.
    Check on the Following things:->
    1> The Container Element has Initial Value defined, If Yes - it should symbolise in Green Colour.
         If 'Not', then check the WF Log and see whether this Container Element is fetching the Values orr   not.
    2> If the Values are not being Fetched, then the Problem lies with the Binding of these WF Containers.
    Let me know if you are still facing Issues.
    Regards,
    Kanika

  • XML DB: is it possible to get a row for each element in a container element?

    I have an XML document containing a container element (collection). If I query, using an XPath expression, the contained elements I get a row for each container element with the contained element concatenated. Is it possible to get a row for each contained element?
    I run this simple query:
    select extract(xmltype('<colors><color>Red</color><color>Green</color></colors>')
    , '/colors/color/text()').getstringval() from dual
    And get this result:
    EXTRACT(XMLTYPE('<COLORS><COLOR>RED</COLOR><COLOR>GREEN</COLOR></COLORS>'),'/COL
    RedGreen
    1 row selected.
    What I would like to have is:
    Red
    Green
    2 rows selected.
    Wishful thinking or possible? Many thanks!

    Sure. This is where our XMLSequence() function comes in. It allows you to treat the top-level nodes in a nodeset as if they were rows in a table when combined with the TABLE() operator. Here's an example.
    First, to make the SQL look a little cleaner, I like to define a function like this:
    create or replace function testdoc return xmltype as
    begin
      return xmltype('<colors><color>Red</color><color>Green</color></colors>');
    end;.
    To break out the nodeset of <color> elements as a table, we use the following query:
    select value(list_of_color_elements).extract('*/text()').getStringVal() as color
    from TABLE( XMLSequence( extract(testdoc(),'/colors/color'))) list_of_color_elements.
    Or, using the new-in-9.2 extractValue() operator so we don't have to remember the text() part:
    select extractValue( value(list_of_color_elements), '.') as color
    from TABLE( XMLSequence( extract( testdoc() ,'/colors/color'))) list_of_color_elements.
    Here the TABLE(XMLSequence(...)) combo produces a table of XMLType, with one XMLType object in each row of the table.
    In general, if the XMLType instance were coming from an XMLType table xmltab the query would look like this:
    select extractValue( value(colors), '.') as color
    from xmltab x, /* Important that this table comes earlier in the FROM clause! */
         TABLE( XMLSequence( extract( value(x),'/colors/color'))) colors.
    And if the XMLType were instead in a column of XMLType named doc in a table xmltab, then we would have the syntax:
    select extractValue( value(colors), '.') as color
    from xmltab x, /* Important that this table comes earlier in the FROM clause! */
         TABLE( XMLSequence( extract( x.doc ,'/colors/color'))) colorsOnce you get the hang of it, you'll see that the combination of TABLE(XMLSequence()) to "shred" XML nodes into rows, and XMLAgg() to aggregate fragments of XML across multiple rows back into a single document, is quite powerful.

  • Hiding a container element  from a standard applicaition

    hi,
    i have a requirement to remove the UI elements in a transparent container from a view of a standard webdynpro component HRRCF_C_PREFERENCES_UI. This component is being used as a sub component in a main application.
    The transparent container within has a drop down list and a few buttons.
    So i created a component configuration for the component HRRCF_C_PREFERENCES_UI and changed the property of the UI element in the configuration to invisible. This worked, the container element was invisible in the application. But two other containers next to the UI element that was hidden did not move to the left . No proper alignment.
    Is this the standard behavior of a component configuration? i don't think so.
    Now in my option, the other only possible option is to hide the button by changing the attribute in the WDDOMODIFYVIEW method of the view.
    Could someone please help me how to set the attribute problematically? Is there a different way to meet this requirement?
    Need some help.Thanks.
    Best Regards,
    Sridharan

    Hi,
    Just go to enhancement mode in your webdynpro component and delete that button from UIElement hierarcy.
    If you want your button back, delete the enhancement.
    Regards
    Vishal kapoor

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

  • BPM - An empty container element was specified when sending

    Hello Experts,
    My BPM process looks as below:
    Receive -> Loop (execute if the status of IDoc is ERROR(E))--> Mapping ---> End Loop --> Send
    The message is failing in BPM workflow with the log: An empty container element was specified when sending
    Container  for receive and send stepe are different. IP in SXI_CACHE has process code 0.
    Mapping program is defined between the abstarct msg type of receive step and abstract msg type of Send step.
    Th message being processed has initial status as ERROR and after the mapping step is exceuted, it retrieves teh current status i.e SUCCESS. This ends the loop step and while tying to send the messgae to target system, this error occurs.
    Pls advice if I am missing anything.
    Thanks,
    Elizabeth.

    Go to transaction SWWL  , select your integration process instance and delete it
    Create your process with a new name and run the scenario again
    Re: Prob with Integration Process
    regards
    Ninad

  • Error while creating container Element in WF

    Hi,
    I have created a container element with field vbeln, and specified an initial value. Created mail step and activated it.  I have given the mail subject and content  as "value given : &vbeln&".  When I try to test this I couldn't find the container element in " Input Data" tab  of the Test Data and getting the message as "Contnr elem. VBELN  is for read purposes only. No values are assigned to it." 
    Could anyone suggest me to correct this, because I am new to WF.
    Thanks,
    AA

    Hi AA,
    You would probably need to create more than one containers.
    In workflows, we have following types of containers:
    1. Workflow container
    2. Task Container
    3. Event Container
    Now, since you need the element VBELN, try the following:
    1. Create a WF container for VBELN. Make it as both input and output parameter.
    2. Create a container for the Mail Step, again with VBELN field as an input parameter.
    3. There would be a button for binding in the mailstep. Bind the Field VBELN from Work flow container to the Mail Step container.
    Once binding is done, save it and Activate the Workflow.
    Hope this helps.
    Do get back in case of any issues.
    Regards,
    Sonal

Maybe you are looking for

  • Wudfrd.sys error on blue screen, fix?

    Is there a fix for the wudfrd.sys error ? Relating to the compatibility of iTunes with 64 bit processors? B/c I want to update my music without getting a crippling error. I have pasted a DXDIAG incase it might help. Foudn this through google: http://

  • Adobe Prelude - Red Rocket Support

    Hi everyone, My company and I are trying to implement Prelude into our workflow. Primarily, we shoot w/ a Red Epic and currently are experimenting w/ batch transcoding camera rolls through Prelude using the Adobe Media Encoder dynamic link. The quest

  • Error 1935 - Adobe Reader (11) - An error occurred during the installation of assembly component - Windows 7

    NOT RESOLVED It seems to be a problem with my windows installation. I will re-install at a later date since installing PDF viewing programs the only issue. Problem: While installing Adobe Reader XI using the install_reader11_en_mssd_aaa_aih.exe from

  • Why isn't the home sharing working?

    I ompleted the home sharing on my desk top and nothing happened.   I have a laptop which has itune's libary on it alread.y

  • Facebook and Notification Click to post not working

    There seems to be a problem with my facebook and twitter integration... Facebook: I can't share a site and neither can I update my status.. Twitter: Although I can share a site I can't tweet.. Facebook and Twitter suddenly stopped working......please