BEx Query via ABAP Programm (without Querydesigner) ???

hello friends,
is there anybody who knows a solution to gernerate a BEx Query without using the BEx Querydesigner, with ABAP coding, only!? I´m looking for a solution, whre f.e. the customer selected character, keyfigures and selections in an external applikation (maybe ms excel) and from there an ABAP programm takes the information and generate a BEx Query?
I´m not sure if these considerations could be come reality, but maybe there is a solution, or some ideas and input from your side!?
thx...

hi anass,
thx for your reply. Yes i know this feature, but this isn´t a solution for my tasks. Becaus I need a "regular" query at the end of the process, which i can implement in an WAD template. and on top I need the queries for BW IP planning applications, so the tool must generate planning queries with input ready cells.
I think these facts and many many side effects like variables, hierachies, structuredefinions and so on, will destroy my "dreams" of such a 'query-generating-tool'. probably a very easy query will be a problem for automatic generation, because there are many sap tables where the queryinformation will be stored, with id references, and so on...
br david

Similar Messages

  • Execute BEX Query via Function Module

    Hi Mates,
    I want to execute BEX query via a Function Module.
    Also i want to explore whether the input parameters of the query can be retrieved from a Database Table.
    Please let me know how this can be achieved.
    Thanks in advance.
    Regards,
    Hrishikesh

    Hi Hrishikesh,
    Assuming you have the necessary ABAP knowledge, you will have to code the exit in the include ZXRSRU01 under I_STEP = 1 (this is because you want to prepopulate your parameters from the values in your DB table).
    Your DB table has Key1, Key2 and Your field as the three fields and you want to read the value of 'Your Field' based on your keys Key1 and Key2.
    So, the code will be something like -
    when 'Your variable'.
    if i_step = 1.
    select single 'Your field' from 'Your DB table' into lv_your_field where Key 1 = 'X' and
                                                                                                                   key 2 = 'Y'.
    clear l_s_range.
    l_s_range - low = lv_your_field.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    append l_s_range to e_t_range.
    endif.

  • Bex Query in ABAP report

    Can i call a BEx query in ABAP report and display in ALV grid. if so please give me the syntax.
    Thanks
    Akila.R

    Look at the FM "RSDRI_INFOPROV_READ".
    With this you can read data into a internal table of your program.
    With this FM, you can do a selective read and select only the key figures and characteristics that you wish to read in your ABAP.
    I am not ure, if you can call a BEx report in your ABAP. But with what I mentioned here, you can acheive what you want.
    Ravi Thothadri

  • How to call a Bex query in ABAP

    Hi,buddies:
        Any body try to run a Bex query in ABAP and then get the result in text file etc...??
    Martin Xie

    Hello,
      Call this transaction in BW : RSCRM_BAPI.
    Download Query result in file format.
    This transaction is absulote.
    I hope it helps.
    Kishore

  • BEX Query to ABAP Transaction Code

    Hi,
    RRI from BEX Query to ABAP Transaction Code When I Right clivk and select GOTO on my Delivery order
    say 120012 It shd directly go into tht particular DO The transaction code is vl33n
    but when i give ABAP Transaction as reciever object it only goes to the initial screen of query where we manually need to give the DO Number It does not show the DO 120012 directly
    thx,
    amar

    Hi Amar
    Try doing Assigning Infoobject to R/3 field in Assignment details RSBBS transaction:
    Check below thread for explaination
    Re: RRI -  Selection was not Restrcited
    Ravi

  • Bex Broadcasting via ABAP / Process Chain

    Hi,
    is it possible to start a Broadcasting Setting (Excel-Workbook on an InfoSet) via an process chain or ABAP programm through an process chain. The data change in InfoProvider process only applies to DSOs, Cube etc. but not InfoSets.
    thx in advance!
    cu
    Dominik

    Hi,
    I have not tried this, but i think it would work.
    1. Create a new event in SM64.
    2. In the Chain at the step where you want to trigger brodcast include an ABAP Program which would trigger the event which you created in SM64.
    3. In SM36 create a Job with name "TP_BROADCASTING_*" where * will be the name which you can define for your job.
    4. In Step add the ABAP Program "RSRD_BROADCAST_FOR_TIMEPOINT" and schedule the Job to start by event created by you in SM36.
    5. In the Broadcaster set the Dispatch to start with this option.
    Or the other way you can do is If your Infoset is containg an ODS and an Infoobject. you can place the step " data change in InfoProvider" after the ODS and also after the Infoobject but include ODS in the variant.
    Regards,
    Neelesh Jain.

  • Execute Bex query from ABAP

    Hi,
    I am using the method mentioned by Durairaj (@  /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-i )
    to execute queries from ABAP.
    When I try to execute a query with characteristics in rows and if the characteristics name is large then i get a dump:
    'Field symbol has not yet been assigned'
    @ <l_field> = wa_set-chavl .
    I tried the same for another cahracteristic of lesser length and it works fine.
    Initially the chara name was like:
    <8 letter dim name>__<7 letter chara name >
    when i used a dim name with lesser no of letters:
    <7 letter dim name>__<6 letter chara name >
    It works fine.
    is there any restricition on the lenght of characteristics ?
    Thanks,
    Message was edited by:
            Rithesh Vijayakrishnan

    Matthias,
    I have tried to use this method before, but with the follow URL:
    /SAP/BC/WebDynpro/SAP/YWEBTEMPLATE_TEST/bi_template_page.htm?&varn1=0pcalmon&varv1=200901&varn2=0p_cocd&varv2=b047&url=/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex
    didn't work as I image.
    Do I have to transform this url before execute the method?
    Tnks for your patience.

  • Error while executing BEX query via FM

    Hi Friends,
    I am getting following error while executing a query via FM RRW3_GET_QUERY_VIEW_DATA.
    Please see the error screenshot as follows.
    the I_T_PARAMETERS entered are as follows.
    Please let me know what is missing.
    Thanks.
    Regards,
    Hrishikesh

    the key date variable 0DAT is normally filled by a SAP exit variable, but this may not be the case.  it could have been changed in the query designer,  check the query in query designer and see.
    Try passing 0DAT in the variable list with todays date

  • Pass parameter to Bex Query via Query String

    Hello,
    I am trying to pass a parameter into a Bex Query from a 7.0 portal. I created a Bex query iView and I have tried various permutations with the Bex Query String property of the iview but nothing seems to work. The query runs but the parameter is not passed in.
    For example I have tried: cmd=ldoc&TEMPLATE=Z_TEMPLATE&QUERY=Z_QUERY&Z_QUERY_VARIABLE=12345678 and several other variations of doing this.
    Thanks,
    Bert

    Hi Satish,
    I had already tried that but it did not work.
    Thanks,
    Bert

  • Crystal Report on BW BEx Query via MDX in SAP Portal

    Hi!
    We need to display a CR in the Portal. The CR is based on a MDx BW Query. To create and display the report is no problem. Even saving back to BW is working fine.
    But how do we get this CR displayed in the EP?
    Thanks in advance
    Jörn

    Hi,
    Should only the BO SAP Integration Kit iViews / URL iViews be used and are the Crystal Report iViews (http://help.sap.com/saphelp_nw04/helpdata/en/36/d4a94076b63713e10000000a155106/frameset.htm) obsolete?
    Yes as the Crystal Report iView are based on an older version
    If we export the Crystal reports to SAP BW, is it possible to call them with BEx iViews like the xCelsius reports? (Like with DASHBOARD=<report name> for xCelsius)
    From where can we get the Crystal Report ID, if we export them to SAP BW?
    You should use the BusinessObjects Integration Kit iView template for Crystal REports and the ID can be retrieved from the CMC
    Ingo

  • Uni on Bex-Query: filter on Structure - Without Keyfigures as column: error

    Hi All,
    I have a 'Without Key Figure structure' as a column called Version in which (amoung others) the values 'Actual' and 'Last Year' .
    Thus
    Version
    - Actual
    - Last Year
    Now i want to create a filter in my universe which pre-selects Actual.
    When I use the tool for that this is my standard definition of the filter:
    <FILTER KEY="@Select(Version\Version)">
      <CONDITION OPERATORCONDITION="Equal">
        <CONSTANT VALUE="Actual"/>
      </CONDITION>
    </FILTER>
    However it results in error: 'A database error occured. The database error text is: (CS) "Error on BindCol". (WIS 10901)'
    Meaning(i guess) that somehow i'm not getting the correct selection-command to the database,
    When i use the version-dimension itself in the reports as part of the query filter it works fine and LOV displays both versions for selection.
    We are using XI3.1 fp3.1; BW 701-sp5 on oracle 11
    I've look through the forum, but couldnt find an answer.
    If there is point me into that direction and i'll close this one
    Any other information on how filters etc should be specified in an Universe on a BW query is also greatly appreciated.
    I already have found some info but any information is welcome.
    Your help is greatly appreciated.

    I found my answer.
    Create a caption dimension for your keyfigures and filter on thath
    Dimension:
    [xxkeycharacteristicxx].[caption]
    Filter:
    <FILTER KEY="@Select(Key Figures\Key Figures Caption For predefined filters)"><CONDITION OPERATORCONDITION="Equal"><CONSTANT CAPTION="VERSIONS like Actual"></CONSTANT></CONDITION></FILTER>

  • Bex Query on ABAP WEB

    Dear Experts,
    When we go to T-code RSRT and give the technical name of the query and afer that when we select the ABAP WEB option the query goes to internet explorer.
    After that one variable selection screen pops up now my question is how can we have option of saving the variant on that variable screen by default.
    I searched on forums and google but i didn't get any relevant information.As far as i understand then we have to give some template id in that link which is generated when we click on ABAP WEB.
    Please help me on that.Once i am done with that then i  have a requirement to dynamically update the variants and broadcast to different user.
    Anyways for that i will open a new thread to get  the clarifications on same.
    Your valuable inputs are welcome.
    Thanks in advance.
    Regards,
    AL
    Edited by: AL1112 on Sep 30, 2011 2:12 PM

    Hi,
    Saving Query Variants
           1.      Open a query in a workbook that contains variables.
           2.      After you select the variable values for your query, (see Changing Variable Values), choose Save as Variant to create a new variant.
           3.      Enter a description and a technical name for the variant.
    If you set the Save as User-Specific Variant indicator, the variant is only available to you. If you do not set the indicator, everyone who opens the query can use the variant.
    If you set the Use as Default Variant indicator, this variant is used when the query is opened.
    The variant is now displayed in the list of available variants.
    If you later want to change the description for the variant, choose Properties and enter the new description.
           4.      To check your entries, choose Check.
    please check the URL:
    http://help.sap.com/saphelp_nw70/helpdata/en/45/6e583cb9cc1956e10000000a11466f/content.htm
    Thanks,
    Venkat
    Edited by: Venkadesh S on Oct 12, 2011 12:38 PM

  • #UNAVAILABLE in WebI with BEx Query via BICS over ECC

    dear all
    i have a very simple problem to explain.
    when i try to use =Month([Flight date]) function, my key figure returns #UNAVAILABLE
    that's it !
    of course, without the function, the key figures are good, but i get every darn date, but that is not what i want. i want to sum up the amounts for each of the months.
    when responding, please be mindful that there is no universe here, as it is via BICS.
    thanks
    g

    hi sven
    it is a date field, in fact it is a time dimension. so no problems there, but i tried this to test
    =ToDate([Flight date];"dd/mm/yyyy")
    this function works but does not help my scenario as i already have the full date and it did not group at all, but the interesting thing here, is that i lost my measure to #UNAVAILABLE.
    i thought i would try
    =ToDate([Flight date];"mm/yyyy")
    which gave #ERROR in the field and still  #UNAVAILABLE in the measure. i guess you must have the "d" in there somewhere.
    i then tried to proove the [Flight date] is recognized as a date by doing
    =IsDate([Flight date])
    the records came back with 1, which proves they are recognized as a date. so i cannot use subst as it requires a string. but this is going down the wrong path anyway.
    then i tried
    =FormatDate([Flight date];"mmm/yyyy")
    which does this Apr/2011 for example, goes near and will do what I want to achive, but yet again the measure is #UNAVAILABLE again.
    it seems that it just does not work.
    i am this close of logging an SAP support error
    I can get my grouping to work if I create a Month field in the source, and outside WebI, but i don't really want to do that. I want the variable webi dimension to work as it should, or i believe it should

  • Broadcasting Bex Report via email

    Hi
    I just want to know how can we broadcast Bex report from EP Portal to Email. 
    When I execute a Bex report, upon rt click I get to see Broadcast and Export Option.
    Can anybody explains me in detail how can we broadcast a Bex Query via email.
    Please explain me in detail how we make setting at Portal End, in BI.
    Is standard templates say 0analy.. is something to do with all these. like if I want to add a new feature in the Broadcast and Export setting say Export to Excel 2000.
    Regards,
    Yaseen
    Edited by: Yaseen Ahmed on Aug 18, 2009 9:03 PM

    Hi....
    You can use ABAP program RSRD_BORADCAST_STARTER with the variant value set to Broadcaster Technical Name.
    for more info : [Bex Broadcast creation user - best or common practice;
    Regards,
    Chintan

  • How to remove Decimals in Quantity Objects in SAP BO Explorer View created on top SAP Bex Query?

    Hi,
    I created SAP BO Explorer report on top of SAP BEx Query.
    In SAP BEx Query, Decimals were hided but when i created OLAP Universe on top that SAP BEx Query and Created Index on top of Information Space in SAP BO Explorer and then created Exploration Views. But i'm getting Decimals in my Exploration Views where as SAP BEx Query in RSRT, no decimals were appearing.
    Can anyone suggest me how to remove decimals in SAP BO Exploration Views.

    Hi Ramana,
    I am not use how you connect to SAP BEx query (Via universe or BWA or HANA)
    What I could say is BWA and HANA, you cannot adjust this
    For universe, you could try in universe layer, there is note about this
    For BWA and HANA, this function might be enhanced but you 'd better raise OSS to SAP to check with them
    Best regards
    Alex yang

Maybe you are looking for