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

Similar Messages

  • Calling an interface METHOD of another abap web dynpro application

    Hi Experts,
    Can u plz tell how we can Call an interface METHOD of another abap web dynpro application in main WD Component.
    Thanks
    Mahesh

    Hi ,,
       Example ALV interface method calling   GET_MODEL interface method
       View attribute   declaration   :    M_WD_ALV  type      IWCI_SALV_WD_TABLE
         DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
          wd_this->M_WD_ALV =   wd_this->wd_cpifc_alv( ).   "ALV is the usage name
         DATA lv_value TYPE ref to cl_salv_wd_config_table.
          lv_value = wd_this->M_WD_ALV->get_model(  ).   " interface method calling in ALV component usage.....
    Regards,
    Devi

  • Not able to run web dynpro application from portal.

    Hi portal experts,
    I want to run my web dynpro application from portal.
    So created a seperate iview  and a role  for the purpose.
    Assigned the iview to the role and also mapped a abap user id to the new role created.
    But when I click on 'preview'  the iview , getting the following dump.
    Error when processing your request
    What has happened?
    The URL http://mnghcmsap:8000/sap/bc/webdynpro/sap/zhr_cp_admin/ was not called due to an error.
    Note
    The following error text was processed in the system HRM : Die URL enthält keine vollständige Domainangabe (mnghcmsap statt mnghcmsap.<domain>.<ext>).
    The error occurred on the application server mnghcmsap_HRM_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: CHECK of program CX_FQDN=======================CP
    Method: STARTUP_CHECKS of program CL_WDR_CLIENT_ABSTRACT_HTTP===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 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 HRM 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 mnghcmsap_HRM_00 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 mnghcmsap_HRM_00 . 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: 200 -u: INF51515 -l: E -s: HRM -i: mnghcmsap_HRM_00 -w: 0 -d: 20110209 -t: 121224 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    Please let me know if I am doing the process correctly and also let me know if I am missing somthing.
    Thanks,
    Aditya.

    Are you able to run teh web dynpro application independtly i.e. without creatin an iview.
    http://mnghcmsap:8000/sap/bc/webdynpro/sap/zhr_cp_admin/ by using this link.
    or there also you are getting the error.
    i guess there also you should be gettign the error.
    this is some problem with the FQDN settings in the abap system.
    in the host name of the web dynpro applciation server one .(dot) is must.
    so you might have to change the host name to some thing like mnghcmsap. from mnghcmsap
    thanks
    sarbjeet singh

  • How to create a Web Dynpro Project from Downloaded zip file?

    Hi,
    I have been working in Java Web Dynpro for last 1 month but not able
    to create any Web Dynpro from Downloaded zip file?
    Can anybody tell me how to create a Java Web Dynpro Project from
    Donloaded zip code?
    Regards
    Kaushik Banerjee

    Hi Kaushik,
    You can add the existing zip file into your workspace by the following way -
    First open the NWDS and create a new project by clicking file -> new -> Project -> Simple -> Project
    and then File -> Import -> zipfile and then browse the zip file into the newly created project.
    or else you can also unzip the zip file into a folder and then Use the option of Import an exisitng project into workspace. You can find this in the File-> import -> Existing project into workspace. and then use the Browse option to browse to the existing folder.
    After importing the project you need to rebuild the project
    Regards,
    Raju Bonagiri.

  • Error while creating web dynpro project from DTR

    Hello,
    I am getting following error while creating Web Dynpro project from DTR,
    org.eclipse.jdt.core.JavaModelException: File /<track name><DC><package>/.classpath is read-only.
    Still project gets created but evenif I check out view , it does not allow me to edit it.
    Also I have checked in and activated some changes but active copy in DTR is not reflecting those changes.
    I tried Add subtree option in DTR perspective for folders in this project. Is it result of that?
    Please help me in this regard.
    Thank You
    Beena

    Hi Beena,
            .classpath file should not checked in to DTR(uncheck the Read only properties). It is local file it contains class path for local system.
             Generally in webdynpro project only src folder should be checked in DTR.
    Regards
    Suresh

  • Using Web Dynpro WDUrlGenerator from within J2EE Application deployed on NW

    I have two applications deployed on a NetWeaver Application Server 2004s.
    1. A Web Dynpro application.
    2. A J2EE Application
    What I want to do is to be able to build a url to the Web Dynpro application from within the J2EE application. Obviously the problem is using Web Dynpro classes within the J2EE application.
    So I edited the Java Build Path of the J2EE application to include the werbdynproservices.jar file and exception.jar files by extending ECLIPSE_HOME variable in the libraries section. I also checked them in Order and Export. I verified the built .war file and it does contain the two .jar files.
    This was sufficient to get my project build and deployed, however the servlet in my J2EE application shows NoClassDefFoundException when I run it. My guess is there's more I need to do to get the WDUrlGenerator to run in my J2EE class.
    Is this possible or is there a better way? I am trying to avoid the client having to modify a web.xml for each depployment.
    Thanks in Advance.

    This looks like what I want, but I am unable to test it.
    I found the application-j2ee-engine.xml file under the <project-root>/gen_wdp folder. I then attempted to open it with the SAP EARDD editor. It opens with the Source tab selected. If I try to click the General tab I get an error saying:
    "The source page has errors. Other pages cannot be used until these erros are corrected."
    I see nothing wrong with the XML document. It's source is here:
    <?xml version="1.0" encoding="UTF-8"?>
    <application-j2ee-engine>
        <provider-name>local</provider-name> 
        <modules-additional>
        <module>
          <entry-name>EVENTS_WorkflowNotification.wda</entry-name>
          <container-type>webdynpro</container-type>
        </module>
      </modules-additional>
    </application-j2ee-engine>
    When I deploy the application, everything works fine. I was going to edit the XML document by hand, but of course there is no DTD listed so I don't know what's supposed to go in there without the Editor doing it for me.
    Getting closer. Thanks so much.

  • Calling a Web Dynpro Application from POWL feeder class

    Hi,
    I know this question is asked before but never answered, but I try again......
    I have a own POWL feeder class where I defined a button in method IF_POWL_FEEDER~GET_ACTIONS.
    I know that this action can be handled in method IF_POWL_FEEDER~HANDLE_ACTION.
    When pressing the button I want do call another web dynpro application.
    How can I do this? -> Any Example Coding?
    Thank you and best regards, Edgar

    Hi Vineet,
    it works, thanks a lot!!!!  Best Regards, Eddy
    P.S.: Here is the coding for triggering the event and passing parameters for the selected POWL table line:
    METHOD if_powl_feeder~handle_action.
      DATA: ls_parameter TYPE powl_namevalue_sty.
      DATA: lt_flights TYPE ty_flights.
      DATA: ls_flight TYPE sflight.
      DATA: ls_selected TYPE rstabix.
      FIELD-SYMBOLS: <lt_fligts> TYPE STANDARD TABLE.
      IF i_actionid = 'EDIT'.
    *   Important: this triggers the event
        e_portal_actions-fire_wdevent = abap_true.
    *   Pass parameters to event
        ASSIGN c_result_tab TO <lt_fligts>.
        lt_flights = <lt_fligts>.
    *   Determine the first selected row
        READ TABLE c_selected INTO ls_selected INDEX 1.
    *   Read selected POWL data
        READ TABLE lt_flights INDEX ls_selected-TABIX INTO ls_flight.
        CHECK sy-subrc = 0.
    *   Pass parameters
        ls_parameter-key = 'ACTIONID'.
        ls_parameter-value = 'I_ACTIONID'.
        APPEND ls_parameter TO e_portal_actions-parameters.
        ls_parameter-key = 'CARRID'.
        ls_parameter-value = ls_flight-carrid.
        APPEND ls_parameter TO e_portal_actions-parameters.
        ls_parameter-key = 'CONNID'.
        ls_parameter-value = ls_flight-connid.
        APPEND ls_parameter TO e_portal_actions-parameters.
        ls_parameter-key = 'FLDATE'.
        ls_parameter-value = ls_flight-fldate.
        APPEND ls_parameter TO e_portal_actions-parameters.
      ENDIF.
    ENDMETHOD.

  • 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 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

  • 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 a Web Dynpro application from a web application

    Hi everyone, I've got a problem I hope someone can help me resolve.
    What I wanna do is to show a login form, which is part of a J2EE web application (contained in a SAP Web AS), an after the user submits the required information, I have to redirect the user to a Web Dynpro application, which is contained in the same Web AS, but I have to redirect this user using single sign on.
    I'm not sure about what I have to do, I'm new in these technologies, I think I need to use UMFactory, but I have made some investigation and I'm not so sure about what I have to do yet, can anyone give me a hand with this?

    Hi Joel,
    Please follow the documents below
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/80fbc690-0201-0010-1aba-93d5c8232b4a
    http://help.sap.com/saphelp_nw04s/helpdata/en/b0/4d2b418a3edb2be10000000a1550b0/content.htm
    Hope this helps.
    Regards,
    Kiran Kandepalli.

  • Display data in Web DynPro table from database via EJB

    I have a JavaBeans model which has a method populateDataToTable()to retrieve data from database via Session bean (calling entity bean, returning ArrayList of data) and the data needed to be display in the Web DynPro table.
    User Interface (Web DynPro) <-> JavaBeans Model <-> Busineess Logic (session bean) <-> Persistence (Entity Bean)<-> DB table.
    The context bindiing and table part is ok. How do i load the data to the table ? what the coding to put in wdDoInit() ?
    Any help would be appreciated.

    in wdinit(),
    Collection col = new ArrayList();
    try{                    
      MyCommandBean bean = new MyCommandBean();
      col = bean.getDataFromDbViaEJB();
      wdContext.nodeMyCommandBean().bind(col);
    } catch (Exception ex) {
       ex.printStackTrace(ex); 
    in your JavaBean model class, MyCommandBean getDatafromDbViaEJB() method:
    Collection col = new ArrayList();
    Collection newcol = new ArrayList();
    //include your own context initialization etc...
    col = local.getDataViaSessionBean(param);
    // if your returned result also a bean class, reassigned it to current MyCommandBean
    for (Iterator iterator = col.iterator(); iterator.hasNext();) {
        MyOtherBean otherBean=(MyOtherBean)iterator.next();
        MyCommmandBean bean = new MyCommandBean();
        bean.attribute1 = outBean.getAttirbute1();
        // get other attibutes
        newcol.add(bean);
    return newcol;

  • Creating web dynpro model from XMII web service

    Hi All,
    need some help, after creating model in Web Dynpro from XMII WSDL file everything is fine but when i execute the service. I'm getting the following error:
    <b><i>Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML is not valid. Element [http://www.sap.com/xMII]<OutTxRecordSetXML> is required in <OutTxExecutionMsg> but can not be found.</i></b>
    Please help!
    Regards,
    Raj

    Hi Sam,
    i am providing login details, if i dont i see the authorization error message. I'm using runner to access the BLS transaction now to get the xml data. I'm wondering if there's something wrong on the XMII side, some config?
    Regards,
    Raj

  • Problem while moving Web Dynpro code from one env to other

    Hi Experts,
    I have developed some Web Dynpro program in Development Environment. The Web Dynpro program uses BAPI and gets data from R/3.  I have to transfer the Web Dynpro program to Quality environment. When I am trying to compile, I am getting following error message:
       com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to resolve JCO destination name 'DT8_METADATA' in the SLD. No such JCO destination is defined in the SLD.
    In Development environment, I have created JCOs called DT8_METADATA and DT8_METADATA. Is it important for me to create same named JCO in Quality as well.
    Regards,
    S

    Hi,
    the JCO destination names u have created in Dev also needs to be created in Qlty also with targetd destination msgserver.
    This might helps you to run in Quality.
    Thanks,
    Lohi,

  • How to call a method written in user control (ascx file) from javascript

    Hi to All,
    I have one scenario where I need to call a method written in user control (.ascx.cs file) from javascript (ascx file). I tried below code but it is not working,  I found later it works only for aspx or asmx file , is it true ?? 
    Code: 
    $.ajax({
                type: "POST",
                url: "ViewSearch/SetServerSessionText",
                data: "{'name':'" + searchText + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                error: function () {
                    alert("error");
    Can anyone please tell me how to call ascx.cs  code from javascript ??
    Thanks in Advance !!!

    yes that is true, ajax calls can only be made to an endpoint like aspx pages/web service, basically anything that can return a http response etc. User Control can be embedded inside of aspx pages.

Maybe you are looking for

  • Lion Server Permission Problems & MySql

    This is a question in two parts so without further ado 1. Ever since I got my mac mini server last year I have had issues with permissions. Even though there is only one account on the server, the one I created at setup I am always running into permi

  • Connecting vcr to external SB Audigy 2zs Platinum Pro

    I've just joined, so apologies if I "mess up". I have some precious things on vhs tape, and want to transfer them to cd/dvd. I run Windows XP. I have to use rca connections, don't think there's another option on the vcr. I see the red and white rca c

  • Kernel Panics on 10.6.8, please help diagnose

    Greetings, everyone. I have a macbook, 10.6.8. I just started doing kernel panics last week. It also seems to be sluggish at times. I am a bit of a 'power user' with multiple tabs and programs going at all times, but the issues are recent. Removed th

  • Join in dynamic  way

    Hi, I want to do dynamic join from 3 tables and give the i.e. i have method with import fields and i want to do the select accordingly to the fields that i have if user enter 5 fields do the select just from table one if user enter 10 fields to the s

  • Cannot text chat with iChat since installing Leopard.

    Since installing leopard, I have been unable to use iChat. I can boot up the application, and see my buddy list as normal. But when I double click on a buddy's icon to start a text chat, I get a completely blank chat box. (i.e. I don't see the buddy'