Query regarding Button in a BSP Page

Hi All,
I want to add a button to a BSP Page which on clicking will open a Page Fragment.
Please guide me how to do this.
Thanks in advance.

Hello Arnab,
I assume you are thinking about something like assigment blocks in CRM. fragments of which you switch on or off:
Here's a simple test app how to go there:
- create a page with flow logic as main page:
- on this page place a form with a button triggering an event. e.g toggle_fragment:
<form method="post">
  <input  type="submit" name="onInputProcessing(toggle_fragment)" value="toggle fragment on/off"/>
</form>
- create an attribute for your main page named fragment_status and type it as string. And activate the "Auto" Option.
- create the following sample code in your main page's onInputProcessing event:
case  event_id.
  when 'toggle_fragment'.
    if fragment_status is initial.
      fragment_status = 'ON'.
    else.
      if fragment_status = 'ON'.
        fragment_status = 'OFF'.
      else.
        fragment_status = 'ON'.
      endif.
    endif.
endcase.
runtime->keep_context = 1.
- in your main page's layout code add some code for displaying the page fragment like this:
<%if fragment_status = 'ON'.%>
  <%@include file="fragment1.htm" %>
<%endif.%>
- now create a page fragment containing any content and name it fragment1.htm for this sample.
- test and enjoy switching it on and off
regards

Similar Messages

  • Query regarding displaying of a blank page on the output of an invoice

    hi All,
    I am facing a problem in both my development and staging servers. Whenever a print preview of an invoice is seen, there are 3 pages getting displayed (depending on the data) with one BLANK PAGE between 2 pages having data ie., First page has the data, second page is blank and third page has some data again.
    Now its very strange and i could not understand why this problem  is arising.
    I had debugged the invoice SAPScript, but culd not find the issue,. Can anyone please help me out in this regard.
    Regards
    Priya

    hi!
    hav u assigned the next page for ur first page as wanted.....
    or u r calling two pages explicitly by new-page then check the page assigned and check for spaces in ur program.....

  • Query regarding the scope of a page

    hi all
    i have problem with scopes of the pages.I have a data entry page where i have a button to add address.When i click on address button it will go to another page where i can add the address.After adding it returns to the entry page.The problem is that when it returns all the data entry feilds are cleared.Is there any way to restore the states of the textfields and other componenets.Please help me
    Thanks in advance
    Sree

    Yes there is. Store the values in managed bean properties and, in the prerender method, set the component values to the values from the managed bean properties.
    For more information, see:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/jscintro.html#08
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/scopes.html
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/data_sharing_twopages.html

  • Adding an interactive "Processing" message to BSP pages

    Hi All,
    I would like to add an interactive message when I hit the save button on my BSP page. Since I do a lot of database writing upon hitting "SAVE", I would like to display some sort of "popup" message that would let the users know that the page is currently being processed.
    Thanks for all the help!
    Roman D.

    Hi Roman,
    try using the PHTMLB tag "ProtectDoubleSubmit". If you are not using HTMLB you will have to develop something int JavaScript. There are some posts in this forum about this.
    Regards
    Ariel

  • In portal blank bsp page is displaying

    Hi Experts,
    Iam having an issue in BSP i.e, regarding appraisal template the bsp page is working fine at R/3 side
    but, in portal for one user the data is comming and for other user the blank bsp page is comming
    please can u help me in this
    waiting for u r responses,
    Regards,
    Shilpa.
    Edited by: pasumarthi shilpa on Dec 15, 2008 7:40 AM
    Edited by: pasumarthi shilpa on Dec 16, 2008 5:16 AM

    Hi,
    Check the user Authorization in R/3 and Portal also..
    In portal, Content Administration-->Portal Content -->Your folder(i.e. Role) -->Give a Every one Group Permissions with Read to that folde and check the Enduser check box.
    Thnx
    Suriya

  • How to call a BSP page or webdynpro from a WAD Template button

    Hi All,
    I want to implement a button on a web template which when called involes a BSP page or a web dynpro and displays the BSP page or webdynpro in a popup window.
    Thanks
    Karen

    Hi Karen,
    What you could do is create a bsp application which receives workbook id as url parameter.
    From WAD create a link to this BSP page and pass the wbook id in the url.
    Within the BSP you can then read the excel as binary string like below
    Select * from rsrwbstore into table wb_tab where workbookid = wbid.
    You can then set wb_tab-clustd as the response of the page with mime type to 'application/vnd.ms-excel'. which will open as excel
    Take a look on this weblog,
    /people/durairaj.athavanraja/blog/2006/02/06/read-sap-table-data-from-bw-webtemplate-ajax-in-bw-webtemplate
    Hope it Helps,
    Regards,
    Amit

  • Issue while printing the BSP page haveing radio buttons.

    Hi Experts,
    I have a BSP page which has radio buttons. When i try to print the page using browser print, the radio buttons are not getting printed.
    Could someone help me regarding this.
    Thanks & Regards,
    Karthik MD

    when you use radiobutton in BSP (<htmlb:radioButton) they are rendered as images. so to get it printed , in your browser (IE) go to tools->internet options->advanced->printing and check the check box against "print background colors and images".
    now try printing it should be fine.

  • Call an ABAP Function module on click of Button in BSP page

    Hello ,
    i would like to run a ABAP function module on click of a button in BSP page.
    or in other words i want a Funtion module ex: 'test1' to run after clicking this button ex: 'button1'
    and how to pass the values for a function module after clicking the button.
    i an new to bsp application .
    Can anyone help me on this .

    Hi Shalaxy,
    Triggering a URL to WDJ:
    I suppose the URL of WDJ app. is also a portal URL. I assume that from a BSP application inside portal you need to trigger the WDJ url.
    But the catch is that you cannot hotcode this URL, since it varies for a development, quality and production systems(diff. portal environments).
    To solve this issue, ABAP provides a system variable named sy-sysid, which says want system your ABAP system is, normally a development R/3 system will be associated to development portal system and quality R/3 to quality portal ans so forth.
    So you could have a internal table/db table/ variable for dev, quality or prod portal urls and from the bsp on button click based on the value in the sy-sysid you can trigger the url accordingly.
    Creating a URL in WDJ
    The above is about triggering a WDJ from BSP. But if you dynamically want to create a link in WDJ on a button click, then apparently you could not do that from BSP, since the applications are different. All you could do is to pass some URL parameters to WDJ application from BSP app. Then based on the URL parameters the WDJ application has to dynamically create a link and add it to its application.
    Hope it helps.
    Regards,
    Maheswaran
    Edited by: Maheswaran B on Mar 1, 2010 4:17 PM

  • Appraisals: Buttons dont respond in BSP pages

    Hello:
       We are implementing Objective settings and appraisals without portal, so we are going to use BSP pages, everything works fine but the BSP web pages, they retrieve data from sap (they show values when we call them) but there is no reaction at all when we press any button on this page.
      Internet explorer always show these warnings in the lower part:
       "htmlbSubmit is undefined" and "object expected"
    Any help will be greatly appreciated,
    Best regards

    Hello
    Kindly check and should remove handler 'CL_RSR_WWW_HTTP' from the '/default_host/sap/public/bsp' node in ICF tree.
    There should be no handler on this node. Also refer to note 871461, for more details about the issue.
    This should solve the issue. 
    Thanks and  Kind Regards
    Ramana

  • Calling function modules from a BSP page

    Hi all
    How do we call function modules from a BSP page.
    regards,
    Paul

    Ok, You want to construct the URL pointing to a BW report and want to execute the same when a button is clicked right? if yes here is the answer.
    for constructing the BW query URL
    http://<bwserver>:<port>/sap/bw/BEx?sap-language=ENCMD=LDOC&infocube=<cube anme>&query=<query name>&var_name_1=<variable name1>&var_value_ext_1=<variable value 1>&var_name_2=<variable name2>&var_value_ext_2=<variable value 2>
    (for more info on how to pass parameters to BW query URL refer to the BW web designer reference manual which can be found at http://services.sap.com/bw)
    and for executing this from a button use onclientclick property of htmlb:button along with window.open
    <htmlb:button id ="BWQ"
                  onClientClick = "javascript:window.open("<%= BW_URL %>" );"/>
    Hope this is clear.
    Regards
    Raja

  • How to call a Function Module in a BSP Page?

    Hi there,
    i have no deep knowledge about BSP Programming.
    So what i wanna do is to call a Function Module in a BSP Site..
    I go to SE80... create a new empty BSP Application under that a Page with FlowLogic:
    I see the new empty BSP Page with this Test Button and Hello world in it.
    So my Funtion Module is called Z_Subscribe
    What i have to do that the FM is called when i open the BSP?
    Thanks
    Bjoern
    Edited by: bjoern bayerschmidt on Mar 3, 2009 1:01 PM

    Hi Bjoem,
    Search the forum for tutorials and blogs...
    Regards,
    Anubhav

  • How to call function module in R/3 from an BSP Page

    Hi Experts,
    I am new to ABAP and BSP as well.
    I am creating an BSP page through which I want to call an function module in R/3 which will fetch a file from the application server and place into an internal table.
    I have identified the function module.
    My questions are:
    Since I am going to have an web interface where on a button click the file should be uploaded to the intrernal table.So how do I call the function module.
    Can I use JSP and ABAP together in an BSP page.
    Thanks
    Ankit

    Hello Ankit,
    Please check the following link:
    http://help.sap.com/saphelp_47x200/helpdata/en/bd/ac1e3a0088e042e10000000a11402f/frameset.htm
    I think it will answer all your queries.
    Regards,
    Siddhesh

  • How to enhance CRM 7.0 webclient, say, insert several BSP pages?

    Hi,
    Would you please answer this question?
    Customer required to insert several BSP pages into standard Webclient scenarios of CRM7.0 so that customer specific business check scenarios could be added.
    Best regards,
    Hao

    Hi,
      Could you please elabrote your question.
    If you want to insert BSP pages jsut go to SE80 and see the BSP application name and  enter.
    You will get existing pages. If you want to add new pages just right click and click create button.
    Regards
    Srinu

  • Integrating PL / SQL with a Button on a Web Page ...

    I would be very grateful if someone could help with the following query.
    I have a database with a table called '*Tbl1*', which contains the following columns:-
    1). tbl1_unique_id (number, primary key);
    2). tbl1_title (VARCHAR2, 200);
    3). tbl1_description (VARCHAR2, 2000);
    4). tbl1_notes (VARCHAR2, 500);
    5). tbl1_status (Open, Closed).
    I have also created a page, which displays all of the records where the tbl1_status is equal to 'Open'.
    What I would like to do is add a button to the page, which when pressed, replaces whatever information is in the tbl1_notes column with a default statement.
    I have managed to produce PL / SQL code, which will query the table and update only those rows where tbl1_status is equal to 'Open' when using the 'SQL Commands' window, but I am having trouble integrating it with a button on the web page.
    I think that I need a 'Page Process', but I do not know what type (Data Manipulation, On Demand, PL / SQL, etc) or how to set it up correctly.
    Any help you can provide with regard to the above query will be appreciated.

    Trevor,
    Navigate to the page where you would like to add the process. Add the button if you've not already done so. Then click the "create page process" button under the Page Processing column.
    Select PL/SQL and click Next >.
    Enter a Name and click Next >.
    Paste your code from the SQL Workshop and click Next >.
    Enter success/failure messages if you like and click Next >.
    Select the button you added and click Create Process.
    Regards,
    Dan
    Blog: http://DanielMcGhan.us/
    Work: http://SkillBuilders.com/apex/

  • Passing data from PCUI application to BSP page

    Hi,
    From CRM PCUI application, a BSP page is called for displaying a report. The behaviour of the report has to be different based on a data (field value) in the PCUI application.
    How can I pass the data from PCUI application to the BSP page?
    Thanks & Regards
    G.Raja

    Hi Gregor,
    The weblog was very useful. Thank you.
    In the current scenario, in the PCUI application there is a button, on clicking which a bsp page is displayed. This is implemented via the Navigation (URL generation) in CRMC_BLUEPRINT table. In the BSP page, on entering the details and clicking on a button, different APIs have to be called based on a flag. The flag is set in PCUI application but I couldn't pass the information from there to the BSP page. Can you please let me know how I can achieve this.
    Thanks & Regards
    G.Raja

Maybe you are looking for

  • One connection for Internet and the other for LAN

    Hi: I am trying to setup this: I have a : (Proliant DL380 G5) with Windows 2008 R2 Server . This server has 4 NIC's. In NIC #1  I would like to have all my Internet Traffic. In NIC #2 I would like to have just my LAN Traffic. Is there an easy way to

  • Laptop problem

    Hello, currently i own a toshiba satellite L305-s5911(2 months old) with windows vista. Several days ago after checking my e-mail and then closing the top (which puts in in auto sleep mode as most laptops do). 20min later i open it up again and find

  • Changing Validity Period of Profit Centers.

    Hi Gurus, First, I created a profit center with validity period 01/01/2008 to 12/31/9999. Later, I tried to truncate and activate the profit center with validity period 01/01/2008 to 12/31/2010. However, I get the following error "A profit center sce

  • Color in experted files Beta 4.1

    If I export files to TIFFs or JPEGs and open in PSE 3.0 the images are dull and flat compared with LR and appear as if develop settings have not been applied on export (NEFs). If I convert the same files to DNG and then open in PSE the colors are gre

  • Pixilation on several channels in one location in home

    I'm experiencing intermittent pixilation on several channels at only one location in my home.  I have switch the STB with another in my home and the problem still persist in just this one location regardless of the box.  I am not experiencing pixilat