Debug Container Element Transfer

Dear all,
In our scenario a String variable was sent to workflow as event container element. It is then transferred to a workflow container element. Then it is given to an element in a task container. But now the execution has some problem. How should I debug the workflow and find the runtime value of container elements?
Thanks
Jerome

Shweta,
Yes, the triggering event has the input for the workflow.
I just catch the event trace. But cannot find the runtime value of event container elements there. Only the following information:
Event Instance ID
Object Type
Object Key
Event
Event Creator
Creation Time
How can I make sure whether the event contains the correct value?
Thanks, Jerome

Similar Messages

  • How to transfer my container element to the bor object

    Hello
    I am quite new to workflow. I have created a workflow with a task and in this task I have a container element that is an Id for a campaign element and I can see that the container is filled correctly. In my task I call a BOR object amd a method and I want to transfer my campaign Id to this method, but when I debug I can see the ID is getting into the bor object. How do I get the id into the bor object
    Thanks
    Claus

    Hi Claus
       After binding from task to method. You will get the data in the method parameters but to transfer the data from parameter to method you need to use this code in your method.
    SWC_GET_ELEMENT CONTAINER 'CONTAINER NAME' VARIABLE NAME.
    SWC_SET_ELEMENT CONTAINER 'CONTAINER NAME' VARIABLE NAME.
      Use this statement to get the data to the method container.
    Regards
    vijay

  • Transfer container elements in another workflow

    Hi again!
    I have the problem that i should like to copy container elements from one workflow to another (like an Image, the Scanagent...)
    Is their any easy way to do this?
    THX
    Regrads
    Phil

    Hi Karri,
    sry i was wrong. The Problem is that we want use the standard of SAP. We have 2 Workflows (WS80000245 and WS80000247). The Workflow WS80000245 uses the Function of ArchivLink and the WS80000247 starts by using a trigger event of the ArchivLink Function (A Dynpro archive an Image and starts the WS80000245. After this step a user has the option to call for a Rescan or to create a Bill. If he wants to create a Bill the Workflow WS80000247 starts because of an Object Type what was triggered).
    But now we have the Problem that we need Informationu2019s of the other Workflow (Like Scanagent, Scandate, Image....)
    Is there an easy possibility to get this container element informations?
    THX
    Phil

  • Regarding container elements

    please tell me how to transfer container elements from rule container to workflow container and can we debug rule

    HI,
    its like normal task <---> workflow container binding only. And, yes, you can debug the rule. If you are using Rule with FM, then it's just anyother FM debugging.
    1 . Rule binding is same as task binging only , we need to     pass all the import parameters  correctly , make sure that all neccessary parameters are passing correctly then will get exact Agent .
    2. we can dubug the Rule by putting  /h  or
    by putting Break point inside the Function module
    For this we need to Go to PFAC tcode there u can put directly /H  - > Debug
    other wise select Function module then put Break- point Inside the Fm and Debug.
    Regards,
    Vijaya

  • Accessing container element in the User Defined Function

    Hi All,
    I am accessing a container element in the user defined function.
    But it is not working. Actually i want to split a message(1800 records) into a batch of 200.
    But it goes in a infinite loop.
    Please can you tell me where i am wrong.
    Smita
    The code is :
    public void SplitMsg(String[] a,ResultList result,Container container){
    Object container1;
    String counter;
    int i,j=0;
    container1 = container.getParameter("value");
    if( container1 == null){
    counter  =  "0";
    else {     
         counter = container.toString();
         j = Integer.valueOf(counter).intValue();
    for ( i = j ; i <= j + 199 ; i++){
         if ( i  >= a.length){
              container.setParameter("value","9999999");
              break;
         result.addValue(a<i>);
         j += 200;
         counter = Integer.toString(j);
         container.setParameter("value", counter);

    Here is another way to accomplish what you wanted.
    For the target mapping, use this sequence for mapping
    Source element -> removeContext -> Your User-defined Function -> Target Element
    When defining User-Defined Function, select "Cache Queue" option.
    Since you are using removeContext before calling the UserDefined function, your input to the user defined function will be a String array without ResultList.CC.
    Now manipulate the array the way you want it, and build the ResultList result.
    After every 200 records, use method
    void addContextChange().
    This will insert the ResultList.CC at the appropriate places.
    Use Display Queue in the Mapping Editor to see the debug values.

  • Container Element Value in Runtime

    I am somewhat new to Workflow.
    I have an error status on WorkFlow, for the reason that the value is not retrieved for the Container Element in the Workflow Condition. How can we check that whether the value is being retrieved by the container element in the Runtime?

    Hi Jaideep,
    When the state of the workflow is set to errror, please go to the workflow log in 'List with technical details' mode (cube button).
    Select the step that is in error and open the 'Step History' tab.
    Here you would come to know the exact error that is being encountered.
    Also you can debug the BO methods if called by setting the method as foreground and putting a breakpoint in the method.
    The method would go into debugger when executed and there you can debug it.
    Hope this helps!
    Regards,
    Saumya

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

  • Set a container element inside class to exit a loop

    Hi,
    I want to set a container element inside a class to exit a loop.
    The element is marked as import/export parameter and the binding from the task to the container exists as well.
    The loop has a condition  &finish& = X but I cannot exit the loop. Looks like the value gets never updated in the container.
    When i am using a container operation to set the element its working but i want to do this out of my method in the class.
    Is it not possible to change a container element inside a loop without using a container operation?
    Thanks,
    Christoph

    Hi,
    Using the container operation is a good method to solve the problem. But if you intend to do that in the method coding itself then you will have to have it as the export parameter of the method. You can view all the import and export parameters of a method by going to the Business Object Builder (SWO1) and then choose the method and click on the "Parameters" Button. Once you are done with the interface of the method use that method in the workflow builder as a task and in the binding there are two rows. One for the import that occurs just below the container elements and the export parameters appear below the import in a separate window. Make sure you have the binding set there too as this is where you can transfer the container elements back to the workflow container from the task container and it should work. Maybe you are missing that in the binding.
    Hope it helps,
    Sudhi

  • 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

  • The hard drive on my laptop that contained Elements just died.  Can I get a second copy for installation on my new PC?

    The hard drive on my laptop that contained Elements just died.  Can I get a second copy for installation on my new PC?

    The iPhone is not a backup device.
    Restore the iTunes library from the backup that should be kept of your media and other important files.
    Syncing the iPhone to a new library (in this case, it will be a new library unless you have a complete backup of the iTunes folder pre-crash) will result in the media on the device being removed and replaced with content from the new library.
    As for iOS5, we really do not know until Apple officially releases it.

Maybe you are looking for

  • My Safari keeps crashing on me! Can someone help?

    Every time I try to open Safari, it crashes while my homepage is loading.  This started happening today.  Please help! Date/Time:  2012-01-11 09:03:26.958 -0500 OS Version: 10.4.11 (Build 8S2167) Report Version: 4 Command: Safari Path: /Applications/

  • Using empty interface -- is there a better way to do this?

    Hi, I have a set of classes in different projects that I'd like to be referenced together, although they have different methods depending on which project they're from. To do so, I've created an empty interface for each of these classes to implement,

  • How do I list all of the table names in my excel database

    I am writing code for an electronic sales board display in my office. unfortunatly the datasource that is available to me is an excel file that is updated by the sales manager every day. each sales persons information is listed in a different tab and

  • Slide size issues with copy from another project

    Working with Captivate 4.  I have a completed project where I have a slide I would like to re-use in a new project.  The recording options for each project are the same - full screen recording.  The image is being cut off all the way around the when

  • Creating pdf files from excel workbook

    I'm trying to convert an excel file to pdf. It contains 10 sheets and when viewing the entire workbook the total number of pages should be 15 pages. If I send it to print in adobe pdf. It starts creating different files for different sheets sometimes