[URGENT] Opportunity.wsdl - how to query the opportunity revenue?

Hi All,
I need to write a web services (opportunity.wsdl) to query the Item Revenue from the opportunity. How can be done? Refer the screenshot below,
The code as below,
Dim lstOfOppQuery As New ListOfOpportunityQuery
Dim lstOfProdRevQuery As New ListOfProductRevenueQuery
lstOfOppQuery.Opportunity = myOppQuery
lstOfProdRevQuery.ProductRevenue = myProdRevQuery
'Number of records to fetch
lstOfOppQuery.pagesize = "100"
lstOfProdRevQuery.pagesize = "100"
'Set OpportunityQueryPage_Input
Dim myOppInput As New OpportunityQueryPage_Input
'Dim myOppInput1 As New reven
myOppInput.ListOfOpportunity = lstOfOppQuery
'myOppInput.ListOfOpportunity = lstOfProdRevQuery
'Get the output
Dim myOutput As OpportunityQueryPage_Output
'Dim myOutput As
myOutput = accntPrxy.OpportunityQueryPage(myOppInput)
I able to query the opportunity data but failed to input and output the revenue, please help.
Please have a guide. Thanks :)
Edited by: 911468 on 09-Apr-2012 00:32

This is how I query opportunity & product revenue:
Opportunity prxySrvc = new Opportunity();
OpportunityQueryPage_Input objQryParam = new OpportunityQueryPage_Input();
OpportunityQueryPage_Output objQryOut = new OpportunityQueryPage_Output();
ListOfOpportunityQuery ListOfOpptyQuery = new ListOfOpportunityQuery();
OpportunityQuery myOpptyQuery = new OpportunityQuery();
ListOfProductRevenueQuery ListOfProdRevQuery = new ListOfProductRevenueQuery();
ProductRevenueQuery myProdRevQuery = new ProductRevenueQuery();
(query values to return)
myOpptyQuery.Id = query_field;
myProdRevQuery.Id = query_field;
ListOfProdRevQuery.ProductRevenue = myProdRevQuery;
myOpptyQuery.ListOfProductRevenue = ListOfProdRevQuery;
ListOfOpptyQuery.Opportunity = myOpptyQuery;
objQryParam.ListOfOpportunity = ListOfOpptyQuery;
prxySrvc.Url = mSession.GetURL();
objQryOut = prxySrvc.OpportunityQueryPage(objQryParam);
(output data)
objQryOut.ListOfOpportunity.Opportunity[index].Id
objQryOut.ListOfOpportunity.Opportunity[index].ListOfProductRevenue.ProductRevenue[childIndex].Id

Similar Messages

  • How to query the flat files?

    Hi
    How to query the flat files that are used in Etl From EBS source.

    That can be done in OBIEE. Save the flat file as .csv format. Then go to ODBC Administrator on windows machine where you BI server is running, and create an System DSN and select "Microsft Access Text Driver (*.txt, *.csv)" as driver type.
    Next, import tables in RPD using this ODBC connection. Rest of the steps as same as building model from a table source.
    Hope this helps.

  • How to query the count of the temporary table from user_objects

    e.g. select count(*) from user_objects where object_type='TABLE'
    According to the SQL,I can query the all table including the temporary table,Can I how to query the count of the temporary table from user_objects excluding the permanent table?
    thanks a lot!

    select count(*)  from user_objects where object_type='TABLE' and temporary = 'Y'

  • How to query the Product short code of EBS products?

    I need to get all the Product short code of all EBS products. Is there any table record such kinds of short codes? thanks!

    Hi,
    However, these product codes are not associated with corresponding products and product families.
    do you know how to query the product name , product short codes and product familiy together?Script to get Codelevels Summary in R12 and 11i
    Re: Script to get Codelevels Summary in R12 and 11i
    PS: all these tables are public to query or just allow oracle internal usage?As Apps user, you should be able to query these tables. For other database users, you need to check if the users have select privilege to access the tables or not.
    Regards,
    Hussein

  • How to use the opportunity stub classes to retrieve the opportunity objects

    Hello ,
    I have downloaded WSDL file for opportunity and i have created the stub classes by using axis as WSDL to java. Can any body suggest me , how can i use those created stub classes to retrieve the opportunity objects ?.
    Thanks,
    --bdr_09
    Edited by: bdr on Feb 3, 2009 1:54 AM

    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Tools8.html#63055

  • How to query the database in an Entity Object (EO)

    I am using JDeveloper 11.1.2.2.0
    I am Forms developer working in a new ADF project and need some help from the ADF gurus, I am just a ADF beginner.
    Maybe hits question has a easy solution, but I don't know how to implement this:
    I have simplified my scenario, but this is what I Need to do:
    One database table DBTABLE with 3 columns (C1,N1,D1) C1-varchar2; N1-Numeric; D1-Date.
    In the DBTABLE I have the following data:
    ONE; 10; 01/10/2012
    ONE; 20; 02/10/2012
    TWO; 15; 02/10/2012
    ONE; 15; 03/10/2012
    I have created an ADF EO for the DBTABLE with all 3 attributes, then I have created another transient numeric attribute T1.
    My requirement is when I create a new record and set attribute C1=ONE the transient attribute T1 should show sum(N1) from DBTABLE where D1>= 01/10/2012 and D1 < 03/10/2012.
    In this case when I create a new record should the shown in T1 a total of 10+20 = 30.
    I know how to use the EOImpl getters and setters, and how to set the T1 attribute when C1 is set. My problem is how to calculate the total T1.
    How can I implement this in ADF? It is possible to implement this in the EO? It is possible to make the query select sum(N1) from DBTABLE where D1>= 01/10/2012 and D1 < 03/10/2012 and return the value to the EO attribute?
    Thank you in advance

    Hi Peter
    Thank you for your suggestions, both of them are interesting but unfortunately they do not solve my problem, or at least I don’t know how.
    I will try to better explain my problem
    I have te table DBTABLE and another related table called DBDATES with colums(C1,DT1,DT2,TARGET) where I record periods of time and desired target. For instance my DBDATES table could have the following records
    ONE; 01/01/2012; 31/01/2012; 100
    ONE; 01/02/2012; 29/02/2012; 90
    ONE; 01/03/2012; 31/03/2012; 95
    TWO; 01/01/2012; 31/01/2012; 140
    Exist a FK between both tables in the C1 column.
    I have created an EO for the table DBTABLE with the tree persistent attributes (C1, N1, D1) an transient attribute (T1). The (C1,D1) is my DB primary key.
    When I create a new record in the DBTABLE and based in the actual date I need to query the DBDATES table to check which is my TARGET and the valid target dates. For Instance if a record for person ONE is created on February 12, my TARGET is 90 from 01/02/2012 to 29/02/2012.
    At the same moment I need to check the total amount of items record to the person ONE during the full target period.
    Select sum(N1)
    From DBTABLE
    Where D1 between V2 and V3
    And C1= V1;
    Bind variables:
    V1 = ‘ONE’;
    V2 = ‘01/10/2012’ – queried from DBDATES
    V3 = ‘03/10/201’ – queried from DBDATES
    In resume, for a determined person when I create a new record in the DBTABLE I need to know their target for the actual period and how much as been record until now.
    I don't know if is possible to solve this without using the View Objects, because I need to query the DBTABLE for a time frame and with bind variables.
    Thank you in advance for your help.

  • How to query the master block based on one of the values in detail block

    Hi,
    In version 6i forms, I have a field in data block which is not set as a database item. I am using that field to store a value from detail block. If I want to query the form using that field (which represents one of the values from detail block), how do I do that? Any pointers?
    TIA,

    Do you want to query a master, which contains a specific detail? If so, here's an example how you could do it with a PRE-QUERY-trigger:
    DECLARE
      vcQuery VARCHAR2(4000);
    BEGIN
      IF :MASTERBLOCK.THE_DETAIL_SEARCH_ITEM IS NOT NULL THEN
        -- Build up an exists Sub-Query
        vcQuery:=' MASTERBLOCKID IN (SELECT FK_TO_MASTERBLOCK FROM DETAILTABLE WHERE DETAIL_COLUMN=''' || :MASTERBLOCK.THE_DETAIL_SEARCH_ITEM|| ''')';
      END IF;
      SET_BLOCK_PROPERTY('MASTERBLOCK', DEFAULT_WHERE, vcQuery);
    END;

  • How to query the Date/Time Dataype

    Hi,
    I am trying to query the database with Data/Time Datatype.
    String date=request.getParameter("date");
    String month=request.getParameter("month");
    String year=request.getParameter("year");
    String tosearch=month+"/"+date+"/"+year;
    String getTable="select * from tableRes where dmy='"+tosearch+"'";I would like to know why it is not working?
    I ran through tomcat and it appeared this error:
    Data type mismatch in criteria expression.
    Thanks!

    pramudya81 wrote:
    Rock,
    May I know more detail on your specs?
    What is your DB? Or how is exactly you execute the sql.
    to_date is anyway an Oracle syntax.
    So I guess your DB might be an SQL Server.
    to_date for oracle is equivalent as Convert in SQL Server
    example Select Convert(datetime ,'2002/01/01')
    Hope it works nowBad idea. See reply 1.

  • How to query the table

    hi all,
    where to find the enterpraise manager url....i forgot it
    i need to know the enterprasie manager url,how to check this one from table.
    how to query this,from which table it will be fetch...
    pl share ur updates;

    gk wrote:
    hi all,
    where to find the enterpraise manager url....i forgot it
    i need to know the enterprasie manager url,how to check this one from table.
    how to query this,from which table it will be fetch...What's the db version? AFAIK there is no table in which the EM's url is kept. You can see it from the command though emctl status dbconsole .
    >
    pl share ur updates;Please write proper words in a professional forum like this one.
    Aman....

  • How to query the sharepoint list with using lookup column

    hi,
    I have requrement like below
     List A
    Title                         Postionid(Lookup)       PositionDescription
    [email protected]             1                              
    xxxx
    [email protected]             1                               
    xxx
    [email protected]           1                                
    xxx
    [email protected]                    2                               
    sss
    [email protected]             2                               
    www
    List B
    Title                         fistname  lastname age fathername
    [email protected]         x             x             10      y
    [email protected]         p            p               12      p
    [email protected]               q           q                12    
    y
     here in List A positionid is lookup column i have creating one visual web part i am querying the List A using  query string as Positionid in that web part .finally what i want is i need date from list B on basis of corresponding position id here
    List A Title and List B title are same i need each candidate info how can i do it
    Srinivas

    Hello,
    Still you have not told that whether Position id is there in listB or not. Anyway if Poistion id is not there in list B then you have to use Title column of listA to gete data from ListB. Look at sample code below. It will first get data from ListA,
    and use StringBuilder class to create dynamic CAML query because one Position id is having multiple values in listA.
    query.Query = "<Where><Eq><FieldRef Name='Postionid' /><Value Type='Lookup'>1</Value></Eq></Where>";
    SPListItemCollection items = list.GetItems(query);
    if(items.Count > 0)
    foreach(SPListItem item in items)
    string strTitle = Convert.Tostring(item["Title"]);
    //since listA is having multiple values for Postionid so you have to build a dynamic query here to get data from listB
    //Refer link to build dynamic query
    SPQuery listB = new SPQuery ();
    query.Query = stringbuilder;
    SPListItemCollection ListBitems = listB.GetItems(query);
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2dfe5fd6-e556-4132-a35c-e9f240360307/issue-with-caml-query?forum=sharepointdevelopmentlegacy
    http://sharepoint.stackexchange.com/questions/69690/foreach-loop-inside-caml-query
    Above links will help you to create dynamic query (in your case you need to use multiple <OR> operator in listB.
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How can query the table MARD using the parameters

    Hi,
    I have inputs as material number , sales organization , distribution chanel and plant , using this i have query the table MARD . in MARD table material number and plant is available , how can i relate sales organization and distribution chanel to query the table, please help.
    Regards,
    Ratheesh

    Hi,
    MVKE table contains the relationship between material, sales org. and distribution channel.
    You can hence create a join between MARD and MVKE tables and create a query.
    Regards,
    Aditya

  • How to Query the Employment Status of an Employee in Time Evaluation

    Hi SAPGurus,
    Does any one have an idea as to how to query an employee's Employment Status in Time Evaluation.
    Looking forward to hear from you soon.
    Regards,
    Aslam

    Arun,
    Thanks, for your reply. I was looking for a way to query the Field: P0000-STAT2 ie: employment status in Time Evaluation. I am aware of the way I can query an employee's Time management status ie: P0007-ZTERF. Would be great if you know a way to query it in Time Evaluation.
    Thanks Again.
    Regards,
    Aslam

  • How to query the opening balance for an specific account for an spec. date

    Hi all,
    for my user query I need to calculate the opening balance for an cash account for an specific date.
    Any ideas, how can I do this?
    Or may be you know a field in an SBO table that already contains information I need...
    Best Regards,
    Inna

    Hi Inna,
    to find the opening balance for an account or a business partner, please see SAP Note [1114253|https://service.sap.com/sap/support/notes/1114253] :
    Symptom
    How to find the opening balance of a business partner or G/L account.
    Other terms
    Account, customer, supplier, vendor, creditor, debitor, start, initial, first, opening balance, business partner, G/L, SAP Business One
    Reason and Prerequisites
    Consulting
    Solution
    There are several possible approaches:
    Approach 1 - Business Partner Opening Balance:
    1. Go to Business Partners -> Business Partner Master Data -> find the Business Partner
    2. Click on the orange link arrow next to the field 'Account Balance' in the header region of the window.
    3. Untick the boxes next to 'Posting date from', 'Display' and 'Display Unreconciled Trans. Only'.
    4. Click on the button 'Refresh'.
    5. Find 'OB' in the column 'Origin', this is the opening balance journal entry.
    Approach 2 - Business Partner Opening Balance:
    1. Go to Business Partners -> Business Partner Master Data.
    2. Click on the orange link arrow next to the field 'Account Balance' in the header region of the window.
    3. Untick the boxes next to 'Posting date from', 'Display' and 'Display Unreconciled Trans. Only'.
    4. Click on the button 'Refresh'.
    5. Double click on the column header 'Posting Date' to find the earliest transaction on the business partner account. This transaction could be opening balance, verify this with the company accountant.
    Approach 3 - G/L Account Opening Balance:
    1. Go to Financials -> Chart of Accounts -> click on the account name once.
    2. Click on the orange link arrow next to the field 'Balance'.
    3. Untick the boxes next to 'Posting date from', 'Display' and 'Display Unreconciled Trans. Only'.
    4. Click on the button 'Refresh'.
    5. Find 'OB' in the column 'Origin', this is the opening balance journal entry.
    Approach 4 - Business Partner and/or G/L Account Opening Balance:
    1. If using SAP Business One 2005 SP01 or earlier, go to Reports -> Query Generator -> click on 'Execute'.
    2. If using SAP Business One 2007 or later, go to Tools -> Queries -> Query Generator -> click on 'Execute'.
    3. Ignore the red system message in the bottom of the screen.
    4. Click on the pencil icon in the top left of the window, the field with 'SELECT *' will change colour to white, then yellow when activated by clicking in the field.
    5. Copy the query below:
               SELECT T0.[TransId], T0.[Debit], T0.[Credit] , T0.[CreatedBy], T0.[TransType] FROM [dbo].[JDT1]  T0 WHERE T0.[TransType] = '-2'  and T0.[ShortName]  = '[%1]'
    6. Click on 'Save' and give the query an appropriate name and select the appropriate category.
    7. Click on 'Execute'.
    8. Click on 'Existing Values'.
    9. Select the G/L account or the Business Partner name from the list and click on 'OK'.
    10. The system message 'Records retrieved by this query #' (# = number of records) will pop up. Click on 'OK'.
    All the best,
    Kerstin

  • Urgent!! How to capture the active windows

    I want to write a program to capture the active windows in the Windows desktop. Can anyone help me. I know to use class "Robot" to capture the screen, but how to determine the position of the active windows in the desktop.
    Thanks...

    This code could work to capture the desktop screen:
    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
    Image imgs;
    try{
         Robot r = new Robot();
    Rectangle rect = new Rectangle(0,0,d.width,d.height);
    imgs = r.createScreenCapture(rect);
    }catch(AWTException awe) {
    System.out.println("robot excepton occurred");
    Try this!!!

  • How to Query the Facility Name on a Formulation Spec?

    I would like to query the facility name from the scrmEntityFreeTextName table.  If I'm trying to drive my data from a formulation spec number, what table(s) do I have to join to do get from SPECSUMMARY to link to scrmEntityFreeTextName?
    select *
    from agile.scrmfacility f, agile.scrmEntityFreeTextName tn
    where f.pkid = tn.fkentity

    You can use the DatabaseAndObjectSchema tool, located in the Extensibility Pack. It is an HTML document that helps you navigate the object or data schema, and can provide the basic SQL statement needed.
    Here is the basic SQL statement it provided:
    SELECT * FROM formulationSpecification t1
    INNER JOIN DWBSpecificationRoots t2 ON t1.pkid = t2.fkOwner
    INNER JOIN dwbSpecifications t3 ON t2.pkid = t3.fkWorkingVersionParent
    INNER JOIN gsmFormulationFacilityJoin t4 ON t3.pkid = t4.fkSpecID
    INNER JOIN scrmFacility t5 ON t4.fkFacility = t5.pkid
    INNER JOIN scrmEntityFreeTextName t6 ON t5.pkid = t6.fkEntity
    where t1.pkid='581672ba6d3a-f37a-409b-a140-d4cd6eab5606' -- this uses the spec pkid
    To use specNumber instead, you join against the specSummary, then use its SpecID column for the join
    SELECT t6.name, *
    FROM
    --formulationSpecification t1
    SpecSummary s
    INNER JOIN DWBSpecificationRoots t2 ON s.SpecID = t2.fkOwner
    INNER JOIN dwbSpecifications t3 ON t2.pkid = t3.fkWorkingVersionParent
    INNER JOIN gsmFormulationFacilityJoin t4 ON t3.pkid = t4.fkSpecID
    INNER JOIN scrmFacility t5 ON t4.fkFacility = t5.pkid
    INNER JOIN scrmEntityFreeTextName t6 ON t5.pkid = t6.fkEntity
    where s.SpecNumber = '5098024-001';

Maybe you are looking for

  • WebLogic 8.1SP4 and IIS

    Hi, I want to configure weblogic with IIS and have found enough articles on how to proxy IIS to point to a single instance or a clustered environment but not on how to proxy IIS to multiple WebLogic servers I have the application running on http://<w

  • MC-4 Controller Not Working with LabView

    I have a Klinger MC-4 Motor Controller and am trying to control it with LabView. I have thus far not been able to get the motor to move with the driver that I downloaded from this website. If anybody has written anything for this same purpose, I woul

  • Class calling Problem

    I am having a error "Cannot reference this before supertype constructor has been called". and have no clue what is trying to tell me. It goes to this code snid bit that i am working on for a test game i will be creating. class Races      public Races

  • Default Still Clip Length

    I know how to change the duration of a still clip, but is there a way to change to default from 5 seconds to something else?

  • Old Songs

    I am relatively new to iTunes having used it briefly a few years back. I just downloaded the latest version of iTunes to a new computer. How do I get the songs that I purchsed a few years back into my library again? There are only about 10 of them bu