Calling a web dynpro application via portal using SSO

Hello Expert,
i have a requirement where i need to call a web dnpro application via portal.
But it is asking for user name and password.
i want to call using single sign on.
Can u please suggest a way.
i did the coding like this:-
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = l_c_appl_name
IMPORTING
out_absolute_url = l_v_gv_url_string.
l_v_icf_url = l_c_icf_url_val.                      "#EC SYNTCHAR
CALL METHOD cl_icf_tree=>if_icf_tree~service_from_url
EXPORTING
url             = l_v_icf_url
hostnumber      = l_c_0
authority_check = space
IMPORTING
icfactive       = l_v_m_sso_active.
IF l_v_m_sso_active = l_c_x .
CREATE OBJECT o_viewer
EXPORTING
parent = o_empty_co.
CALL METHOD o_viewer->enable_sapsso
EXPORTING
enabled = l_c_x
EXCEPTIONS
OTHERS  = 0.
l_v_gv_url_c = l_v_gv_url_string .
CONCATENATE l_v_gv_url_c l_c_url_string p0022-pernr INTO l_v_gv_url_c.
CALL METHOD o_viewer->detach_url_in_browser
EXPORTING
url        = l_v_gv_url_c
EXCEPTIONS
cntl_error = 1
OTHERS     = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING error_occured.
ENDIF.
cl_gui_cfw=>flush( ).
ENDIF.
but it is not working
thanks
Mahesh

Hi Mahesh,
You need to setup a Single Sign On between SAP Portal and ECC system where yoy are doing the development.
Ask basis team to setup the single sign on and usually this is the job done by Basis teams. Refer the below link to get some idea on SSO setup:
http://scn.sap.com/community/enterprise-portal/blog/2013/12/15/sso-configuration-between-sap-portal-73-and-ecc-60-ehp-6
Thanks
Krishna

Similar Messages

  • Passing a parameter while calling a web dynpro application on portal

    hi
    I am having a web dynpro application which retrieves data from R/3 system via RFC using Jco destinations define in the Portal.
    Now we have different kinds of portals running on the same WAS, now I want the application to run which access data from different R/3 systems thru different JCo destinations.
    I need to create a logic such that mu application runs fine on any portal with any Jco destination.
    Is there any provision to achieve this.
    kindly let me know about this.
    Thanks and regards
    kris

    Gopi,
    there's an parameter called "sap-wd-arfc-useSys" you can pass to the application, to change the used JCo-Connection (read more at http://help.sap.com/saphelp_erp2005/helpdata/en/f4/651741f163f023e10000000a155106/frameset.htm)
    so, if you're running the WD-aaplication on <b>one</b> WAS and call it from different portals, you have to create three (or six with the META-connections) JCo-Connection on your WD-WAS.
    In a WD-application you can access URL-Parameters with:
    WDWebContextAdapter.getWebContextAdapter().getRequestParameter("<your URL Parameter-Name>");
    kr, achim

  • Call a ABAP Web-Dynpro-application via a BSP-Application

    We have a BSP-Framework, that call several applications among other things other BSP-Applications, ITS-Application and other systems. Now I want to integrate a ABAP Web Dynpro-Application.
    For the moment I can call the ABAP Web Dynpro-Application from our application.
    This application runs in the same session as the Framework (verify in transaction sm04).
    When I want to call another application in the Framework, the session will be killed (no more sessions in sm04). This happens also, when I want to call the ABAP Web Dynpro-Application a second time.
    I guess, that the ABAP-Framework thinks I want to go outside the system (for example www.google.de) and close the session. I found out, that this wouldn't happen, if the application were suspended. But I found no way to tell the application via a url-parameter to suspend.
    Can someone help me?

    Thx for the tip,
    but I can't firea suspend plug. Because I'm in BSP. I understand the docu so, that you have the option to call a other apllication like BSP from a ABAP Web Dynpro.
    I want to call the ABAP Web Dynpro form BSP like this way.
    1. Start BSP-Framework
    2. Call ABAP Web-Dynpro-Application from BSP
    3. Call another Application from BSP without automatically logout by unload ABAP Web Dynpro. (I have a chance to call the ABAP Web Dynpro again via url to suspend before I call the other app.)
    Regards Stefanie

  • 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

  • FPM Form Scripting - How to call a web dynpro application as pop up

    Hi All,
    I want to call a web dynpro application as a pop up from FPM form scripting.
    Like click on button -Maintain Approval Routing in a FPM form i want to open a web dynpro pop up..
    Thanks In Advance.

    Refer to the post How to show pop up’s in WDA HCMPF by Yugandhar Reddy - on some hints
    Hope this helps.
    Regards,
    Sahir.

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

  • Examples of 'calling a web dynpro application with parameters'

    Hi!!
    I'm I have been watching manual 'Web dynpro for abap: advanced concepts' in the sections 'url parameters' and 'calling a web dynpro application with parameters'.
    Is there some example where these terms are seen.
    Thanks in advance.

    Hi Ana,
    a window inbound plug can have parameters.
    These parameters are automatically fished out of the URL by the framework.
    So your inbound plug handler method has easy access to the parameters.
    URL
    http://<host>:port/sap/bc/webdynpro/sap/<your application>?param1=xyz&param2=abc
    The application is configured to call an inbound interface(window) and plug.
    The plug can be declared with parameters.
    Double click on window inbound plug and add your parameters.
    The parameters are made available by framework if present in Launch URL.
    You can also call an application that has parameters  directly entered on the parameters tab.
    ie Parameters can be part of the application launch.
    regards
    Phil

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

  • Accessing Web Dynpro application outside portal

    Hello alles,
    Our customer wants to display a Web Dynpro application result on a regular hmtl intranet page, i.e. without showing the portal.
    We have tried with html frames, but end up with a flickering or empty screen. The problem occurs both with a quick link to the application within the portal, an SSO link, a link to the iView, a webdynpro/dispatcher address ...
    It seems as if the problem occurs with all WD iViews, but not with e.g. a regular News iView.
    Do you have any suggestion on how we could solve this? Reasons?
    Thank you in advance!
    Brgds,
    Caroline
    Message was edited by:
            Caroline Janzon

    hi
    good
    go through this link,hope this ll help you to solve your problem
    http://www.sap-press.de/download/dateien/1103/sappress_maximizing_web_dynpro_for_java.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/using%20ejbs%20in%20web%20dynpro%20applications.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62
    thanks
    mrutyun^

  • Storing user defaults of Web Dynpro application on portal

    Hi folks,
    I am trying to develop Web Dynpro application that runs in an iView on a portal. I would like to remember certain user defaults for this application (e.g., user default plant). User also has control over this value, so whenever they change it, the value should be update on a backend as well.
    My first thought was to use PCD, but I am not sure how to do that - all the code examples for I found for PCD looked like they were created for portal application, not Web Dynpro ones.
    Anybody here actually done anything similar?
    Edited by: Alexei Isaev on Jan 29, 2008 8:20 PM

    Hi Alexei,
    If you need to store default values for a portal application, you may consider your development in Web Dynpro for ABAP.  I have not come across application level personalisation yet in Web Dynpro for Java, unless someone else can throw some light here.
    Regards,
    Subramanian V.

  • DB access in Web Dynpro application in Portal

    Hi,
    I will develop a web dynpro application which will run in the EP and use an DB. How are the best practices in this scenario ? Should I use a Web Dynpro Model (EJB or WebService) for the persistence operations or should I use Portal Services ?
    Regards
    Flo

    Hi Florian,
    go trrough these docs:
    EJBs in Web Dynpro Application Using Wrapper Class
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00be903b-8551-2b10-c28a-8520400c6451]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c]
    Accessing database table using EJB and web dynpro
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c]
    Oracle Connectivity with EJB using WebDynpro Application
    [https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/oracle%2bconnectivity%2bwith%2bejb%2busing%2bwebdynpro%2bapplication]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0b657b7e-0c01-0010-74a4-b71518871800]
    hpe it hlps u...
    Regards
    Khushboo

  • When to use WEb Dynpro application and Portal application in NW dev studio

    I would like to know what is the difference between
    webdynpro application  and EP Application using PDK.
    Are they comaparable  ...Which one has an edge over the other specific to any applications.
    I want develop an application related to e-commerce using the SAP R3 as backend for an industiry(where in a registered user can place an order and query on the staus of order. All the data will be stored in R3 ).
    I am planning to dev this using NW dev studio , but have an appehension about which application is useful for this kind of application either webdynpro or EP application .
    can anybody explain which one has edge over the other ( Webdynpro or EP applcations in context with NW Dev studio) and why.
    thanks
    PK

    Hi,
    <b>Webdynpro</b> is used when requirements ask for a prototype using minimal time n effort.
    Highly skilled programmers are not necessary to write a webdynpro application
    It uses dynamic controls without reloading the page.
    <b>Portal components</b> esp Abstract portal component provides a lean method to write HTML command to web client
    Large interactive components requires more programming.
    <b>WebDynpro</b> is a highly declarative, tool-based programming model. It minimizes platform-dependent "plumbing" code for building UIs and maximizes declarative metadata describing huge portions of a typical application in a platform-independent way.
    Web Dynpro follows a "top-down" approach in order to consistently support multiple runtime platforms.
    In Web Dynpro you just have to drag & drop the UI components.
    <b>Portal components</b> has followed a "bottom-up", programming-driven approach to Web development.
    Regards,
    Pooja.

  • Web interface displays via Portal using Mozilla or Firefox

    We have several web interfaces (BW-BPS) and have created iViews on our Portal (EPP 6.0). These iViews properly execute in IE 6.0.
    However, when we execute the BPS iViews using Mozilla or Firefox we see significant display discrepancies. For example, the web interface should display grid lines between the rows, but, we don't see them when running through the Portal using Mozilla or Firefox.
    We thought that the Web interfaces themselves may be the issue but they properly execute when run straight from BW in Mozilla 1.7.13.
    Can anyone help with this problem? Thanks,
    Bill

    Hello Bill,
    first of all please check the Product Availability Matrix. Not all browser versions are supported. http://service.sap.com/pam
    Some visual differences between the browsers can not be avoided since browsers just behave differently.
    If the browser is supported and it does not work correctly, please open a customer message.
    Regards,
    Marc
    SAP NetWeaver RIG

  • How to access BW RFC FM as web service from Enterprise portal using SSO

    We have developed a custom remote function module in our BW system. We are accessing this function module as a webservice from a java class we have written. This java class access the BW webservice and formats the output. We created a webservice on top of this java class and deployed on the Enterprise Portal. SSO is setup between EP and BW systems. So when i make call to the BW RFC webservice, i would like to make use of SSO setup between EP and BW instead of hardcoding the user id and password while calling the webservice. Please advise on how to achive this.
    Thanks for the help.
    Thanks
    Hari
    Edited by: Hari Krishna Nalluri on Mar 19, 2008 12:41 PM

    Hi,
    Go to webserive perspective -> WebService Configuration -> Expand config node->Security-> Select HTTP Authentication and check Use SAP logon tickets option.
    Ashutosh

  • Deploying web dynpro application into portal

    hi
    I have created a simple example in webdynpro in Netweaver developer studio, and I have deployed it into the portal whose version is EP6 SP9.
    where can I see that deployed webdynpro application(in my case it is WebDynpro_Basics.ear) in the portal.
    Can any one tell me the navigation part in the portal.
    thanks
    krish

    Hi Krish,
    You will find the deployed webdynpro application in webdynpro content administrator. You have to access it using portal administrator user-ID. the url is:
    http://<hostname>:<J2EE engine port>/webdynpro/welcome
    If you want to display the webdynpro application as an iView in the portal have a look at the following link.
    http://help.sap.com/saphelp_nw04/helpdata/en/d8/6ee03fc2269615e10000000a155106/frameset.htm
    Regards,
    Aniket

Maybe you are looking for

  • Importing video from Canon DSLR into time line in Premiere elements 10

    When I import video from the media files in premiere elements 10 on to the Time line,I get a message saying that the video is not a suitable format and do I want to change it to a suitable format or leave it as it is.If I go to change it then the vid

  • New iPod 80gb will not display music videos

    Bought a brand new 4th iPod last week and it's my first video, an 80gb to make use of the loads of different quicktime stuff i have including music videos. Had already updated my Itunes and OS using automatic software update in OS X, then loaded and

  • Does updating the N95 software erase installed cus...

    I need to install the new N95 system software. I am concerned that by so doing the process will remove some application software that I have already installed (such as for email). Will this happen? If I backup the phone's memory onto the external mem

  • Whre does oracle cache and temp files are located?

    Hi thank you for reading my post Please do not shoot me if i have misconception. I come from netbeans world and for netbeans there was some folder that we could delete to make netbeans cache fresh (so more speed). for Jdeveloper i can not find such f

  • Can I change Encoding method in RoboHelp10?

    Hi guys, I am working with a Japanese project in RoboHelp 10. But when I opened this project in English OS everything will be messy code, in Chrome or IE I can change Encoding to fix this issue. Anything I can do this in RoboHelp 10? Messy code: Than