Calling an ABAP WebDynpro Popup from a BSP view

I need to know if the following is possible.
I have a requirement to call an ABAP WebDynpro Popup from a BSP view.
When the Popup is triggered (eg via pushbutton) the BSP will pass data to the Popup, before the Popup is closed the Popup will pass data back to the BSP to be displayed in the BSP view.
I do not want to rely on Portal Events as Portals may not be used, would really appreciate a clean simple solution.

Hi,
any webdynpro application has a URL behind it. Haven´t you tried to call that URL with Javascript code ??
script language="Javascript"
      url = "test_page.htm" + "?field=" + param;
      window.open(url, "F4window", "width=400, height=400");
/script
You can pass data to the WD application using parameters as I show you after the "?".

Similar Messages

  • Calling an ABAP Webdynpro URL from ESS Overview Bizcard

    Hi All,
    We are having a requirement of calling a url of Abap Webdynpro application on click of a Button for a overview screen of ESS  Family application .So i have created an action button for that but i am not able to find out how to call a url in that action methode. Please Suggest me.
    Thanks
    Ravi Sunkara
    Edited by: Ravi Sunkara on Aug 26, 2009 4:45 PM

    Hi Ravi,
    Just a suggestion.If somehow you crate one more iveiw and add it to the bzcard page then i think you could dispaly both the bizcard and the other wd application on the same ui.
    hope this helps.
    Regards,
    Sunny

  • Call a ABAP webdynpro application from a standard transaction.

    Hi Gurus,
    Can we trigger a webdynpro application on a click of button from a standard transaction as IW31 and pass some of the parameters?
    If so, how do we do that?
    Please let me know.
    Thanks,
    Das

    Hi,
    You can trigger the webdynpro application on click of a button.
    construct the URL dynamically or you can use the URL of the application present in WebDynpro application(if you are sure that if this application run only in this system).
    We can display the application either in standard screen using HTML control or we can also open the browser on click of a button on standard screen using the code:
    call method cl_gui_frontend_services=>execute
    exporting
    application = 'www.google.com'
    exceptions
    others = 1.
    For passing the parameters to the application:
    1. Create the parameters in the default interface plug of the application.
    2. Associate the parameters to the WebDynpro application
    3. Pass the parameters to the application by appending to the URL like (&para1=abc&para2=def).
    Best regards,
    Suresh
    P.S. we can define the parameters in the Webdynpro component by defining the importing parameters in the default interface view's inbound plug's method. If we define the importing parameters in the inbound plug (for example DEFAULT plug of the window) then they are visible in the parameters tab in the WD application.
    We can receive the parameters in the inbound plug method (HANDLE<plugname>) of the window (interface view associate in application).
    Message was edited by:
            Suresh Honnappanavar

  • How can I call a ABAP proxy class from BADI? PLease help

    hi Experts,
        I have a scenario where I have to call a ABAP proxy class from a BADI. How can I do this? Does anybody has sample code for the same?
    Please help.
    Thanks
    Gopal

    Hi,
       You can call a method of a class from BADI. Here are the steps.
       1) In the BADI implementation create a object for the proxy class.
       2) Call the Execute_Synchronous method.
        You can define a BADI by using SE18 and you can implement it by using SE19.
    Sample code...
    ================================================
      METHOD ZIF_EX_VBADI~CONVERTUPPER.
      DATA: OBJ TYPE REF TO ZTESTCLASS.
      DATA: IT_DATA  TYPE ZIN_MT,
                IT_RES   TYPE ZOUT_MT,
                SEXCEPTION TYPE REF TO CX_AI_SYSTEM_FAULT.
      TRY.
          CREATE OBJECT OBJ
             EXPORTING
                 LOGICAL_PORT_NAME = 'TESTPORT'.
      CATCH CX_AI_SYSTEM_FAULT INTO SEXCEPTION.
      ENDTRY.
    ENDMETHOD.
    ================================================
    Thanks,
    Vivek LR

  • Error while trying to call a ABAP webdynpro appl. as a link on html form

    Hi,
      When I am trying to call a ABAP Webdynpro aplication as a link on html form. I get the following error
    Error when processing your request
    What has happened?
    The URL http:///sap/bc/webdynpro/form_ap/ (Path of ABAP webdynpro application) was not called due to an error.
    Note
    The following error text was processed in the system DRD : Error in Web Dynpro Runtime System
    The error occurred on the application server DRD_06 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: GET_REQUEST_INPLUG_PARAMETERS of program CL_WDR_CLIENT_APPLICATION=====CP
    Method: INIT of program CL_WDR_CLIENT_APPLICATION=====CP
    Method: IF_WDR_RUNTIME~CREATE of program CL_WDR_MAIN_TASK==============CP
    Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP 
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system DRD in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server DRD_06 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server DRD_06 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 102 -u:  -l: E -s: DRD -i: DRD06 -w: 0 -d: 20081002 -t: 032939 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    Any help will be greatly appreciated.
    Thanks
    RM

    RM,
    url clearly shows that it is unable to get host and port.check how you are building that url in html page
    Thanks
    Bala Duvvuri

  • How to call a ABAP proxy class from a BADI? Please help!

    hi Experts,
        I have a scenario where I have to call a ABAP proxy class from a BADI. How can I do this? Does anybody has sample code for the same?
    Please help.
    Thanks
    Gopal

    Hi Gopal,
    Check this out
    DATA: ref_obj    TYPE REF TO zmfg_production_ord.----> BADI
    * Instantiate the proxy class
        CREATE OBJECT ref_obj.
        TRY.
            CALL METHOD ref_obj->execute_asynchronous
              EXPORTING
                output = it_output.     "Output Structure
            COMMIT WORK.
          CATCH cx_ai_system_fault INTO ref_sysexception.
        ENDTRY.
        IF  ref_sysexception IS INITIAL.
          WRITE : / 'Error Message'.
        ENDIF.
    Edited by: Raj on May 28, 2008 4:52 PM

  • Attachments from Workflow to ABAP Webdynpro launched from UWL

    Hi All,
    You might have seen a recent post from me for sending attachments from ABAP Webdynpro to Workflow.
    I could do that by just calling SAP_WAPI_ATTACHMENT_ADD. I didnt have to create an instance of the SOFM object
    by passing the ATT_ID from this function module.
    Now the next task of the workflow which is sent to UWL, automatically carries the attachements in the Workitem.
    I didnt do binding from workflow container to Task container. (I dont know how!!)
    But I need to get those attachments on my ABAP Webdynpro after it is launched from UWL.
    For this I am using SAP_WAPI_GET_ATTACHEMENTS. But this FM is giving me the BOR reference.
    How do use this to get the attachments displayed on my Webdynpro as links?
    Thanks
    Deb

    Hi Debabra,
    I have similar requirement where I want to add new attachment from Webdynpro abap to workflow and again next level want to view it in UWL in another Webdynpro abap from workflow.
    I am trying to attach the document from Webdynpro to Workflow I used FM SAP_WAPI_ATTACHMENT_ADD and looks like it attached in workflow.
    Can you please tell  how the second part was solved where I want to attach document from workflow to Webdynpro abap
    Thanks,
    ST

  • Need to open an ABAP WebDynpro application from Portal UWL work item

    Hi All
    I need some suggessions on how to navigate to an ABAP WebDynpo application iview from a mail(Work Item) in portal UWL.
    Requirement in detail:
    Agreements will be created from portal( Agreement Creation Application is developed in ABAP webDynpro and iview has been created with in the portal for this WD application). as and when the agreement is created a mail (ECC Workitem) should trigger to the approver, who has access to portal and check the mail(Work Item) from the portal UWL.
    The mail body should consist the link to the Agreement created in portal ( Link to navigate to the Agreement Creation ivew).
    So, the main requirement is user should navigate to the Agreement creation iview when he open the mail from UWL.
    Mail can be sent from ECC by using ABAP Function modules or by creating a workflow
    Please advice me on how can we achieve this requirement.
    Thanks & regards
    Vijay Bedamsetty
    Edited by: VIJAY BEDAMSETTY on Apr 19, 2011 5:42 PM

    Hi,
    You can call the iView directly by using NavigationTarget..
    http://myServer:50000/irj/portal?
    NavigationTarget=ROLES://portal_content/myFolder/myRole/myIview
    Plz note that the iView you are calling should be part of a Role.
    And the PCD location of the iView in the Role must be given for Navigation Target.
    Check this URL
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/014421d21d6fade10000000a11466f/frameset.htm
    Thanks
    Prashant

  • ABAP Webdynpro Popup

    Hi,
    In abap webdynpro when i click save button I want to have a popup with two buttons asking for "do you want to continue"  'yes' or 'no'. if 'yes' navigate to next screen .if 'no' remain in same screen.How to get this done.
    Please help.
    Regards,
    Rheema Rahael.

    Hi Rheema
    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

  • Calling an Abap Web Service from IBM WebSphere with a MYSAPSSO2 Cookie

    Hello,
    I have the following problem :
    I have to develop a proof of concept between IBM Web Sphere 5.1 and SAP AS JAVA 7.0.
    I have created an IBM sevlet in Web Sphere, I use a specific redirect from an SAP AS Java to call it, this way I can have a SAP Logon Ticket, and I manage to call an ABAP module function with JCO with SSO.
    Scenario 1 : browser  + authentication --> AS Java redirect servlet MYSAPSSO2 cookie -> IBM WebSphere servlet JCO -> Abap module function (ECC5)
    This scenario works fine.
    I have to do the same scenario with a Web Service and I don't know what to do.
    I try to use jax-rpc handlers but I don't know how to pass my cookie from my servlet to my handler.
    Scenario 2 : browser + authentication --> AS Java redirect servlet MYSAPSSO2 cookie -> IBM WebSphere servlet JCO -> Abap Web Service (ECC5)
    Has someone already done that  ?
    Regards,  Julien.

    Julien,
    Why are you using 5.1....go for 6.0 and its cake walk, i have integrated WebSphere 6.0 with R/3 uysing xi.....in a week.
    Scenario changed to:--
    Browser+ authentication --> WebSphere AS servlet request --> XI --> RFC/bapi --> abap webService
    Hope that helps
    Regards
    Ravi

  • How to call Apps Module Custom Method from Entity Object / View Object ?

    Hi All,
    I create a custom method in AppsModuleImpl.java. How can I call that custom method from a setter method on Entity Object / View Object ?
    (I have tried to use Configuration.createRootApplicationModule(amDef,config); but it is not the correct way, is it? )
    Below is my code :
    The setter on MyEntityImpl.java :
    public void setKodeprd(String value) {
    setAttributeInternal(KODEPRD, value);
    if (getProduct() != null) {
    // CALL the getSalesPrice custom method from here, HOW ??
    The Application Module custom method :
    public Number getSalesPrice(String priceCode, String kodePrd) {
    Number price = new Number(0);
    String [] theKey = {priceCode, kodePrd};
    Key priceKey = new Key(theKey) ;
    ViewObject SalesPrice = getSalespricedView1();
    Row[] salesPriceRow = SalesPrice.findByKey(priceKey, 1);
    price = ((SalespricedViewRowImpl)salesPriceRow[0]).getPrice();
    SalesPrice.remove();
    return price;
    Thank you for your help,
    xtanto

    inside the EntityObjectImpl :
    YourAppModuleImpl am = (YourAppModuleImpl)getDBTransaction().getRootApplicationModule().findApplicationModule("YourAppModuleorServiceName");

  • Calling Java/ABAP Webdynpro in Adobe Interactive From

    Hi,
    I need to invoke a Java/ABAP Web dynpro application on click of a button in the Adobe Interactive form. I know it is done using the FormCalc script in the onclick event of the button.
    Can you please help me with the script used for triggering the Webdynpro application ??
    Thanks,
    Bharath

    Hi Bharat,
    You can use HTTP Submit button from the library to call an URL.
    In property of that button define the web dynpro application URL to be called.
    Regards,
    Vaibhav

  • 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

  • WebDynpro Popup from Interactive Adobe Form.

    I have a Interactive form UI on WebDynpro view. On a click of a button inside the Adobe Form, a popup appears. This popup is a webdynpro java popup window.
    While the popup is appearing or while closing the Adobe form gets refreshed each time and popup moves to first page of the form and user needs to scroll down the page to where the popup was triggered. Is there anyway I can avoid to the page get refreshed.
    I  am using NWDS 7.14 and Adobe Version 9.0...
    - Akshay

    Maybe I understand your requirement now. Since you are calling a server side event i.e. to get the data, the page where you are currently gets lost and that's how it should be.
    Now as a workaround we can try setting the focus to the particular input field when the page is loaded with the selected value.
    1. For this create a boolean atrribute and set it to Y when value from poupwindow is  selected.
    wdContext.currentContextElement.setPopValSelected("Y");
    2. Drag a textfield and bind it to this context. Make the field as invisble from Object palette.
    3. Now in the form:ready or layout:ready event of the top level subform write the following JavaScript:-
    if(popValSelected.rawValue == "Y")
       xfa.host.setFocus("TextField1");
    Chintan

  • Calling an Portal Webdynpro iView from another Webdynpro iView - Error

    Hi,
    I have modified the DefaultFramework Page by adding an Alert iView (based on WebDynpro) and assigned this modified framework page to all users. It works fine.
    The Alert iView on the Left hand side (right above the Detailed Navigation) consists of links to different WebDynpro iViews in the same Portal.
    I have used LinkToAction UI element, on event of click
    i am executing this piece of code.
    onActionClick (com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent)
    WDPortalNavigation.navigateAbsolute("ROLES://portal_content/folders/X.Iview", WDPortalNavigationMode.SHOW_INPLACE, (String)null, (String)null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS, "Called iView Name", (String)null, (String)null);
    I have picked up the iView name from the Portal(exact PCD location).
    It is not working. Once in a while it worked. But now it is not loading at all.
    Please let me know your thoughts on the same.
    Thanks
    Senthil

    Hi,
    Got it solved. User has authorization to execute the page.Their roles were not added in Permission list of that Page.
    Added the roles. Now it works fine.
    Thanks
    Senthil

Maybe you are looking for

  • Inventory in warehoue report

    Hi all. I have a question regarding the inventory in warehouse report/ A client ran the report and noticed that some values were USD, however the local currency is rands and all the amounts should be converted to rands. There are a few items however

  • Hour differences with CRM_ORDER_MAINTAIN

    Hi guys, I´m having troubles with some hour differences in some FM, all you know that the et_appointments dates can be set with the CRM_ORDER_MAINTAIN . . . I set the dates/hours ok in the timestamp_from, timestamp_to fields. The problem is that fiel

  • Analisng and fixing all clips in a sequence

    I am sending a sequence from FCP6 to STP2 and just as in the FCP timeline the track has all the clips showing. I want to analyse the clips and fix but can only do one clip at a time which is annoying. Is there anyway to select all the clips and do on

  • G/L account problem

    Hi, When I am posting MIGO for sub contracting PO, I am getting the following error. "G/L account 417000 does not exist in company code 1000" but when I checked thru OMWB-> G/L accounts this G/L is appearing in the company code. Why this problem is c

  • Reading CSV on Unix

    Hi, I want to read a CSV file that is in a folder in UNIX box. I dont have an ODBC DSN , how can I read it ? Thanks in Advance Jyoti