BW query in a BSP application

Hi,
i want to integrate a BW query in a BSP application. In a first step i want to show the results of the BW query as a table or diagram in the bps app.
as next step it should be possible to transfer parameters to the bw, to change the results of the query.
there are which possibilities to call bw queries from bsp?
thanks in advance.

Hi Eddy,
i try the possibility from the blogs:
/people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-i
/people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-ii
I must say, i am a newbie in BW also ABAP.
The following Code is implement in my BSP Controller-Class in the Do_Handle_Event.
I get the results of the query. Also tho conversion in <outtab> folds.
CALL FUNCTION 'Y_EXECUTE_QUERY' DESTINATION '********'
    EXPORTING
      query_name            = 'TQU_ODS99'
    IMPORTING
      xml_out               = xml_out
    TABLES
*    query_variables       = var
      return                = breturn
      meta                  = meta
    EXCEPTIONS
      bad_value_combination = 1
      user_not_authorized   = 2
      unknown_error         = 3
      query_not_found       = 4
      OTHERS                = 5.
       CALL METHOD cl_alv_table_create=>create_dynamic_table
          EXPORTING
            it_fieldcatalog = it_fieldcat
          IMPORTING
            ep_table        = model->i_tab.
        ASSIGN model->i_tab->* TO <outtab>.
      ENDIF .
      TRY .
          CALL TRANSFORMATION (`Z_RFC_XSLT`)
          SOURCE XML  xml_out
          RESULT     outtab = <outtab>.
        CATCH cx_xslt_exception INTO xslt_error.
          xslt_message = xslt_error->get_text( ).
      ENDTRY.
But how can i display the table in the bsp? i_tab is defined in my Model-Class as:
I_TAB     Static Attribute     Public     Type Ref To     DATA     
The code in my htm:
        <htmlb:tableView id    = "tab01"
                         table = "<%= model->i_tab %>" />
throws exceptions.
Have anyone an idee?

Similar Messages

  • How can I execute a query from a BSP application?

    How can I execute a query from a BSP application?
    I´m trying to execute a Query from intranet. I´ve been looking for examples, but the templates I´ve found doesn´t help me.
    does anybody has an example?
    Thanks.

    Hi
    Have you designed the BSP application ?
    design it first with one page
    page will have layout and Event handlers
    Design the layout with the fields
    in the event handler there are events
    in the event On Initiailization or ON inputprocessing write the select query similar to what we write in routine ABAp and fetch the data into ITAB and that has to be passed to the Layout
    see the doc
    BSP
    To learn how to create Web applications with Business Server Pages, you can work through the simple tutorials that build on each other. You should be able to run through all of the steps described here in your own system.
    If you want to develop Web applications with BSPs, your system must meet the following requirements: Prerequisites for Creating Web Applications.
    The following tutorials are available:
    · First Tutorial: First Steps with Business Server Pages…
    · Second tutorial: A Small BSP Application and A Small BSP Application with HTMLB
    · Third tutorial: Our First Online Bookshop
    · Fourth tutorial: Further Developing the Bookshop
    · A small Tutorial is also available for your first steps with the Model View Controller design pattern.
    · For a more complex MVC tutorial based on the third tutorial, see: Our Little Online Bookshop Using MVC and HTMLB
    When creating BSP applications, note the browser dependencies described in Note 598860.
    steps:
    1) start the transaction RZ10.
    2) now u u have to select Profile name, so select the INSTANCE Profile from the list of options given with the Profile parameter list.U may find multiple instance profile in the list, so select the profile in which ur server name is given.
    3) u will also find three options in the same window.
    Administrator data, Basic Maintenance, and Extended Maintenance. So select the last one from that.
    4) Now click on change button.
    5) here u will find parameter icm/host_name_full, so now set it as FQDN.
    6) Now copy ur settings with new version number.
    7) Activate that version.
    8) And now please restart ur WAS.
    So this will set ur FQDN, and also don't forget to login using Admin User.
    Now u also check for following service are active in your ICF setting or not,( just start transaction code SICF)
    /default_host/sap/bc/bsp/sap
    /default_host/sap/bc/bsp/sap/system
    /default_host/sap/bc/bsp/sap/public/bc
    /def ault_host/sap/public/bc
    /default_host/sap/public/bc/ur
    /default_host/sap/public/bsp/sap/public
    /default_host/sap/public/bsp/sap/public/bc
    /defaul t_host/sap/public/bsp/sap/system
    /default_host/sap/public/bsp/sap/htmlb
    if not then activate all.
    check this link
    Read this weblog...
    /people/brian.mckellar/blog/2003/09/25/bsp-in-depth-fully-qualified-domain-names
    http://www.thespot4sap.com/articles/SAP_WAS_Creating_BSP_Apps.asp
    it consists of screen shots also
    Check it.
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e9/bb153aab4a0c0ee10000000a114084/frameset.htm
    Regards
    Anji

  • Calling web query from BSP application: Session handling

    I would like to call a BI 7.0 web query from a BSP application.
    Therefore, I generate a link like http://<server>:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=CR_M_0001_SALESFORECAST_0&VARIABLE_SCREEN=X
    Now, I have the problem that I have to log in again.
    The BSP application is embedded in the portal. SingleSignOn works for the BSP application, but not for the following link to the query.
    Anybody know how to execute the query w/o login again?

    i guess this is more related to ITS.
    which ITS are you using?
    integrated or standalone.
    i checked in both (using standard webgui service) i dont see any problem using /n or /<transaction>
    Regards
    Raja

  • Query in BSP Application

    Hi experts..
    i am new to BSP Application. Please any body guide me to terminate BPS page generation conditionally.
    Thanks in advance..

    The BSP pages need to be termintated by the portal. Try to post this question in EP forum. You might be able to get an answer.

  • How to pass date parameter from one page to other in BSP application

    Hello gurus,
    In my BSP application i have taken an input field and made its type "date" and its value also of type date and have set showhelp .
    Now once a particular date is given as an input i want to pass its value to next page. And in next page i have to fire a query based on the date entered in previous page...
    Now my prb is that my date value is not getting passed to the next page.
    I have used
    navigation->set_parameter( name = 'BEGDA' value = BEGDA ).
    to pass date parameter.....still parameter is not getting passed.
    plz help me with this.....
    thankx.....

    Hi Eddy,
    By truncation i mean the entire date becomes 10 char including the ' . ' eg(06.12.2006).
    so with begda being 8chars it takes my date as 06.12.200
    as a result my query is not getting executed.
    now i have tried to use a FM  'CONVERT_DATE_TO_INTERN_FORMAT'.
    in my 1st page but still in 2nd page its giving me following error.
    <b>The data that was read could not be written to the specified target field during a SELECT access. Either the conversion is not supported for the type of the target field, or the target field is too short to accept the value, or the data is not in the appropriateformat for the target field.
    </b>
    Regards
    Swati

  • Getting value from portal or bsp application to selection screen parameter

    Daer SDNer's.
                           Is there any possibility of getting value from bsp application and that value to be passed to selection paramater of bw query varaiable.
    concept as follows.
                                    report is based on vendor related information. particular vendor having user id in bsp or portal for accessing reports. if he selects bw query in portal or bsp dash board. that same vendor name or id shoukd be pass to default vendor selection entry in bi... so only that particular vendor details should display.....
    Harikrishna

    Dear Arun,
                      thanks for the reply. can i dynamically get the values to selection parmaters from bsp or else i need to mantain those user ids(vendor name) in bw. could you explain on it. if possible provide some sample code on it.
    Thanks
    Harikrishna N

  • How to generate the output of a BSP application in PDF format?

    Hi,
    I need to modify one BSP application, which generates its output in the form of PDF. I have checked all the methods in the bsp pages and its corresponding controller class's. I couldn't find any relevant method, which deals with generating the output in PDF.
    Could you please share your valuable thoughts on this?
    Again it would be helpful, If anyone of you share some knowledge on Interactive Adobe Forms.
    Thanks,
    John

    >
    I am using oracle version 11.2.0.1, I have set a cronjob which will run on every 15 minutes and give us a log file mentioning the execution time taken for that SQL query:-
    The above query will return the output as well as the time taken for execution of the query. I want to suppress the output of the query and only want the time taken to be printed. Is it possible by set commands. I have marked the output as bold and made it Italic.
    >
    How would that even be useful?
    A query from a tool such as sql*plus is STILL going to send the output to the client and the client. You can keep sql*plus from actually displaying the data by setting autotrace to trace only.
    But that TIME TAKEN is still going to include the network time it takes to send ALL rows that the query returns across the network.
    That time is NOT the same as the actual execution time of the query. So unless you are trying to determine how long it takes to send the data over the network your 'timing' method is rather flawed.
    Why don't you tell us WHAT PROBLEM you are trying to solve so we can help you solve it?

  • A BSP application involving multiple table

    Hi.. I am in learning process of BSP .
    I have a requirement as below . I am getting confused as to which part of coding I write in layout and in even handler.
    Each time the loop runs I need to get the corresponding itab-feild records which are there in  *itab_final * 
    This is the sample code in abap editor.
    Loop at itab .
    Loop at  itab1.
             Read itab2 with key feild1 = itab1-field1.
                If sy-ubrc <> 0.
           move  table1-field1 to itab_final.
           append itab_final.
                endif.
    Endloop.
    Write : Records for tab1-fld.
             Loop at itab_final.
                  write : / itab_final-field1.
             Endloop.
    Endloop.
    Can plz some one suggest me how do i go about this requirement to implement in a BSP application.

    Hi Sravan,
    Till now I worked on small BSP application where in there is a single select query using which all record go in to a single internal table(which is genrally  written in event handler)  which can be displayed writing code in layout tab.
    Now my requirement is that I have a internal table itab  and for every single record of itab I have few records which are appended to itab2. I need to display  the records in itab2 for each loop pass of itab.

  • Call ITS from BSP Application

    i have created a ITS screen which in turn calls a Abap report
    I want to call this ITS screen from a BSP application .
    Could you please provide some sample code which is used to call ITS from BSP application..
    Useful answers will be rewarded
    Thanks

    Since it is related to both ITS and BSP i thought i can post it in both. and also i didnt get answers for the queries..... for a long time. Anyhow i will take your suggestion for my future query.
    i hv done using iframe to call my ITS application.
    I can able to call the Bsp application whichin turn calls its screen abap program.
    while executing ,  the selecting the directory from the file browse pop up doesnt work for downloading the file
    becos the client , they will not change the settings related to applet in the internet browser for security reasons.
    I hav to make it some how to make it work in the portal which calls this BSP application..
    at the moment i mapped this BSP application to the user role in the SUS Portal . but it appears in the SUS portal . but i m not able to click the application and also handsymbol is not seen while bringing the mouse to that area.
    Could you please tell me , how to use Action_id for that particular application, Authorisation profile settings.
    Kindly  give your suggestions asap.

  • What is the Standard Procedure to Modify  SAP Delivered BSP Application ?

    Dear Experts what is the standard procedure to modify SAP delivered standard BSP application.
    i need to enhance the cFolder application delivered by SAP, adding new fields to Notification Template. The task essentially boils down to add new field in database table and changing few HTML page content.
    Greetings
    John

    Hi Vivek,
    thanks for the answer. My requirement is to enhance few of  the BSP Views with custom fields, i have figured out the ABAP table that stores the value of input fields displyed. what i am NOT understanding is when i make ZCopy of the views using BSP_CUSTOMIZE & change its UI to include my custom fields..how will the Standard BSP application PICK my zChanged views??
    is there someway i can say to standard SAP BSP to  PICK these Modified Z View ???
    hope i made query clear ??
    Greetings
    John

  • BSP Application connection to SQL Express DB to execute SQL Queries

    Hi There everyone,
    I am not sure if I am posting this discussion in the correct section, but please try and help me out.
    I have been tasked to write a BSP Application in the ABAP Workbench.  The purpose of this application is to enable our Weighbridge operators to execute pre-defined SQL Queries by selecting certain criteria from the Application.  The application is based on an HTML frontend which includes the Web Form (Input Fields, Submit buttons).  We have 6 Weighbridges, each has its own HTML page in this application.
    What I need to achieve is the following;
    I need to know how I must setup the connection between the BSP Application and the SQL Express DB.  Each Weighbridge has its own dedicated SQL Express instance + DB.  These SQL Instances are not on the same host as where the BSP Application is located, I think the correct term is "External SQL Instances".  Everything is on the same domain though.
    What code would I need to add to the "OnInitialize" section in the BSP Application, to be able to establish the connection to the SQL Express database using Windows Authentication?
    And what code would I need to attach to my submit buttons in the "OnInputProcessing" in the BSP Application, to execute a SQL Query to that DB and display the results in .CSV format back to the user?
    I have attached 2 screenshots of what the BSP Application interface looks like.  (This is what the user sees)
    I am very new to creating BSP's, and I have never had to link to SQL from HTML / PHP before, so I basically have no knowledge of this.
    Any help will be greatly appreciated.

    Sorry for the late reply.
    Yes, database is always available and online, not involved in Log Shipping or other things.
    At the time of the connection failure I can find the following in the log of the application:
    ProcessID:2452 ,ThreadID:4768 : NI-I - 24/08/2012-15:12:20 - \PCV/src/ni/src/pcvnireceive.cpp - 4741 - Thread 4768 - Receive Thread Started for Remote Node 043SBTMS10DRSP: In Thread index 1:
    ProcessID:2452 ,ThreadID:4768 : NI-I - 24/08/2012-15:12:40 - \PCV/src/ni/src/pcvnireceive.cpp - 4968 - Thread 4768 - Receive Thread Ended for Remote Node 043SBTMS10DRSP: In Thread index 1:
    ProcessID:2452 ,ThreadID:4768 : NI-I - 24/08/2012-15:12:40 - \PCV/src/ni/src/pcvnireceive.cpp - 115 - Thread 4768 - Merge Memory Usage: KB Allocated = 2186, KB in use = 889
    ProcessID:2452 ,ThreadID:1408 : NiJ - E - 25/08/2012-19:35:29 - \PCV/src/ni/src/pcvnijournal.cpp - 2842 - PcvNiJournal::isRetrievePending() - DB Exception.Error: TCP Provider: The specified network name is no longer available.
    Communication link failureQuery timeout expired - State:08S01,Native:64,Origin:[Microsoft][SQL Server Native Client 10.0] State:08S01,Native:64,Origin:Microsoft][SQL Server Native Client 10.0]
    State:S1T00,Native:0,Origin:[Microsoft][SQL Server Native Client 10.0]

  • AL11 DIR excess Issue via BSP application link.

    Hi Folks,
    I am struggling with a ERROR while Accessing path of AL11 via BSP program.
    BASIS POV :
    Created a DIR and configure for Instance type ALL.
    The User who is accessing have full access for AL11 with Auth_Obj. S_DATASET (full access)
    RFC user has full access in S_RFC and S_RFCACL.
    Full access (777) given to the Dir created in AL11.
    PROBLEM :
    Abaper done coding and tested in DEV system program and codding working fine. while accessing via BSP application it should create a file in AL11 created path. and it's working in Development server.
    when they change the path of AL11 in the program as per production server and transported to Production and working with the BSP application it's throughing ERROR.
    Please find attachment of bmp file for the ERROR.
    NOTE : when application connect via Instance 00, everything working fine, but when application connect via Instance 01 we are getting this ERROR.
    QUERY : is there any workaround, can we redirect this to only instance 00 by any hard coding/ or by calling any Background JOB or any.
    Regards,
    Sandeep Meher

    You are welcome. I'm glad you got it back up.
    (1) You say you did the symbolic link. I will assume this is set correctly; it's very important that it is.
    (2) I don't know what you mean by "Been feeding the [email protected] for several weeks now, 700 emails each day at least." After the initial training period, SpamAssassin doesn't learn from mail it has already processed correctly. At this point, you only need to teach SpamAssassin when it is wrong. [email protected] should only be getting spam that is being passed as clean. Likewise, [email protected] should only be getting legitimate mail that is being flagged as junk. You are redirecting mail to both [email protected] and [email protected] ... right? SpamAssassin needs both.
    (3) Next, as I said before, you need to implement those "Frontline spam defense for Mac OS X Server." Once you have that done and issue "postfix reload" you can look at your SMTP log in Server Admin and watch as Postfix blocks one piece of junk mail after another. It's kind of cool.
    (4) Add some SARE rules:
    Visit http://www.rulesemporium.com/rules.htm and download the following rules:
    70sareadult.cf
    70saregenlsubj0.cf
    70sareheader0.cf
    70sarehtml0.cf
    70sareobfu0.cf
    70sareoem.cf
    70sarespoof.cf
    70sarestocks.cf
    70sareunsub.cf
    72sare_redirectpost
    Visit http://www.rulesemporium.com/other-rules.htm and download the following rules:
    backhair.cf
    bogus-virus-warnings.cf
    chickenpox.cf
    weeds.cf
    Copy these rules to /etc/mail/spamassassin/
    Then stop and restart mail services.
    There are other things you can do, and you'll find differing opinions about such things. In general, I think implementing the "Frontline spam defense for Mac OS X Server" and adding the SARE rules will help a lot. Good luck!

  • Tableview + search help  + bsp application

    hi experts,
    i am creating a BSP application, where i am displaying data from a database table.
    i want to add search help...to sales order numer..so that...i can fetch the data cporresponding to that sales order....
    please help me with this query
    thanx in advance
    regards
    kanika

    Hi,
    Add following line into your program:
    PARAMETER p_prog LIKE trdir-name MATCHCODE OBJECT zsh
    Regards
    Sowmya

  • Frameset in BSP Application

    Hi All
    I have to create a BSP application using frames sets.
    1. Default page to show the left and right pages.
    2. Left.htm
    3. Right.htm
    The left.htm should hold links and buttons. So when the user clicks on the any of links or buttons in the left.htm, correspoding page should come in the right.htm page with the data selected in the left page. i.e the data selected in left page should be transfered and queried in right page and display the details according to it.

    Hi,
    Please find the sample code below.
    STARTPAGE:-
    <html>
    <frameset rows="20%,80%"> <- HERE U CAN DECIDE THE PAGE ROWS
    <frame name="top" src="welcome.htm">
    <frameset cols="30%,70%"> <- HERE U CAN DECIDE THE PAGE COLS
    <frame name="left" src="left.htm">
    <frame name="right" src="right.htm">
    </frameset>
    </frameset>
    <body>
    <h1>hai</h1>
    </body>
        </html>
    LEFT PAGE:-
    <html>
    <body back ground="back ground-colors-blue.gif">
    <fra me set cols="25%,*">
    <h3>SAMPLE PAGE</h3>
    </frame set>
    </body>
    </html>
    HEADER PAGE:-
    <html>
    <body back ground="orange back ground.gif">
    <font color="#800000">
    <h1><center><b>WELCOME TO YASH TRAINEE PORTAL</b></h1>
    </font>
    <FONT SIZE="3" FACE="courier" COLOR=blue>
    <MAR QUEE WIDTH=100% BEHAVIOR=ALTERNATE BGColor=yellow>
    This site is Under Construction...</MAR QUEE>
    </FONT>
    </body>
    </html>
    in the above code please check the space i have made a change here....i could not paste the code as it is..
    Hope that will be helpful.let me know if you need any more help on this...
    Thanks
    Kalyan

  • Language conversion in BSP application

    In SRM system I am converting a standard BSP application to custom BSP application.
    So i copy the standard BSP application to new application in "Z" namming-space.
    My query is - the standard BSP application is in 'DE' language, how to convert to "EN" language.
    Please help

    If standard program using the OTR/text-elements, you can translate from one language to another.
    Search this forum how to translate the ORTs.
    If standard program is NOT using the OTR/text-elements, then replace the normal text ot OTR or text element and translate.
    Raja

Maybe you are looking for

  • Report availability status (Group) in Em12c

    help me please query for availability status (group) in EM12c, i want show availability status all instance in one group, example i have dba group and my instance is : rodex, downhill, rundown Instance_name      |    Avaibility Status (%) rodex      

  • HT201343 Airplay troubles with 2nd Gen. appleTV

    I just bought a new macbook pro with mountain lion and I am having trouble using airplay with my apple tv.  The airplay icon shows up on my computer screen, and I can play music and videos from itunes, but the apple tv will not display what is on my

  • Safari closes on iPad seems to be randomly

    When browsing with my iPad version one, occasionally safari will close.  I do not think it is responding to something like a new tab or pop up. Running ios5. 

  • AfterFX.exe Entry Point Not Found

    I just downloaded Adobe After Effects and when I opened it it displayed 'AfterFX.exe Entry Point Not Found The procedure entry point PF_GetSampleQualityPixelSupport could not be located in the dynamic link library C:\Program Files\Adobe\Adobe After E

  • How to stop Firefox for Androids crashing on my Kindle Fire.

    Installed OK but when I open, opening page appears, lasts ~5 seconds, then disappears. How can I stop this?