How to exit from a WebDynpro ABAP application and open another url

Hi Friends,
How to exit from a WebDynpro ABAP application and open another url like (www.yahoo.com) in the same window of the WD4 application on click of a Button?
Regards,
Xavier

Hi,
First of all you should create outbound plug in the window you are trying to exit with plufg type "Exit"
Then create method handler in the view with this code
        data lo_view_cntr type ref to if_wd_view_controller.
        data lo_win_cntr type ref to if_wd_window_controller.
        data: l_parameter_list type wdr_event_parameter_list,
              l_parameter type wdr_event_parameter,
              l_val type ref to data,
              l_val_url type REF TO data.
        field-symbols: <fs> type any,
                       <fs_url> type any.
        lo_view_cntr  = wd_this->wd_get_api( ).
        lo_win_cntr = lo_view_cntr->get_embedding_window_ctlr( ).
        CREATE DATA l_val type c.
        CREATE DATA l_val_url type string.
        ASSIGN l_val->* to <fs>.
        ASSIGN l_val_url->* to <fs_url>.
        <fs> = 'X'.
        <fs_url> = 'http://your-link.com'.     
        l_parameter-name = 'URL'.
        l_parameter-value = l_val_url.
        INSERT l_parameter INTO TABLE l_parameter_list.
        lo_win_cntr->if_wd_view_controller~fire_plug( EXPORTING plug_name = 'EXIT_PLUG'
                                                                parameters = l_parameter_list ).
      You can easily change this logic to exit application instead of redirecting to the site
       just changing to
       l_parameter-name = 'CLOSE_WINDOW'.

Similar Messages

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

  • Need a call a portal iView from a WebDynPro ABAP Application

    Hi,
    I have to call a portal iView from the WD ABAP application.
    The iView root is e.g.
    folder1/folder2/check_workset1/iView
    How can we call it using Absolute navigation or Relative Navigation.
    I just want to call this path.
    Can anyone provide me with a code snippet.
    Best Regards
    Sid

    Hi ,
    I am calling the following method in my action call of a Webdynpro ABAP View
      CALL METHOD lo_portal_manager->NAVIGATE_ABSOLUTE
      EXPORTING
        NAVIGATION_TARGET   = 'Roles://portal_content/xxxx._and_remuneration'
        NAVIGATION_MODE     = IF_WD_PORTAL_INTEGRATION=>CO_SHOW_EXTERNAL
       WINDOW_FEATURES    =
       WINDOW_NAME        =
       HISTORY_MODE       =
       TARGET_TITLE       =
          CONTEXT_URL       = 'http://xxx.xxx.adsint.biz:50000/irj/portal'
       POST_PARAMETERS    = ABAP_FALSE
       USE_SAP_LAUNCHER   = ABAP_TRUE
       BUSINESS_PARAMETERS =
       LAUNCHER_PARAMETERS =
    But it is still noot opening the page for me from the WD ABAP application.
    Can anyone let me know , what can be the reason.
    Best Regards
    Sid

  • Attach Interactive Forum to Workflow from a Webdynpro ABAP application

    I have a webdynpro ABAP application which has an Interactive form. After the user enters the form and clicks on 'Submit', I trigger a workflow for Approval. My requirement is to add this same form as an attachment to the workflow. I know I can do this by adding the Fileupload UI element and letting the user browse to the file after saving it. But I want to attach it directly without the user having to save the form to Desktop first.
    I tried passing the pdf_source(XSTRING) to the container and it does attaches a pdf to the workflow but when I open it, the form is blank and user entered values are missing.
    Please respond only if you know the solution and don't send me links to other forums on SDN, I have read them all.

    sharing the solution always helps some or the other person seeking similar answers to their problems. It would be good to share your solution in this open community. It helps.

  • Webdynpro ABAP application to open a document saved in KM

    Hi All,
    Need your help.
    I have the following scenario to work on it:
    My client wants to upload the form16 of all employee to EP and and wants to give a link in ess for that file to it's employees. The form16 will in PDF format and the total number of files will be 30,000 as my client have 30,000 employeess and there will be one form16 file for each employee. My client wants to upload all forms16 (30,000 files) to EP every year by replacing the old one for previous year.
    I understand that mass upload of files is required as one by one file upload is not possible for 30,000 files. I also understand that after uploading the files to KM, I will need a Web Dynpro ABAP application to download a perticular file from KM to local pc and open it for the logged in employee. And for that the file name should be the employee number so we can get a perticular file for perticular employee.
    now, I have the following questions:
    1) What solution should I provide to my client for mass upload of 30,000 files to KM so that they can upload those files every year and remove the old files.
    2) In Web Dynpro ABAP how can I down load the single file related to loggin user from KM to local (user's) pc and open it in adobe acrobat reader.
    I request you to suggest me in this matter.
    Thanks in advance.
    Vikrant

    Hi Thomas,
    thank you.
    1) What solution should I provide to my client for mass upload of 30,000 files to KM so that they can upload those files every year and remove the old files.
    I will put my above question to portal forum.
    2) In Web Dynpro ABAP how can I down load the single file related to loggin user from KM to local (user's) pc and open it in adobe acrobat reader.
    For my 2nd question, thank for the solution. I have tried with LinkToURL elemtnt and it worked. But I have one more question about the same. I have uploaded one pdf file to km and tried to open this file using LinkToURL element in Web Dynpro ABAP. In the 'reference' property of LinkToURL element I have given path to the document. This path I got from portal when I opened the settings->property of uploaded file, which was something like this:
    http://<%hostname%>/irj/go/km/docs/documents/RComm/PDF%20Files/FAQs%20CTC.pdf
    In this I have replaced the
    <%hostname%>
    with actual host name:port number.
    So in this case I have hardcoded the hostname:port number.
    Is there any way or function module using which I can get the host name and the port number of the portal so in future, if
    it changes, I will not need to change the code.
    Thanks again.
    Vikrant

  • 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

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

  • Getting Pernr for WebDynpro ABAP application

    I am building a new WebDynpro ABAP application and I want to be able to get the PERNR for the user logged into the portal and this application.
    I have read some information on this forum about getting the URL or application parameters in order to get the userid or similiar parameters and to handle this within the Window in the HANDLEDEFAULT method of a WebDynpro ABAP application.
    I have looked into this and I don't think pulling information from the application parameters will work.  For example, I checked one of our current services for "Personal Data"  and when I go to the portal content administration,  application parameters, I don't see any reference to userid..etc.  I see Property ID, Property Category, Inheritance, End-User Personalization, and Property Description.  In addition, I do not see any information from the URL itself that I could use. 
    Here is the scenario.  The user logs into the portal using the 3 character Network id which in turn, I assume, gets their SAP userid and PERNR in order to retrieve all the HR infotype information for each service.  By the way, the service I mentioned above, "Personal Data", is written in JAVA, so I am not able to see how this particular service works or handles getting the userid and PERNR.
    Has anyone come across this scenario before and how was it handled in terms of getting the userid and PERNR?

    I was thinking that SY-UNAME would be available, but was not sure.  For some reason, I was thinking I was going to have to pass something from the applicaton parameters or some other method to my WebDynpro ABAP program..
    I am not the portal administrator so I have not yet added my WebDynpro ABAP program to the portal yet.  Once, it's added, I will check out the availablility of sy-uname.
    Thanks.

  • Popup for transport request in WebDynpro ABAP application

    Hi there,
    which function module can I use to prompt the user for the transport request in an WebDynpro ABAP application.
    In SAPGUI I found 'TR_ORDER_CHOICE_CORRECTION' to do this but I get a short dump when I call this one from a WebDynpro ABAP application ...
    Many thanks in advance!
    Regards,
    Steffen

    Thanks for your replay!
    The reason I get the short dump is the function modules I found call a dynpro screen inside for prompting for the request. I am not surprised this does not work for WebDynpro applications ....
    So I thought there is a generic function module for WebDynpro applications available or a WebDynpro component I can use for this ... Sure I could build it by myself but this does not seem to be the right way for me since this requirement seems to be of a generic nature.
    @Gaurav: I am interested to bring up a generic popup for prompting for the request. So I cannot use the flags to suppress the screen ...
    Best regards,
    Steffen

  • Webdynpro ABAP application for specific Country

    Hello Consultants
    We have developed a custom Webdynpro ABAP application and the service is working alright.
    The probelm is that this service is to be enabled only for one Country i.e. India and this should not be visible for other country users.
    I have created resource, service and country-specific service for this application and linked the country-specific service to India. Even after doing this am not able to stop  the availability of  this service other countries.
    Shall be thankful for an immediate response.
    S. Chandrasekaran

    Dear Bharath,
    I am no expert on the topic but i can definitely answer your last question.
    Yes, Webdynpro ABAP applications are available in the latest versions.I have seen this in ECC Enhancement Package 3 (ECC 603).
    I can't really tell you much abt PCRs but the Requisition forms(SRQ3) in 603 are based on WDA application.If interested you can check the Recruitment work center in MSS.
    Also, please ensure that the relevant Business Function/Services are activated when using the enhancement packages to see the relevant functionalities.
    I think you need to activate the HCM administrative services BF available as of 602 . This definitely uses webdynpro ABAP applications in the portal.
    Regards,
    Sowmya
    Edited by: Sowmya Kadambi on Dec 23, 2008 3:23 PM

  • How to exit from the button test in diagnostic mode

    Hi,
    I am having some trouble with my ipod 7th gen.
    First my lightning cable wont be recognize. show the error Accesory incompatible.
    I try to solve the problem cleaning the golden pins in the cable and in the ipod. Don't work
    I enter in diagnostic mode in my ipod and I get stucked in the button counter test..
    In the screen appear a mesage 'Please reset the unit to end'. I don't know how to reset the unit
    I press any button and only increase the counter for every button.
    First how acan exit from the button counter test and how can fix the issue with the lightning cable

    Your problem is that you are trapped inside an event case. It is not a good idea to run extended code inside event cases, else the event structure cannot service other events.
    Why don't you use the outer loop for everything? Now things don't step on each others toes. What good is an event structure if it cannot react at all times???
    Message Edited by altenbach on 07-25-2008 12:26 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    event_problemMOD.vi ‏17 KB

  • WebDynpro ABAP iView not opening in new window

    Hi,
       I have created an iView for a WebDynpro ABAP application and I am having a link in a home page from where the iView should open in a new page. I have set the properties "Launch in new Window" and "Show open in new window option" of the iView but still it doesn't open up in a new window.
        Can someone suggest me what's going wrong?
        Will reward points for helpful answer.
    Regards
    Mukesh

    Hi Volker,
       Thanks for your reply.
       I think, I have set the properties of the iView right. I have tried with all the options for the property "Launch in new window" property of the iView but it didn't work.
       "By home page framework" I mean that the link of the iView in portal has been created using the "Home page framework" i.e. from "SPRO" transaction in the backend.
       Please let me know if you need any other input from me.
    Regards
    Mukesh

  • 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 Debug WebDynpro-ABAP application

    Hello Friends,
         1.  How to Debug WebDynpro-ABAP application.
         2.  What is modal dialog
         3.  If Component contains more than one view, how to make one view is the default. Is that any way I can hide a view.
        4. Is that Component is the highest in the design structure, or any other types available like development components in WebDynpro-Java.
    Thanx for Ur time.
    Cheers,
    Sam

    Hi,
    As i explained LIMU are subobjects like views as they dont have the seperate identity in repository so they have to be linked thru there parent component.
    So when you transport whole component u can see there would be some entries in your transport list as LIMU types ( for views , windows).
    OTR are text elements which u create for the elements of your view so u dont require to hardcode the text to be displayed as they need to be displayed in different languages so what you do is you create say button and for text to be displayed you create on OTR element under some package. now you give this package to your translation team to do all needed translations.
    Yes DDIC types are from dictionary only but when you transport them so all newly created DDIC should also be transported.
    P.S -> Pleas close this thread if satisfied with all questions.
    Thanks
    Anuj

  • Launching webdynpro ABAP application from workflow task  (without UWL)

    Hello,
    How can i start webdynpro ABAP application from workflow without portal?
    Workflow and webdynpro ABAP are located on the same system.
    I assume it must be possible without transaction SWFVISU.
    thanks
    Regards
    Paul

    First you need to define a external service then you have to generate a task from this external service and then you need to include this task id in you workflow for a ACTIVITY step then this step can be either background or can be assigned to any agent
    you have to make use the below two Txn
    WF_HANDCUST and WF_EXTSRV

Maybe you are looking for

  • Can I Retrieve Files From Time Capsule?

    I had a MacBook Pro that was fully backed up to a Time Capsule. The laptop was stolen last week. I have some files (photos I wanted to use for holiday cards) I wanted to retrieve while I save up some money to buy a new MacBook. I have two powerbooks

  • Won't Let Me Export

    Okay so I have been working on this project for a few months now, it's about 5-10 minutes long. It consists of some Photo-Jpeg quicktime files, a photo and some wave/mp3 files. I finally finished editing the other day, but it never lets me export. It

  • Help on merging classes

    hi i have 3 classes, player, card, test player class: public class Player { String name; public String getName() { return name; public void setName(String playerName) { name = playerName; }card class: import java.util.*; public class card {      publ

  • Business scenarios in finanical

    Hi Experts, i am new to sap Bw, i would like to ready notes in service.sap.com. It ask for user Id & password. is there any way to log in, because SAP is not installed in my computer. could you please help me regards RK

  • SIP VoIP 3.0 and IPv6

    I have N85 RM-333, firmware 31.002. After I have set up dual IPv4/v6 stack, I started receiving "488 Not acceptable here" from the asterisk server. The problem turns to be in this SDP line sent by the handset: c=IN IP6 2001:5c0:1507:c500:222:fcff:fed