Calling an Executable program in a Web dynpro

Hi
We would like to change the initial screen of one of our functionalities (kilometre claims), but the info after you submit the selection info does not need to change.  We have an executable program with the detail of the screen.
I created a new Web dynpro application with the select options that must be entered; if you then click on a Submit button, I would like to call the current executable program, but I am not sure how I must do this.
Example:
To call a method, I always use: Call method ZCL_WD_PA=>ZHRPA_UPDATE_IT9004, but I am not sure how to call an executable program and with info is needed.
Could anyone please assist?
Regards
Debbie

Hi
We have a functionality via Employee Self-Service (Portal ECC6) where an employee can view their Kilometre claimsin a Report format.
To get the info to be displayed, someone else created a Program via the GUi SE38 (Attribute is an Executable program).  The front screen (selection screen) where the dates for which you would like to run the report for, needs to be changed.  It is not a nice screen to look at.  On that same screen which I would like to change, is a submit button.  If you click on that, it shows info and that info must not be changed at all.
So I will also have a submit button on my new Web dynpro functionality where I am building hopefully a nicer selection screen.  I will also have a Submit button and I wanted to add something when clicking on this submit button to call the existing program that will show the info selected.
Regards
Debbie

Similar Messages

  • Call a user defined method in web dynpro from interactive forms

    Hi All,
    how to call a user defined method in web dynpro java, when a selecting value from drop down list which is in interactive forms by adobe
    thanks.
    Edited by: venkat99 on May 24, 2010 4:52 PM

    Well, you can use F4 help, of course, check here: http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/a1900622ec062be10000000a42189d/frameset.htm
    You need to select the value first and then use the submit button, which is mapped to the WD action submit (you have to set this up in WD designer!!). To use the submit button for more actions, you need to use something like a hidden field, where the value is set according to the action you want to do with your submit button. The submit sends this value back to WD, where you can switch the program code according to the value.
    Otto
    p.s.: and maybe this blog can help: /people/shruti.rathour/blog/2008/02/07/uploading-sap-interactive-form-on-the-abap-webdynpro-view

  • How to confirm program version in Web Dynpro for ABAP

    Hello expert
    I would like to know how to confirm the program version for Web Dynpro for ABAP.
    For ABAP we can confirm version using SE38.
    Best regards,
    Ichimura

    everything has a version
    View has a version.
    controllers have versions
    WD component also has version
    so double click on what you need and the follow the path

  • Call an executable program inside function module and pass the table values

    Hi,
           i'm pretty new to HR Abap programming. I have a requirement like "calling an executable program within a function module and the output of the program data(Stored in internal tables) should be passed to the function module tables".
    I've some idea about SUBMIT keyword and i used it in the function module..
    Please do the needful to solve this.
    Regards,
    Selvi.

    Hi,
    Thanks for all your reply.
      I've used Option 3 as per dsouzajovito suggestion. Now i'm getting data in function module tables using import/ export table to memory concept.
    Again a small issue arises, while i'm executing function module it fetches all pernr available in the server and displays the details of last pernr. GET pernr statement is used in the Z report and submit statement is used like this as follows.
      SUBMIT ZHR_RFC_PAYSLIP   WITH  PERNR-PERNR EQ EMPCODE
                                          WITH PYBEGDA EQ FDATE
                                          WITH PYENDDA EQ LDATE
                                          AND RETURN.
    Pls suggest if there is any corrections in the code.
    If i give a pernr as input in the function module, then it should fetch the details related only to that pernr.
    FYI, No selection screen is used here as per requirement.
    Regards,
    Selvi.

  • Problem in calling abap editor with the program name in Web Dynpro ABAP

    Hi,
    I have to caal ABAP Editor screen with the display of program after clicking a button from web dynpro abap application.
    I am able to call the ABAP Editor initial screen, but i want the editor display screen with a program.
    How to do that?
    Please find my code below:
      DATA : FINAL_URL TYPE STRING,
             URL TYPE STRING.
      DATA: LV_HOST TYPE STRING,
            LV_PORT TYPE STRING.
    DATA V_TCODE TYPE TCODE.
      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.
      DATA:  LD_URL TYPE STRING.
    V_TCODE = 'SE38'.
    *Call below method to get host and port
      CL_HTTP_SERVER=>IF_HTTP_SERVER~GET_LOCATION(
         IMPORTING
           HOST = LV_HOST
           PORT = LV_PORT ).
      CONCATENATE 'http'
      '://' LV_HOST ':' LV_PORT '/sap/bc/gui/sap/its/webgui/?sap-client=&transaction=' V_TCODE '&OKCODE=SHOW'
      INTO URL.
      LO_API_COMPONENT  = WD_COMP_CONTROLLER->WD_GET_API( ).
      LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).
      LD_URL = URL.
      CALL METHOD LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW
        EXPORTING
          URL    = LD_URL
        RECEIVING
          WINDOW = LO_WINDOW.
      LO_WINDOW->OPEN( ).
    Now, how to pass my Zprogram name into the URL.
    I need to get the editor screen with the display of the program.
    Thanks,
    Radhika

    Hi Kiran,
    Please find my code below:
    DATA :   URL TYPE STRING.
      DATA: LV_HOST TYPE STRING,
            LV_PORT TYPE STRING.
      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.
      DATA:  LD_URL TYPE STRING.
    *Call below method to get host and port
      CL_HTTP_SERVER=>IF_HTTP_SERVER~GET_LOCATION(
         IMPORTING
           HOST = LV_HOST
           PORT = LV_PORT ).
      CONCATENATE 'http'
    '://' LV_HOST ':' LV_PORT '/sap/bc/gui/sap/its/webgui/?&transaction=se38&RS38M-PROGRAMM=Y2PSOLTREE&~okcode=shop'
      INTO URL.
      LO_API_COMPONENT  = WD_COMP_CONTROLLER->WD_GET_API( ).
      LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).
      LD_URL = URL.
      CALL METHOD LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW
        EXPORTING
          URL    = LD_URL
        RECEIVING
          WINDOW = LO_WINDOW.
      LO_WINDOW->OPEN( ).
    Here,, Y2PSOLTREE is the program, that should show in SE38 screen.
    I used the above code, but still it is showing the SE38 initial screen.
    Thanks,
    Radhika

  • Calling a BW Bex Query in Web Dynpro ABAP

    Hi Team,
    I'm trying to call a BW Bex query in my web dynpro screen. The Web Dynpro is written in our ERP (ECC 6.0) system. I have specific parameters and values in my web dynpro context which I want to pass to a BW query and then display the actual query in my web dynpro. I found an element BIApplicationFrame but don't know if that is the correct way to display the query. Some questions:
    1) How do I pass the username/password for the BW system in the Web Dynpro written in ERP?
    2) How do I pass the parameters to the query
    3) How is the security and roles managed. The web dynpro is enables as an iView in the SAP Portal.
    Thanks much for your guidance.
    Regards
    Sanjay

    Petr:
    I managed to pass the selection variables to the query through BIApplicationFrame. This is how I did it.
    1) Added the BIApplicationFrame UI element to the View of the Webdynpro application and named it ZBIQUERY with the following properties relevant to my system.
    - dataProviderStateName property is set to my query name which is 'ZPUR_M02_Q08'
    - dataProviderStateType is set to 'Query'.
    - server is set to 'housapdbw.noble.cc:8000'
    - templateId is set to 'ZPUR_M02_W02'
    - variableScreen is Unchecked.
    2) Added two attributes to the view under the attributes tab. They are
    M_APPL_FRAME RefTo CL_WD_BIAPPLICATION_FRAME
    M_METHOD_HANDLER RefTo IF_WD_BI_APPLFRAME_METHOD_HNDL
    3) Then add the following code in the method WDDOMODIFYVIEW.
    data:
    lt_parameters type if_wd_bi_applframe_method_hndl=>tt_name_value,
    ls_parameters type if_wd_bi_applframe_method_hndl=>t_name_value.
    define add_parameter.
    clear ls_parameters.
    ls_parameters-name = &1.
    ls_parameters-value = &2.
    append ls_parameters to lt_parameters.
    end-of-definition.
    if first_time = abap_true.
    wd_this->m_appl_frame ?= view->get_element( 'ZBIQUERY' ).
    wd_this->m_method_handler ?= wd_this->m_appl_frame->_method_handler.
    endif.
    Please note that the selection screen on my query has Select-options and its name is
    XREF_NUM0001. I am passing a value of '11111' to it as shown below.
    refresh lt_parameters.
    add_parameter 'CMD' 'PROCESS_VARIABLES'. " This is for Execute button
    add_parameter 'SUBCMD' 'VAR_SUBMIT'. " This one also for Execute Button
    add_parameter 'VAR_NAME_1' 'XREF_NUM0001'. " Name of my select-option
    add_parameter 'VAR_OPERATOR_1' 'EQ'.
    add_parameter 'VAR_SIGN_1' 'I'.
    add_parameter 'VAR_VALUE_LOW_EXT_1' '11111'. " Value for my select-option
    wd_this->m_method_handler->execute_command( lt_parameters ).
    endif.
    The above code needs to be added before the view is called in th is method.
    Hope this helps.
    Krishna Muppavarapu

  • Calling an ABAP report from a web-dynpro view

    Hi,
    I have a web dynpro view that i would like to call an ABAP program from.  Any ideas how i can do this?  Thanks,
    Samir
    Edited by: Samir Vora on Feb 18, 2008 11:12 AM

    Hello Samir,
    that would mean mixing two different ui technologies and hence it not possible. You can start the report in background though. Please refer to [this list of restrictions and limitations|http://help.sap.com/saphelp_nw70/helpdata/en/46/82091e304559dbe10000000a1553f6/content.htm] regarding the usage of certain ABAP statements.
    Best regards,
    Thomas

  • How to start a Web GUI program from a Web Dynpro application

    I know the program name , and it is a Web GUI program ,is anybody know how to start it from a Web Dynpro application

    hi,
    I use the following program to call a SAP GUI program :
    DATA: l_componentcontroller TYPE REF TO ig_componentcontroller.
      DATA: l_api_componentcontroller type ref to if_wd_component.
      DATA: l_sapgui_manager type ref to cl_wdr_sapgui_integration.
      DATA: lt_parameters    TYPE wdr_name_value_list.
      l_componentcontroller = wd_this->get_componentcontroller_ctr( ).
      l_api_componentcontroller = l_componentcontroller->wd_get_api( ).
      l_sapgui_manager = l_api_componentcontroller->get_sapgui_manager( ).
      IF l_sapgui_manager IS NOT INITIAL.
        l_sapgui_manager->fire( EXPORTING name = 'PROGRAM_NAME 'parameters = lt_parameters ).
    But the l_sapgui_manager is always initial , what can I do ?
    ENDIF.

  • Calling a method in a public web dynpro DC from EP

    Hi all,
    I have a public web dynpro DC which exposes some methods. I want to call these methods from an EP application (JSP Dynpage). IS this possible to do?
    Any info on this would be of great help.
    Regards,
    Narahari

    hi,
    Step by step solution for calling a webdynpro application from portal is given.
    this will help you ....
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7cf6a990-0201-0010-dd80-c09fc1438056
    http://help.sap.com/saphelp_nw04/helpdata/en/d8/6ee03fc2269615e10000000a155106/frameset.htm
    regards,
    ganesh

  • Execute BI Query in Web Dynpro Java

    Dear All,
    I have a requirement where i have to display of traffic light that sets its color based on the outcome of a SAP BEx query using Web Dynpro Java.
    Please explain me the steps how to retrieve and execute the SAP BEx query  using WDJ.
    Thanks & Regards
    Rajeev

    Hi Rajeev
    You can refer to the following links :
    [How to execute a BI query/view from a web dynpro application?]
    [How to send query parameters using BIApplicationFrame]
    Regards,
    Sayan Ghosh

  • Calling a BSP application on a Web-Dynpro screen

    Hi all,
    We have a requirement as below:
    In the SAP Standard Web-Dynpro screen we have a Tab-strip control, where there are 2 tabs.
    We need to enhance the tab-strip control and add a new tab. On the same tab we need to call a BSP application.
    It meas when we select the tab we should be able to see a specific BSP Application there.
    How can this be made possible?
    One way that I can think of is by creating the Service calls... However, I am not sure how can the service call can be created and used to call a BSP App to be displayed on the screen.
    Waiting for your replies.
    Regards,
    Kunjal Patel

    Hi Thomas,
    Thanks for the reply. It was quite helpful in analyzing the available options for the development.
    Now, with the further analysis from your inputs, following are the findings:
    1. BSP is a Stateful BSP.
    2. Yes, We are using this web-dynpro in the portal. How can we go about with the alternative way suggested by you about the iView? As i have very limited knowledge about the Portal hence a little more help from you will be helpful.
    Is it like we can provide a button on the screen and then when a user clicks the button the result is a new window of the browser with the given portal link?
    Please suggest.
    Regards,
    Kunjal Patel

  • Calling an executable program.

    Hi,
    I have create a program that needs to call a second program sending it an internal table.
    Is this possible? I know that I can use SUBMIT but I can't find the way to send it an IT to that second program.
    Any Idea?

    Hello
    I had worked on a program very similar long time back
    DATA: abaplist LIKE abaplist OCCURS 0 WITH HEADER LINE.
    *Report variant layout structure
    *Work Area
    DATA: BEGIN OF wa_iw47,
      dummy TYPE c,
      rmzhl(8) TYPE c, " LIKE rihafvr-rmzhl,
      ernam  LIKE rihafvr-ernam,
      aufnr  LIKE rihafvr-aufnr,
      vornr  LIKE rihafvr-vornr,
      aueru LIKE  rihafvr-aueru,
      ltxa1  LIKE rihafvr-ltxa1,
      grund  LIKE rihafvr-grund,
    SUKA           SIR 10-54742 03/10/2005 Add a Creation Date field
      ersda LIKE rihafvr-ersda,
      END OF wa_iw47.
    *Internal table
    DATA i_iw47 LIKE TABLE OF wa_iw47.
    *Temporary work area to store the information into ascii format
    DATA: BEGIN OF wa,
          name(3000) TYPE c,
          END OF wa,
          itab LIKE TABLE OF wa.
    *Work area to have the header information
    DATA: BEGIN OF wa_header,
          f1(20) TYPE c VALUE 'Counter',
          f2(20) TYPE c VALUE 'Created',
          f3(20) TYPE c VALUE 'Order',
          f4(20) TYPE c VALUE 'Operation',
          f5(10) TYPE c VALUE 'FC',
          f6(20) TYPE c VALUE 'Confirmation Text',
          f7(20) TYPE c VALUE 'Rsn',
    SUKA           SIR 10-54742 03/10/2005 Add a Creation Date field
          f8(20) TYPE c VALUE 'Creation Date',
          END OF wa_header.
    *Other Variables
    DATA: zzlv_filename(100)       TYPE c,
          zzlv_tabix               TYPE sytabix,
          zzlv_slen                TYPE i,
          zzlv_datarec(3000)       TYPE c,
          w_event LIKE tbtco-eventid,
          w_grid TYPE c.
    *BEGIN: SIR 10-55315
    Commented out unused code
    *DATA: BEGIN OF i_rihafvr OCCURS 0.
           INCLUDE STRUCTURE rihafvr.
    *DATA   END OF i_rihafvr.
    *END:   SIR 10-55315
    *Constants
    CONSTANTS: c_event(25) TYPE c VALUE 'ZIW47_TRANSFER_FILE',
               c_grid TYPE c VALUE '1',
                 c_quotes TYPE c VALUE '"',
               c_comma TYPE c VALUE ','.
    *SIR:
    PARAMETERS: p_fn(100) TYPE c LOWER CASE,
                p_var(50) TYPE c,
                p_event(25) TYPE c.
    *START OF SELECTION
    START-OF-SELECTION.
      GET PARAMETER ID 'Q_ALV_GRID_INACTIVE' FIELD w_grid.
      IF w_grid <> '1'.
        SET PARAMETER ID 'Q_ALV_GRID_INACTIVE' FIELD c_grid.
      ENDIF.
    *File Name Construction
    *CONCATENATE '/usr/sap/interface/' sy-sysid '/PlantMaintenance/IW47.CSV'
       INTO  zzlv_filename.
      zzlv_filename = p_fn.
    *Call Report and pass variant.
    SUBMIT riafru20 AND RETURN
           EXPORTING LIST TO MEMORY
           USING SELECTION-SET p_var.
      SUBMIT riafru20 AND RETURN
            EXPORTING LIST TO MEMORY
            USING SELECTION-SET p_var.
    *Call function to read memory
      CALL FUNCTION 'LIST_FROM_MEMORY'
           TABLES
                listobject = abaplist
           EXCEPTIONS
                not_found  = 1.
      IF sy-subrc NE 0.
        " leave program.
        IF sy-batch = ''.                            "SIR 10-55315
          WRITE: / 'RC = ', sy-subrc.
    *BEGIN: SIR 10-55315
          WRITE: / 'No data meets variant criteria'.
          EXIT.
        ELSE.
          MESSAGE i398(00) WITH 'No data meets variant criteria'.
          LEAVE PROGRAM.
        ENDIF.
    *END:   SIR 10-55315
      ENDIF.
    *Convert the Memory into Ascii format
      CALL FUNCTION 'LIST_TO_ASCI'
       EXPORTING
         list_index               = -1
         with_line_break          = ' '
        TABLES
          listasci                 = itab
         listobject               = abaplist
    EXCEPTIONS
      EMPTY_LIST               = 1
      LIST_INDEX_INVALID       = 2
      OTHERS                   = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Check data for output exists:
      DESCRIBE TABLE itab LINES zzlv_tabix.
      IF zzlv_tabix EQ 0.
        MESSAGE i398(00) WITH 'No data to export'.
        EXIT.
      ENDIF.
    *End Of Selection
    END-OF-SELECTION.
      PERFORM open_dataset.
    *IF p_var = 'IW47_BACK' OR p_var = 'IW47_TBACK' .
      IF p_var <> 'IW47_All'.
        PERFORM iw47_back_header.
    *Read data from internal table, concatenate all fields separated by a
    *comma and then transfer data
        LOOP AT i_iw47 INTO wa_iw47.
    *Concatenate all fields seperated by a comma to create a CSV file
          CONCATENATE :   wa_iw47-rmzhl  c_comma
                          wa_iw47-ernam  c_comma
                          wa_iw47-aufnr  c_comma
                          wa_iw47-vornr  c_comma
                          wa_iw47-aueru  c_comma
                         c_quotes wa_iw47-ltxa1  c_quotes c_comma
                         c_quotes wa_iw47-grund  c_quotes c_comma
    SUKA           SIR 10-54742 03/10/2005 Add a Creation Date field
                           wa_iw47-ersda
           INTO : zzlv_datarec.
          "SEPARATED BY: ','.
          PERFORM transfer_dataset.
        ENDLOOP.
      ELSE.
    *Read data from internal table, concatenate all fields separated by a
    *comma and then transfer data
        LOOP AT itab INTO wa.
          IF sy-tabix > 3 AND sy-tabix < zzlv_tabix .
            zzlv_datarec = wa.
            PERFORM transfer_dataset.
          ENDIF.
        ENDLOOP.
      ENDIF.
    *Close the file
      CLOSE DATASET zzlv_filename.
      PERFORM raise_event.
    *Setting the ALV Grid
      IF w_grid <> '1'.
        SET PARAMETER ID 'Q_ALV_GRID_INACTIVE' FIELD w_grid.
      ENDIF.
    *&      Form  IW47_BACK
          text
    -->  p1        text
    <--  p2        text
    FORM iw47_back_header.
    *Concatenate header first
    *Read the memory into internal table IW47 Report Structure
      LOOP AT itab INTO wa.
        IF sy-tabix > 3 AND sy-tabix < zzlv_tabix .
          SPLIT wa-name AT '|' INTO wa_iw47-dummy
           wa_iw47-rmzhl
            wa_iw47-ernam
            wa_iw47-aufnr
            wa_iw47-vornr
            wa_iw47-aueru
            wa_iw47-ltxa1
            wa_iw47-grund
    SUKA           SIR 10-54742 03/10/2005 Add a Creation Date field
             wa_iw47-ersda.
          APPEND wa_iw47 TO i_iw47.
        ENDIF.
        CLEAR wa.
        CLEAR wa_iw47.
      ENDLOOP.
    *Header
      CONCATENATE wa_header-f1
                  wa_header-f2
                  wa_header-f3
                  wa_header-f4
                  wa_header-f5
                  wa_header-f6
                  wa_header-f7
    SUKA           SIR 10-54742 03/10/2005 Add a Creation Date field
                 wa_header-f8 INTO zzlv_datarec SEPARATED BY ','.
      PERFORM transfer_dataset.
    ENDFORM.                                                    " IW47_BACK
    *&      Form  Open_dataset
          text
    -->  p1        text
    <--  p2        text
    FORM open_dataset.
    *Download file onto application server
    *open file
      CATCH SYSTEM-EXCEPTIONS file_access_errors = 1.
        OPEN DATASET zzlv_filename FOR OUTPUT IN TEXT MODE.
      ENDCATCH.
      IF sy-subrc NE 0.
        MESSAGE e041(a4) WITH zzlv_filename sy-host.
      ENDIF.
    ENDFORM.                    " Open_dataset
    *&      Form  transfer_IW47_Back
          text
    -->  p1        text
    <--  p2        text
    FORM transfer_dataset.
      zzlv_slen = strlen( zzlv_datarec ).
    *Transfer header information
      IF sy-batch = ''.
        WRITE:/ zzlv_datarec .
      ENDIF.
      CATCH SYSTEM-EXCEPTIONS file_access_errors = 1.
        TRANSFER zzlv_datarec  TO zzlv_filename LENGTH zzlv_slen.
        IF sy-batch = ''.
          WRITE:/ zzlv_datarec .
        ENDIF.
      ENDCATCH.
      CLEAR  zzlv_datarec.
      CLEAR  zzlv_slen.
    ENDFORM.                    " transfer_IW47_Back
    *&      Form  Raise_event
          text
    -->  p1        text
    <--  p2        text
    FORM raise_event.
    Raise Event - to execute job that will execute a shell scrip that
    *will transfer the downloaded file from the SAP application server to a
    *local network server.
      w_event = c_event.
      CALL FUNCTION 'BP_EVENT_RAISE'
          EXPORTING
            eventid                      = p_event
         EVENTPARM                    = w_param
      TARGET_INSTANCE              = ' '
         EXCEPTIONS
           bad_eventid                  = 1
           eventid_does_not_exist       = 2
           eventid_missing              = 3
           raise_failed                 = 4
           OTHERS                       = 5.
    *BEGIN: SIR 10-55315
    Add exception check
      IF sy-subrc NE 0.
        IF sy-batch = ''.
          WRITE: / 'File not transferred.',
                   'FM BP_EVENT_RAISE exception raised:',
                   'RC = ', sy-subrc.
        ELSE.
          MESSAGE e398(00) WITH 'File not transferred'
                                'FM BP_EVENT_RAISE exception raised: '
                                'RC = ' sy-subrc.
        ENDIF.
      ENDIF.
    *END:   SIR 10-55315
    ENDFORM.                    " Raise_event

  • Calling Remote-Enabled JAVA Module from Web Dynpro Java

    Anyone have a clue how I can call a Remote-Enabled JAVA Module in ECC from a Web Dynpro Java app?  I'm on Portal 7.0.  When I try and create an Adaptive RFC model in NWDS and put in the Function Module name (CFG_API_FIND_KNOWLEDGEBASES) or its Function group, that RFC is not returned for me to import.  Can I not use this method to get at this function?
    (I CAN call this function module and run it from the old SAP Business Connector software.  That, however, does not help me get it into my Web Dynpro app.)

    If anyone stumbles upon this thread, the long and short answer is you can't call a Remote-Enabled JAVA module in SAP from Web Dynpro Java.....using Adaptive RFC.
    You can, however, if you create your own session and function call directly in Java code and give up on being able to use Adaptive RFC.

  • How do you call a function module in a web dynpro application ?

    Why do you delete my postings ?????????????????????????????
    pls see subject
    Edited by: Ilhan Ertas on Apr 1, 2009 4:51 PM
    Edited by: Ilhan Ertas on Apr 1, 2009 4:52 PM

    Its not me deleting them.  Perhaps a different moderator or a technical problem within SCN itself.
    Someone might be concerned about your question because it is very basic.
    You can call a function module from WD the same way you did in any ABAP program - with the CALL FUNCTION syntax.  There is a service call wizard that will generate a matching context and calling code for you - but it is just a helper, code generator.  Everything it does can be done by hand as well (and often better than the generator).

  • Calling a new Browser Window from Web Dynpro Application - Empty Context

    Hello,
    I want to open a view in a new browser window, and followed the same way which is described in this thread:
    Open view in new browser window
    My first try was creating two applications, which refer to the same Component Controller. The opening of a new browser window is triggered by an action, which is called in the other application. As both applications have the same Component Controller, I thought, the context content has to be the same, but actually the context attributes are empty after opening of the new window.
    In my second try I created two applications with two different Component Controllers, mapped via embedded Interface Controller. The effect is the same - I have no context content in the view.
    Please, can anybody help me?
    Thank you in advance.
    Ilona Seifert

    I done something like this:
    [code]
    try {
    strURL =
         WDURLGenerator.getApplicationURL(
                        "$<b>PROJECT_PATH</b>$/$<b>PROJECT_NAME</b>$",
                                            "$<b>APPLIC_NAME</b>$");
    } catch (WDURLException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
    strURL += "?par1=";
    strURL +=  var1;
    strURL += "&par2=";
    strURL +=  var2;
    strURL += "&par3=";
    strURL +=  var3;
    [/code]
    and after i retrieve them:
    [code]
    Var1Value= WDWebContextAdapter.getWebContextAdapter().getRequestParameter("var1");
    [/code]

Maybe you are looking for