How to call a Webdynpro view from BSP page (MVC) in a new window?

Dear Experts,
kindly advise how to call a webdynpro view from BSP application after performing an event (through button or hyper link).
Regards,
Sarat.

Hi,
This has been discussed many times in several forums.
Please check the method CL_WD_UTILITIES=>CONSTRUCT_WD_URL, to create a runtime url for your WD Application and call this URL.
Refer thread: Call Webdynpro Application from BSP Application
Hope this will be useful!
Regards,
Meganadhan S

Similar Messages

  • How to call a maintenance view  from a program

    Hello Abapers,
    Can anybody explain with some examples. How to call a mainetenance view from a program.
    Thanks
    Ranjith.

    Use FM 'VIEW_MAINTENANCE_CALL'.
    REPORT  zmaintaintest.
    VARIABLES / CONSTANTS                          
    CONSTANTS: 
                    c_action(1) TYPE c VALUE 'U',                                 "Update
              c_viewname TYPE tabname value 'ZEMP_EXAMPLE', "View Name
              c_field(6) TYPE c VALUE 'EMPNO'.                            "Field Name
    INTERNAL TABLES
    DATA: itab_rangetab TYPE STANDARD TABLE OF vimsellist,
              v_empno TYPE zempno,
              wa_rangetab TYPE vimsellist.
    SELECTION SCREEN
    PARAMETERS:     p_empno TYPE   zempno   OBLIGATORY.  "Emplyee ID
    AT SELECTION-SCREEN                                                 
    AT SELECTION-SCREEN.
    Chcking the existence of the user in EMPLOYEE table
      PERFORM validate_employee.
    START_OF_SELECTION                                                  
    START-OF-SELECTION.
    This will restrict the user view so that user can only view/change
    Table data corresponding to his/her Employee ID
      PERFORM define_limited_data_area.
    Displaying table maintenance view for a particular employee ID
      PERFORM call_view_maintenance.
    *&      Form validate_employee
    Validate plant entered in the selection screen
    FORM validate_employee.
      SELECT SINGLE empno     u201CEmployee ID
        FROM zemp_example     u201CEmployee Table
        INTO v_empno
        WHERE empno = p_empno.
      IF sy-subrc <> 0.
        MESSAGE 'Not an Valid User' TYPE 'I'.
      ENDIF.
    ENDFORM.                    "validate_employee
    *&      Form DEFINE_LIMITED_DATA_AREA
    To restrict the user view so that user can see/change table data
    corresponding to his employee ID. Here one internal table is
    getting populated with field name as u201CEMPNOu201D (Key field of the table)
    And value as given by user in Selection Screen and this is passed as
    Parameter in function module 'VIEW_MAINTENANCE_CALL'
    FORM define_limited_data_area.
      CLEAR wa_rangetab.
      wa_rangetab-viewfield  = c_field.
      wa_rangetab-operator  = 'EQ'.
      wa_rangetab-value       = p_empno.
      APPEND wa_rangetab TO itab_rangetab.
    ENDFORM.                    "define_limited_data_area
    *&      Form CALL_VIEW_MAINTENANCE.
    Displaying table maintenance view for a particular employee ID
    FORM call_view_maintenance.
      CALL FUNCTION 'VIEW_MAINTENANCE_CALL'      
        EXPORTING
          action           = c_action
          view_name   = c_viewname
        TABLES
          dba_sellist     = itab_rangetab.
    ENDFORM.                    "call_view_maintenance
    Regards,
    Joy.

  • How to call a Webdynpro application from a BSP page

    Hi to all,
              I have created a web-dynpro application, now i have to call this function through click event of a BSP page. How i can achieve it.
    Please help if anybody have idea.
    Thanks in advance.
    Pankaj Kumar.

    Hi Pankaj,
       Using portal eventing you can acheive that.
    WebDynpro and BSP communication
    Regards, Suresh KB

  • How to navigate from webdynpro view to bsp page in the same window?

    hi i want to call a page by its url.
    i am using the "create_external_window" method.
    but it is displying my url in a new window.
    i want to display it in the same window.
    the second page i want to call is a bsp page.
    i tried also the portal manager and NAVIGATE_ABSOLUTE but nothing happens.
    it displays nothing.
    thanks for your hints.

    >
    Achref zaidi wrote:
    > hi i want to call a page by its url.
    > i am using the "create_external_window" method.
    > but it is displying my url in a new window.
    >
    > i want to display it in the same window.
    > the second page i want to call is a bsp page.
    >
    > i tried also the portal manager and NAVIGATE_ABSOLUTE but nothing happens.
    > it displays nothing.
    >
    > thanks for your hints.
    Hi,
    Navigate_absolute method has navigation mode. Can you please tell me what you mean by nothing happens ? This will work only in Portal environment.
    So if you try with portal then remember to use  Navigation_mode as inplace.

  • How to call a Particular View from a View of Current Component

    Hi Experts,
    Pls let me get a solution for my small issue..
    I do have 2 components cur_component and old_component which contain 2 Views each say, cur_vew1 & cur_view2 and old_view1 & old_view2 respectively.
    Now, When i click a button in cur_view1 then it should call the view - old_view1 of old_component and when i click a button in cur_view2 then it should call the view - old_view2 of old_component.
    When i tried, its calling the default view of the old_component. but i want to call the views of the old_component dynamically...
    hope am clear enough about my issue..
    Kindly help on me on this to solve this..
    With Thanks in advance,
    Amala

    hi ,
    have u done component usage to reuse ur old component in ur new component .
    refer this article on component usage :
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2e71ce83-0b01-0010-11a4-98c28a33195f
    to know , how to set the context attribute for visibility , u wud also like to go to this thread :
    Re: How to SET a value to an attribute usibng WIZARD?
    refer to Uday's reply in this thread as well  :
    Call view of another WDA Component and pass the value to it
    1) When you create your context at component controller level in component MAIN you have a property for the node which says as: "Interface Node" Just checkmark this checkbox. When you do this you would be able to share the data within your context nodes across other components.
    2) Specify a default value of AA in the "Default Value" property of the attribute in component MAIN
    3) Now go to your other component SUB which you would like to also get initialised. Define a usage of your component MAIN within this component.
    4) Go to your component controller & create your context node & attribute with exactly the same names as how you had created in your MAIN component.
    5) Do a mapping between the interface controller of your MAIN component & the component controller of your SUB component
    6) You would be able to see that the appearance of the node has changed to an interface node. This means that your SUB component now has an exact replica of your MAIN components context data.
    regards,
    amit
    Edited by: amit saini on Oct 13, 2009 2:47 PM

  • How to call  web ui screen from bsp componants

    Hi Gurus,
                I am trying to call the web ui screen from bsp componants by using the function modules .but exception is coming. but from gui these functionmodules are opening the web ui screen.those function modules are BAPI_BUSPROCESSND_CHANGEDIALOG,CRM_1O_CALL_WEBUI here only we need to pass the GUID. but these are not working from bsp componants .i am not getting why these are not working if there is any solution Please give me suggestion.Its very needful.
    Regards,
    Bixamaiah.

    Hi Caíque Escaler,
             the requirement is workflow is triggered in web client.In the webscreen from the workflow task user selects the work item then one screen will come from there  if the user selects the reject option then immidiately  we need to open that order in web screen.that is the requirement.
    Regards,
    Bixamaiah.

  • Call an Function Module from BSP page to import an CSV file to internal tab

    Hi Experts,
    I am working on creating a web application in BSP which will call the function module  ALSM_EXCEL_TO_INTERNAL_TABLE.
    This function module imports an excel file into an internal table.
    Since this is the first time I am working on BSP I am not sure how to call this FM from event handler tab in BSP page.
    What I could gather from previous posts is that we need to create an attribute which should take the value of the export parameter of the function module.But I am kind of messed up on this.
    Could u guys please help ,I would be extremely grateful.Points will be assigned for sure
    Thanking in anticipation
    Ankit

    Could you please let me know how I can call an abap function module from a transformation? (from abap xslt program). I know how we can call methods of a class from the transformations, but no idea how we can call function modules. Any suggestions or a sample code snippet towards this will be very useful for me.
    Thanks,
    Shashi.

  • Calling Z function module from BSP page

    hi,
      i am calling a z function module from BSP application ROS_SELF_REG ,The z function module is inside a z function group,It does not give any sytnax error..but while running BSP application ,it is going into dump saying that Z function module is not found..Any idea why this is happening???

    Hi,
    Check whether the Z function module is spelled correctly. Also try activating the whole function group and function module in se80 transaction.
    Check whether the BSP application is calling the Z FM from the correct server/client where it is available.
    Regards,
    Harish

  • How to Call a WebDynpro application through html page.

    I have created a webDynpro application.How can i call this application through a html page?
    Thanks
    Pankaj Kumar

    Hi,
       You can add a link to your HTML page and set the anchor reference to the absolute URL of your WD application.
       The absolute URL of your WD application looks like
    http://<j2ee server>:<port>/webdynpro/dispatcher/<wd component name>/<application name>
       So your HTML code will look like:
    <a href="http://<j2ee server>:<port>/webdynpro/dispatcher/<wd component name>/<application name>">Link</a>
    Regards,
    Satyajit.

  • How can I change the view from 2 Pages to one page?

    I accidentally hit something and now my document is displaying 2 pages. This is distracting and I want to go back to seeing one page at a time.

    Change the view down the bottom left corner of the window where it shows the percentage.
    Peter

  • Through Enhancement, how to call a Webdynpro method from another webdynpro?

    I have a standard page with 2 iViews with a standard abap webdynpro in each.
    The first webdynpro needs to refresh the second webdynpro.
    Through enhancement, I tried to follow the solution below:
    first of all in the child component's component controller method(which you want to expose to another component) must be checked in the interface column.
    Double click on the webdynpro project(parent component)->In the used components tab, in the column of component type the child project name(whose method you want to call) and in component usage column give any name->save the project.
    goto the controller(VIEW or COMPONENT) from where you want to call the method->click create controller usage->select the interface controller of the child component->save the project.
    click the code wizard->select method call in used controller->select the child component interface controller ->select the method you want to call.
    Link of thread: Calling a method of other webdynpro component
    But this solution doesn't worked because in this standard webdynpro is not possible to check the method as Interface.
    Is there other way to do this?
    Thanks.

    Hello,
    you can refer the following documentation for portal eventing
    http://help.sap.com/saphelp_nw70/helpdata/en/f6/7d6f4151dc5758e10000000a1550b0/frameset.htm
    Br, Saravanan

  • How to call a Calculation View from Sql ?

    Hi All,
    I'm trying to test my calulation views. Now i'd like to call it through sql. How to do it ?
    Thanks
    Sakthivek

    Hi Sakthivek,
    After you activate your calculation view successfully, you will find it under schema "_SYS_BIC" -> Column Views in your Studio. Then you can use select sql statement to query the calculation view.
    Best regards,
    Wenjun

  • How to call Java WebDynpro iViews from Portal (Portal Content Directory)

    Hello everybody,
    I am trying to call a Java WebDynpro iView, which was created within the Enterprise Portal and is stored in the portal content directory (pcd).
    I have created an HTML-iView in VC, where I have put in the pcd-link into the default-url field (pcd:portal_content/com.sap.pct/every_user/com.sap.pct.cprxrpm.ppmdc/com.sap.pct.cprxrpm.iviews/com.sap.pct.cprxrpm.iviews_cprojects/com.sap.pct.cprxrpm.cpr_projects). This iView is calling the cProjects WebDynpro Application. But after I run my model, the portal page is running and running, but nothing happens.
    I did the same with transactional iView, which was also created in the Portal before. I have also created an HTML-iView in VC, where I have put in the pcd-link into the default-url field (pcd:portal_content/IBU_content/SAP_for_Service_Provider/com.sap.pct.issp.ps.professional_services/com.sap.pct.issp.prs.iviews/com.sap.pct.issp.prs.display_sd). This is working fine!
    What I also tried is to call another VC-Model with an HTML-iView. Here I have put-in into the default-url field the pcd-location of my VC-model (pcd:portal_content/IBU_content/SAP_for_Service_Provider/com.sap.pct.issp.vcmodels/com.myComp.myProduct.1DM9.CreateEngagement/com.myComp.myProduct.iviews/com.myComp.myProduct.1G62.Cprojects_neu). This is also running fine!
    Now I do not understand the difference between this three objects. There are all iViews within the portal but the WebDynpro iView is not callable through a HTML-iView in VC.
    Could you help me in this case? Your help is very appreciated!
    Thank you in advance.
    Best regards,
    Aylin.

    Hi Marcel,
    when you mean the preview within the portal, yes, it is working fine.
    URL is not the way to solve my problem. I am working with IDES-Systems. This is our Demo System within SAP. I have to build my VC-Model in a Master IDES-System which will be transported than into the other IDES-Systems. The URL of the WD is not the same in the other systems. It is changing depending on the several Sysems. But the pcd-location is in all systems the same. Therefore I have to specify the pcd-location of the application.
    Is there a restriction with WD within VC?
    If we can do some kind of a netmeeting, I can show you my problem exactly.
    Thank you.
    Regards,
    Aylin.

  • 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

  • Calling A Webdynpro Application From Another Webdynpro Application

    Hi,
    i want to call a webdynpro application from another webdynpro application with sending parameters.
    i used this method,
    CALL METHOD cl_wd_utilities=>construct_wd_url
        EXPORTING
          application_name = lv_webapp
        IMPORTING
          out_absolute_url = lv_url.
    CONCATENATE lv_url '?param1=' lv_param INTO lv_url.
    data lo_window_manager type ref to if_wd_window_manager.
    data lo_api_component  type ref to if_wd_component.
    data lo_window         type ref to if_wd_window.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window         = lo_window_manager->CREATE_EXTERNAL_WINDOW(
        URL = LV_URL
    lo_window->open( ).
    but this method shows the parameters on the address bar.
    is there a method to send the parameters to another webdynpro application without show the parameters on the address bar?
    Can somebody help me pls?
    Thanks.

    I've used a server cookie before. This was built for BSP, but it is really usable anywhere.  It just writes the data temporary into the database.  This way you can just pass one meaningless URL parameter - like a GUID and use this key to read the data (the server cookie) upon initialization of the new application.  I generally serialize all the data that I want into one server cookie by serializing a class. I can then restore whatever attributes of the class that I want on the receiving side.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bd/4cd23a09313b37e10000000a11405a/frameset.htm

Maybe you are looking for

  • Huge Acrobat temp files - is this right?

    Hi When using the reduce file size function, I have noticed that acrobat produces massive temp files.  I was running some files over night, and acrobat crashed, presumably because it ran out of HD space.  Upon looking for what was using all the space

  • How to configure an jms adapter to use ActiveMQ?

    Does anyone have an example of how to configure an jms adapter of oracle esb for third party JMS provider to use ActiveMQ? I had done something as follow: 1.add activemq shared-library in $SOA_INSTANCE/config/service.xml 2.config a jms adapter fro th

  • Report Queries are using different sort order

    Hello, my enviroment is Apex 3.1.2 Apache Web Server OC4J Apache FOP i have 4 Source queries in one Report Query (shared components --> report queries) This 4 Source queries have to be executed in a specific order, for instance my data in DATA>      

  • Mountain Lion Bug? Notifications disrupt bluetooth audio

    I just noticed what might be a minor bug in Mountain Lion.

  • Enhancement from EHP3 to EHP4

    Hi All, We are currently on Enhancment Package 3 and doing full implementation of Travel Management Module with Language Support. To maintain the translations the changes are made to SAP Standard objects like - OTR Packages - PTRM_WEB_UI , PTRM_WEB_P