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>

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

  • 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

  • Calling custom Infotype method from Webdynpro Abap

    Hi Experts,
    I am working on an application where i need to call a method of a custom defined infotype.
    I have done this -->
    1. Create a custom infotype 9111
    2. SAP creates a class of that infotype ZCL_HRPA_INFOTYPE_9111
    3. Inside this method there are few inherited method which provide me functionality of insert , update , delete
    i want to call methods IF_HRPA_INFTY_BL~MODIFY,
    IF_HRPA_INFTY_BL~INSERT
    However when i call these method from webdynpro abap this method does not work.
    where as when i try to insert an entry using PA30 transaction it works.
    Does anyone know why does this happen and what is the solution?
    Regards,
    Ashish Shah

    Hi Ashish,
    You need to create method inside your assistance class, the class your webdynpro component talks to.
    Within the methods of Assistance class you will have to create instance of ZCL_HRPA_INFOTYPE_9111 and call its  method IF_HRPA_INFTY_BL~INSERT  passing the data.
    Cheers
    Prashant

  • 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

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

  • How to call BSP page from Webdynpro ABAP ?

    Hi All,
         I have a BSP page which has a page attibute . I need to pass a parameter from Webdynpro ALV table to the BSP page attibute and also need to display that BSP Page . Can any one help me out , how to proceed in this ?
    Regards,
    Kalpana A .

    hi kalpana,
    Use Exit Plug and pass data as URL Parameter.
    http://help.sap.com/saphelp_nw04s/helpdata/en/45/1bc575ba064574e10000000a114a6b/content.htm
    for how to pass url please check this
    http://help.sap.com/saphelp_nw70/helpdata/EN/7b/fb57412df8091de10000000a155106/frameset.htm
    Yogesh N

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

  • Calling a portal page in webdynpro iview.

    Hi Portalites,
    I have developed an webdynpro iview, where it will call other uwl page inside the code.
    This iview is placed in home role(like welcome page).
    in wddoinit method, i have written the code,
    where portal users locale is set to English.and then it will navigate to UWL using WDPortalNavigation method.
    WDPortalNavigation.navigateAbsolute("ROLES://uwl_page",
    WDPortalNavigationMode.SHOW_INPLACE,
    (String)null,
    (String)null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
    "UWL",
    (String)null,
    (String)null);
    Iam able to view the UWL in Home page, but after that if i  click on any user admin, or content admin roles, and agian clicking on home page again or refreshing the page it is showing previous navigation path in top level navigation but in content area it is dispaying uwl.
    Let us clearly expalain, first i have opened portal, home page opened with UWL page in content area.after that i clicked on sytem admin> sytem configuration, after that when i cliked on home role again in TLN, in the TLN it is highlighting system admin>system config but displaying UWL in content area.
    In the detailed navigation, it showing all iviews what home page has.
    Please advice.
    Thanks
    Sony.

    Try setting its contextURL property in WDPortalNavigation(...).
    For info :
    [http://help.sap.com/saphelp_nw70/helpdata/EN/c3/235a428a1e9041e10000000a1550b0/frameset.htm]
    -Abhijeet

  • Calling an Portal iView from Webdynpro - Error

    Hi,
    I have two iViews in a page in my Portal. Both of them are WebDynpro iViews.
    The iView on the Left hand side 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).
    This is not giving me consistent results.
    Please let me know your thoughts.
    Thanks
    Senthil

    Hi,
    Had some permission issues in the loading iView, got that sorted. Now it works fine.
    Thanks
    Senthil

  • Time Constraint Error when calling a Function module from Webdynpro ABAP

    Any help will be greatly appreciated - Thanks RM
    Time Constraint Error
    Information on where terminated
        Termination occurred in the ABAP program "SAPUP50R" - in
         "CHECK_TIME_CONSTRAINT_S1".
        The main program was "MP000000 ".
        In the source code you have the termination point in line 1069
        of the (Include) program "UP50RU01".
    Error occurred during batch input processing
    Source Code Extract
          l_is_inconsistent = 'X'.
        ENDIF.
      Check if there are inverted time periods.
        IF l_prelp_line-begda > l_prelp_line-endda.
          l_is_inconsistent = 'X'.
        ENDIF.
    Check if there are overlaps or gaps.
        IF NOT l_prelp_before IS INITIAL.
          l_date_difference = l_prelp_line-begda - l_prelp_before-endda.
          IF l_date_difference <> 1.
            l_is_inconsistent = 'X'.
          ENDIF.
        ENDIF.
        l_prelp_before = l_prelp_line.
      ENDLOOP.
      IF l_prelp_before-endda <> '99991231'.
        l_is_inconsistent = 'X'.
      ENDIF.
      IF l_is_inconsistent = 'X'.
        IF p_access_type = 'R'.
    490 Datenbankschiefstand Personalnummer & Infotyp &
          MESSAGE x490 WITH l_prelp_before-pernr l_prelp_before-infty.
        ELSE.
    491 Unzulässige Daten Personalnummer & Infotyp &
    Line 1069 Error occcurs >>>>  MESSAGE x491 WITH l_prelp_before-pernr l_prelp_before-infty.
        ENDIF.
      ENDIF.
    ENDFORM.                    " CHECK_TIME_CONSTRAINT_S1     "XYVN0352581
    *&      Form  clear_no_adapter_needed              new     "XREN844998
          text
    FORM clear_no_adapter_needed .
      CLEAR no_adapter_needed.
    ENDFORM.                    " clear_no_adapter_needed
    *&      Form  set_no_adapter_needed              new     "XREN844998
          text
    FORM set_no_adapter_needed .
      no_adapter_needed = 'X'.
    ENDFORM.                    " clear_no_adapter_needed

    Hi,
    Well, are you trying to do a batch input on infotype 0000? If yes you need to check that the proposed values respects the time constraint, meaning no gap, no overlaps and no inversions. Also fields SUBTY, OBJPS, SPRPS and SEQNR must remain initial when processing IT0000...
    Kr,
    Manu.

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

  • FPM Navigation - asking for Log on when calling WebDynpro ABAP Application

    Hi Experts,
    I want to call a Non FPM based WebDynpro ABAP Application from a FPM Component.
    I have followed the method showed in the following thread by Rajkumar to call WebDynpro Application using URL.
    [Launch transaction without launchpad|Re: Launch transaction without launchpad]
    I could successfully call my WebDynpro ABAP application using this approach,
    However when the application opens in new Browser , it asks for log on again.
    Can anyone help me to avoid this log in screen.
    P.S. --> Both the applications are in the same server.
    Regards,
    Ashish Shah

    Hi Ashish ,
    I am also facing the same problem , did you find any solution ?
    Thank You,
    Aman

  • How to Call the RFC in Webdynpro abap application

    Dear Experts,
    Good Evening to all...
    I have to add two numbers using RFC in webdynpro abap application. If we give the numbers in the input screen then the RFC should add it and give it in the output screen. This is the application for that I have created the RFC.
    But the problem is i don't know how to call the RFC in that Webdynpro abap application and how to link the input view and output view with that RFC...? I am new to Webdynpro abap. Please kindly help me on this... I am struggled here... I need your help in this....
    Thank You.

    Hi Jaga,
    You asked the same question again.
    Without closing the [previous one|Re: Where SAP store the uploaded files?].
    I think Abhi has answered your question.
    If not please elaborate on the problem.
    The solution btw is to create a Service Call.
    Sumit

Maybe you are looking for