Exit  from Webdynpro abap application in portal environment

Hi,
I created one custom service in Webdynpro ABAP in ESS and also integrated in the portal environment
I need to put Exit button in every page ( OVERVIEW, EDIT, REVIEW). When user click on 'EXIT' button from any one of page , it should return back to PERSONAL INFORMATION in ESS Homepage.
I have used Exit plug in window , but i read in SAP Library Exit plugs will not work in portal environment.
Let me know which way i should proceed to acheive the Exit functionality.

HI,
Add the following code in action of exit  and also add the application parameter which gets the area page from the portal.
Apart from this, do the configuration settings in these screens ( Define resources, Define services ) in SPRO.
  DATA: countrygrouping TYPE molga,
        arealink TYPE rhxss_ser_linkinfo_s.
  DATA:
    node_settings                       TYPE REF TO if_wd_context_node,
    elem_settings                       TYPE REF TO if_wd_context_element,
    stru_settings                       TYPE if_componentcontroller=>element_settings .
navigate from <CONTEXT> to <SETTINGS> via lead selection
  node_settings = wd_context->get_child_node( name = if_componentcontroller=>wdctx_settings ).
get element via lead selection
  elem_settings = node_settings->get_element(  ).
get all declared attributes
  elem_settings->get_static_attributes(
    IMPORTING
      static_attributes = stru_settings ).
  CALL FUNCTION 'RH_PM_GET_MOLGA_FROM_PERNR'
    EXPORTING
      pernr = stru_settings-personnelnumber
      begda = sy-datum
      endda = sy-datum
    IMPORTING
      molga = countrygrouping.
  CALL FUNCTION 'HRXSS_SER_GETAREALINK'
    EXPORTING
      areagroupkey         = stru_settings-home_service
      areakey              = stru_settings-area_service
      portalcontext        = 'X'
      personnelnumber      = stru_settings-personnelnumber
      countrygrouping      = countrygrouping
    IMPORTING
      arealink             = arealink
    EXCEPTIONS
      areagroupkey_invalid = 1
      areakey_invalid      = 2.
DATA: l_portal_manager TYPE REF TO if_wd_portal_integration,
      l_api type ref to IF_WD_COMPONENT.
l_api = wd_this->wd_get_api( ).
l_portal_manager = l_api->get_portal_manager( ).
l_portal_manager->navigate_absolute(
    navigation_target   = arealink-linkpcdpage
    navigation_mode     = if_wd_portal_integration=>co_show_inplace
    history_mode        = if_wd_portal_integration=>co_no_duplicates

Similar Messages

  • How to access SQL tables from WebDynPro ABAP application ?

    Hi,
    I am trying a scenario, where I need to send an user ID to SQL server table (update/modify/delete) from webDynpro ABAP application.
    Basically ,I am trying to know:---
    a>How to write a SQL Connection from ABAP code within webdynpro ABAP application
    b>What are the ways to do it.(by code or any other API/mechanism)
    I appreciate if anybody knows this.
    Thanks
    Praveen

    Hi,
    The EXEC CONNECT ... is usually used in the procedural ABAP code. For this you can refer to the ABAPDOCU.
    I dont have any sample code on the classes I listed try to check out them for the parameters and the methods they have.
    In WD for Java, we have these connection classes to connect to any databsae server.
    Or try to create an RFC with DESTINATION for this
    Pls check out this link for this -
    Pull data from another r3 server using abap dynpro
    Regards
    Lekha

  • How to deploy the  webdynpro ABAP application  in Portal

    Hi,
        Can someone provide me, all the steps involved to deploy the  webdynpro ABAP application  in Portal.
    Thanks,
    Kundan

    Hi Kundan,
    First create a WD abap component and then you have to integrate in the portal.
    Refer this article [Integrate a Web Dynpro Application into the SAP Enterprise Portal|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/7bfea990-0201-0010-44a7-84a74971b795&overridelayout=true].
    I hope it helps.
    Regards
    Arjun
    Edited by: Arjun Thakur on Sep 22, 2009 2:20 PM

  • Calling a portal page from WebDynPro ABAp application

    Hi,
    I would like to call a portal page (any type) from a WebdynPro ABAP application. I have the PCD location of the page.
    Which call shall I make :
    Absolute Navigation
    Relative Navigation or
    OBN.
    Also, can anyone send me short code snippet on the following.
    The package SWDP test examples are not working.
    Best Regards
    Sid

    Hi Siddharth,
    Well, to start with you can go for ABSOLUTE NAVIGATION.
    Secondly, you can find the snippet here
      DATA LO_API_COMPONENT  TYPE REF TO IF_WD_COMPONENT.
      DATA LO_PORTAL_MANAGER TYPE REF TO IF_WD_PORTAL_INTEGRATION.
      DATA L_NAVIGATION_TARGET TYPE STRING.
      LO_API_COMPONENT = WD_COMP_CONTROLLER->WD_GET_API( ).
      LO_PORTAL_MANAGER = LO_API_COMPONENT->GET_PORTAL_MANAGER( ).
      MOVE 'pcd://portal_content/com.xxxx.zpof_f_XXXXportalcontent/com.xxxx.test/com.xxxx.folders.MaintenanceBusinessPackage/com.xxxx.test.mt.pages.Pages/com.xxxx.pages.MaintenanceTasks'
        to l_navigation_target.
      CALL METHOD lo_portal_manager->NAVIGATE_ABSOLUTE
        EXPORTING
          NAVIGATION_TARGET   = L_NAVIGATION_TARGET
    *      NAVIGATION_MODE     = IF_WD_PORTAL_INTEGRATION=>CO_SHOW_INPLACE
    *      WINDOW_FEATURES     =
    *      WINDOW_NAME         =
    *      HISTORY_MODE        = IF_WD_PORTAL_INTEGRATION=>CO_NO_DUPLICATES
    *      TARGET_TITLE        =
    *      CONTEXT_URL         =
    *      POST_PARAMETERS     = ABAP_FALSE
    *      USE_SAP_LAUNCHER    = ABAP_TRUE
    *      BUSINESS_PARAMETERS =
    *      LAUNCHER_PARAMETERS =
    Above it, the examples of SWDP will not work if you test them from SE80-ABAP WAS...I suggest you to create a WDA IView in Portal and test it in Portal itself.
    Hope this should solve your problem.
    Regards
    <i><b>Raja sekhar</b></i>

  • Calling Webdynpro Java Application from Webdynpro ABAP Application.

    Hi,
    We have developed one Application using Webdynpro Java and I m in need to call the Webdynpro Java application from Webdynpro ABAP.
    Require Suggestions to acheive this.
    Thanks In advance.
    Reg,
    Ajay.

    Dear Ajay,
    Assuming that both your applications WDA & WDJ are in the portal & you don't have to pass any parameters to the WDJ application.
    Write the following code on the action  where you would call the WDJ application.
      DATA:
            lr_compcontroller TYPE REF TO ig_componentcontroller,
            l_component TYPE REF TO if_wd_component ,
            lr_port_manager TYPE REF TO if_wd_portal_integration ,
            wa_navigation TYPE navigation.
      lr_compcontroller =   wd_this->get_componentcontroller_ctr( ).
      l_component = lr_compcontroller->wd_get_api( ).
      lr_port_manager = l_component->get_portal_manager( ) .
    * The value inserted into the navigation-target field can be found in the Portal
    * content administration tab of your portal. It is the ID or PCD Location field
      wa_navigation-target = pcd. " Please provide the PCD Location of the WDJ Application here.
      wa_navigation-mode   = '0'.  "0 = INTERNAL(same page) and 1 = EXTERNAL(new page).
      CALL METHOD lr_port_manager->navigate_absolute
        EXPORTING
          navigation_target = wa_navigation-target
          navigation_mode   = wa_navigation-mode.
    You can get the PCD from the Page properties of the WDJ application page in the Portal.
    Hope it helps!
    Warm regards,
    Upendra Agrawal

  • Apply custom themes to WebDynpro ABAP application in Portal

    Hi,
    We have just upgraded the E-Recruitment to EHP4. We have two instances of ECC in which one acts as HR instance and the other one for E-Recruitmet. We have created custom themes for portal and need to apply the same for the WebDynpro ABAP applications for E-REcruitment. I have downloaded the theme and from portal and uploaded the same in MIME folder using SE80 transaction. I have also added the parameter sap-cssurl=/sap/public/themes/<my custom theme folder name>.
    Also tried giving the url in application parameter as
    SAP-EP-THEMEROOT=http://<hostname>/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/customer/<custom theme>
    Is there any other way to apply themes for WD ABAP applications. I dont want to customize the standard applications and just want to apply the themes.
    Any suggession on this is highly appreciated.
    Kind Regards,
    Vivek.

    Hi,
    to create theme for webdynpro abap application, use Eclipse Plugin.  Please remeber to check the version of theme file before using theme.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10d5ef40-465e-2c10-9ca9-f548bfc3f236
    setup custom theme for webdynpro abap application.
    FEATURED EVENTS
    Regards
    Baby

  • Putting Webdynpro ABAP application on portal

    Hi all,
    We have SAP ECC 6.0 as the ABAP system and EP 7.0 SP 6 is the portal. I want to show a Webdynpro ABAP application on the portal which I have created in the ECC system.
    I have an created an application in the back end with the following parameters :-
    Webdynpro Component name :- ZTESTWEBDYNPRO
    Webdynpro Application name :- ztestwebdynpro
    I then created a Webdynpro ABAP iview with following parameters :-
    Application name :- ztestwebdynpro
    Namespace :- sap
    System :- SAP_ECC_SERP (this has been tested and is working).
    We also have SSO configured with logon ticket to the ECC system.
    But I am getting a "Page cannot be displayed" error when I execute the application.
    Any idea why this can occur?
    Thanks,
    Hari
    Message was edited by:
            Hari
    Message was edited by:
            Hari

    Hi Hari,
    So assuming you have tested the connection to the system,
    perhaps another service, BSP, ITS , whatever
    and that it is creating WEB DYNP ABAP iviews that is the drama.
    Under EP 7.0, be sure to choose Iview type WEB Dynp ABAP.
    the properties page with application parameters is:
    SYSTEM -> As created to access system, available in dropdown
    Namespace - > sap
    Application name ->     <your WDA>    case as created in SE80
    So it looks like you have entered correctly to me.
    Perhaps the portal Forum has more info if you have continued issues.
    regards
    Phil.

  • Probelm in calling ME23N from WebDynpro ABAP application.

    Dear All,
    My requirement is to call the transaction ME23N by doing some action from WDA application.
    And I have to pass the Purchase Order Nubmer from this WDA application.
    This is for your information, For this I have created the Transactional iView for ME23N and I am using the PCD location .*
    I am using the " navigate_absolute " method from the portal intergration ( IF_WD_PORTAL_INTEGRATION ).
    There I am passing the launching paramerters and Business parameters . It is opening the ME23N Screen, But it is not taking the purchase order number what I am paasing in the business parameters . It is always taking the default purchase order number.
    And one more this , the same thing i have tried for VA03 transaction, here everything is going fine.
    But I did not understand the why it is not taking purchase order number what I am passing from the WDA application in the business parameters.
    Hope I have given my query clearly...
    Please help me...
    Thanks & Regards,
    Veerendra Nath

    Solution found.
    You can use Tcode MMPURPAMEPO Tcode.
    In your URL set the parameter P_EBELN with the PO number and set the OKCODE to execute the report.
    This transaction is used in Portail only.
    You can found the same for MIGO/MIRO and several other Tcode.
    Regards
    Ludovic Bento

  • Calling ActiveX from WebDynpro ABAP application

    Hello everyone,
    I am looking for the possibility of calling an ActiveX control based application by extending my Web Dynpro ABAP application. Is this possible at all?
    Thanks,
    Amber
    Message was edited by: Amber Gupta

    Saraa_n wrote:
    Hello Bala,
    >
    > I doubt whether you can pass parameter for the TCODE ME23N because in the ME23N transaction, you can select the PO only via the popup dialog and you cannot directly enter the PO number.
    >
    > I dont think while calling TCODE via ITS you can set value in the popup dialog and execute it. Alternative would be to use ME23 TCODe.
    >
    > BR, Saravanan
    It is correct taht ME23N can be tricky (as can MIGO and MIRO) because of the way they launch.  I've done this in the past by creating a new custom program and TCoce.  The custom program has a simple parameter for the PO # so it can be passed in via URL. The logic of the custom program then starts a call transaction and handles the popup and supplies the PO #.

  • Pass value from webdynpro abap application to bsp application

    Hello,
    I want call api bsp javascript from WDA exchanging values between the two applications.
    I have a solution but it is with portal integration.
    I would like a procedure without using the portal.
    Webdynpro and BSP only.
    How can I do this ?
    Thanks for your help.

    Hi,
    Refer these threads-
    Re: Passing Object ref to Webdynpro Application while calling from BSP screen
    Both BSP and WDA has an URL associated with it.
    In the WDA, create an LinkToUrl UI element upon which triggers the BSP application and pass the parameters to this BSP application. Check for this BSP application has also parameters in it.
    Refer this link Re: Read SICF URL
    Regards,
    Lekha.

  • WebDynpro ABAP application opening blank in portal

    Dear All,
    There is a strange issue which is being faced by one user. when the user tries to access a Webdynpro ABAP application in Portal then it opens in new window but nothing is displayed in the tray. Now when the user right clicks on the opened window->properties and copies the url from properties and pastes it in new tab (IE 8 is used) then the application opens and works fine.
    The portal and backend roles are fine for the user as he can access/work when the application is opened using the copied url.
    Please suggest what could be the problem for the user. For other users the issue mentioned is not there.
    Regards,
    Samir

    Hi Samir,
    Pls look into these threads -
    IE8 problem (WebDynpro ABAP iView call)
    WebDynpro for ABAP and IE 8.0
    Regards,
    Sen

  • Junk Characters while opening a file from webdynpro ABAP

    Hi All,
    We have a Webdynpro ABAP application ,  in that application from a link we are opening DOC,PDF,JPG........files . When we click on that link it is opening in a Junk charcters .  We have another webdynpro ABAP application in portal , in that application the files are opening fine.
    Could you please let me know why it is opening in a junk characters in first application?
    Regards,
    Krishna.

    Hi ,
    The files are opening fine in IE7 but when we try to open in IE8 and IE9 they are opening in a junk characters.
    I am not sure in another webdynpro ABAP application the files opening correctly in IE 8 .
    Regards,
    Krishna.

  • How to call a webService from WebDynPro ABAP ?

    We are trying to call a webService from WebDynPro-ABAP application. It is not working, While if we are calling the WebService from a Report, it is working.
    How exactly do we call a WebService from a WebDynPro-ABAP application?
    What are the main steps involved ?

    Hi Phani,
    You will need to create a service call as follows.
    Right click on your WD component name and select Create->Service Call
    The wizard will guide you through a series of steps to make a Web Service Call. On the 3rd screen, it will give you options such as Function Module, Web Service, etc
    Before making a service call, you will need to create a proxy for the Web service in the ABAP Workbench using a WSDL document as a basis. To create or consume Web services, you will need the authorizations associated with the role SAP_BC_WEBSERVICE_ADMIN.

  • Calling Portal iView from a WebdynPro ABAP application

    Hi ,
    I have a requirement where I need to call an iView in my portal from the Webdynpro application also existing in the portal.
    Can anyone provide me the method with source code( if possible ) to call an iView existing in the portal from the WebDynPro ABAP application.
    Best Regards
    Sid

    Hi Siddharth,
    Well, I think you can go for Portal Navigation concept.
    Please check the required source code in WDR_TEST_PORTAL_NAV Web Dynpro component. That will illustrate both Page based Navigation and Object based Navigation.
    Hope that should solve your problem.
    Regards
    <i><b>Raja Sekhar</b></i>

  • WebDynpro ABAP application issue from Portal after ECC 6 upgrade to SP14

    Hi,
       We have recently upgraded the Kernel, ABAP and Java stack of ECC 6.0 system to SP14. After the upgrade most of the WebDynpro ABAP applications doesn't load and just flickers when run from Portal as a WebDynpro iView, but they run perfectly fine when accessed directly using URL. These were running fine prior to the upgrade. Can someone suggest what can be going wrong.
       Will reward points for helpful answer.
    Regards
    Mukesh

    Hi Mukesh,
    As Gajendra said, restarting the service in SICF sometimes works for us, but not always.  We have also had to deactivate the entire Webdynpro node, and then reactivate it and all of the services below it.
    Obviously something changed in the SP, given that we now have to do this every time we create a new WDA application.
    Cheers,
    John

Maybe you are looking for

  • Extract data from a table

    Hi All, How to extract data from a table to a excel sheet. I want matnr and desc from MARA. Please help me. Thanks Veni

  • How to close a PO at the header level

    Is it possible to close a PO at the header level or a way to deactivate the PO so that no new items can be added? Thanks in advance for any suggestions.

  • Xcode is not wanting to run a program with "3.1" included in filename

    I have been having a strange problem with Xcode lately. The other day I was writing a program as a Cocoa Application Project and I named the file prog3.1. This was a simple command-line program that would just display some values that had been stored

  • Scroll bar not showing relative size correctly

    I'm not sure of the correct terminology so please bear with me. In CS4 when I zoomed in on an image, the bar at the bottom would show the size of the image now on screen relative to the full size. i.e. if I go from 50% to 100% the bar would be half t

  • Why can't I import this clip?

    A posting in the other forum got 19 views but no replies. Reposting here. I have iMovie HD 6.0.2 I have a DVD disk with a 43-minute mpg clip followed by two shorter clips. All play on my TV using a DVD player. Near the end of the 43 minute clip is a