Use query results in ABAP

hi,
does anyone know how i could use the values outputted by a query in ABAP? i haven't seen any way to do this, and help is appreciated. =)
ryan.

Hi Ryan,
I think this is the same as Jkyle wants to do. Please check out his thread.
How to Extract  Query Result into Internal Table?
regards
Siggi

Similar Messages

  • Using Query Results in Queries

    I understand how to "Using Query Results in Queries" through
    this link:
    http://www.adobe.com/livedocs/coldfusion/5.0/Developing_ColdFusion_Applications/queryDB11. htm;
    However, does anyone know how to do this inside a component?
    note: the first query gets parameters through a form and the second
    query is called through a grid bind.

    I didn't read the link, but there are two ways to use query
    results in other queries. At least two that I know about.
    One is to use valuelists. Since your link was for Cold Fusion
    5, that's probably what they mentioned.
    The other is with Query of Queries.
    You do it in a component the same way you do it in a
    template.

  • How to use query-result as a new query-fiter

    HI, All
    Is it possible to execute sub-query filtererd by the pre-query-reslted lists ?
    As far as I investigated, only way to do is that I combine two suject-areas by using set operations like "Union" or around.
    But in this way, there is an impractical restriction to define these datatype and column in common. (namely, "Union" conditions)
    I just want to query filtered by ex-query-results at anytime; for example, I extract a customer lists by one query and use various analysis in the group of customer list.
    Please give me some advise.
    Regards

    First create a Request with your FilterQuerey. Secund Create a Request und create a Filter. Under Advanced you will find the path to the first Requst. Than you can select the columns.
    Thats it :-)
    Stefan

  • Using Query results

    Hi All,
    Is there any way to use a query result as a dataset for another query.  We do not wnat to do staging and want to handle a complex series of calculation thru the above route.
    Thanks
    Neeraj

    hi neeraj,
    <b>Creating iViews Based on Custom Queries </b>
    http://help.sap.com/saphelp_nw04/helpdata/en/8a/1bd9d01ba3401f9db58ef89566c38c/frameset.htm0
    DataBase :
    http://help.sap.com/saphelp_webas630/helpdata/en/8d/2d5fac955fbb43871e348257f6c49d/content.htm
    Weblogs :
    https://www.sdn.sap.com/irj/sdn/weblogs?
    blog=/pub/wlg/2088
    Hope It Helps
    Thanks
    Varun CN

  • Use query results in transformation

    Hello experts,
    is it possible to use the results of a query to load data to a infocube?
    We have an infocube containing detailed data. On this cube a query is built with a lot of calculated key figures. Now we would like to load these calculated key figures to a more aggregated cube.
    Thanks in advance,
    Ralph
    points will be awarded

    I would look at the APD process that Edwin mentions.  Typically, the way it would work is you use your query as input, writing the results to a DSO, then datamart the results form there to the cube.
    APD could also be used to directly update a Mstr Data infoobject if that made more sense, then datamart that to he cube.
    I'm not familiar with the CRM / falt file approach mentioned.  Might be fine for what you want to do.  The APD process has more options to perform additional manipulation of the data and even joining it with other query results if you wanted, plus the results end up in a DSO that I think might provide more options for retaining and managing the query results.
    You can review the online help for APD, also SAP's Data Mining class BW380 (might have a new name for BI 7.0) covers this area.

  • Use Query Results as XML?

    Hey all, I searched the forums but didn't find anything that
    quite fit this particular issue, I'm hoping someone can help me
    out.
    I am storing a string of text in a database field. It's an
    XML string (not technically, but it's formatted to BE xml).
    I am pulling this from the database in ColdFusion and trying
    to use it as XML, but having no luck. I can get as far as pulling
    it and dumping the data and I get this:
    <root><Booleanval>on</Booleanval><SuperDooperSelector>1</SuperDooperSelector><ContentBody> words</ContentBody><ContentTitle>AWESOME</ContentTitle><DocumentName>Content
    1</DocumentName></root>
    It's a test so the values are a bit goofy but it appears as
    it should nonetheless. I am wondering if there is a way I can parse
    this into actual XML and access these attributes the same way I
    normally would in ColdFusion. It won't let me use XMLParse(#myvar#)
    because it is technically a query.
    Does anyone know how I can use this data as XML in
    ColdFusion?

    "TomNez" <[email protected]> wrote in
    message news:gpu7r7$h18$[email protected]..
    > Hey all, I searched the forums but didn't find anything
    that quite fit this
    > particular issue, I'm hoping someone can help me out.
    >
    > I am storing a string of text in a database field. It's
    an XML string (not
    > technically, but it's formatted to BE xml).
    >
    > I am pulling this from the database in ColdFusion and
    trying to use it as XML,
    > but having no luck. I can get as far as pulling it and
    dumping the data and I
    > get this:
    >
    >
    >
    <root><Booleanval>on</Booleanval><SuperDooperSelector>1</SuperDooperSelector><Co
    >
    ntentBody>words</ContentBody><ContentTitle>AWESOME</ContentTitle><DocumentName>C
    > ontent 1</DocumentName></root>
    >
    > It's a test so the values are a bit goofy but it appears
    as it should
    > nonetheless. I am wondering if there is a way I can
    parse this into actual XML
    > and access these attributes the same way I normally
    would in ColdFusion. It
    > won't let me use XMLParse(#myvar#) because it is
    technically a query.
    >
    > Does anyone know how I can use this data as XML in
    ColdFusion?
    >
    See if this helps:
    http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html
    Ken Ford
    Adobe Community Expert - Dreamweaver/ColdFusion
    Adobe Certified Expert - Dreamweaver CS3
    Adobe Certified Expert - ColdFusion 8
    Fordwebs, LLC
    http://www.fordwebs.com
    http://www.cfnoob.com

  • Use Query Results in Subsequent Query

    Is it possible to use a value returned in query number one in
    query number two as the "where"? For example, Box Number is
    returned in query number one, and I want to query again for
    additional information based upon the box number.

    Lucky Kitty wrote:
    > Is it possible to use a value returned in query number
    one in query number two
    > as the "where"? For example, Box Number is returned in
    query number one, and
    > I want to query again for additional information based
    upon the box number.
    >
    Yeah, it is just a variable and can be used as anyplace
    another variable
    can be used.
    But when one is doing this kind of thing at least 8 out of 10
    times, it
    can be done with a single query with a proper join.

  • How to use SQL query result in DOS commands

    Hi
    Currently i am runnig below DOS commands manually
    d:\apps\bin>TrueGridsCalc period="Aug 2010"
    Now I want to write one batch file and schedule job on windows and make value of "period" to be dynamic. So to get that value i need to fetch it from DB
    Steps which i am taking are
    1. connect DB from command line (using SQLPLUS)
    2. run query to fetch result
    3.How to use query result in "period" parameter ?
    I am good at step 1 and 2. Dnt know how to use query result in command to make it dynamic
    Thank you
    Sachin
    Edited by: sachin.mali on Oct 26, 2010 4:39 PM
    Edited by: sachin.mali on Oct 26, 2010 4:43 PM

    sachin.mali wrote:
    Hi
    Currently i am runnig below DOS commands manually
    d:\apps\bin>TrueGridsCalc period="Aug 2010"
    Now I want to write one batch file and schedule job on windows and make value of "period" to be dynamic. So to get that value i need to fetch it from DB
    Steps which i am taking are
    1. connect DB from command line (using SQLPLUS)
    2. run query to fetch result
    3.How to use query result in "period" parameter ?
    I am good at step 1 and 2. Dnt know how to use query result in command to make it dynamic
    Thank you
    Sachin
    Edited by: sachin.mali on Oct 26, 2010 4:39 PM
    Edited by: sachin.mali on Oct 26, 2010 4:43 PMYOu'll have to have sqlplus spool the output to a file, then figure out some way of parsing that file. Too bad you're stuck with Windows. With any *nix you could do the file parsing with one line of code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Running the BEX query from webdynpro ABAP

    Hi Gurus,
    Can someone provide the code for running the BEX query from WDA.
    Thanks,
    David.

    Hi! Do you want to get query results in ABAP or to open excel from browser?

  • Using previous results in a query

    Hi
    Please can someone assist.
    I have a bex query - 1 structure only in my columns
    I have my data in rows broken down by calendar year.
    What I need to be able to do is to use the result in calendar year 2008 and sum it in calendar year 2009.
      Calendar month
      Calendar Year
      Remaiining
      Date of Hire
      Quota number
      Carry Over
      Deduction
    MAY
    2009
    21.960
    2000/05/15
    21.960
    0.000
    21.960
    2010
    30.000
    2000/05/15
    30.000
    0.000
    30.000
    2011
    42.260
    2000/05/15
    42.260
    0.000
    42.260
    2012
    39.240
    2000/05/15
    33.240
    6.000
    27.240
    2013
    50.000
    2000/05/15
    25.000
    25.000
    0.000
    JUL
    2008
    39.780
    2000/05/15
    39.780
    0.000
    39.780
    DEC
    2007
    43.700
    2000/05/15
    43.700
    0.000
    43.700
    Result
    266.940
    2000/05/15
    235.940
    31.000
    204.940
    My last column needs to be Entitlement which should be the carry over of 2012 + carry over of 2013 = 31 - which should be my entitlement for 2013.
    Not sure if that makes any sense.
    Please see images attached.
    Is there a way to do this with no ABAP, as I am not able to write the customer exit.
    Thank you

    You may try with Cell definitions concept by introducing a "Calyear structure" in rows and define 2013 cell accordingly. Rest all cells other than in Entitle ment KF take the definitions of their respective CKFs/RKFs. Leave all cells blank other than 2013 in Entitlement KF.
    Remove Calyear infoobject which is there currently in rows pane and then create a structure in place of it. Every year, you will need to enhance the Calyear structure and make the cell definitions accordingly as per your business requirement.
    Please have a look at my blog to get a brief idea on what I am saying.
    How to achieve Slab Wise or Bucket Wise and Age Wise requirements in BEx
    Message was edited by: SumaN ChakravarthY K
    Message was edited by: SumaN ChakravarthY K

  • How to send query results from BW to R/3 abap program

    Hi,
    I have to bring in query results from BW into a abap program written in R/3...can anyone help me on how to accomplish this(BW to R/3) please...i was thinking if reporting agent or broadcasting should help but i dont know how to get started.
    Please help.
    Thank you so much.

    Hi Vijay,
      As i know, you can send data from BW to Flat file or into any table in BW or to BW application server only.
      You need 3rd party to send data to different server.
    You can use
    1. Tcode : RSCRM_BAPI to download query values/results into a table or into a flat file. OR
    2. You can use Infospokes to generate files from ODS/CUBE/master data objects to flat files(local/application server) or to a table.
    3. Using information broadcasting we can send mail(dont know much options), but i dont think generation of file possible.
      You need to trnasfer generated file from BW to R/3 and load into R/3 using BDC or LSMW(if data is low).
      I think, you can also use RFC function modules to read data from BW to R/3, plz check with ABAPer.
    Hope it Helps
    Srini

  • Sending email using PL/SQL based on a query result

    Hello all,
    I want to create a procedure using PL/SQL, based on a query result.Here is the scenario:
    I have multiple tables in Target and Source databases that I want to compare(not the whole table but queries on these tables) and if they differ, I want to shoot an email. I have some ideas how to implement this but not sure whether it is the best approach.
    select Acct_id, total from SourceTableA
    minus
    select Acct_id, total from TargetTableA
    select Acct_id, sum from SourceTableB
    minus
    select Acct_id, sum from TargetTableB
    If the result of any of above queries > 0 then I want to shoot an email and want to repeat this procedure in the morning every day.
    I know how to implement send_mail procedure using UTL_SMTP package and how to schedule tha job by dbms_job package. But I am not sure how to implement the result of minus query. In case if minus > 0 then I also want to send the name of tables in the email message where source and target tables are not same. Should i use cursor, variable or insert the result in a new table? any help would be highly appreciated. Thanks in advance.
    Khan

    Actually these queries are the part of our daily testing that we run everyday manually(after the scheduled ETL load) to see if there are any discrepencies between our datawarehouse tables and source tables. So instead of running these queries manually everyday we want to schedula a procedure that will shoot an email in case of any discrepency and indicate which tables have problems.

  • How to use one query results in another query

    hi,
    in help.sap I have founded that using variable type replacement path I can use one query results in another query. It is wrote there that I have to choose query name results I want to get in variable definition but I do not know where.
    How I can do this?
    Result I want to get is:
    In one query I have material prices in another material quantities. I want to calculate inventory value (price * quantity). Moreover prices are on plant level, quantities on storage type level. Plant is atribute of storage type.
    Can I do this?
    Regards,
    Andrzej

    Hi Andrzej,
    please check out this thread: Set parameters values depending on other parameters
    I had a discussion about query results as input for another query in there.
    For creating a workbook, just click on the save button after you ran your query in the bex.
    Siggi
    Message was edited by: Siegfried Szameitat

  • How to get the query result of improvement (Before and After ) using sql de

    how to get the query result of improvement (Before and After ) using sql developer.

    Check
    http://www.oracle.com/technetwork/articles/sql/exploring-sql-developer-1637307.html

  • Export query result to csv using Export Wizard

    Been a decade since I last used Oracle and related tools.
    I had to use Oracle server again, I have a query over multiple tables, I am to run a scheduled script that will spit out the query result as a csv file.
    I started with SQL Developer Export wizard, in step "Specify Data", I am at a loss, where to specify the query itself? I see a Name,Schema,Type input, a text area below, Up,UpAll,Down,DownAll buttons etc etc. Where do I specify my query here? Can someone please help?
    Is this the best way to go about to schedule a data export (query to csv) daily?

    To export a user query rather than a whole table, run it in a worksheet and export using the context menu on the result grid. However none can be scheduled.
    Instead you can look at the SPOOL command and schedule it through SQL*Plus. Any questions can go to the iSQL*Plus and/or SQL And PL/SQL forum.
    Have fun,
    K.

Maybe you are looking for

  • How do I back up iPhone to time machine?(I'm new)

    How do I back up iPhone to time machine?(I'm new)

  • System date format in reports (winnt)

    Hello All, I am using oracle report bulder 6.0.5.35. on winnt i have to show all the date fields in my report in the system format (as specified in the regional settings in control panel) i couldn't find a direct solution, so what i did was to create

  • Nameing & 'Save As' in LR2.6 similar to PSCS4?

    I have searched & found no help. Is it possible in LR 2.6 to be able to make a minor edit to a file name and save it similar to how I can 'save as' in PS CS4?  This would save many hours in a weeks time and /or allow me to be more specific in my file

  • How do I add Security Devices during Firefox deployment?

    I recently found a method to at PKI CAC support to FF, but this is a manual method that would need to be done to each system. Is there a way to deploy a security device that could replicate this process?

  • Import error on libraries?

    This may belong else where - but it was a direct FB error upon using the import packageName.subPackageName I have a lib which I am working on and have refrenced into the current "main" project and created a package called adventureGame.core When I ty