Parmeter testing condition

I am converting some ingress procedures into PL/SQL and have a situation where
based on the results (i.e. rows returned) I execute different code.
So I have a v_file_name_found parameter that is defined locally to the procedure.
The procedure is passed in a file name and I search for it ...
If found I then assign it to the v_file_name_found , if
the where clause was met. If I get 0 rows back, I do A, if I get rows > 0 then I do B.
In oracle do I have to assign the v_file_name since all I am doing is testing out the
conditions of the where clause ?
Here's the Ingress code with a smattering of oraclese that I am adding for the conversion ..
create or replace procedure   msg_read  (file_name in char)
user authid
v_file_name_found    char;
Begin
select a.file_name into v_file_name_found
  from table One A, Table Two B
where a.file_name = b.file_name and
a.vol_id = vol_id;
if sqlcode <> 0  then  ... do something  AAA
else
if iirowcound = 0  then   do BBB
end;
/Thank you for your insight.
Edited by: BluShadow on 16-May-2011 15:11
added {noformat}{noformat} tags and fixed the <> symbols that don't appear together on the forum.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Hi,
What you have is a good way to do it in Oracle.
You have to SELECT INTO something, so you need a variable. If all you really want to know is whether the query found something or not, then you can do something like this:
CREATE OR REPLACE PROCEDURE msg_read (in_file_name IN VARCHAR2)
AUTHID CURRENT_USER
IS
     v_file_name_found     a.file_name%TYPE;
BEGIN
    BEGIN
            SELECT     a.file_name
     INTO     v_file_name_found
     FROM     table_One A
     ,     Table_Two B
     WHERE     a.file_name     = b.file_name
     AND     a.vol_id          = vol_id
     AND     ROWNUM          = 1;
     -- Do AAA
    EXCEPTION
        WHEN  NO_DATA_FOUND
     THEN
         -- Do BBB
    END;    -- End of nested BEGIN block
    -- The following code is done in all cases (unless a real error occurred) after AAA or BBB
END     msg_read;where you catch the error that occurs when the query returns 0 rows. However, you still need to SELECT INTO a variable, so in this case, I don't think thie approach above gains anything for you. Keep on doing it the way you thought of.
I haven't tested the code above, but I know it's closer to the correct Oracle syntax.
Don't use the CHAR datatype. Use VARCHAR2 or, if you want to specify that a local variable is the same type and size as some database column, use %TYPE, as I did above.
If file_name is the name of a column, then you should choose another name for the parameter, such as file_name_given or in_file_name. It's not necessarily an error to use the same name, but it can cause confusion.
If a SELECT INTO statement finds more that 1 row, it will raise the TOO_MANY_ROWS error. You could test for that in the EXCEPTION section of a nested block, but it's easier to avoid it altogether by
(a) using ROWNUM = 1, as shown above
(b) re-writing the query to use aggregate functions (but no GROUP BY), or
(c) re-writng the query as an EXISTS sub-query, as in "SELECT 1 FROM dual WHERE EXISTS (...)"
Edited by: Frank Kulash on May 16, 2011 10:18 AM

Similar Messages

  • How to add multiple test conditions in 'test' attribute expression of xsl:if tag

    Hi all,
    How to add multiple test conditions in 'test' attribute expression of <xsl:if> tag ?
    I have 2 parameters and I want To skip the massage if this 2 conditions happened I tried to write it :
            <xsl:when test="($TransferToCompany = 0 and $ObjectInclide=1 )">
            <b1im_skip xmlns="" info=" Obect Will Not Transfer To company">
            </b1im_skip>
          </xsl:when>
    But I get an error while I am trying to transfer The object (Account) true B1if
    I am working with SBO 9 PL 13
    thank you
    shachar

    Hi saado
    Check this link:
    http://stackoverflow.com/questions/318875/can-you-put-two-conditions-in-an-xslt-test-attribute
    Kind regards,
    Radek

  • Fault Management Framework - How to use test conditions

    I am building a fault policy file based on an external service that generates custom SOAP faults. I want to query a value in these faults but I don't know how to construct the test condition.
    I can find plenty of documented examples e.g.
    <Conditions>
    <faultName
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    name="bpelx:remoteFault”>
    <condition>
    *<test>$fault.code="3220"</test>*
    <action ref="ora-retry"/>
    </condition>
    </faultName>
    But where can I find the $fault object to know how to create the xpath expression?
    This is my business fault logged in Enterprise Manager -
         <bpelFault>
         <faultType>1</faultType>
         <FaultManagementFrameworkService xmlns="http://yorkshirewater.com/faultmanagementframeworkservice/">
         <part name="fault">
              <ns0:FaultManagementFrameworkServiceFault xmlns:ns0="http://yorkshirewater.com/faultmanagementframeworkservice/">
              *<FaultCode>001</FaultCode>*
              <FaultCategory>ConnectionException</FaultCategory>
              <FaultDescription>Not Found</FaultDescription>
              <ServiceName>FaultManagementFrameworkService</ServiceName>
              <Operation>CreateConnectionError</Operation>
              <User>&lt;anonymous></User>
              </ns0:FaultManagementFrameworkServiceFault>
         </part>
         </FaultManagementFrameworkService>
         </bpelFault>
    I want to access the FaultCode value but can only currently capture all errors e.g.
    <Conditions>
    <faultName xmlns:osb="http://yorkshirewater.com/faultmanagementframeworkservice/" name="osb:FaultManagementFrameworkService">
    <condition>
    <action ref="ora-human-intervention"/>
    </condition>
    </faultName>

    The code 3220 is just a copy from some Oracle documentation of an example test case.
    What I really want to do is get a value from my own business error e.g.
    <bpelFault>
    <faultType>1</faultType>
    <FaultManagementFrameworkService xmlns="http://yorkshirewater.com/faultmanagementframeworkservice/">
    <part name="fault">
    <ns0:FaultManagementFrameworkServiceFault xmlns:ns0="http://yorkshirewater.com/faultmanagementframeworkservice/">
    <FaultCode>001</FaultCode>
    <FaultCategory>ConnectionException</FaultCategory>
    <FaultDescription>Not Found</FaultDescription>
    <ServiceName>FaultManagementFrameworkService</ServiceName>
    <Operation>CreateConnectionError</Operation>
    <User><anonymous></User>
    </ns0:FaultManagementFrameworkServiceFault>
    </part>
    </FaultManagementFrameworkService>
    </bpelFault>
    If I use the following in my fault policy it will pick up all errors on the service (using Oracle Service Bus and a service call) -
    <Conditions>
    <faultName xmlns:osb="http://yorkshirewater.com/faultmanagementframeworkservice/" name="osb:FaultManagementFrameworkService">
    <condition>
    <action ref="ora-human-intervention"/>
    </condition>
    </faultName>
    But I would actually like to drill down further and query the FaultCode value (001 in the above example) -
    <Conditions>
    <faultName xmlns:osb="http://yorkshirewater.com/faultmanagementframeworkservice/" name="osb:FaultManagementFrameworkService">
    <condition>
    <test>$fault.fault/osb:FaultManagementFrameworkServiceFault/osb:FaultCode="001"</test>
    <action ref="ora-human-intervention"/>
    </condition>
    </faultName>
    Am I trying to do something that's not possible? If so how do you apply test conditions for business errors?

  • Using pre-step callbacks to setup test conditions

    I am trying to setup a pre-step callback to verify test conditions and correct them if they do not match the needs of the applicable test step.  I was going to assign the test conditions in the pre-expression of each test step, but unfortunately I have found that the pre-expression executes AFTER the pre-step callback.  Is there any way to get around this?  How can I get around this?  (i.e. to assign step specific variables before executing the pre-step callback).
    Thanks,
    Sean
    Solved!
    Go to Solution.

    I have done some hacking of preconditions, and its even easier than the example above.  Remember that in TestStand expressions the comma (,) separates logical expressions.  But the return value of the expression is always the return value of the last expression.  So if you separate two logical expressions in the preconditions with a comma, only the return value of the second one gets used as the precondition.
    For instance, if you always want the step to run, you could use:
    locals.myVar = 5, True
    Or if you already have preconditions:
    locals.myVar = 5, AllOf(RunState.Sequence.Main["ID#:"].Result.Status == "Passed", RunState.Sequence.Main["ID#:"].Result.Status == "Passed")
    Also, there was some discussion of what order a step executed its actions.  You can find this information in the TestStand Reference Manual in chapter 3.  There is a table that lists the exact order of operations, including when the pre-step engine callback is fired.
    Josh W.
    Certified TestStand Architect
    Formerly blue

  • What are test conditions?

    Hi,
    My company has asked me to develop test conditions for the following scenario. We are developing a new comp. code and I need to develop the tests for this. The process flow is that we bought a company. So it is an Asset under Construction. We create the P.O. --> Internal Order --> AUC . I need a scenario test/conditions for this process. Also any reading material on developing test conditions and scenarios would be very helpful.
    Will Assign Points
    Thanks

    <a href="https://wiki.sdn.sap.com/wiki/display/BPX/Testscript-Sampleforbasicprocurement+process">Sample Test scripts, Customize for your AUC process.</a>

  • [svn:bz-trunk] 16330: QA: Yes - Ran test locally and it was failing but tested condition was true - there is no services-config .xml file

    Revision: 16330
    Revision: 16330
    Author:   [email protected]
    Date:     2010-05-26 07:55:41 -0700 (Wed, 26 May 2010)
    Log Message:
    QA: Yes - Ran test locally and it was failing but tested condition was true - there is no services-config.xml file
    Doc: No
    Checkintests: NA
    Details: Updated expected error message to match current error.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/NoServicesConfigFileTest/error.t xt

    I have uploaded detail.txt at below url.
    http://m.uploadedit.com/b041/1413264342685.txt
    Hi Mahesh,
    According to log file, I find the message ‘The setup100.exe.config file was not found, therefore the DTSWizard and SQLWatson app config files were not replaced’. It seems that the SQL Server setup file is not complete. Please check that if the SQL Server
    setup file is corrupted, if it is corrupted, please download it again and reinstall SQL Server 2008 R2.
    However, if there’s no problem with the setup file, please check that if there is third-party software such as anti-virus software on your computer blocking the process of SQL Server installation. In addition, make sure that you choose ‘Run as administrator’
    to launch the setup and configure SQL Server service accounts appropriately with administrator permission during the installation.
    For more details about this error, please review the following similar thread.
    http://answers.flyppdevportal.com/categories/sqlserver/sqlsetupandupgrade.aspx?ID=ad794a97-09ae-4aae-9d68-0b06f9af3e16
    Thanks,
    Lydia Zhang

  • Getting a Cell's name for using that name in a test condition

    Hi.
    Is there a formula to get the string corresponding to a cell's name?
    I have a table where I want to use each header's column cell name and each header's row cell name in a test conditions, in such a way that when I drag the initial formula (throughout the rest of the table) it changes the test condition of that formula to reflect the name that is in the corresponding row header and column header of that cell.
    Thanks,
    Ricardo

    RicPer wrote:
    I knew I could have the test condition being something like
    "=Acessórios Casa"
    In this case, "Acessórios Casa" was the content of a cell, and my challenge was how to refer to the content of that cell in a way that I could use it inside the SUMIFS formula.
    Now, the test condition is
    "="&B1
    Where cell B1 has the content I wanted to use as the test condition, and that now I was able to use because you reminded me of the concatenation operator.
    The concatenation operator isn't necessary if you do not include a comparison operator in the second argument of SUMIF. An "=" operator is assumed if non is included. See example below.
    Regards,
    Barry

  • How to configure test conditions from a file?

    We have a generic test setup that reads channels from a configuration file and sets up the cards appropriately.  This is all fine and good.  Next we want to specify the test conditions in the configuration file.  The test conditions can be arbitrary, like "ch1 > 3.14 for more than 50 ms and any 2 of ch2, ch3, ch4 are > 123.45 for more than 25 ms."  I REALLY don't want to invent yet another expression language.  I thought about using MathScript but then I thought, why not use a VI?  Can I reference a VI that captures all the test-specific conditions and call it programmatically on the RT PXI target?  Is this even a good idea?  Has anyone run into a similar problem?
    Thanks.

    It depends on how much string parsing you want to do and how flexable it needs to be.
    Right off teh top of my head I would say you could do something like this:
    for say "ch1 > 3.14 for more than 50 ms and any 2 of ch2, ch3, ch4 are > 123.45 for more than 25 ms." in the csv file you could have
    ch1,>,3.14,50ms,ch2,>,123.45,25ms,ch2,>,123.45,25,ms,ch3,>,123.45,25ms,ch4,>,123.45,25ms
    Then use Read Spreadsheet File.VI set to read a string.
    That will output a string array with each element containing each value that is seperated by the commas.
    Then you index the array elements and convert them to numbers as needed for input to your vi's
    Use the fields elements containg the < or > to select cases fo comparing as needed
    Message Edited by RTSLVU on 01-30-2009 02:13 PM

  • Test Conditions

    Hi,
    Can anybody plz provide an example/sample of a test condition. How do I go about creating one? I have to prepare a Test Plan which includes Test Conditions?
    Any help would greatly be appreciated.
    Thanks
    Will assign points.

    Thanks for your help. However, What are these test conditions or parameters. I have no template or company layout to look at. I am new in testing. My company has asked me to develop these things out of the blue. So i just really need a layout and examples to look at. I have the information you sent me. That was for a test script. I need now to know what exactly are these conditions/parameters. They are different from test scripts. Do you have a company layout for these conditions?
    Will assign points

  • Test Conditions in BPEL Fault Policy

    Per the ORacle 10.1.3.3 SOA Suite techical document, under the Fault Policy Framework section you can use an XPath expression in the <test> section of a fault policy. The example provided is +<test>$fault.code/code="WSDLReadingError"</test>+
    Instead of using an equals sign, I am trying to figure out the syntax to use a "contains" or "starts-with" expression. I want to filter out a particular remoteFault using the "summary".
    I have tried:
    +<Conditions>+
    +          <faultName xmlns:bpelx="http://schemas.oracle.com/bpel/extension" name="bpelx:remoteFault">+
    +               <condition>+
    +*<test>contains($fault.summary/summary,"exception on JaxRpc")</test>*+      
    +<action ref="ora-retry"/>+
    +               </condition>+
    +          </faultName>+
    +     </Conditions>+
    +     <Actions>...+
    but this does not seem to work.
    Anyone know what "tests" are possible, and\or have used a "contains" expression in their Fault Policy?
    Thanks in advance,
    Eric
    Example of the fault that I am trying to "catch".
    +<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">+
    +<part name="code">+
    +<code>ESBMessageProcessingFailed</code>+
    +</part><part name="summary"><summary>exception on JaxRpc invoke:+
    start fault message:
    +801 Error validating amount. Must be numerical and greater than 0 [000]+
    +:end fault message</summary>+
    +</part><part name="detail"><detail>null</detail>+
    +</part></remoteFault>+

    I did try to add namespace but it still didn't catch the fault.
    I contacted Oracle support and they indicated that the syntax is: $fault.part/<xpath expression>
    So for my purposes I needed to put: <test>$fault.summary/contains(summary, "xyz")</test>
    HOWEVER this did not work. We recontacted Oracle and this time they admitted there is a bug that they will document. Only = or != can be used at this time.
    Thanks for all who responded. I'm closing this question.
    For reference, here's a list of what I tried:
    The following did NOT catch my fault
    <test>$fault.summary/contains(summary, "JaxRpc invoke")</test>      
    <test>$fault.summary/contains(summary, 'start fault message:')</test>     
    <test>$fault.code/contains(code, "ProcessingFail")</test>           
    <test>$fault.code/contains(code, "ESBMessageProcessingFailed")</test>
    <test>$fault.code/contains(code/code, "ESBMessageProcessingFailed")</test>          
    <test>$fault.code/contains($fault.code, "ESBMessageProcessingFailed")</test>          
    <test>$fault.code/contains($fault.code/code, "ESBMessageProcessingFailed")</test>     
    <test>$fault.code/code/contains(code, "ESBMessageProcessingFailed")</test>          
    <test>$fault.code/code/contains($fault.code/code/, "ESBMessageProcessingFailed")</test>     
    <test>$fault.code/code/contains(code/code/, "ESBMessageProcessingFailed")</test>           
    <test>$fault.code/contains(/remoteFault/part[1]/code/, "ESBMessageProcessingFailed")</test>     
    <test>contains($fault.code/code,"ESB")</test>           
    <test>contains($fault.summary/summary,"ESB")</test>     
    <test>contains($fault.summary, "ESB")</test>          
    <test>contains($fault.summary/summary, &#xD;)</test>           
    <test>xp20:matches($fault.summary/summary,'.*fault message.*')</test>      
    <test>xp20:matches($fault.summary/summary,'*fault message*')</test>     
    <test>not(xp20:matches($fault.summary/summary,'.*xyz.*'))</test>          
    <test>true()</test>

  • Sqlcode and sql%rowcount as test conditions

    I am translating a procedure from Ingres to oracle. I use the Oracle sqlcode and sql%rowcount
    variables in place of Ingres's iierrornumber and iirowcount.
    I replaced the ingres names with the oracle names, and now am wondering how how oracle uses these
    values.
    I am using DBMS_OUTPUT.PUT_LINE to display the contents of sqlcode and sql%rowcount.
    What happens when I get "no rows selected". I run the same query in standalone command line
    and get no rows selected .. and it's correct because I don't have data that matches).
    But when I run it in the procedure, I don't get any values in sqlcode or sql%rowcount ... the
    program just exits. The author was using the ingres code to test if there was data there and then
    continue to do something else.
    If you get no rows returned, does that mean, the sqlcode is 0 ? and the sql%rowcount is emtpy?
    which is why my DBMS_OUTPUT.PUT_LINE doesn't display anything ?
    my example........
    before this section in the procedure ... after running a different select that returns data ...
    I am using the DBMS to debug the values I have going in ...
    DBMS_OUTPUT.Put_line ('BEFORE sqlcode is' || sqlcode);
    DBMS_OUTPUT.Put_line ('BEFORE sqlrowcount is' || sql%rowcount);
    Select value from table
    where condition ='Y'; > this select will product "no rows return" and ignore the 2 DBMS_OUTPUTS beow ---
    DBMS_OUTPUT.Put_line ('AFTER sqlcode is' || sqlcode);
    DBMS_OUTPUT.Put_line ('AFTER sqlrowcount is' || sql%rowcount);
    When i run the procedure... I get the DBMS BEFORE statements, and nothing afterwards ...
    BEFORE sqlcode is 0
    BEFORE sqlrowcount is 1 >>>> that is all that displays
    Since I am getting the "no rows returned" ... how does oracle handle it to anyone's experience ?
    Thank you. I am learning much from your comments and information.

    Thanks to your answers .... The procedure is below. I've had to hand type it in, so typos are my mistakes.
    The procedure compiles . When there is data to be found, I get the DBSM_OUTPUT lines of code ....
    msg_read is Y
    sql_error is 0
    row_count is 1
    p_vol_id is 880091
    When I enter in a file name that does not return ANY rows back I will get the msg_read
    DBMS_OUTPUT line
    msg_read is Y
    Call completed.
    It doesn't show any 0 for sqlcode or sql%rowcount
    The original author used the Ingres return codes as input to process the rest of the code...
    It seems like oracle bounces the procedure once there are no rows to be found.
    I just added this part ....
    having an exception in the clause shows that Oracle is bouncing it to the WHEN OTHERS
    exception ...
    Any ideas of how to get Oracle not to do this ?
    I am trying to keep things simple, and all I am testing for is if I get records back the code does things,
    if not, I do something else
    create or replace procedure userfile(vms_fil_name IN varchar2, msg_read IN Varchar2)
    authid current_user
    is
    p_vms_file_name varchar2(255);
    p_vol_id varchar2(255);
    p_orig_id varchar2(255);
    p_incoming_message varchar2(255);
    sql_error number;
    n_count number;
    begin
    p_vms_fil_nam :=vms_fil_nam;
    DBMS_OUTPUT.PUT_LINE ('msg read is '|| msg_read); >> verify incoming parameter
    IF (msg_read ='Y')
    then
    select vol_id,
    orig_id,
    incoming_message
    into p_vol_id,
    p_orig_id,
    p_incoming_message
    from
    table one_table a
    where
    a.vms_fil_nam = p.vms_fil_nam
    and incoming_msg ='I';
    n_count :='sql%rowcount';
    sql_error :='sqlcode;
    DBMS_OUTPUT.PUT_LINE ('row count is '|| n_count);
    DBMS_OUTPUT.PUT_LINE ('sql_error is '|| sql_error);
    DBMS_OUTPUT.PUT_LINE ('p_vol_id is '|| p_vol_id);
    end if;
    exception >>>> just added this part as the last test....
    when others
    DBMS_OUTPUT.PUT_LINE ('other condition has been met');
    end;
    call userfile ('GEORGE','Y');

  • Needs maintain Quality testing condition type in order

    Hi,
    There is  a scenario for maintaining the quality testing charges after PGI. in cash sales customer. after they are updating in the invoice. so there is difference in order value and invoice value,
    This difference needs to avoid.
    This condition type (like ZQTC) needs to indicate the user at the time of sales order processing.
    Please help me for configure the same,
    Note: this condition type should be maintained only for Quality testing charges applicable for cash sale customer.
    Thanks and Best regards,
    Muralidharan S
    9841381700.

    resolved by self

  • Could anybody pls provide the solution for test condition for ceating deliv

    Hi,
    I am working one function module but I want some functional input (SD).
    1. Create a domestic delivery. 
    2. Create ICB direct to customer delivery.
    3. Create ICB PO replenishment delivery 
    4. Create ICB Atlas to Non Atlas.
    5. Repeat the steps for gateout enabled and not enabled locations and perform billing. Check the billing log.
    6. Repeat the tests with delivery with and without gateout info.
    7. Create a POD adjustment document for over delivery scenario. Perform billing.
    8. Perform billing using VF01 and VF04
    So anbody can help me for functional input.
    Waiting for quick response.
    Best Regards,
    BDP

    Hi Reneta
    For your requirement , Bonus Buy concept should  be used. But the best way to meet your requirement is to go with a
    new subroutine and assign to the discount condition type in your pricing procedure.But if there are several combination's of materials which can vary the reduction of the price then in the subroutine only you have to write the subroutine with the help of ABAPer that if any vary comes then system should check the prices and vary the prices  also. So give your requirement to the ABAPer then he will fulfill your requirement.
    Regards
    Srinath

  • Help creating a simple function testing conditions in 2 columns

    I want to create a simple function which tests if a value is found in one of two columns:
    If MyValue is in columnA or ColumnB then True ELSE False
    Any ideas?

    Ok, This is the deal. This has been kicking my butt all day. So here is the exact table names and view names and all the columns involved.
    The table I am inserting into only after I determine that the concatenated string is not there either "forward" or "backwards."
    RPT_DS1_ALOC_ZLOC_REVERSE_VW:
    ALOC VARCHAR2(8)                 Data looks like 'AFD32GD2'
    ZLOC VARCHAR2(8)                 Data looks like 'AFD55GDF'
    MASTER_ROUTE_NAME VARCHAR(17)      Data looks like 'AFD32GD2-AFD55GDF'
    REVERSED       VARCHAR(17)      Data looks like 'AFD55GDF-AFD32GD2'
    This view is built off another table that has only the ALOC and ZLOCsSELECT * FROM RPT_DS1_ALOC_ZLOC_REVERSE_VW WHERE ROWNUM <=5;
    MASTER_ROUTE_NAME     REVERSED          ALOC          ZLOC
    ABDLFLXA-ABDLFLXA     ABDLFLXA-ABDLFLXA     ABDLFLXA     ABDLFLXA
    AGSTGAAU-AGSTGAAU     AGSTGAAU-AGSTGAAU     AGSTGAAU     AGSTGAAU
    AGSTGAFL-AGSTGAFL     AGSTGAFL-AGSTGAFL     AGSTGAFL     AGSTGAFL
    AGSTGAMT-AGSTGAAU     AGSTGAAU-AGSTGAMT     AGSTGAMT     AGSTGAAU
    AGSTGAMT-AGSTGAFL     AGSTGAFL-AGSTGAMT     AGSTGAMT     AGSTGAFL
    RATE_MASTER_ROUTE:
    MASTER_ROUTE_NAME VARCHAR2(17)   Data looks like 'AFD32GDS-AFD55GDF' or 'AFD55GDF-AFD32GDS'
    ALOC VARCHAR2(8)                 Data looks like 'AFD32GD2'
    ZLOC VARCHAR2(8)                 Data looks like 'AFD55GDF'SELECT * FROM RATE_MASTER_ROUTE WHERE ROWNUM <=5;
    MASTER_ROUTE_NAME     ALOC          ZLOC
    ABDLFLXA-ABDLFLXA     ABDLFLXA     ABDLFLXA
    AGSTGAAU-AGSTGAAU     AGSTGAAU     AGSTGAAU
    AGSTGAFL-AGSTGAFL     AGSTGAFL     AGSTGAFL
    AGSTGAMT-AGSTGAAU     AGSTGAMT     AGSTGAAU
    AGSTGAMT-AGSTGAFL     AGSTGAMT     AGSTGAFThe idea is to insert a record into RATE_MASTER_ROUTE ONLY if it is not in there already. So since the view takes care of the reversing, all I am doing is passing in the MASTER_ROUTE_NAME and the REVERSED to see if either of them are in RATE_MASTER_ROUTE. If not, then I am INSERTING both the ALOC and ZLOC and the MASTER_ROUTE_NAME into RATE_MASTER_ROUTE. I appreciate the help so far, but I am still missing something. I have tried a number of variations. I added a dummy record to the first table that I knew was not in the second. I tried selecting it according to a similar query that was made above. But I am not communicating something correctly so this is the detail. I hope somebody can help me over this brain freeze.

  • Testing switch step conditions

    Hi
    Is there a way to test conditions in switch step?
    With real data when the process is executed... it seems that the condition does not work... but I can not see more details to investigate what is wrong.
    Has anybody ideas how to test switch conditions?
    Thanks for any input,
    Heiko

    Ok sorry, I thought you were maintaining a Business Workflow, not an XI process..
    I haven't worked with ccBPM or the integration/workflow builder myself, but could you go to the graphical builder, drill down to the switch step and see what's available there? In the business workflow builder you can see a small simulation button in the bottom together with create test data button.
    -Mikko

Maybe you are looking for

  • PIR problem

    Hi Gurus, When I create a PO the price is pulled from the PIR maintained at plant level. But the price should be pulled from PIR maintained at Purchase Org level. Both info records exists for this material. How can this be done? Rewards for appropria

  • Apple Flags in Full Screen Mode?

    I'm probably missing this somehow.... but can one apply a flag or color label when in full screen mode?

  • Client not able to access EJB deployed in Oracle8i

    Hi, After lot of pains, I was able to deploy EJB in the Oracle8i DB. Now I am facing problems when the Client makes an request to get the reference of this deployed EJB. This is the error I receive : "C:\JDeveloper3.0\java1.2\jre\bin\javaw.exe" -mx50

  • After an update either wifi or eth is working properly

    No dchp adress,just get self-signed adress on both wifi and ethernet interface. And when I set a static adress there is no DNS working, I can only  surf on IP adresses no domain name. What is wrong with my network cards.  imac 27" I7 2010 model.  OSX

  • Color is off, how do I reset it?

    IPhone color is off, must have pressed something, how do I correct this problem?