Adding a view in a component of BSP application

Hi All,
I want to create new component for a BSP and add a view to it.
my scenario is : I have a problem in creating a pop-up view whenever a button in a WEB UI is clicked.
I have added a button in the items tab of sales order creation(in WEB UI),so when that button is clicked a pop-up view has to be generated.
the view i am creating is a ineractive view where the user can enter some data and press a button in the pop-up window so that the data is copied in the items tab.
the pop-up contains a table grid where the user can enter the data and press the button in pop-up window.
so could you please let me know how to create this type of pop-up window.
Regarding this some one has send me a solution of creating a new component with a new view.but unfortunately i am not able to create a view because it is asking for nodes and BOL entity.
so could you all provide me some input inorder to create the component and view.
Thanks
Tanveer

Hi Tanveer,
I have done the Similar Case.
By now I hope you have Created a New Component.
Ensure the Following Points before you Proceed.
1. Create a Window/View Set and View.
2. As you are saying yours is Table View while Creating View Specify it as Value Node and assign Corresponding Attributes to the Value Node.
3. Specify Type of View is Table Type.
4. Now in Runtime Repository Add the Created Window.
5. Now add the Created ViewSet and View to the Window and Save.
6. Create a New Interface View which is ( Window Name ) in Runtime Repository.
7. Add Component Usage in Runtime Repository.( In Source Component where Button is Present )
    a. Give ID and Interface View for the Component Usage and give Used Component
        Name. If View is created in same component then give same name other wise
         Give another component name.
8. After create View/Window/Component Interface/Component Usage Now to get the
   Table View in Popup Screen
   Modify the Standard Code similar to the Table View in HTML Page.
   For Reference:
<chtmlb:tableExtension tableId = "Table"
                       layout  = "FIXED" >
  <chtmlb:configTable id              = "Table"
                      navigationMode  = "BYPAGE"
                      onRowSelection  = "select"
                      selectedRowIndex      = "<%= CONTEXTNODE->SELECTED_INDEX %>"
                      selectedRowIndexTable = "<%= CONTEXTNODE->->SELECTION_TAB %>"
                      selectionMode         = "<%= CONTEXTNODE->->SELECTION_MODE %>"
                      table           = "//CONTEXTNODE->/Table"
                      usage           = "SEARCHRESULT"
                      visibleRowCount = "10"
                      width           = "100%"
                      showNoMatchText = "FALSE"
/>
</chtmlb:tableExtension>
CONTEXTNODE is the Context Node in View.
Now to get the Values in the Table View when popup gets displayed.
Go to the Newly Created View and add Code to populate Values in Table View
Method CL_BSP_WD_CONTEXT_NODE_TV - > IF_BSP_MODEL~INIT.
Now,to Call the Created View as a popup from the New Component when Buton is Clicked
Use the Following Code in the Event of Button Click.
DATA: lr_popup TYPE REF TO if_bsp_wd_popup.
  IF lr_popup IS NOT BOUND.
    lr_popup = me->comp_controller->window_manager->create_popup( )
    (Specify Parameters Interface View,Component Usage and Title for Window in the above Method._
    lr_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
  ENDIF.
Set the callback event on the imported controller ( Specify Event Name which needs to get Triggered when Popup is Closed.)
  lr_popup->set_on_close_event( iv_event_name = "EVENT_NAME"
                                       iv_view = me ).
*Set the width of the popup
  CALL METHOD lr_popup->set_window_width
    EXPORTING
      iv_width = 500.
*Open the popup
  lr_popup->open( ).
This will help in Getting a View as a Popup when Button is Clicked.

Similar Messages

  • After deleting enhanced view still the bsp application is showing in se80

    Hi,
    I enhanced one component then after some reason i deleted the enhanced view at that time it's asked do you want to delete bsp application i click on yes then after also still i showing in se 80 under my package it's showing.
    after deleting enhancement view and deleted enhancement component.
    after deleting these total still all the z classes are showing in sm24. if i enhance from starting on wards from enhancing component and enhancing view i need to new bsp application name because previous bsp application is still showing and some of the context class. after transporting in to quality server this component is showing there is context class which i redefine in the development and view is not defined in the run time repository. why it's showing these errors in quality server.
    my guess is in dev i deleted which are deleted still the classes and bsp application are there older one if provide new bsp classes also.
    what are important things we need to follow if delete the view enhancement and deleting the component enhancement. because if i transport after deleting with new bsp application name and with a previous existing class with a new request also it's not working quality server. because lot of classes are generating automatically in when we redefine the context class in development so these classes are not there in quality server.
    please guide me if delete any enhanced view and component why still bsp application and redefine z classes are showing in se80 and se24. because if enhance newly also and redefine also it's considering previous bsp application and previous redefine classes.
    what are precautions i need to take if i delete enhanced view and enhance component.please guide me.
    jemmi.

    Jemmi,
    You should follow the following SAP Note in deleting enhancements. There are a few steps to be done in SM34. If we just delete through the wizard we are bound to have these issues.
    SAP Note 1122248 - Consultation:Procedure when dealing w/framework enhancements
    Briefly, these are the steps to delete the enhancemnet-
    1) In SM34, view BSPWDVC_CMP_EXT. Select enhancement set and then select enhancement definition. You will see your component there.
    2) Select your component and in left side navigation click Controller Substitutes.
    3) A list of the enhanced views are displayed.
    4) Select the views and delete it. Before you delete make a note of the BSP application these views are attached to. Hopefully, you attached them in a Z BSP application
    5) Go to SE80. Select the Z BSP application and delete it.
    Go through the SAP Note to understand the process in more detail.

  • How to find url for a view of a bsp application in program?

    hello all,
    I am devloping e-rec and am having a reqmnt, i want to knw how can i find a url for view view1 which is in bsp application zbsp.
    thanks,
    Reena

    Hi,
    views can not be called direct, only controllers. Because of that, views have no URL.
    You can call a controller or a page. You find the URL of the controller if you display the data of the controller.
    The URL of the page you find if you display the property tab of the page.
    Best regards
    Renald

  • BSP Applications in CRM

    Hi
    How do we find the respective BSP application for an iView in CRM, (lets say Activities OIP and ODP application)? And how and where do you view the source of that BSP application? We are in CRM 4.0 SP 8.
    Thanks in advance..!
    Regards
    Sasi

    Hi
    Technically there is only one BSP application for all People-Centric UI applications - it is called CRM_BSP_FRAME.
    This is the Controller part of the Model View Controller setup.
    The application specified in the URL (as above) specifies the layout and the model. You can set parameter ID 'CRM_BSP_TRACELEVEL' in the CRM backend for your user to turn on the PC-UI trace. See note 658311. Then you can see which ABAP class is triggered for each UI section (the so-called Model Access Classes).
    If you want to adjust the application, you really need to read 'The Book' (full title "Implementing People-Centric User Interfaces with Business Server Pages and SAP Enterprise Portal - The Book for Developers and Technical Consultants"). You can get it in the Service Marketplace.
    Cheers
    Dom

  • Assigning controller to the bsp application in icwebclient

    Hi friends,
         Iam trying to test the <b>help view</b> from crm_ic into my bsp application Z_CRM_IC_HELP.
           I got stuck up while assigning controller to view in the bsp application. I have copied the standard view "help" from crm_ic into bsp application z_crm_ic_help.
    and copied the crm_ic.xml file into Z_CRM_IC_HELP.
        In se24 created a controller class ZCL_CRM_IC_HELP_IMPL for the help view controller class CL_CRM_IC_HELP_IMPL.
    Properties of the bsp application Z_CRM_IC_HELP page type (view) to select the controller class which i have created above is not displaying the f4 help list. So when am entering the z_crm_ic_help in the controller class fied its throwing the following error  as the controller class is not available in the F4 help  list.
          <b>The class ZCL_CRM_IC_HELP_IMPL does not implement any controller in the BSP application Z_CRM_IC_TEST</b>     
    Could anybody please guide to create a simple BSP application in ICWebclient.
    or it will be helpful if you can send me any links to work on hands on in ICWebclient.
    Thanks & Regards
    Sireesha.

    Hi Sarah,
    the following thread adresses the same problem, within the BSP folder:
    [How to change & manage different ports in a mixed web environment (BSP/WAD)|How to change & manage different ports in a mixed web environment (BSP/WAD);
    I think its better to use that category instead of BI General.
    Best regards,
    Sebastian

  • Create a new view under a component in IC Webclient UI

    Hi ,
    Can anyone tell how to create a new view under a component in IC Webclient UI.
    Regards,
    Sijo

    Depends what kind of view you are talking about. In any case first go to runtime repository on the left panel of the component and then click the edit button.
    If you are talking about interface view, right click the component interface and choose "Add interface view". The created view is added to the selected window in the runtime repository.
    If you want to add view to the window right click the windows component and select "Add view". 
    Select the view using the f4 help and save the runtime repository.

  • Error when adding a view to an overview view

    Hello,
    I have enhanced the application BT108H_LEA and extended the business
    transaction LEAD, adding a few fields to the Admin Header.
    I tried to create a new view, adding a model node from the BOL Entity
    BTLeadH. I added all the fields extended, and linked the node to the
    BT108H_LEA application, LeadDetailsCuCo.do custom controller and the
    BTADMINI node.
    I added the new view to BT108H_LEA/LeadOVViewSet. But by
    opening/creating new LEAD I get the following
    exception: 'CX_BSP_INCORRECT_IMPLEMENT' there is no controller in BSP
    application. method: 'CL_BSP_WD_OVW_VIEWSET->BIND_LAZY'
    Have any of you encountered this by some chance and could shed some light on a possible solution?
    thanks in advance,
    Eli.

    Hi there,
    Did you implement ON_NEW_FOCUS for your newly added context node  ??
    Also if you have BTADMINI in your newly created view then do bind that to the controller node.
    When you added BTLeadH as a BOL object while creating the view, did you mention its higher level node ? If you would have mentioned it there, wizard creates the on new focus and binding coding on itslef, else you have to write on new focus to create a valid instance using the valid relation.
    Your implementation seems wrong to me and thats why the implementation related error.
    Check the on new focus coding.
    All the best,
    Suchita

  • Creation of view in a component

    Hi ,
    may I have the step by step procedure  for the creation of view in a component.
    I have created the Enhancement set .
    then in BSP_WD_CMPWB I enter the component and say enhance it took me to the area where all views are in display mode and after I selected the views and started the wizard of view creation .
    I require info on the data to be given in the wizard and the procedures after that.
    plz provide some inputs ,
    Thanks and regards,
    Sree.

    Hi Sree,
    In your view.htm are you using the code to get the configuration?
    Example:
    <%@page language="abap"%><%@ extension name="htmlb" prefix="htmlb"%><%@ extension name="xhtmlb" prefix="xhtmlb"%><%@ extension name="crm_bsp_ic" prefix="crmic"%><%@ extension name="bsp" prefix="bsp"%>
    <%@extension name="chtmlb" prefix="chtmlb" %>
    <%
      data: lv_xml    type string.
      lv_xml    = controller->CONFIGURATION_DESCR->GET_CONFIG_DATA( ).
    %>
    <chtmlb:config xml  = "<%= lv_xml %>"
                   mode = "RUNTIME" />
    Best regards,
    Caíque Escaler

  • Add View of one component in another component

    HI All,
    I need to show view "TextView" of component SRQM_NOTES in component BT116IT_SRVO.
    That is: i would like to show text for each Item of a particular order.
    How can I do that?
    Add View to a certain ViewSet / Change a configuration / add view to the Window... or what not???
    Please help here.. I need it.. THANKS, Johannes

    Hi there,
    Your requirement is simple though lenghty to implement. Following is the solution :
    You have not mentioned in which view you would like to get the text.Let it be.
    1. Add SRQM_NOTES as a component usage in BT116IT_SRVO. For this, first enhance BT116_SRVO. Then in its runtie repository, right click on component usage-> ADD . Lets name it UCSRQM_NOTES, then give compoent SRQM_NOTES and interface view ( use f4 ) SRQM_NOTES/MainWindow . Save the repository.
    2. right click on ViewSet BT116IT_SRVO/ItemTableVS  ( i assumed this. you do F2 on web ui to find out exact view and then proceed with this set in the viewset contating that view.
    Say Add Vieware. Lets name it ItemNotes. after view area is created, right click & say add view.Use F4 and select UCSRQM_NOTES.SRQM_NOTES/MainWindow . Save the repository.
    Repository work is over.
    3. Now go to BT116IT_SRVO/ItemTableVS  . click on config tab. do the configuration and add the newly created viewarea in the configuration. save the configuration.
    This completes adding the view from SRQM_NOTES to BT116IT_SRVO.
    4. Now, you will also need to see the text for the item selected. for this we will need to do the context node binding.
    For this, go to the component controller class of BT116IT_SRVO & redefine the method WD_USAGE_INITIALIZE.
    First give the call to super and later code following
    CASE iv_usage->usage_name.
        WHEN 'UCSRQM_NOTES'.
    * bind single item component usages
          iv_usage->bind_context_node( iv_controller_type  = cl_bsp_wd_controller=>co_type_component
                                       iv_target_node_name = 'BTADMINI'
                                       iv_node_2_bind      = 'BTADMINI' ).
      ENDCASE.
    Now you are ready to test on UI !!
    Hiope this helps.
    Thanks & Regards,
    Suchita

  • Mapping between view controller and component controller

    Hi Experts,
    I am new to web dynpro ABAP. First I created an application using one input field and one button, my view name is V1. In view context, I created one node viz. NODE1 using table SFLIGHT, fields chosen are CARRID CONNID and FLDATE. I have bind that to my input field and for button I have not done any thing. So, when I am running this application it is allowing me to select value for my input field. After this, I have added a table to the view layout. I have added to nodes using sflight table in COMPONENT CONTROLLER. First node is SFLIGHT with CARRID, CONNID, FLDATE, PRICE and PLANETYPE and second node is NODE1(same name) with only CARRID. Now in VIEW CONTEXT it is showing -
    CONTEXT
       NODE1
         CARRID
         CONNID
         FLDATE
    (which I had created in VIEW CONTEXT for input field)
    CONTEXT COMPONENT CONTROLLER
       SFLIGHT
         CARRID
         CONNID
         FLDATE
         PRICE
         PLANETYPE
       NODE1
         CARRID
    (which I had created in component controller after adding table)
    Now both this context should be matched as per my knowledge, so that when I bind the table it should V1.SFLIGHT.<fieldname> and not as V1.NODE1.<fieldname>
    But I don't know how to match them. Please help.

    Hi Sambaran,
    I guess I understood what you want.
    To achieve this, proceed as follows:
    1)Open your View, goto Properties tab. Here in the Used controller table, click on the create icon to include the component controller (component controller is added by default by the framework, if you use custom controller you need to define this usage).
    2)Once you do this, goto Context tab of the view, here now you will be able to see the component controller on the right hand side.
    3)Next, drag the SFLIGHT node from the component controller, and drop it on the Context (root context) of the view (left side). Doing this system will create a mapped context node on the view which you will use to bind to the view elements on the layout.
    The above steps apply if you want to directly create a view context from component controller context.
    Hope this helps!
    Thanks,
    Chitrali

  • Select-options are not destroyed while calling view of used component popup

    Hi Friends ,
    I'm facing a unique problem. I'm calling a view of a component within another component. the view that I'm calling has some select-options. When I close the popup window ( using close 'X' of popup ) and then try to reopen the popup system give me a dump. I debugged and found that select-options are not destroyed by system and once it tries to create the select-options again it dumps because they are already there.  
    This is the source code extract of that dump for your reference .
    1 method if_wd_select_options~add_selection_field.
    2
    3   data:
    4     lr_table_descr       type ref to cl_abap_tabledescr,
    5     lr_struct_descr      type ref to cl_abap_structdescr,
    6     lr_value_field_descr type ref to cl_abap_elemdescr,
    7     added_field          like line of mt_added_fields,
    8     dfies                type dfies,
    9     description          type string,
    10     complex_restrictions type if_wd_select_options=>t_complex_restrictions.
    11
    12   field-symbols:
    13     <it_result> type index table.
    14
    15 * check of someone wants to add a field that already exists
    16   read table mt_fields
    17        with key m_id = i_id
    18        transporting no fields.
    19   if sy-subrc = 0.
    20 *   might be deleted - recreating a field with different setting is of course allowed
    21     read table mt_all_removed_fields
    22          with key table_line = i_id
    23          transporting no fields.
    24     if sy-subrc <> 0.
    >>>       message x000(00).
    26     endif.
    27
    28 *   remove the existing field in order to avoid duplicates
    29     delete table mt_fields with table key m_id = i_id.
    30   endif.
    I've already tried using REMOVE_ALL_SEL_SCREEN_ITEMS( ) method of interface IF_WD_SELECT_OPTIONS before creating new elements ( select-options ). If any one can help me in this It would really help and I'll appreciate it.
    Thanks in advance,
    Laeeq

    I've sloved the problem

  • How to call specific view of used component

    Hi All,
    I have the following problem:
    I have component 1 which have two views: 1A and 1B. They are included in one window. Default view is 1A.
      Navigation between view 1A and 1B it made with buttons and plugs ("go to 1A", "go to 1B").
    I have main component 2 which uses component 1 (used component). Component 2 has view 2A and 2B. I have button "Z" in view 2A which calls method of component 1 and navigates to view 2B (where used component 1 is embedded).
    First time I press button I navigate to view 1A, its correct. Then I navigate to view 1B (within used component 1).
    when I go back (in main component 2) and press button "Z" again, the used component 1 is open with view 1B, not 1A (which is default). That is, used component 1 remember which view the navigation stayed on.
    I nee to always see view 1A first when I navigate with button "Z" (open used component).
    How I can do that?

    hi ,
    u must be using component usage ..
    in ur component2 , place the view 1B of ur used component in separate window
    pls refer this thread as well :
    How to call a Particular View from a View of Current Component
    regards,
    amit

  • View of one component need to be used in another component.

    Hi Experts,
    I have created a view in component  BP_DATA . I want to use this view in component "BP_HEAD". Can anyone please help me with the steps needed to make the view available in  BP_DATA. Do i need to do any type of binding for this.

    Hello Ansal,
    For using BP_DATA/yourview in component BP_HEAD, first you will have to expose BP_DATA view in component interface. Then you can access that view in BP_HEAD by creating component usage. Once you add the view of BP_DATA in component usage of BP_HEAD, it will be available as a normal view in this component.
    -Regards

  • Day View in calendar Component showing the next at times not everytime!

    Day View in calendar Component showing the next at times not everytime! My question is when we go to Day view which day does it show? is it Server day where the application reside or the machine time zone day ?

    I think you want to know, days & time picked by which machine, locally or from server? It does take from server where the application is running.

  • Create a table view in my BSP Application!.

    Hi All,
    I am using CRM version 4.0 here i want to crate a new table view in my own BSP Application and want to display in the CRM_IC Application.
    The problem now i am facing is.. there is now provision to create the table view via the wizard. I tried to copy the BSP code, changed the code accordingly also i changed the inheritance for the context node class from
    CL_BSP_WD_CONTEXT_NODE to CL_BSP_WD_CONTEXT_NODE_TV.
    i also copied the iterator attribute.
    still the view is coming with an error saying that page have some problem.
    can anyone suggest any easy method to create the table view!.
    or else can you tell me what i have to do further!.
    Thanks n regards,
    sudeep v d.

    Hi,
    The problem is not only at the .htm page!. I think some changes are required at the context node level. for
    here is the BSP code I m using for displaying the table view..
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="xhtmlb" prefix="xhtmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    <%@extension name="CRM_BSP_IC" prefix="crmic" %>
    <crmic:tray2 id     = "MoreFields"
                 title  = "<%= otr(crm_ic_appl/BuPaAccount) %>"
                 height = "100%,603"
                 width  = "100%" >
      <crmic:trayBody2>
        <crmic:gridLayout cellSpacing    = "1"
                          columnSize     = "1"
                          rowSize        = "10"
                          height         = "100%"
                          width          = "100%"
                          widthPredefine = "TRUE">
        <crmic:gridLayoutCell columnIndex = "1" rowIndex    = "4" >
            <crmic:tableView design          = "STANDARD"
                             width           = "100%"
                             id              = "Address"
                             table           = "//Address/Table"
                             visibleFirstRow = "3"
                             visibleRowCount = "4"
                             selectionMode   = "LINEEDIT"
                             onRowSelection  = "select"
                             fillUpEmptyRows = "TRUE"
                             headerVisible   = "FALSE"
                                           >
              <crmic:tableViewCols>
                <crmic:tableViewColumn columnName = "STREET"
                                       title      = "<%= otr(CRM_IC_APPL/BuPaStreet_t) %>"
                                       edit       = "TRUE" />
                <crmic:tableViewColumn columnName = "POSTL_COD1"
                                       title      = "<%= otr(CRM_IC_APPL/BUPAPOSTCODE_T) %>"
                                       edit       = "TRUE" />
                <crmic:tableViewColumn columnName = "CITY"
                                       title      = "<%= otr(CRM_IC_APPL/BUPACITY_T) %>"
                                       edit       = "TRUE" />
                <crmic:tableViewColumn columnName = "REGION"
                                       title      = "<%= otr(CRM_IC_APPL/REGION) %>"
                                       edit       = "TRUE" />
                <crmic:tableViewColumn columnName = "REGIONNAME"
                                    title      = " "
                                       edit       = "FALSE" />
              </crmic:tableViewCols>
            </crmic:tableView>
        </crmic:gridLayoutCell>
       </crmic:gridLayout>
      </crmic:trayBody2>
    </crmic:tray2>
    In the above code i have given
    table    = "//Address/Table"
    here the 'Address' is defined as a page attribute type ref to the context node class ( CL_CRM_IC_BUPAMOREADDRESS_CN01 ).
    the same class is used in the CRM_IC application works fine!.
    also i entered the attribute entry for the 'Address' in the _CTXT class the view.
    still the same error 'page  cannot be displayed'.
    what could be the problem anyone plaese help!.
    Thanks n regards,
    sudeep v d.

Maybe you are looking for

  • GarageBand iPad 2 Velocity Sensitivity

    Not sure why, but the below discussion was deleted from the Community but it was unanswered, so I'm including the thread below in this message. I am having the same problem, namely, the volume of drums and keyboards in GB for iPad 2 works part of the

  • Making calls, screen goes black

    As soon as I make a call the screen goes black even if I have the screen set to stay on.  The only way to end the call is to push the power button than the screen will come on and I can hit the end phone button. My husband has the same phone and when

  • Wont play a song i have downloaded...

    Hello, I have recently downloaded an Album using my phone... works fine! I then downloaded to my LapTop, the whole Album play's except 1 song!! (holy grail, Jay-z) I-tunes pop's up and say's my computor is not autherised to play this?!?!?!?  Then whe

  • Setting Classpath on Windows 2000 box

    I have written a java application that is deployed to a Windows 2000 box. This application requires that a number of .jar files be included in the classpath, but it appears Windows 2000 imposes a maximum character length on the classpath variable bec

  • Converting sample rate when exporting

    CS5.5 I'm using Audition to do some final mastering to 16-bit stereo 44100 wav files, in 32 float multi-track sessions. All I'm doing is increasing the clip gain, then exporting to 16-bit stereo 44100 wave and 320 mp3. I'm not changing the sample rat