Link to Action - How to call a DynPro application?

I am new to ABAP Web DynPro. I have a basic question with regards to accessing any dynpro application with Link to Action object. Basically I created a WebDynPro page with some links (Link To Action).  On click of these links I want to call another DynPro application.   Can anyone just provide me with a code snippet for the onAction event that calls the dynpro application and opens it in the same browser.
Thanks.

Hi Shan,
wven i am new to Web dynpro,what i can think of is when we create new webdynpro appplication we get hyper link and we can call our application using this link and we have Fm to call teh same .in your onaction event we can call this FM 'CALL_BROWSER'
Sample code for the same :
CALL FUNCTION 'CALL_BROWSER'
EXPORTING
URL = 'http://iginsapecc.in.intelligroup.com:8100/sap/bc/bsp/sap/zvin_tran1/first.htm'
WINDOW_NAME = ' '
BROWSER_TYPE =
CONTEXTSTRING =
EXCEPTIONS
FRONTEND_NOT_SUPPORTED = 1
FRONTEND_ERROR = 2
PROG_NOT_FOUND = 3
NO_BATCH = 4
UNSPECIFIED_ERROR = 5
OTHERS = 6
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
Poornima

Similar Messages

  • How to call Web Dynpro from WAD

    Hello,
    How to call Web Dynpro Screens from WAD (Web Application Designer) and Vice Versa.
    Are there any parameters changes at Web item level..? Also what we have to specify at Data Provider level..?
    Your help highly appreciated.
    Thanks,
    Madhu
    Edited by: Madhu on Feb 10, 2011 1:03 PM

    Hi naveen ,
    Check these threads for calling workbook from WAD ,
    1. [SDN Help 1|/thread/268199 [original link is broken];
    2. [SDN Help 2|Insert multiple queries using either WORKBOOK, WAD or Report Designer;
    3. [SDN Help 3|http://help.sap.com/saphelp_nw04/helpdata/EN/9d/76563cc368b60fe10000000a114084/frameset.htm]
    4. [SDN Help 4|How to call a BSP page or webdynpro from a WAD Template button;
    Regards ,
    Lokesh

  • How to link the ALRTINBOX in a ABAP Web Dynpro application?

    How can I link the ALRTINBOX window in a web dynpro application view?

    Hi Rahki,
    The status of what?
    There are traffic light icons that you can use, or you can set  the cell design (which changes the background colour of a cell (if you are in a table).
    I often use this to indicate on a review step whether a cell/row has been inserted, modified or deleted from a table.
    Chris

  • How to call a struts application in a portlet

    How to call a struts application in a portlet. I have two different ear's. In one ear I have my struts application and in one war i have a struts portlet. In the struts portlet provider.xml defaultAction tag can i call the action class .do which in other ear (ie my struts application ear).Can anyone suggest me whether this is the right way or else can u suggest me with some other thing.
    Waiting for ur responses.
    Thanks and Regards,
    Dhanu.

    Hi Dhanu,
    Your Struts Portlet will not be avialble via a URL as it is completely dependent on Oracle Portal Environment. The Provider for the Portlet is alone available via a URL - you would have registered your Portlet using the URL of the Provider.
    Your Struts application, which does not rely on the Oracle Portal Environment, is defeitely accessible from a URL. It's just another web application that uses the popular Struts Framework.
    Hence, you can use the URL ( the starting point - a JSP, Servlet, etc. ) of your Struts Application to "call" the application in your Struts Portlet. I don't think you need to fiddle with the parameters in Provider.xml.
    Moreover, <defaultAction> in Provider.xml should have the URL of a Struts Action Class - the mapping in the
    struts-config.xml should map the .do action to the right JSP file.
    You can have a look at Metalink Note : 331069.1 for a good insight into the <defaultAction> Tag.
    Regards,
    Sandeep

  • How to call a WD4A Application of another system

    Hi,
    I have the need to call a WebDynpro Application of another system via a URL call, thet the application should be opend in the CRM WebUI Window (statefull ) .
    Calling the application via a button event & transaction launcher works fine, but i need to call it from a BSP page. So my idea was to create an iframe, but this obviously opens a new window:
    <html>
      <head>
        <title>IFrames - Webdynpro Test</title>
      </head>
      <body>
        <iframe src=<%= lv_url_route %>"
          width="100%" height="500" scrolling="auto" frameborder="1" transparency>
              </iframe>
      </body>
    <html>
    Can anybody help?!?!
    Thanx & best regards,
    Oliver
    Edited by: Oliver Pregler on Jul 28, 2008 3:26 PM

    Hi Oliver,
    unfortunately I know nothing about BSP-Applications, but this is how I call my WD4A-Application using a FM from CRM:
    data: lr_empty_parent type ref to cl_gui_container,
          lr_viewer       type ref to cl_gui_html_viewer.
    data: lv_url(200)     type c.
    lv_url = 'http://www.xyz.com'.
      create object lr_viewer
        exporting
          parent             = lr_empty_parent
        exceptions
          cntl_error         = 1
          cntl_install_error = 2
          dp_install_error   = 3
          dp_error           = 4
          others             = 5.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                  with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      lr_viewer->detach_url_in_browser(
        exporting
          url              = lv_url
        exceptions
          cntl_error       = 1
          dp_error_general = 2
          others           = 3 ).
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                   with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      cl_gui_cfw=>flush( ).
    If it helps you - fine. If not - forget it
    Best regards
    Jörg Racz

  • How to call a VB application from Java

    Hi,
    does anybody know how to call a VB application from java.
    Would appreciate if you can provide me with an example.
    thanks

    try exec()ing the cad program with the name of the file as a command line parameter...
    Runtime.getRuntime().exec("CADProg.exe Test.prt");
    i have no clue if this will work but it seems like it's worth a try.

  • How to call web dynpro ABAp application into workflow

    Hello All,
    How to call webdynpro application into workflow .Is it possible ?
    Scenario is : A web dynpro application should flow into 3 levels of approvals .
    Please share your knowledge .
    Thanks
    Sonal

    >
    Saurav Mago wrote:
    > hi,
    > I dont think from workflow , you can call WD application. 
    >
    > Thanx.
    Actually you can configure a workitem to launch WDA via UWL ( http://help.sap.com/saphelp_nw70ehp1/helpdata/en/59/d516690e854c7090ae15bf492a869f/frameset.htm ) or in the NetWeaver Business Client using the Business Workflow Workplace (WDA Application SWF_WORKPLACE).
    There is also a chapter in the upcomming SAP Press 2nd edtion workflow book on different aspects of Web Dynpro ABAP integration into Workflow:
    http://www.sappress.com/product.cfm?account=&product=H3057

  • Calling Web Dynpro application or URL from POWL

    Hi Friends,
    I need to call a Web Dynpro appl from a custom POWL. In my feeder class's method HANDLE_ACTION, i am not getting how to use e_portal_actions parameter for calling a URL of WD application. Pls help me out in this.
    Regards,
    Saud

    You can create a launchpad application through tran LPD_CUST and then in repsective method of POWL class you can launch your web dynpro application like this
    DATA ls_appl_param              TYPE APB_LPD_S_PARAMS.
      DATA lt_appl_param              TYPE APB_LPD_T_PARAMS.
      DATA lt_lpd_content             TYPE apb_lpd_t_content.
      DATA lr_lpd_content             TYPE REF TO apb_lpd_s_content.
      DATA lt_lpd_appl_params         TYPE apb_lpd_t_params.
      DATA lr_lpd_handle              TYPE REF TO cl_apb_launchpad_api.
      DATA lo_component     TYPE REF TO if_wd_component.
      DATA lr_provider      TYPE REF TO if_apb_lpd_provider.
      "Get launchpad handle
    lo_component = wd_comp_controller->wd_get_api( ).
    cl_apb_launchpad_api=>read_for_display( EXPORTING id_role = cl_oif_ui_assist=>sc_lpd_roles "Role Name
                                                       id_instance = cl_oif_ui_assist=>sc_lpd_instance " Instance Name for Launchpad
                                                       id_langu = sy-langu
                                                       ir_provider = lr_provider
                                                       ir_wd_component = lo_component
                                             RECEIVING er_launchpad = lr_lpd_handle ).
      CHECK lr_lpd_handle  IS BOUND.
      lt_lpd_content = lr_lpd_handle->get_content( ).
      READ TABLE lt_lpd_content REFERENCE INTO lr_lpd_content
                                WITH KEY link_text = cl_oif_ui_assist=>sc_lpd_link_text. "Link text for launchpad
          ls_appl_param-key = cl_oif_ui_assist=>wda_config_key.  "'SAP-WD-CONFIGID'. "app conf if any
          ls_appl_param-value = cl_oif_ui_assist=>CREATE_CONFIG_ID. "'MDG_OIF_CREATE_CONF'.
          APPEND ls_appl_param TO lt_appl_param.
          lt_lpd_appl_params = lr_lpd_content->application_parameter.
          "launch application
          lr_lpd_handle->launch_application(
            id_application_id         = lr_lpd_content->application_id
            it_application_parameters = lt_lpd_appl_params
            it_business_parameters =  lt_appl_param

  • How to call webservice server application in jsp

    Hi Friends
    I followed this link http://www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html and run the server and client web service application successfully. How to call the Webservice server application in JSP instead of using client (java main method) java appliaction. Is there any tutorial or code for accessing the webservice server application in jsp.
    Thanks and Regards
    Sherin Pooja

    797526 wrote:
    Hi
    I feel that JSP is just a view page.Not a feeling, it actually is :)
    So it is not good practise to write the scriplet code in JSP page. Absolutely right.
    Is there any other way to call the webservice server application in my client(JSP) page?
    What is it that you want to do? If despite all you have said, you still wish to call the webservice from a jsp, read my response above.
    You would do well to rephrase your question if there's something else that you are asking.
    ram.
    Edited by: ramp on Dec 27, 2010 12:35 PM

  • How to call a Webdynpro application from a BSP page

    Hi to all,
              I have created a web-dynpro application, now i have to call this function through click event of a BSP page. How i can achieve it.
    Please help if anybody have idea.
    Thanks in advance.
    Pankaj Kumar.

    Hi Pankaj,
       Using portal eventing you can acheive that.
    WebDynpro and BSP communication
    Regards, Suresh KB

  • How to call custom BSP application (copied from standard)

    Hi,
    I came across 1 interesting link in SDN.
    [Enhancement procedure of BSP application HRRCF_RECRUITER in eRecruitment]
    My requirement is also similar.
    I need to copy the HRRCF_TRM_SRCH application.
    I know how to make the changes for the logic (like copying the standard controller & iterator class etc.)
    But I donu2019t know how to call the custom BSP application.
    One requirement is, I need to call a BSP application, in which there are only UI(user interface/screen) changes .
    That is, if there are only changes made to hitlist_cand.bsp page . And no changes made to hitlist_cand.do page.
    Eg: Removing one button from screen.
    Second requirement is, I need to call a BSP application in which there are logic changes also.
    (I know how to  change the standard controller class to custom class)
    Eg: Changing logic of button.
    We tried renaming the application name from standard to custom one (with Namespace=SAP itself, though it gave a warning) in the table T77RCF_LOG_APPL .
    Then we used this name to configure the start page link. But still the execution control is going to standard page & not to custom BSP application.
    How will I know which BSP application(Appl A), is calling the BSP application (Appl B) in which I want to make changes ?
    The starting application is HRRCF_START_INT.
    Would really appreciate solutions posted.
    Thanks,
    Nisha Vengal.

    Hi Nisha,
    I think you have an issue to call custom BSP.
    -     Ignore the warning message (in the table T77RCF_LOG_APPL) as it is just a warning message. I did not touch start page link at all.
    -     Additionally you need to make (I had to made) an entry in table u2018V77RCF_SMG_NAVIu2019.
    Let me know, if you need anything else.
    ...Naddy

  • How to call an applescript application from Office 2011 Excel VBA

    All:
    I have been pounding my head how to implement a working VBA application into the Mac environment. I have tried a number of approaches calling applescript from VBA. I would like to call my applescript application and pass one argument. My applescript application is as follows:
    <code>
    on run argv
    set theURL to (item 1 of argv)
    set p_path to do shell script "echo ~"
    set m_path to POSIX file p_path
    set theName to text -((offset of "/" in (reverse of characters of theURL) as text) - 1) thru -1 of theURL
    set theFile to (p_path & "/Downloads/" & theName)
    set macPath to (POSIX file theFile)
    do shell script "/usr/bin/curl " & theURL & " -o " & quoted form of POSIX path of macPath
    end run
    </code>
    My last attempt within VBA is:
    <code>
    Sub SaveMetaDataFile(URL As String, shortFileName As String)
    Dim scriptToRun As String
    Dim posixcmd As String
    posixcmd = ThisWorkbook.Path
    scriptToRun = "tell application " & posixcmd & ":MetaDataFileDownloadScript.app " & URL
    MsgBox "[" & scriptToRun & "]"
    MacScript (scriptToRun)
    </code>
    I first tried to call the script directly without the "tell application" and I still obtain an error. I also tried the following in VBA and I get the same error with the last lane of code:
    <code>
    scriptToRun = "set theURL to " & """" & URL & """" & Chr(13)
    scriptToRun = scriptToRun & "set p_path to do shell script " & """" & "/bin/echo ~ " & """" & Chr(13)
    scriptToRun = scriptToRun & "set m_path to " & """" & posixcmd & """" & Chr(13)
    scriptToRun = scriptToRun & "set theName to " & """" & shortFileName & """" & Chr(13)
    scriptToRun = scriptToRun & "set theFile to (p_path & " & """/Downloads/""" & " & theName)" & Chr(13)
    scriptToRun = scriptToRun & "set macPath to (POSIX file theFile)" & Chr(13)
    scriptToRun = scriptToRun & "do shell script " & """" & "/usr/bin/curl " & """" & " & " & " theURL " & " & " & """" & " -o " & """" & " & " & " quoted form of POSIX path of macPath"
    MsgBox scriptToRun
    'scriptToRun = scriptToRun & "do shell script " & """/usr/bin/curl """ & " & " & " theURL " & """ -o """ & " & " & " quoted form of POSIX path of macPath"
    MacScript (scriptToRun)
    </code>
    The above code is from the applescript application. The applescript application works well using the terminal via osascript. For example:
    xenas-imac:Census Work Xena$ osascript MetaDataFileDownloadScript.app http://www2.census.gove/acs20095yr/summaryfile/Sequence_Number_and_Table_numberLookup.xls
    xenas-imac:Census Work Xena$
    The whole goal is to download a file into the Download directory from Excel to allow the next step to import the file into Excel for the user. Any help here would be great!
    Thank you;
    Lori

    Update:
    Ok have the module almost working and matches the syntax within the test applescript I had created, but the VBA code via the MacScript() call is generating an invalid procedure or argument call. The following is the test applescript to compare the created string to be passed to VBA MacScript() function:
    <code>
    set appPath to quoted form of POSIX path of "Macintosh HD:Users:Xena:Desktop:Census Work:"
    do shell script "/usr/bin/osascript " & appPath & "MetaDataFileDownloadScript.app " & "http://www2.census.gove/acs20095yr/summaryfile/Sequence_Number_and_Table_numberLookup.xls"
    </code>
    The following is the VBA module that generates the above word for word as far as I can tell:
    <code>
    Sub SaveMetaDataFile(URL As String, shortFileName As String)
    Dim scriptToRun As String
    Dim posixcmd As String
    posixcmd = ThisWorkbook.Path
    posixcmd = posixcmd & ":"
    scriptToRun = "set appPath to quoted form of POSIX path of " & Chr(34) & posixcmd & Chr(34) & Chr(13)
    scriptToRun = scriptToRun & "do shell script " & Chr(34) & "/usr/bin/osascript " & Chr(34) & " & appPath & " & Chr(34) & "MetaDataFileDownloadScript.app " & Chr(34) & " & " & Chr(34) & URL & Chr(34)
    MsgBox "[" & scriptToRun & "]"
    MacScript (scriptToRun)
    End Sub
    </code>
    The message box in the above VBA code matches my test applescript file and I have taken the output of the MsgBox and used it in a test applescript and it works great, but VBA is throwing "Run-time error '5': Invalid procedure call or argument".
    Looking at Microsoft's definition it takes a string argument and I have made sure that scriptToRun is a string type, so at this point I suspect there is something wrong with the MacScript() funciton, or I am missing something above. Is there another way to call an applescript application from VBA outside the MacScript() function? Or is there something I am missing? Any help or suggestions is needed.
    Thank you;
    Lori (CodeXena)

  • How to call a BSP Application inside Webdynpro for  ABAP

    Is there any way to call a BSP application inside the webdynpro ABAP application..
    The Input screen will be the BSP page and when the user click the action it have to trigger some data in BSP and in turn it have to collaborate the manipulated data in webdynpro and shows the output in webdynpro or in BSP..

    pls refer to http://help.sap.com/saphelp_nw70/helpdata/EN/30/1b62799d786445a72ad85acb4fd55b/content.htm
    and check if it helps u

  • How to call the attachment(application attachment) in RTF

    Hi Friends,
    can any one help me, how to call the attached document in XMl Publisher(RTF).
    The attachement is done in application for "order Management". We have design the xml file from "oracle reports"(RDF) and designing the layout in XML Publisher(RTF).
    Please help me how can i handle this in RTF.
    Thanks in advance.

    Hi,
    If you mean where are attachments stored so you can get the contents, see my blog post here:
    http://garethroberts.blogspot.com/2007/08/document-attachments-private-stuff.html
    With regards to getting them into RTF layout, it may depend on what type of attachment they are - short/long text/URLs will be fine, file attachments (LOBs) may depend on the contents - certain types of images will be fine, other file type attachments (like PDF, DOC, etc) I'm not sure - on my list of things to look at.
    Regards,
    Gareth

  • EREC-BSP-How to call a bsp application from another bsp application

    Hi Experts,
    In E-Rec one of my bsp application zapp_e_ext calling another standard bsp application hrrcf_searchhlp when user click on search help button.
    i made a zcopy (zhrrcf_serchhlp) of std application hrrcf_searchhlp,and did some changes,
    now the problem is how to replace the std application with zapplication so that zapplication should be called in place of std application when user click on search button.
    Cheers,
    Amod

    try exec()ing the cad program with the name of the file as a command line parameter...
    Runtime.getRuntime().exec("CADProg.exe Test.prt");
    i have no clue if this will work but it seems like it's worth a try.

Maybe you are looking for

  • How can i print just the to do list, how can i print just the to do list

    is there a way to print  just the to do list from iCal or mail (not events) or to print only calendar dates with entries and the to do list (on the list option) or print to do lists on the side of the monthly calendar??

  • Layout Problem in !E 6 Windows

    I'm having a problem with the layout on this page ( http://www.hrrh-foundation.ca/stories.html ) in Windows Internet Explorer 6 only. The content in the center column is displaced down to below the level of the blue nav in the left column. There's no

  • Java's HttpServletResponse doesn't have isClientConnected method

    I'm implementing a long poll http connection using java servlet. How can I know that the http client is still active at any instance? Currently, what I do is to write a byte to the output stream and flush data. If there's an IO exception then the cli

  • Sync Problem Post-iOS5 Update

    I use an iMac, have an iPad 2. I just updated to iOS5. The update appeared to go smoothly. I attempted a wi-fi sync with iTunes and my iPad couldn't locate my computer. I plugged in the iPad via USB to my Mac and iTunes recognized my iPad. iTunes sho

  • Brand New Macbook Pro 17 Won't Wake From Sleep

    6 day old Macbook Pro 17 unibody refuses to go past white screen. I have tried a forced reboot. Nothing. Laptop just goes to white screen with no response from keyboard. Can't boot into safe-mode. Can't do anything. Logo doesn't appear. Just white sc