Is it possible to compare two parameters type dateTime in switch- component

Hello,
i have a synchronouse prozess with one switch component. In the switch component i want to compare to parameters type dateTime. While execute the prozess alwayse the <otherwise>- sector is executed, but never the sector with the condition. But the condition is fulfilled.
Can it be, that a comparison in a switch-component doesn't work while using two parameters with type dateTime?
If it is so, has anybody an idea, how to compare two dateTimes without using the character dateTime?
I'll be very happy about a helpfull advice.
Thanks and regards,
rala

Hi Rala,
this example works perfectly for me.
IMHO doesn't matter how to assign values to dateTime variables.
<scope name="Scope_timeDate">
<variables>
<variable name="aktCas" type="xsd:dateTime"/>
<variable name="casDuration" type="xsd:dateTime"/>
</variables>
<sequence name="Sequence_1">
<assign name="Assign_datesTimes">
<copy>
<from expression="xp20:current-dateTime()"/>
<to variable="aktCas"/>
</copy>
<copy>
<from expression='"2002-05-30T09:00:00"'/>
<to variable="casDuration"/>
</copy>
<copy>
<from expression="'before'"/>
<to variable="rtn"/>
</copy>
</assign>
<switch name="Switch_1">
<case condition="bpws:getVariableData('aktCas') &gt; bpws:getVariableData('casDuration')">
<assign name="Assign_ok">
<copy>
<from expression='"IF"'/>
<to variable="rtn"/>
</copy>
</assign>
</case>
<otherwise>
<assign name="Assign_otherwise">
<copy>
<from expression='"otherwise"'/>
<to variable="rtn"/>
</copy>
</assign>
</otherwise>
</switch>
</sequence>
</scope>
Regards,
Ivan

Similar Messages

  • Good day. Is there into Pages the possibility to compare two documents? In order to reveal changes.

    Good day. Is there into Pages the possibility to compare two documents? In order to reveal changes.

    Hi iMayner,
    I don't know of a way to easily compare two documents in Pages. Maybe there is an app to do this, but I don't know of one.
    What you can do in Pages is to open both documents, resize the windows and drag them side-by-side on the screen. Pages 5 has a limit on how narrow you can make the windows, so this may be a bit of a pain.
    The first step would be to show the Word Count in both documents. (Pages 5.5.1 Menu > View > Show Word Count, or click on the View button in the ToolBar and Show Word Count). If the Word Counts are the same, you have **some** confidence that the documents are identical, but no guarantee.
    An example of two short documents with different word counts:
    Document A (33 words)
    The quick brown fox jumps over the lazy dog.
    Don't count your chickens until they hatch.
    Don't cross your bridges until you come to them.
    An apple a day keeps the doctor away.
    Document B (34 words)
    The quick brown fox jumps over the lazy dog.
    Don't count your chickens until they have hatched.
    Don't cross your bridges until you come to them.
    An apple a day keeps the doctor away.
    To home in on that difference, copy and paste each document into a column in a spreadsheet such as Numbers or Excel, so that each paragraph becomes a cell in a column. Turn on Wrap text in cell.
    The different heights of each cell (paragraph) become apparent.
    Happy Christmas!
    Regards,
    Ian.

  • How to compare two wage types?

    What is the best way to compare two wage types?
    For example, if I see the wage type attribute screen, I need to select M010 and M110 , one by one and
    compare visually only the wt attributes. It doesn't show the processing classes etc.
    Is there a report or tool to compare and list everything about two wage types?
    Thanks,

    Thanks Arun.
    RPDLGA40 is NOT doing what I was asking. But helps a lot to learn about a given wage type.
    RPDLGA20 has many uer interactions and I am yet to learn how to understand them
    Thanks,

  • Is it possible to maintain two class type for a material

    Dear All,
    Is it possible to maintain two different class type for a material.
    If a material assigned with the batch and the material is a part of variant configuration, then how to handle this scenario.
    For Batch Management, class type will be 023, for Variant Configuration class type will be 200.
    How to handle this scenario.
    Please explain.
    Regards,
    Mullairaja
    Edited by: MullaiRaja on Jan 5, 2011 5:19 AM

    Mr.Raja
    As far as my knowledge, it does NOT make sense to assign a material to more than one class type.
    We can assign many classes to  a single class type of  a material.
    For configurable material, create the material using material type : KMAT.
    & then, activate the 'batch management" control in the material master, for that material.
    Pls revert with feedback.
    Hope, that helps you.
    Rgds
    Sumanth.Gururaj
    Consultant/Systems Analyst - SAP SD/MM

  • How can i validate(compare) two date type attribute in EO.

    Hi All,
    jdev version 11.1.2.1.0
    i have created one EO where two date type attribute ToDate and FromDate now i want to add validation rule.
    which validate that difference b/w ToDate and FromDate not more than 3 month.
    How can i validate this?

    You can create script expression
    Something like
    if((toDate.getTime()-fromDate.getTime())/(1000 * 60 * 60 * 24)>30)
      return true;
    else
      return false;-Arun
    P.S : Above example calculates based on number of Days (30). If you want 3 months, you need to put a logic - Simply 90 days? What about the months with 31 days and 28/29 days? etc.

  • Compare two records within a view

    Hi,
    I wonder if it is possible to compare two or more records within a view, and how to do it.
    Thanks in advance.

    M. Comi wrote:
    I wanted to compare two records of the view and see if they are the same or not...
    My data are as follows:
    Soglia Ingresso_CL_PF     10     10
    Downgrade MDP 3     2102     2101
    I want to check if the "downgrade" records have the same values for the second and the third column, and in this case replace the values on the second record.
    But I did it with a select on the same fields of the original tables, plus two fields obtained with lag function...
    I don't know if it is clear or not, the important is that I got what I wanted.Sorry, it's not clear.
    Are you still having a problem? If so:
    (1) Please describe the problem.
    (2) What results do you want to see from the sample data you posted?
    (3) Is the second column of
    Downgrade MDP 3 2102 2101'Downgrade', 'MDP', 3, 2102, 2101, some combination, or NULL? When posting data, the most helpful thing is to post INSERT (or CREATE TABLE AS ...) statements. The second-best thing is to post formatted data. Type &#123;code&#125; before and after sections where spacing is important, and post column headers.

  • How to compare two fmx files

    Hi,
    Is it possible to compare two fmx files , there are few differences between two fmx files , i wanted to know what are the differences.............Thanks.Bcj

    by converting fmb files into xml or text and then using gvimdiff (or similar) on unix or windows will show you the differences. For fmx files, as pointed earlier - you can only see that if they are different or not. On unix you can use strings command (for fmx files) and pipe it to a text file and then do a diff on the files, but that will not be too helpful either.

  • Compare two sequences loaded in a C# code module.

    Hi,
    Is it possible to compare two sequences loaded in a C# code module using functionality from the TestStand API?
    Best regards

    Hello,
    Here you can find a related post:
    http://forums.ni.com/ni/board/message?board.id=330&message.id=26058&requireLogin=False
    Let me know if you have further questions or if this doesn't help you.
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • Possible to compare Word 2007 XML documents?

    I am trying to compare two word 2007 XML documents (.doc) using XMLUnit but I keep getting an assertion fail on the CDATA fields:
    org.custommonkey.xmlunit.Diff [different] Expected text value '28/05/2009 22.50' but was '27/05/2009 15.02'This are the corresponding parts of the word xml files that differ:
         <w:t><![CDATA[28/05/2009 22.50]]></w:t>
    <w:t><![CDATA[27/05/2009 15.02]]></w:t>
    I have tried to enable:
        XMLUnit.setIgnoreDiffBetweenTextAndCDATA(true);But it still treats the sections as differences. When I compare the two files I have tried:
    // test 1
        InputSource xml1 = new InputSource("c:\\test\\actual.xml");
        InputSource xml2 = new InputSource("c:\\test\\expected.xml");
        Diff myDiff = new Diff(xml1, xml2);
         myDiff.overrideElementQualifier(new RecursiveElementNameAndTextQualifier() );
         assertXMLEqual("Not similar", myDiff, true);
    // test 2
        assertXMLEqual(expectedOutPutFileAsString, actualOutPutFileAsString);But the assertion fails in both cases.
    Is it even possible to compare two word 2007 files like this?

    Telling someone that they can convert a Powerpoint to PDF and send that to their phone is NOT a "third party hack."
    Which BTW is what you want to do because it will preserve all the pagination, orientation, resolution, etc, all in one nice tidy file. And, (if you email it to your phone through an IMAP enabled mail server like GMail) you can then forward the PDF file directly from the iPhone to someone else.

  • Is it possible to pass Query parameters between two XLF's

    Hi,
    I have a parent dashboard (.xlf) and i'm trying to launch another .xlf (child) from the main dashboard using OpenDocURL.
    Is it possible to pass Query Parameters from parent to the child using OpenDocURL ?
    If not , how we can do it ? . I don't want to use SWF loader to load the child dashboard.
    I'm using SAP Dashboard 4.1 SP4.
    Thanks,
    Shiva.

    Hi Permisindo,
    I tried the approach suggested in the blog, but the parameters are not being passed.
    I have a master xlf and a child swf. I used swf loader to load the child and pass the paramters.
    Here is the URL -
    http://<Server>:8080/BOE/Xcelsius/opendoc/documentDownload?sIDType=CUID&iDocID=<doc id>&sKind=Flash&Fac=All Departments&RoomGroup=All Rooms
    I created the flash varibles(Fac , RoomGroup) in the child swf which i mapped to the respective query trigger cells.

  • Comparing two rows field by field through a loop

    Hi all,
    I've got a tricky issue:
    There are two tables (almost) identically designed;
    In the first one there are lets say some new data and in the 2nd one there is data to be hold & adjusted;
    I built up a third table, which contains the meta informations about the two other tables (i.e. it describes the tables, so for each field of these tables, there is the field name, field type, primary key marker, etc.);
    The challenge now is, how can I compare two rows (of the same primary key) field by field and get out the differences (and adjusting the target table row) using PL/SQL procedures/functions.
    I thought a create a cursor over the 3rd table and call functions to get the fields out (given by the field name of the cursor), compare the two fields and return if it's equal or different...
    As I've seen, there is now direct way to replace a field name in a statement - but how to resolve this with a cool workaround?
    In addition, there are about 120 pairs of such tables, to be compared in the same way - so I decided to prevent creating hard coded design for the software.
    Even the selection of a pair of rows from the two tables should be parameterized, 'cause the primary keys are of course different in the 120 table pairs.
    Any hints or suggestions?
    Thanks in advance & regards,
    Peter

    Hi Peter,
    I am very far from being an expert in Oracle but, everything I've read so far strongly suggests that PL/SQL is often the fastest among the customized solutions (beating even compiled C code). The reason - from what I've understood - is that PL/SQL is part of the Oracle kernel/engine, other languages simply aren't.
    I suggest you do your own research to confirm what I've just said above.
    On a completely different note, when I first read your post, I started writing a reply and decided to discard it because, I figured you probably would find it too far off your original thoughts. However, then you wrote:
    >
    There are some reasons to prevent hard coding, but it may be possible to generate the PL/SQL-code for each pair of tables by an external program.
    >
    This is exactly what I was mentioning in the post I ended up discarding. The basic step by step process I was going to mention is as follows:
    STEP 1: If possible, write one PL/SQL program that does the job properly for one set of tables. Test it thoroughly and identify potential differences in the process if it had to be applied against other tables. Make it as generic as reasonably possible, that is, keeping the code as simple as possible.
    STEP 2: turn the working code of step 1 into a template (usually replacing table names, columns, etc by some token that would not be a valid name).
    STEP 3: generate a list of the tables and their corresponding columns you need to process. This list may need to be massaged a little to become the generating seed of 120 programs (or so based on what you've said).
    STEP 4: if you don't know Perl or AWK then (don't be alarmed...) download AWK (not Perl) and learn it... you can learn the thing in a couple days (maybe even less). It is a very simple and straightforward text processing language, I know non progammers that learned enough in one day to do useful things with it. Using AWK you can easily generate the 120 programs you need from a working template in very little time (a few hours after you've become proficient). By the way, there is AWK, GAWK, NAWK, all pretty much the same thing and all free. The standard manual for AWK is the one written by the authors Aho, Weinberger and Kernigan, about 100 small pages, it's an easy read and no programmer should be without it :) (better than American Express!)
    What you've described sounds just like the thing to use AWK for. I once used AWK to generate 27,000 (that's 27 thousand) lines of COBOL code, debugged and fully tested in 2 days! (testing was automated using AWK too!) It would have taken much longer to just type all that code.
    Anyway, I hope that gives you something to think about and be of some help.
    John.

  • Compare two fields in bex

    Hi Experts,
    I want to compare two characteristics in bex. Is it possible to do in BEx ? If yes, how can i do it.
    If char A is equal to char B, display value of this key figure other wise display value of this key figure.

    Hi
    try this out:
    1) create 2 variables with Processing Type : Replacement Path and select the charc required.
    2) create 2 formula key figs. taking values from 2 diff. variables.
    3) include the variables into the formula key figs. created above respct. and the compare them.
    Hope it will resolve ur issue.
    Thanks,
    Jitender
    Edited by: Jitenderkumar Danduvia on Mar 13, 2010 7:49 AM

  • Performance issues comparing two vectors

    I need some advice on what is the fastest way to compare two vectors. My question is all about performance;
    I have two vectors one(Vect A) of which has more than 20000 string values and the other Vector B would hold typically around 200 strings.I compare them both to find out if Vector B has values in Vector A and remove those.
    I iterate thro each element in a loop from the smaller to the bigger vector comparing element by element.But it takes a long time.
    Is there any quick way to do this comparison and can I use contains/compare methods instead of iterating thro the vectors.will it speeden up things
    Arn

    first of all, you should probably examine your collection choice and make sure that java.util.Vector is your best option (assumming you can change the class). Do not use a Hashtable as the previous poster suggested- it doesn't sound like you have a key/value type relationship in your elements, making a Map implementation superflous. Will there be duplicate elements in either Collection? If you will not have duplicate elements, you should probably use a Set collection instead of a List. Does your collection have to be thread-safe? If not, one of the unsynchronized collections should give you better performance (e.g. ArrayList should be quicker then Vector). For the best possible performance, you could use an ordered collection and write your own comparator, so that it does not iterate beyond what ever element assurres that there is no match (i.e. if the first element is "fred" in an ordered collection, you know there will be no match for "adam"). Sun has some good tutorials on the java.util.Collection package that will help you understand the benefit of each implemenation...
    although, and I suppose this is neither here nor there, I wouldn't use java objects to sort through 20K string items- sounds like storing them in a database might be superior. Take care.

  • Compare two XML files: Analysis and Design

    Hi, Java/XML/JDOM experts,
    I realised that an open source of Java utility to compare two XML is still missing. So I would like to write one for my JDOM excises.
    I plan to do it in three steps:
    1.Define the problem domain.
    2.Design the classes to be developed.
    3.Coding
    Below is the problem domain. Would you review it and tell me if it is fine?
    Best regards,
    AG
    Compare two XML files
    Schema assumption:
    The xml files used for the comparison must have the same schema.
    Definition:
    1. Two elements of simple type are said equal if their name and value are identical.
    2. Two elements of complex type are said comparable if their name, attributes are identical.
    3. Two elements of complex type are said equal if they are comparable and their children elements are identical.

    Hi,
    Thanks for reviewing my idea.
    The xml files used for the comparison must have the
    same schema.Including not having a schema at all? And if they do
    have a schema, must they be valid according to the
    schema?I will only support schema based xml files. To include a schema is a good practice. So I will valid them agaisnt schema (is this possible with JDOM? I am testing ...)
    >
    2. Two elements of complex type are said comparableif
    their name, attributes are identical.
    3. Two elements of complex type are said equal ifthey
    are comparable and their children elements are
    identical.Do you plan to require child elements to appear in the
    same order for the two documents to be equal? (Note
    that XML specifically says that the order of
    attributes is not significant.)No. The order is not significant as I use the attributes as the keys to find comparable element counterpart.
    Here is the sample code already tested. Any comments are welcome!
    The next step is to define the "delta xml schema" that will guide me to store the comparasion results. Do you have any suggestions?
    Regards.
    AG
    public static boolean comparable(Element element1, Element element2)
         boolean returnValue=false;
         if (element1.getName()!=element2.getName()) {
              return returnValue;
    } else {
              returnValue=true;
                        System.out.println ("place 2");
         List attributeList=element1.getAttributes();
         Iterator attributeIterator=attributeList.iterator();
         Attribute workingAttribute=null;
         while (attributeIterator.hasNext()) {
                             if (!workingAttribute.getValue().equals(
                             element2.getAttribute(workingAttribute.getName(), workingAttribute.getNamespace()).getValue()))
                                  returnValue=false;
                                  break;
         return returnValue;

  • How to compare two database objects?

    Hi,
    I need to compare two objects with embedded objects/collections in it to tell exact difference between the two.
    e.g.,
    create type t1 as object (name varchar2(10), age number);
    create type t2 as table of t1;
    create type t3 as object (user t1, family t2);
    ... and so on.. this type hirarechy is big in my case..
    I want a procedure/function which can tell me what and where is the difference.
    PROCEDURE (obj1 T1 , obj2 T1) IS
    BEGIN
    END;
    e.g., t1.name = 'John' and t2.name = 'Mich' then it should return t1.name etc..
    Is it possible?
    Thanks

    Why a new thread?
    how to read objects/collections dynamically?

Maybe you are looking for

  • Logged in, but can't reply and page shows login/register

    Hi, Although the top of the forum page on the right shows me as logged in, I can't reply.  The page doesn't seem to recognize that I'm logged in several lines further down on the left. See png:      Screen shot 2011-10-11 at 15.17.18.png Clicking on

  • Oracle 8i and NT Workstation

    Due to having to switch computers I am now using A Windows NT4 Workstation Edition OS. I previously managed to install Oracle 8i Personal Edition (says for Windows 98) onto my older PC that had Windows "ME" as the OS. That installation did come with

  • About Query Data Source Columns property

    Hello everyone, I'm new to Oracle Forms version 10.1.0.2. When I create a data block based on a table using Data Block Wizard, the block's Query Data Source Columns property is automatically populated with column definition entries corresponding to t

  • I have an iPhone4.  Do I need a voltage converter for charging when traveling to countries using 220/240V?

    I have an iPhone4.  Do I need a voltage converter for charging when traveling to countries using 220/240V?

  • Licensing Requirements

    What are the Sharepoint 2013 licensing requirements of an intranet with approx 250 users with two Web Servers with all the application roles installed, additional if I use Enteprise licensing would such a farm support enteprise search?