Bex query in WebDynpro

Hi All,
Is it possible to call Bex query from WebDynpro?

please refer this thread
Re: Access BW data (query) iinto WebDynpro

Similar Messages

  • BI Java SDK: Bex query in Webdynpro java

    Hi,
    I want to know is it possible to view a Bex query output
    in a webdynpro java application. There is a Bex query defined i just want to get the report of this query or atleast the output of this query. Also how will be the output structure? i am not familier to BI plz help. I did go though BI SDK documentation but did not help
    Vinay

    Hi Vinay,
    The BEx query output in webdynpro is with help connectors. the connector SAP query which you were speaking about is one of the four options. I hope this is the link what u were refering to link:[http://help.sap.com/saphelp_nw04/helpdata/en/6e/011e681cf74ab4b3acf73f77653405/frameset.htm]
    SAP Query is a component of SAP's Web Application Server that allows you to create custom reports without any ABAP programming knowledge. The BI SAP Query Connector uses SAP Query to allow applications created with the BI Java SDK to access data from these SAP operational applications.SAP Query offers users a broad range of ways to define reports and create different types of reports such as basic lists, statistics, and ranked lists.
    It would be a better option if  with JDBC connector because that worked for me in extarcting data from a different source system.BI JDBC Connector is aslo used to make these data sources available in BW, via BW's UD Connect.
    For the WD code i need to check.
    Please tell me if its helpful.
    Regards,
    Shaila.

  • 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?

  • Calling a BW Bex Query in Web Dynpro ABAP

    Hi Team,
    I'm trying to call a BW Bex query in my web dynpro screen. The Web Dynpro is written in our ERP (ECC 6.0) system. I have specific parameters and values in my web dynpro context which I want to pass to a BW query and then display the actual query in my web dynpro. I found an element BIApplicationFrame but don't know if that is the correct way to display the query. Some questions:
    1) How do I pass the username/password for the BW system in the Web Dynpro written in ERP?
    2) How do I pass the parameters to the query
    3) How is the security and roles managed. The web dynpro is enables as an iView in the SAP Portal.
    Thanks much for your guidance.
    Regards
    Sanjay

    Petr:
    I managed to pass the selection variables to the query through BIApplicationFrame. This is how I did it.
    1) Added the BIApplicationFrame UI element to the View of the Webdynpro application and named it ZBIQUERY with the following properties relevant to my system.
    - dataProviderStateName property is set to my query name which is 'ZPUR_M02_Q08'
    - dataProviderStateType is set to 'Query'.
    - server is set to 'housapdbw.noble.cc:8000'
    - templateId is set to 'ZPUR_M02_W02'
    - variableScreen is Unchecked.
    2) Added two attributes to the view under the attributes tab. They are
    M_APPL_FRAME RefTo CL_WD_BIAPPLICATION_FRAME
    M_METHOD_HANDLER RefTo IF_WD_BI_APPLFRAME_METHOD_HNDL
    3) Then add the following code in the method WDDOMODIFYVIEW.
    data:
    lt_parameters type if_wd_bi_applframe_method_hndl=>tt_name_value,
    ls_parameters type if_wd_bi_applframe_method_hndl=>t_name_value.
    define add_parameter.
    clear ls_parameters.
    ls_parameters-name = &1.
    ls_parameters-value = &2.
    append ls_parameters to lt_parameters.
    end-of-definition.
    if first_time = abap_true.
    wd_this->m_appl_frame ?= view->get_element( 'ZBIQUERY' ).
    wd_this->m_method_handler ?= wd_this->m_appl_frame->_method_handler.
    endif.
    Please note that the selection screen on my query has Select-options and its name is
    XREF_NUM0001. I am passing a value of '11111' to it as shown below.
    refresh lt_parameters.
    add_parameter 'CMD' 'PROCESS_VARIABLES'. " This is for Execute button
    add_parameter 'SUBCMD' 'VAR_SUBMIT'. " This one also for Execute Button
    add_parameter 'VAR_NAME_1' 'XREF_NUM0001'. " Name of my select-option
    add_parameter 'VAR_OPERATOR_1' 'EQ'.
    add_parameter 'VAR_SIGN_1' 'I'.
    add_parameter 'VAR_VALUE_LOW_EXT_1' '11111'. " Value for my select-option
    wd_this->m_method_handler->execute_command( lt_parameters ).
    endif.
    The above code needs to be added before the view is called in th is method.
    Hope this helps.
    Krishna Muppavarapu

  • BI SDK BEx Query Member Visibility

    Hi,
    We are executing queries which were defined in BEx in a Java application using the BI JSDK.
    Now, we have some row members that have been hidden in the BEx Query. However, on the BI SDK query this has no effect.
    Do you know how to find out that a member in a dimension is hidden in the original query?
    Is this information transfered at all?
    Thanks for any advice.
    Regards Kilian

    Hi Vinay,
    The BEx query output in webdynpro is with help connectors. the connector SAP query which you were speaking about is one of the four options. I hope this is the link what u were refering to link:[http://help.sap.com/saphelp_nw04/helpdata/en/6e/011e681cf74ab4b3acf73f77653405/frameset.htm]
    SAP Query is a component of SAP's Web Application Server that allows you to create custom reports without any ABAP programming knowledge. The BI SAP Query Connector uses SAP Query to allow applications created with the BI Java SDK to access data from these SAP operational applications.SAP Query offers users a broad range of ways to define reports and create different types of reports such as basic lists, statistics, and ranked lists.
    It would be a better option if  with JDBC connector because that worked for me in extarcting data from a different source system.BI JDBC Connector is aslo used to make these data sources available in BW, via BW's UD Connect.
    For the WD code i need to check.
    Please tell me if its helpful.
    Regards,
    Shaila.

  • Debugging Bex query

    Hi All,
    I have a scenario where an Bex query is called in an webdynpro application using a standard method. I would like to debug the generated program of this query (got it from RSRT) to understand the variables passed.
    But I am having difficulty in understanding this standard code. Can anyone help me in finding out the exact place where I have to set the breakpoing to see the input variables passed to this query.
    Thanks
    Jeevitha

    Hi,
    Have you tried to execute report in RSRT with Execute + Debug >> in Debug option select Variables and execute.
    It will open ABAPdebuggerm then press F6 and will take you to various Methods like VARIBLE_START, SET, PROCESS VARIABLES.. etc.
    At last it will take to method CONSTRUCTOR and then an event START-OF SELECTION. Their you have a start of Create object .
    I guess here you can set a breakpoint.
    Or try by setting breakpoint on statement "CALL SCREEN 200" in START-OF-SELECTION. After this statement is will take you to input screen.
    Thanks,
    Jitender.

  • IF and ABS condition statement in BEX query designer

    Hi,
    I would like to ask the best way for me to produce an acceptable result from Excel IF and ABS Condition statement.
    The condition statement that I have on my Excel file is
    =IF((A2-B2)>0,ABS(A2-B2),0)
    I'm trying multiple times to reproduce this in BEX Query designer, unfortunately I'm getting a bad result or unacceptable formula.
    Anyone who could help me with my issue?
    Thanks,
    Arnold

    Hi Arnold,
    Thank you,
    Nanda

  • Error while trying to Open and Delete a BEx Query in Query Designer.

    Hi Experts,
    I have been facing this issue with BEx Query in Designer mode for a couple of days now in Development Environment in BI 7.0.
    I would like to Delete an unwanted BEx Query because I need to give it's name to another BEx Query.
    Whenever I try to Open this Query in BEx Query Designer to Delete, it gives out an error saying:
    "An error occurred while communicating with the BI server.
    As a result of this error, the system has been
    disconnected from the BI server.
    Detailed Description:
    STOP: Program error is class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    STOP: System eror in program CL_RSR and form GET_CHANMID-01 - (see long text)"
    Details text is as below:
    Diagnosis
    This internal error is an intended termination resulting from a program state that is not permitted.
    Procedure
    Analyze the situation and inform SAP.
    If the termination occurred when you executed a query or Web template, or during interaction in the planning modeler, and if you can reproduce this termination, record a trace (transaction RSTT).
    For more information about recording a trace, see the documentation for the trace tool environment as well as SAP Note 899572.
    I have tried with SAP Note 899572, but still it's the same.
    Has anyone faced similar issue? Could you please let me know if you have better ideas or solution?
    Your time is much appreciated.
    Thanks,
    Chandu

    Arun - Thanks a million. You saved me Nine. It worked.
    Could you also please tell me how to rename (Technical) a Query or is it still "Save the Query As" the only way...?
    Points already assigned.
    Thanks,
    Chandu

  • How can we remove the commas from the Formula value in SAP BW BEx query

    Hi All,
    How can we remove the commas from the Formula value in SAP BW BEx query
    We are using the formula replacing with characteristic.The characteristic value needs to be display as number with out commas.
    Regards
    Venkat.

    Do you want to remove the commas when you run the query on Bex Web or in RSRT?
    Regards

  • Field Explorer in Crystal Reports does not show the same names as Bex Query

    Hi
    I have crystal reports, I can retrieve data from BW Bex Query. But in the field explorer it does not show the names as in the Bex query designer.
    In the Bex query designer a field will have the following technical name 0Debitor and the description is Customer.
    It shows in crystal reports in the field explorer twice as D[0DEBITOR]D and D[0DEBITOR]D. It also does not seperate key figures and characteristics.
    I would like it to display the field explorer as shown in this blog.
    /people/ingo.hilgefort/blog/2008/02/19/businessobjects-and-sap-part-2
    Thanks in advance

    Hi,
    take a look here:
    /people/ingo.hilgefort/blog/2008/02/19/businessobjects-and-sap-part-2
    make sure you are using the MDX Driver and what happens is that you will see several fields per characteristic. example: one for the key, one for the description, several if modelled for the display attributes
    Ingo

  • Two problmes between  Crystal Reports 2008 and Bex Query

    Hi Gurus.
    I have two problems with Crystal Reports 2008 when It obtains data from a Bex Query (SAP MDX query connection).
    1)     I have defined some Parameters Fields using the follow options:
    Type: String
    List of Values: Dynamic
    Value Options Level1:
                         Show on (Viewer) Panel :Editable
                          Prompt text: <text>
                          Sort Order: Ascending by value
                          Prompt With description Only : False
                          Optional Prompt: True
                          Allow multiple values: True
                          Allow discrete values: True
                          Allow range values: False
    When I execute the report with the client of Crystal Reports 2008 (the developer tool), in the initial screen shows a list box where I can select the values from the left box and add it to the left box (as a usually filter). When the number of options (LOV) is more than  the maximum of the system, I have a input box bellow the list box, where I can insert any value (manually) and a button to insert it into the left box. When I publish the Report in the infoview, this filter is modified and the input box where I can introduce manually values is not showed and I can insert only the values showed in the list box, it causes that I can`t select a lot of values that is in the master data of SAP BW, because they arenu2019t listed in the list box.
    There is any option to ability this option in the infoview.
    2)     My Bex query, have a date filter with variable in the restricted key figures, when I execute a Crystal Reports, the infoview (and the Crystal Reports 2008 designer) ask me 2 times the same date, first only the date and second the date and the rest of parameters (introduced in the report of Crystal Reports).
    Why I need insert the date 2 times? How can I modify the Crystal Report for ask me only one time all the parameters?.
    Thanks.

    Hi Abhilash.
    Thank you for your information.
    1) Yes, the parameters are created in the Crystal Reports designer. I have created the parameters in the Crystal Report because I use the same Bex Query to create some Crystal Report, in other case, I will need create some Bex Query.
    2)The Bex query has the date filters and I have created some filters in Crystal Reports designer, the date filter from the Bex query is created automatically in the Crystal Report Designer but I don't use it, I haven't created it anytime. I use my filters only in the record selection. The date filters from the Bex query is showed as Static, and I can`t delete it, if I modify the parameter to dynamic or static with values, at first step ask me again static without values and the second step of the report execution ask me the parameter as I have defined in Crystal Reports Designer, my parameters fields are dynamic. A lot of reports have subreport, but I have created one of them without subreport (to trial) and the Crystal Reports ask me the date filters at first execution, and when I insert the date filters, in the second step, ask me the date filters again and my parameters fields again.
    Thank you again.

  • Status of data in Bex query shows wrong date

    Dear Experts,
    The Bex qurey after sucessful execution, show the Status of data as old date i.e. feb 2012. but we observed that the data uplaod happens regularly and sucessful.
    we tried executing the same query using RSRT/Bex Analyzer/Portal. the results are same i.e. showing incorrect status of data.
    Note: The Bex query is built on BI Infoset which sources from DSOs and Master Data infoobjects, and  BI version is 7.0.
    Kindly please help for resolving the issue.
    Best Regards,
    Mannu.

    Hi Vijay,
    The data upload has happend today also and it is sucessful, the reporing status is available for requests from respective infoproviders.
    'Status of data' is not a filed. if it an information to tell the status of data in query result.
    Please find the following steps to find the 'status of data'
    go to RSRT->give the query name and execute-> now after query results-> go to last page-> you can find the 'status of data'.
    Best Regards,
    Mannu

  • Message in BEx Query Designer Formula

    Hi Experts,
    I need to display message based on the value of the formula result. For Example:
    If K.F1 =<2.5 Then <Message: ODD>
    ElseIF K.F1 >2.5 Then <Message: Even>
    Else
    <Message: Determine the value>
    EndIF
    Thease above messages would be build in the formula column of BEx query designer
    Thanks and really appreciate your response.
    Regards,
    Waseem

    Hello,
    I have done the same funtionality with the help of workbook.
    May be experts can guide us how to display  messages in the formula column of BEx query designer.
    Thanks.
    With regards,
    Anand Kumar

  • Drilldown in BeX Query Designer

    Hello,
    I am new in SAP. I am having problem creating Drill down. I have this report where all the data is Transactional data. So I haven't created any Master Data. So I won't be able to use Navigational Attribute for Drill down purpose and I don't want to use Hierarchy. Is there any possibility of getting the Drill down in BeX Query Designer? Any help will be appreciated.
    Warm Regards,
    Debayan

    Hi Debayan,
    first of all, what is your requirement to create a drill down?
    A drill down in BEx query means showing additional information from report output. There are 3 ways to drill down a query in BEx
    1. Master data-Navigational Attributes
    2. Master data- Hierarchies
    3. Free characteristics
    As you dont have any master data in the report (which is very strange) you can use the additional characteristics provided in the 'Free characteristics' to see how the drill down works in BEx.
    Please share your exact requirement.
    Hope this helps.
    -Swati.

  • Division in bex query designer

    Hi experts,
    I have a strange problem in bex query designer. I am trying to calculate margin in % but the calculation gives the wrong result.
    The two figures I try to calculate are -25124 and -91248 (figures in 1000 NOK)
    The result should be (-25124/-91248)100 = 27,53* (when formula entered in excel)
    I have tried the following in Bex query designer
    -25124 %A -91248 = -0,02753%
    (-25124/-91248)*100 = 0,02753
    What might be the problem here?

    Thanks again for your answer,
    I will try to explain my report (requirement from the business user)
    Actual (KF)----
    Budget (KF)       
    Sales-- -91248--
    -77153         
    FSP-- -25124--
    -18918
    Margin  % -
    (FSP Actual/Sales Actual) 100---(FSP Budget/Sales Budget)100
    Dim
    Dim
    Result
    The margin is calculated in the cells in the bex query designer to differentiate between actual and budget. There is no option to calculate the margin in the columns as this would influence all other rows aswell.

Maybe you are looking for

  • HT3819 can I use two or more Apple Tvs on one network?

    I have two Apple TVs on my network, one in a basement cinema and the other in the ground floor TV room - if I use the one in the basement, then stop using it and then later in the day try and use the one in the TV room I get an error message asking m

  • After update iMovie and OS Yosemite recovery, iPhoto icon disappeared. How can I find photos stored on iPhoto?

    I am using iOS Yosemite 10.10.3. After update iMovie version 10.10.08 and OS Yosemite Recovery. iPhoto icon disappeared. I opened the Photos icon but all my images which used to be in iPhoto were not there. How do I access those images in iPhotos?

  • Business Catalyst or Cartweaver with fluid grid

    I'm considering a dreamweaver ecommerce site for my art business.  So far, I'm trying Shopify and love the easy ecommerce software, but HATE the design limitations.  It simply makes me claustrophobic. I've had success mocking up designs with the flui

  • Safari crashes when I open the program

    I cannot open Safari.  I open the program and it instantly crashes. I checked for new software updates, I cleared the cache through the library, I uploaded the latest version of Safari, and that still hasn't worked. Here is my error log...  and help

  • [SOLVED] USB sound card problems and audio setup

    I want to clarify and correctly set up my ThinkPad T61 sound system finally. I'm running Arch64 + KDE. There are two sound cards - the internal HDA Intel and external USB CM118. aplay -l **** List of PLAYBACK Hardware Devices **** card 0: Set [C-Medi