Regarding popup in bsp

Hi Gurus,
I am not getting gud help from any blogs..so pls dont send me blog links..
My scenario is like am selecting a value from popup screen(f4 help).Am using MVC pattern. Input field is in "find.htm". It will call 'emppop.do' and eventually it calls the view 'emppop.htm' using the method DO_REQUEST.
1) But my popup screen is coming with short dump
2)Dont know how to select a value from popup screen.
find.htm
      <htmlb:inputField id          = "empid"
                        showHelp    = "true"
                        value       = "<%= empid %>"
                        onValueHelp = "javascript:window.open  ('emppop.do', '_blank', 'Emp Details','width=100,height=300');" />
Hope this is correct since I got it from Raja's post.
emppop.do(DO_REQUEST)
  SELECT * FROM Z12_EMP_PER INTO TABLE IT_EMP.
  DATA: POPVIEW TYPE REF TO IF_BSP_PAGE.
  POPVIEW = CREATE_VIEW( VIEW_NAME = 'emppop.htm').
  POPVIEW->set_attribute( name = 'it_emp' value = it_emp ).
  CALL_VIEW( POPVIEW ).
emppop.htm
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
  <htmlb:page title=" " >
    <htmlb:form>
      <htmlb:tableView id    = "pop"
                       table = "<%= it_emp %>" >
      </htmlb:tableView>
    </htmlb:form>
  </htmlb:page>
</htmlb:content>
Pls help me to correct this and also help me to select a value from this popup.
Thanks in advance...

Hi,
Try the following.
Define the DO_INIT method of emppop.do
write following code inside it.
emppop.do(DO_INIT)
SELECT * FROM Z12_EMP_PER INTO TABLE IT_EMP.
emppop.do(DO_REQUEST)
dispatch_input( ).
Define POPVIEW type  IF_BSP_PAGE. as  the attribute of class
POPVIEW = CREATE_VIEW(  VIEW_NAME = 'emppop.htm' ).
POPVIEW->set_attribute( name = 'it_emp' value = it_emp ).
CALL_VIEW(  POPVIEW  ).
emppop.htm
eevn mention form name
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:page title=" " >
<htmlb:form>
<htmlb:tableView id = "pop"
table = "<%= it_emp %>"
selectionMode   = "SINGLESELECT" >
</htmlb:tableView>
</htmlb:form>
</htmlb:page>
</htmlb:content>
And the problem for selecting the value from POPVIEW to find.htm
I can only provide you the logic First you can get the value that is selected in the DO_HANDLE_EVENT.
in the popup.htm page use the opener tag of javascript that gets the value from the popup menu to the parent menu.
Write this code in the emppop.htm
<script language="JavaScript">
window.opener.document.all("<b>empid</b>").value = "Value that you get from the DO_HANDLE_EVENT on click in POPUP view intableview.";
window.close();
The empid that is bold is ID OF your find.htm page inputfield id.
    //-->
</script>
Assign Points for helpful answer.
Thanks & Regards
Aashish Garg

Similar Messages

  • Hierarchy popup in BSP ?

    Hi all,
    I'm looking for a easy way to create a popup of a existing hierarchy which also allows to select a node/item.
    SAP queries in BeX and Web format which use hierarchies offer a popup to select a node/item automatically.
    I would like to offer such a functionality also in a MVC BSP application.
    My questions:
    Is there already a HowTo available which describes a task like this ?
    Is it possible to use the existing hierarchy in a BSP directly (with HTMLB etc.) in a easy way to avoid greater effort  ?
    I'm looking forward to your help
    Best regards
    Pascal

    Hi,
    In BSP, you have a tree component that may fit your needs.
    Yet, I don't think you will find the numerous options that are available in BEx.
    In the past, I had to code radio-button in front of each node with a Javascript mecanism to select children recursively...
    Check this tip from Durairaj : Enhancement of BSP Tree
    Best regards,
    Guillaume

  • Call Function POPUP in BSP

    I have a BSP form, and I have a button that calls a BADI on one screen. This BADI will show a list with some options, the chosen options will return to this form's screen on WEB. Upon a clicking the button, the program pass through the BADI, but it does not show the list.
    Inside R3, when BADI is executed, it shows the list, since it calls a pop-up function named "HRHAP_F4_FOR_DEV_PLANS". I wonder what BSP function would do the same.
    I need some help in order to know how to show this BADI in the form. Do I need some treatment in the BADI to identify what is BSP? Has someone experienced this situation?
    Thanks. And I wait a response.

    What version of SAPConsole do you use?
    Markus

  • Regarding POPUP WINDOW.

    Hi,
    I have a requirement wherein after the user enters the values in the selection screen and executes the report, an output box must appear with the default value 100 which shows the number of records the user wants to view in the ALV display.
    The user might change the value to a value of his choice e.g.200 and then the ALV will display only those number of records which the user wants to view.
    Please help me do carry out this functionality.
    Points will be rewarded for helpful answers.
    Thanks,
    Sandeep.

    The code must be written after the "building" of the internal table to be output is ended.
    Lets call this table t_inttab, and the table to be displayed in ALV will be t_outtab (same structure)
    Before displaying ALV, count the lines of t_inttab, and if > 100 then call one of the many POPUP function to ask "number of record to display out of n" or "display records from;to"
    Then INSERT LINES OF t_inttab FROM idx1 TO idx2 INTO TABLE t_outtab.
    And display ALV on outtab. Put also an option on the ALV toolbar to change the range values and force re-display of grid/list.
    There

  • SSO with BSP Not Working

    Hi
    I am running Nw2004s Portal with ECC5 as BackEnd.
    I have Configured the ECC5 for SSO using RZ10 and strustsso2.
    The Portal UserIDs are same as those in  ECC5 .
    The SSO is working fine with ESS in the Portal.
    But when i run  a BSP iView then it asks for UID,PWD in a PopUp.
    I am accessing the Portal with FQDN and in the properties of the System
    referred by BSP also maintained FQDN of the backend WebAS.
    How to get rid of this Login PopUp for BSP ?
    Any Help will be highly appreciated !
    Regards,
    Rajendra

    Hi Rajendrakumar,
    You probably haven't updated the ACL properly via STRUSTSS02.
    The portal server digitally signs logon tickets as it issues them to the portal users. SAP Systems need to accept the tickets and verify the portal server’s digital signature. The following information is important for the SAP System to be able to accept and verify logon tickets:
    ·        The SAP System should only accept logon tickets issued from their designated portal server. Therefore, the identity of the portal server needs to be entered in the SAP System’s Single Sign-On (SSO) access control list (ACL).
    ·        The SAP System needs to be able to verify the portal server’s digital signature. The portal server has a self-signed certificate, therefore the SAP System needs access to the portal server’s public-key information, which needs to be entered in the SAP System’s certificate list.
    Check the following procedure
    http://help.sap.com/saphelp_nw70/helpdata/en/78/f1a8490e7011d6999500508b6b8a93/frameset.htm
    Regards,
    Siddhesh

  • Can you open a second jsp page as popup/new window?

    Hi all gurus!
    I have a question regarding popups/new windows in an iview application. Instead of starting with a question let me instead describe what I want to do.
    We have a jsp page that presents a search and then the search result in a table where one column is "clickable". When the user clicks a cell a server round trip retreives data specific for that cell value. This is standard functionality and already fixed so here is what differes: we want a new jsp window to open like a popup, with the data retreived from the server round trip and at the same time the first page with the table shall still be there so that you just can close the popup and click the next cell which creates a new server round trip and a new jsp popup and so on.
    My solution which doesn't work yet: In application "a" I have a JavaScript for the clicked cell which opens another iview application "b" in a new window, by window.open("navurl_to_the_iview"), and that works fine.
    At the same time the value of the clicked cell is written to the data bean and the bean is put in the http session (since component session does not reach between applications).
    The second iview "b" retreives the bean from the http session and fills the jsp page with data.
    Here is now the problem: no data is displayed and this because the iview "b" retreives the bean BEFORE iview "a" has been able to put the bean/value into the http session. How do I know this for sure? Simple, if I do a refresh of iview "b" the value is displayed.
    I could do a JavaScript that recursively checks if the value in the bean is null or not but then I have to do a method that retreives the bean from the http session each time.
    This could work but I wonder if this is the most simple solution. So my question for you gents and madams is: do you know of a more simple solution?
    Best regards
    Benny Lange
    Edited by: Benny Lange on Oct 6, 2009 11:33 AM

    Hi you all.
    In this case the solution was to pass the id in the url to the second iview and let that iview use the id to retreive data from the backend system.
    But I still think the question is interesting, if it's possible to open a second jsp window after a server round trip and still have the first one open.
    All the best
    Benny

  • How to send/set parameter from BSP page to iview

    Dear Expert,
    Can advise me how to send or set parameter from BSP page to iview ?
    http://xxx.xxx.com/irj/portal?navigationtarget=roles://pcd:portal_content/FLD.ObjetLibrary/FLD.Iviews/FLD.CRM/ET/bsppage.htm?lv_param=xxx
    I want to view my bsp page in portal but with parameter value.
    I can open my bsp page without parameter value like link below :
    http://xxx.xxx.com/irj/portal?navigationtarget=roles://pcd:portal_content/FLD.ObjetLibrary/FLD.Iviews/FLD.CRM/ET/
    Thnx & Regards,
    Pieter

    Hi,
    your BSP page get's integrated via an iFrame. So, simply speaking, it's not possible to pass an parameter back.
    But what you can try is to use the Portal DataBag component. In the BSP page, store the information you want to pass in the browser. The iView/Portal than has to check if there is a new parameter / value stored.
    SAP Help: http://help.sap.com/saphelp_nw70/helpdata/en/68/322a9261c54e51b7965f86aac3dae2/frameset.htm
    br,
    Tobias

  • Problem in calling BSP application through portal

    Hi All,
    We have EP 2004s and we have integrated a CRM (BSP) application with it .
    CRM application is a custom application which contains two frames . The upper frame of this application is developed using BSP and the lower frame is ICWC .
    We are calling this application (BSP) in portal using a BSP iView . When calling this application using iView it gives an error as some values needs to be initialized , though all the values have been initialized in controller.
    When we are calling the same application using a browser instead of an iView it works perfectly fine .
    Can anybody explain me how does portal treats the BSP application.
    Thanks & Regards,
    Amit Kade

    The BSP is just a URL as far as the portal is concerned. Just make sure the same URL is being generated as if you called the BSP directly.
    Cheers

  • Enhancing standard BSP application by using WebDynpro components

    Hi all,
    We have standard BSP application delivered by SAP; we need to enhance the functionality and some new views to meet our requirement. We have planned to develop new things in WebDynpro ABAP and attach those to BSP.
    Is it good practice to use WebDynpro component instead customizing BSP application?
    If any body has fair knowledge on BSP and WDA, please let me know.
    Regards,
    Rajesh

    hi
    good
    BSP->
    It is a set of pages that represent a user interface (layout and page flow definition). The layout part of a page normally contains ABAP or JavaScript code which is inserted into the HTML structure. They can contain server-side scripting code in either JavaScript or ABAP. BSP applications use all the conventional ABAP technologies, such as Open SQL and internal tables, allowing developers to create Web pages quickly. This enables existing SAP logic, data structures, and interfaces to be directly used in Web applications.
    http://www.thespot4sap.com/Articles/SAP_WAS_BSP_Apps.asp
    WDA->
    Web Dynpro for ABAP or Web Dynpro for ABAP (WD4A, WDA) is the SAP standard UI technology for developing Web applications in the ABAP environment. It consists of a runtime environment and a graphical development environment with special Web Dynpro tools that are integrated in the ABAP Workbench (SE80).
    Web Dynpro offers the following advantages for application developers:
    &#9679;      The use of declarative and graphical tools significantly reduces the implementation effort
    &#9679;      Web Dynpro supports a structured design process
    &#9679;      Strict separation between layout and business data
    &#9679;      Reuse and better maintainability by using components
    &#9679;      The layout and navigation is easily changed using the Web Dynpro tools
    &#9679;      Stateful applications are supported – that is, if the page is changed and the required data remains intact so that you can access it at any time throughout the entire application context.
    Note that stateless applications are not possible.
    &#9679;      Automatic data transport using data binding
    &#9679;      Automatic input check
    &#9679;      Automatic operation of the Web Dynpro application using the keyboard
    &#9679;      User interface accessibility is supported
    &#9679;      Full integration in the reliable ABAP development environment
    http://help.sap.com/saphelp_nw04s/helpdata/en/77/3545415ea6f523e10000000a155106/content.htm
    thanks
    mrutyun^

  • Modal Popup Window Hides Help Popup Window

    Hello Everybody,
    today I stepped upon an issue regarding popup windows.
    I have created an application with popup windows for editing and inserting new records.
    I left the item label templates to "Optional with Help".
    When I now click upon an item label the help - popup window appears but it is hidden behind the popup window I am working in.
    Is there a workaround for that.
    Is there a possibility to modify the z-order either of the help popup or of the modal window ?
    Any advice is appreciated.
    Regards
    Marc

    There are lot of options to customize the behavior of jQuery dialog. You can set height as auto, however you need to specify some fixed width depending on the content.
    $( "#TEST_POPUP" ).dialog({ height: "auto", width:500 });Default for height is auto, so you may not need to specify it.
    See http://docs.jquery.com/UI/Dialog for more info.
    Regards,
    Hari

  • Popup Window (Web Dynpro for ABAP)

    Hi.^^
    Is it possible to locate a popup window where it show?
    This window is not dialog type.
    I have tried to do this sometimes using window->set_window_position( xxx) and window->set_window_position_control( xxx ).
    I think that these method call is available to dialog box type window.
    Is it right?
    Plz. help that.

    Hi Etnaya,
    It is currently not possible to specify the size nor the position of a popup in Web Dynpro ABAP. There has been a revamp regarding popups last year December to make them more user friendly and to offer advanced features, like having popups in the portal that are not trapped inside of an iView on the portal. We are in the process of reimplementing the size/position features - but I am not able to provide an eta on them. Nonetheless, there is some relief: The size of popups is now calculated automatically.
    Best regards,
    Thomas

  • What are the prerequisits to learn BSP

    Hello Experts,
    I need your suggestion regarding working on BSP.
    What are the prerequisits to learn BSP.
    I have a experience on SAP CRM Functional Area.
    Please let me know your suggestion.
    Thanks
    Madhu

    Hi,
    Basic Knowledge of ABAP (BC400 - ABAP Workbench: Foundations and concepts)
    Basic knowledge of HTML and HTPP
    Knowledge of object-oriented programming (preferably ABAP objects)
    And Recommended Knowledge
    Knowledge of transaction programming (preferably BC410)
    Regards

  • Popup for Datagrid

    Hi all,
    I need a help regarding popup for displaying my data grid
    which has too many columns.Right now the whole data is not being
    diplayed because of too many columns. I want to use an expand all
    icon, which when clicked opens a popup containing the datagrid. The
    popup should have all the features of a normal window like
    minimize,maximize and close buttons to the right -top corner .The
    user if he wants can mimimise,maximize or even close the window.It
    should be the same as the window which appears when we click on the
    preview button while posting the message in the forum. For more
    idea you can try checking out on clicking the preview button.
    Thanks,
    amar

    The Flex 2 Developer's Guild has a very good article on
    creating a popup TitleWindow which has the functionality you are
    looking for. The minimize and maximize things can be done as well,
    but will require some extra work.
    Go to the Flex 2 Developer's Guild. Select "Building User
    Interfaces for Flex Applications". The select "Using Layout
    Containers". Then "TitleWindow layout container". The article is
    called "Creating a pop-up window".
    You could also put the datagrid in an HBox container, show
    all the columns, and allow horizontal scrolling for the container.
    You may have to size the HBox with a numeric width, not a
    percentage, otherwise the HBox may stretch to match the dataGrid.
    This option will take you about 5 minutes, versus hours or days in
    making the popup display and function as you described.

  • Popup window disply

    hi sap guru's,
    please help me regarding popup window disply,
    i want to disply popup window with fields and values
    kunnr i.e customer no,
    matnr i.e material no,
    amount,
    and due date
    u plz tell me what functional module i can use for this popup.
    thanks & regards
    prasad

    HI,
    You can simply use call screen scrno starting at..
    I may be wrong with command but this variation is availabe check ABADOCU tcode.sorry i dont have system right now.
    Thanks and Regards,
    Saurabh Chhatre

  • Popup pls

    i saw many threads regarding popup ,
    bit still i am not able to get it.
    so anybody pls post me the coding
    from declaration onwards.

    Hi jean
    lets say you want to generate a popup when user press the save button.
    Create the action associated with save button : SAVE_DATA.
    Go inside the code of action SAVE_DATA and add following code:
    DATA : lr_component_api TYPE REF TO if_wd_component.
          DATA : lr_popup         TYPE REF TO if_wd_popup_to_confirm.
          DATA l_controller_api TYPE REF TO if_wd_controller.
          DATA : l_configuration  TYPE wdr_popup_to_confirm.
          DATA : l_text_table     TYPE  string_table,
                 ls_text_table    TYPE  string  .
          l_controller_api = wd_this->wd_get_api( ).
          lr_component_api = wd_comp_controller->wd_get_api( ).
          ls_text_table = 'Are you sure you want to save record?'.
          APPEND ls_text_table TO l_text_table .
          TRY.
              CALL METHOD cl_wd_popup_factory=>popup_to_confirm
                EXPORTING
                  component        = lr_component_api
                  text             = l_text_table
                  window_title     = 'Confirmation'
                  configuration    = l_configuration
                RECEIVING
                  popup_to_confirm = wd_this->popup.
            CATCH cx_wd_runtime_repository .
          ENDTRY.
          wd_this->popup->subscribe_to_events(
                                controller   = l_controller_api
                                handler_name = 'ON_CONFIRM_SAVE' ).
    Go to the attribute of your view and add an attribute 'POPUP' of type IF_WD_POPUP_TO_CONFIRM.
    when you will press the save button the action SAVE_DATA will be triggered and a popup will be generated.
    To handle the action related to the buttons appearing on the popup window ( yes, no and cancel) create one more method in your view having name 'ON_CONFIRM_SAVE' (method type must be event handler) . in that event handler you can decide what to do  when any of the button on popup window ( yes, no and cancel) is pressed.
    Go inside the event handler 'ON_CONFIRM_SAVE'
    write the code:
      CASE wd_this->popup->answer.
        WHEN if_wd_popup_to_confirm=>co_button_1_pressed.
    *your code regarding yes button.
    WHEN if_wd_popup_to_confirm=>co_button_2_pressed.
    *your code regarding no button.
    endcase.
    Thanks
    Vishal kapoor
    Edited by: vishal kapoor on Feb 9, 2008 10:51 AM

Maybe you are looking for