Calculation of tax with two conditions

hi all,
i have an issue regarding tax in condition in po.
i want the calculation of tax should be on two condition basis, while i am giving value in tax code field in invoice tab.
1. when i am entering tax code, the value like- L1- 4%, L2- 12%, that is calculating on gross price.
supose- GP- 100
     tax- 4%-     4
                    104
then am puting fright charge- 10
so total is 114
2. supose- GP- 100
         fright     -  10
                        110
then a will calculate- 4% on 110
how this could be done, the 2nd one.
thanks&regards
susanta

Hi,
For this you have to treat Freight as a Discount Condition Type in MM Pricing
Take a copy of RA01 in M/06 and keep it as Positive Condition
Here keep
Cond. class   A Discount or surcharge
Calculat.type A Percentage
Cond.category Blank
And Plus/minus - A (Positive)
Use this in Pricing Procedure (M/08) after Gross Price ad Discount conditions (before Subtotal)
Now
Base Price = 100
Freight = 10
Subtotal = 110
Tax (4%) = on Subtotal

Similar Messages

  • Formated Search: Auto refresh with two conditions.

    Hi,
    I've created a Formated Search in one of my column.
    I defined my formated search as :
    - Auto refresh "When Exiting Altered Column" Item No.
    - Display Saved Values.
    Now how can I make it Auto refresh with two conditions?
    - Auto refresh "When Exiting Altered Column" Item No.
    And
    - Auto refresh "When Field Changes" Customers/Vendor Code.
    - Display Saved Values.
    Is there any way to make it work?
    Thanks In Advance.
    Bruce.

    Hi Bruce,
    You could try this trick.
    You need to execute SELECT1 in Col1 when Item No. column is altered or the Customer code is changed.
    Then, in the Item No. column asign a new Formatted Search which selects the Item No. column value (Its value) when the Customer code is changed.
    And in the Col1 asign a formatted search that acts when the Item No. column is altered.
    I think this should do the trick.
    Let us know if works.
    Regards,
    Ibai Peñ

  • Print When with two conditions

    I only want to print a page if two conditions are met. On each section I am using the following Print When Condition:
    DateFormat(query.asofdate, "mm/dd/yyyy") NEQ DateFormat(calc.AmtDate, "mm/dd/yyyy")  AND LSNumberFormat((query.bal + calc.anticipated), "_.__") LTE LSNumberFormat(25.00, "_.__").
    The date check works great by itself and the amount check works great by itself but I can't get them to work together. Any ideas?
    I am using CF10.

    Cozmo2 wrote:
    That fixed the problem Thanks!
    Is there anyway I can apply this to the whole page and not have to add it to every sections 'Print When Condition'?
    One way would be to exclude records that meet those conditions. That way you would not need to take them into account in your report.

  • BAPI_ACC_DOCUMENT_POST tax with two vendor line

    Hi ,
    I have a problem account tax parameter of Bapi_acc_document_post . I have to send two vendor lines , one of them with special gl indicator and one of them is tax related with zero amount . I fill account tax parameter properly but bapi doesnt not reflect tax item to bset table.
    Can you help me for fill BSET table
    Lets simulate record.
    account_payable-ITEMNO_ACC = 1.
    account_payable-vendor = 1000.
    account_payable-SP_GL_IND =  'R'.
    account_payable-TAX_CODE = 'I0'.
    account_payable-ITEMNO_ACC = 2.
    account_payable-vendor = 1000.
    ACCOUNTTAX-ITEMNO_ACC                     0000000003
    ACCOUNTTAX-GL_ACCOUNT                     1910101004
    ACCOUNTTAX-ACCT_KEY                       VST
    ACCOUNTTAX-TAX_CODE                       I0
    ACCOUNTTAX-ITEMNO_TAX                     000002
    CURRENCYAMOUNT-ITEMNO_ACC                     0000000003
    CURRENCYAMOUNT-CURR_TYPE                      00
    CURRENCYAMOUNT-CURRENCY                       USD
    CURRENCYAMOUNT-AMT_BASE                       1.000,0000
    CURRENCYAMOUNT-ITEMNO_ACC                     0000000002
    CURRENCYAMOUNT-CURR_TYPE                      00
    CURRENCYAMOUNT-CURRENCY                       USD
    CURRENCYAMOUNT-AMT_DOCCUR                     1.000,0000
    CURRENCYAMOUNT-AMT_BASE                       1.000,0000
    CURRENCYAMOUNT-DISC_BASE                      1.000,0000
    CURRENCYAMOUNT-ITEMNO_ACC                     0000000001
    CURRENCYAMOUNT-CURR_TYPE                      00
    CURRENCYAMOUNT-CURRENCY                       USD
    CURRENCYAMOUNT-AMT_DOCCUR                     1.000,0000-
    CURRENCYAMOUNT-AMT_BASE                       1.000,0000-
    CURRENCYAMOUNT-DISC_BASE                      1.000,0000-

    Hi,
    Check the bellow link which may help in providing you solution.
    Sample Code: BAPI_ACC_DOCUMENT_POST for FB70
    <link to blocked site removed by moderator>
    Regards,
    Goutam Kolluru.
    Edited by: Thomas Zloch on Feb 6, 2012 8:11 PM

  • Filtering a range with two conditions and totalling the filtered set

    I have got to :
    =SUMIF(LOOKUP(1, 1::K2:K79,  1::L2:L79), "=✓", 1::I2:I79)
    The error message is "SUMIF requires that all range arguments are the same size".
    My understanding is that :
    LOOKUP(1, 1::K2:k79, 1::L2:l79) will return a set of values filtered from L2:L79 in table 1 that correspond with all rows in K2:K79 (in the same table) that contain the numerical value 1.
    That set of values is then used as the first argument in a SUMIF statement to be filtered on "=✓" producing a subset whose corresponding rows in I2:I79 will be totalled.
    I've given it a good bit of effort now for a couple of hours and hope that someone can help me out of my amateur quandary with a formula that will achieve the same thing, because I am giving up : ie :
    Product
    Month
    Eligible product (✓) or not (x)
    Cost
    Teddy Bear
    1
    x
    £35.00
    High-resolution PC Monitor
    1

    £600.00
    Electric Fan
    1

    £45.00
    Newspaper subscriptions
    1
    x
    £45.00
    Snack foods
    1
    x
    £15.00
    Telephone line installation
    1

    £80.00
    Office chair
    2

    £75.00
    I need to efficiently calculate the total cost of "Eligible products" bought in Month 1.

    Hi b,
    LOOKUP returns a single value corresponding to the first match it finds for the search value.
    As I understand it, you wnt the SUM of all 'cost' values where the month is "1" AND 'eligible' is checked.
    For a SUM depending on more than one condition being TRUE, the function of choice is SUMIFS.
    If Row 1 is a Header row, and Row 179 is the last row in your table (or if no rows below that will match both conditions), you can omit the row part of each range address.
    I'm confused as to which column contains the amounts to be summed, so I've made these assumptions:
    K = month
    L = eligible
    M = cost
    O2: =SUMIFS(M,K,"=1",L,"=√")
    (The formula may go in any cell not referenced by the formula. My choice to place it in O2 was arbitrary.)
    Regards,
    Barry
    PS: Apple has provided an excellent guide to writing formulas in Numbers. The iWork Formulas and Functions User Guide is available for download via the Help menu in Numbers. It provides a description of each function with at least one example of how it may be used.
    B

  • Script with two conditions

    hi friends
     I am new to PowerShell and i am studying hard since I've found it excellent to automate administrative tasks in my network.
    I am trying to write an script whichchecks if ADDS service (which its service name is NTDS) exist & also if it is running, then my command which creates a set of objects in AD be executed (new-ADobject
    I am familiar with get-service Cmdlet & also with basic "if statement", which is
    if (my condition) {
    do stuff
     but I don't know how to combine these things to make the final code.
    may someone please write me the code, so that a begin to study about the different parts of the final code?
    thanks a lot

    I would start by studying hte very basic compnents of PowerShell.
    You can write an if statement after only a few minutes of studying.  Itis easy.  Try it:
    Start here:
    http://technet.microsoft.com/en-us/scriptcenter/dd742419.aspx
    For the absolute beginner:
    http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-conditional-logic/
    ¯\_(ツ)_/¯
    hello thanks. I studied and I learned how to use multiple conditions in my code,
    but still have problem with writing the condition itself in this certain circumstance.
    so am I on the right way by this:
    $myservice = get-service -name NTDS | select status
    if ($myservice -eq "running") {
    New-ADObject.......

  • Reminder with two conditions

    I need a script that iCal can trigger which will show a message ("Pay credit cards") if a) the date of the month is later than the 15th and b) if I haven't yet indicated that I've paid. I can do this in Filemaker, and I've created an applescript that will show the message based on the date, but I can't figure out how to create an applescript with an "I paid" answer field—one that will will stay "paid", once I select it, until the 15th of the next month. I'm obviously an inexperienced applescripter and help would be much appreciated.

    This is a rather unique situation that may require more understanding of your setup than is available… as such you might not get a direct answer.
    It seems to me that there are a couple of ways you can do here, depending on where you want to put the logic.
    You mention Filemaker, but I'm not sure whether you mean you're already using Filemaker and you want your script to integrate with it, or whether you mean you know how to do this in Filemaker, but not AppleScript?
    Storing the 'paid' status is relatively easy but it's not clear how you intend to indicate whether you've already paid or not (if this script pops up on the 15th, how is it supposed to know that you've already paid?
    So in short, you need to provide more details before anyone can really help you.

  • Batch job with 2 conditions

    Hi,
    We have a program that will create a batch job and then we need to go to SM35 to run that batch job manually. We want to avoid this manual step and what we want to do is to as soon as our program runs it will create a batch job and then batch job should kick off automatically.
    One of the solution that came to my mind is to schedule a batch job with two conditions:
    1. in first condition it will run our main program
    2. and in 2nd step it will look out for the batch job that created in SM35 and will kick off that, but I am not sure how can i do this using Sm36.
    I was also wondering if there is another way so that we can just avoid the batch run for the second step?
    So can you please help me with this.
    Thanks,
    Rajeev

    SM35 -> batch sessions, so I assume you are talking about these.
    You can start sessions under program control by submitting program RSBDCSUB after creation of the session.
    Thomas

  • How to set two Conditions Simultaneously in set where clause

    Hi,
    I have a messgechoice item , and i need to fire messagechoice VO with two conditions.
    For Eg:-- we have three Items ProjectContractor& Work Order on a custom Page , now i need work order list should populate on lelection of project & contractor both, so i have apply a fire partial event on contractor where i i get the parameter values as follows:--
    CO Code
    if("OrderNoself".equals(event))
    String value21 = (String)pageContext.getParameter("ProjectName");
    System.out.println("The Selected Project Name for self Contractor is "+value21);
    String value22 = (String)pageContext.getParameter("ContractorName");
    System.out.println("The SelectedContractor Name for ContractorName is "+value22);
    Serializable [] params11 = {value21,value22} ;
    am.invokeMethod("initWorkOrderNumberself",params11);
    AM Code
    public void initWorkOrderNumberself(String ProjectName,String ContractorName");
    getDprWorkOrderpopVO1().setWhereClause("PROJECT_NAME = " + "'"+ProjectName+"'");
    getDprWorkOrderpopVO1().setWhereClause("CONTRACTOR_NAME = " + "'"+ContractorName+"'");
    getDprWorkOrderpopVO1().executeQuery();
    Now when i run my form then Work order list only populateon set conditions ofContractor NAme only.
    Please suggest....

    Hi Tarun,
    Thanx for ur reply,
    i have used below mwntioned code provided by you but still i m getting error...
    public void initWorkOrderNumber(String ProjectName,String ContractorName)
    //getDprWorkOrderpopVO1().setWhereClause("CONTRACTOR_NAME = " + "'"+ContractorName+"'");
    //getDprWorkOrderpopVO1().executeQuery();
    getDprWorkOrderpopVO1().setWhereClause("PROJECT_NAME =:1 AND CONTRACTOR_NAME=:2");
    getDprWorkOrderpopVO1().setWhereClauseParams(null);
    getDprWorkOrderpopVO1().setWhereClauseParam(1,ProjectName);
    getDprWorkOrderpopVO1().setWhereClauseParam(2,ContractorName);
    getDprWorkOrderpopVO1().executeQuery();
    ERROR:---
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select * from omaxe_work_order_headers
    where work_order_number is not null) QRSLT WHERE (PROJECT_NAME =:1 AND CONTRACTOR_NAME=:2)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862)
         at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:985)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:210)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:152)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:721)
         at omaxe.oracle.apps.xxopa.boqmain.webui.OmaxeDPRCO.processFormRequest(OmaxeDPRCO.java:107)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01006: bind variable does not exist
    Regards
    Saurabh

  • Choosefrom list with multiple conditions

    Hi all, I'm trying to get a choosefromlist to work with two conditions.
    the code'I'm using is:
                Dim oCons As SAPbouiCOM.Conditions = oCFL.GetConditions()
                Dim oCon As SAPbouiCOM.Condition = oCons.Add
                Dim oCon2 As SAPbouiCOM.Condition
                oCon.Alias = "ValidFor"
                oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                oCon.CondVal = "Y"
                oCon2 = oCons.Add
                oCon2.Alias = "PrchseItem"
                oCon2.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                oCon2.CondVal = "Y"
                oCFL.SetConditions(oCons)
    However I get zero results.
    When I use them one at a time it works fine and I know that there are records in the table that meet the given conditions.
    Can Anybody help me?
    Regards,
    Jeroen Verbeek

    you need to use Relationship
    Dim oCons As SAPbouiCOM.Conditions = oCFL.GetConditions()
    Dim oCon As SAPbouiCOM.Condition = oCons.Add
    oCon.Alias = "ValidFor"
    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
    oCon.CondVal = "Y"
    oCon.Relationship = BoConditionRelationship.cr_AND;
    oCon = oCons.Add
    oCon.Alias = "PrchseItem"
    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
    oCon.CondVal = "Y"
    oCFL.SetConditions(oCons)
    Edited by: Danilo Kasparian on Apr 14, 2011 4:08 PM

  • APEX Interactive Report Compute Case with multiple conditions to highlight

    My ultimate is to highligt a row in an interactive report based on two conditions. I didn't see a way to use the highligt feature with two conditions. So I thought I would try to create a computation based on the two conditions. Then use that result for the highligting. Though I don't seem to be a be able to use multiple conditions in my computation Case statement. Is there a different syntax?
    Here is what I have:
    Case
      When  C = 'Open' and  I > 15 Then 'True'
      Else 'False'
    End The error I get is: Invalid computation expression. and
    Application Express 4.0.2.00.07
    Thanks!
    Edited by: cjmartin on Jan 10, 2012 10:57 AM

    I'm surprised no one responded to this. What I did to resolve this issue was create a nested case statement. I don't think this was a good solution, but I can't find anyone else giving input. I know I can create another computational column in the select statement for the report, but the 'Interactive Report' part is where this should be. I want my clients to calculate what they want. Kind of hard when you can not use an 'and' for a range criteria.

  • Calculation of interest amount with two variables formula

    Hello everyone,
    Iu2019m facing a problem with the way that TRM calculate the interest amount for money market transaction when I have a formula with two variable, e.g. reference interest rate u201CXu201D multiplied by 0,98.
    Some contracts explicitly say that to obtain the u201Cdaily interest rateu201D of the contract firstly the u201Cdaily interest rateu201D of the reference interest rate must be calculated and then apply a index or factor (e.g. 0,98). In the other hand some contracts says that it should be done the other way around. Iu2019ve noticed that TRM calculate the interest amount using the first way.
    Is there any way to set which the way the interest amount should be calculates?
    Has anyone faced similar problem?
    The examples below illustrate the difference in the two ways to calculate interest amount.
    Considering the following money market transaction:
    1. Borrowing structure:
    1.1. amount: USD 1.000.000,00
    1.2. flow type: 1105 u201CBorrowing/Increaseu201D
    2. Term (only one day to simplify the example)
    2.1. Start date: 30.01.2011
    2.2. End data:   31.01.2011
    3. Interest structure:
    3.1. Interest form: VARIABLE ( formula = Z1 * 0,98), where u201CZ1u201D is a reference interest rate
    3.2. condition type: 1200 u201CNominal interestu201D
    3.3. Interest calculation method: ActW/252
    Considering that Z1u2019s annual interest rate in 30.01.2011 is 11,66%, TRM would perform the following calculation:
    1. Contract annual interest rate (%) = Z1*0,98 = 11,66 *0,98 = 11,42680000%
    2. Convert from u201CContract annual interest rate (%)u201D  to number = 1,11426800
    3. u201CContract daily interest rateu201D = 1,11426800 ^(1/252) = 1,00042945
    4. Convert from u201Cnumberu201D to Day interest rate (%)  = 0,04294481%
    5. Interest amount = u201CContract daily interest rateu201D * Borrowed amount = 0,04294481% * 10.000.000,00 = 4.294,48
    In the other hand, some contracts say that the interest rate should be calculated in the following way:
    1. Annual interest rate (%) = 11,66  = 11,66000000%
    2. Convert from u201CAnnual interest rate (%)u201D  to number = 1,11660000
    3. Daily interest rate = 1,11660000 ^(1/252) = 1,00043775
    4. Convert from u201Cnumberu201D to Daily interest rate (%)  = 0,04377480%
    5. Calculate u201CContract daily interest rateu201D = 0,04377480% * 0,98 = 0,04289930%
    5. Interest amount = u201CContract daily interest rate (%)u201D  * Borrowed amount = 0,04289930% * 10.000.000,00 = 4.289,93
    With this simple scenario  we end up with a USD 4,55 difference for a single day, but for big contracts of hundred millions and for several years the difference is quite  huge.
    Thanks in advance ..
    Giuliano

    Hi,
    with Product Category 550 you can have both scenarios:
    for the 1st case you can use a formular (e.g. EONIA * 0,98)
    => interest for 1 day: 462,70 EUR
    for the 2nd case you can use the field Variable Interest Rate (EONIA) + field Payment Rate (98)
    => interest for 1 day: 453,44 EUR
    Is this, what you are looking for?
    Regards,
    Lorenz

  • New Tax Code Creation with 4 conditions

    Hi Experts,
    I got stuck in creating a tax code. tax combination is like that 4% Vat Not Deductable, CVD 20.75% out of only 15.14% is cenvatable, discount 400.00
    How to do that ??
    regards
    Devesh

    Hi Expert,
    Before creating a Tax Code, Create two Condition Types(T-Code: OBYZ) for CST and Service Tax, which need to Select the below Items
    Cond. class -  D - Taxes
    Calculat.type -  A - Percentage
    Cond.category - D - Tax
    and while creating a Tax Procedure just select the Condition Type of CST and Service Tax and provide the Account Key for both Condition Types.
    Assign the GL Accounts to the Account Keys in T-Code: OB40.
    Create a Tax Code in T-Code: FTXP, which is to be assigned in T-Code: FV11.
    Maintain the percentage in T-Code: FV11, with your Key Combination and
    Try this procedure, which will help you...
    Regards,
    GK
    SAP

  • How to enter invoice with two different tax codes in one line?

    Dear friends,
    I have this PO for which I enter the invoice.
    I recieve later a subsequent debit for this PO from the transporter. This subsequent invoice has got extra debits, one with 21% VAT and one with 19% VAT, which means two items with two different tax codes.
    I want to enter this subsequent debit for each item of the PO, and I want to enter both debits in every item of the PO.
    How can I enter in one row in MIRO a debit with two different tax codes.
    Thank you.

    I want in the same line item to enter two tax codes.
    Do you Know if there is any way to do this?
    It is a subsequent debit and it has two items with two different tax codes. I want to enter the subsequent debit for a PO with many items and enter the value of the whole subsequent invoice. So there is the need to enter one line item with two tax codes.
    How can this be done?
    Thank you?

  • Combining Conditions with two DataSources

    Hello All,
    The following Code is to Set two condition to load my data, but my problem is that they are not combining. Is there a way to put two DataSources to a Condition? Or is there a way to Combined them?
    '//Activates Query
    '// getting the data sources from the form
    Set oDBDataSource = Form.DataSources.DBDataSources.Item("RDR1")
    Set oDBDataSource2 = Form.DataSources.DBDataSources.Item("ORDR")
    '// Query the DB Data source
    '// create a new conditions collection
        Set pConds = New Conditions
        Set pConds2 = New Conditions
    '// (CardCode = inputted Cust No) 
        Set pCond2 = pConds2.Add()
        pCond2.BracketOpenNum = 1
        pCond2.Alias = "CardCode" 'FIELD NAME
        pCond2.Operation = co_EQUAL
        pCond2.CondVal = CCode
        pCond2.BracketCloseNum = 1
    '// Execute the query with the conditions collections
        oDBDataSource2.Query (pConds2)
    '// where clause
    '// (LineStatus = 'O')  //O = Open order//
        Set pCond = pConds.Add()
        pCond.BracketOpenNum = 1
        pCond.Alias = "LineStatus" 'FIELD NAME
        pCond.Operation = co_EQUAL
        pCond.CondVal = "O"
        pCond.BracketCloseNum = 1
    '// Execute the query with the conditions collections
        oDBDataSource.Query pConds
    '// set the user data source data
        For i = 0 To oDBDataSource.Size - 1
            oDBDataSource.Offset = i
            oMatrix.AddRow
        Next i

    Hi Laura,
    I think the discussion in this thread will give you the answer:
    JIONs-Query as MatrixDataSourse
    Regards,
    Frank

Maybe you are looking for