Call External Applications usine OLE

Hi Experts,
    I have a requirement to call External Application in ABAP.
For Ex:- you might have seen Word document being called in the SAP Screens for the documentation or in the Text Editor using OLE.  similarly I need to call an external application like calculator in the SAP Screen. 
Can you one give inputs regarding this.

Hi KesDev,
If it so that you want a calculator on the SAP screen then there is function module available in SAP.
In SE37 search for * CALCULATOR * you might be able to find one, since i am not on the system right now that's why i am not able to give you the exact name.
This is the Function Module,
  DATA:  amount_out TYPE ptrv_fname,
         amount_in  TYPE ptrv_fname.
  CALL FUNCTION 'FITRV_CALCULATOR'
    EXPORTING
      input_value          = amount_in
      currency             = ztable-waerk
      start_column         = '120'
      start_row            = '2'
    IMPORTING
      output_value         = amount_out
    EXCEPTIONS
      invalid_input        = 1
      calculation_canceled = 2
      OTHERS               = 3.
Hope it helps you,
Regards,
Abhijit G. Borkar
Edited by: Abhijit Borkar on Feb 8, 2010 10:37 AM

Similar Messages

  • Call external application through Abap WD application

    Hello All,
    We are trying to call an external application using ABAP.  The details are as below
    1) SAP server on AIX OS
    2) External Apps server: Windows OS
    The external apps takes a file located on windows as input and generates a file on windows as output. The external appls is installed on the windows OS.
    We are unable to trigger the VC apps from ABAP.( AIX OS).
    Appreciate if you can guide and give some examples. Please note that the OS are different.
    Questions:
    1)  How to access windows file system to execute external appls from ABAP ( AIX)
    2)  Would a RFC be required to be made between ABAP and the windows server where external appls is hosted
    3) Any sample code/links is really help ful
    We were able to get it working when the applications was hosted on local file system ( desktop) . Two problems are getting the appls executed on remote and different OS accessing windows file system through unix ( AL11 should help here i guess)
    Regards
    PN

    Hi Lekha
    I want to start a *.bsp page in a new external window and POST Parameters to this *.bsp page.
    So it is not actually showing a bsp in a ABAP WD.
    Kind regards
    Paul
    PS: create_external_window is alway a GET Method and I do not want to show Parameters in the URL.

  • Calling External Application from BPM 11g

    I am new to BPM 11g and need to create the ability to call an external application (UCM) from within BPM. Will a web service adapter, with a type of Reference, accomplish this? How can I add security to this web service.
    The second question is how can I add an adapter that alllows me to specify our own source code? In this scenario we would write the Java to formulate the SOAP call directly, thus allowing us to add the security into the call directly.
    Any information is much appreciated.
    Thanks,
    Randy

    Hi Randy,
    You can call an external application using a spring component integration, I was just able to get that to work with a help from another forum member here is a viewlet that demos the spring integration:
    http://bpel.us.oracle.com/BPM/11gR1/howtos/spring-component/oow-2010-Beijing-viewlet/springdemo_v2_viewlet_swf.html
    Alex.

  • How to call external application (transaction launcher) from event method

    Hi all
    Can somebody tell me which program lines to put into an event handler method in a view controller to get an external application called. I intend to define the link to the external application in the Transaction Launcher. But I cannot find any instructions on how to call the Transaction Launcher from my event handler method. I do not want to launch the application from the navigation bar, ONLY via a link in a list of invoices in a table view, and I want to press the invoice number to get an external application called to display the invoice. My event handler method gets called fine enough, but I have no clue which program lines to put into the method to pass on the call to the Transaction Launcher
    Best regards
    Arne Thage / MarchIT / Denmark

    hi,
    check class CL_CRM_UI_LTX_NAVBAR_PARAM.
    call method : CREATE_PARAMETER_OBJECT with parameters
    IV_LINK_ID     Importing     Type     CRMT_UI_LOGICAL_LINK_ID                                                                                Logical Link ID
    IV_PARAMETER     Importing     Type     CRMT_UI_LINK_PARAMETER                                                                                Link Parameter
    RV_RESULT     Returning     Type Ref To     IF_BOL_BO_PROPERTY_ACCESS                                                                                BO Attribute
    I think it should work but have never done myself.
    Best Regards
    Pankaj Kumar

  • Calling external applications from within a script.

    Whenever I write scripts that require some external application for functionality, I try to open a pipe or start a server so that I only have to start the external application once. I expect that to reduce overhead and consider it good form. However, sometimes there just isn't any way to avoid calling an external application multiple times and when that happens, I try to find some other workaround if I think it's going to get called repeatedly.
    What I'm wondering is how much it really matters for very small and simple programs. The one I have in mind right now is "du". I need to use it in a Perl script because Perl's operators to get file sizes return the apparent size which, in this case, is much larger than the actual size reported back by "du". I'm monitoring the size of files in real-time and I need to call "du" during each iteration of the status updater. Even though I'm passing all the file paths at once, "du" may be called a few times every second (well, I could limit it to once a second).
    Could this possibly make any noticeable different on older machines? In general, what external apps can you get away with calling repeatedly?

    I'm not sure, but I thing that overhead caused by calling du cannot be big enough to matter even on older machines.
    But, when calling du from Perl script you are also invoking shell, and this can be a little bit more 'heavy'.

  • Calling external programs from Java?

    Hi All,
    Is there a way of calling external applications from Java without using Runtime.exec(). That method seems quite messy when you are dealing with streaming data from an input file to an output file. Basically what I'm asking is there a way to run a command the same way you would type it in a command shell?
    Thanks

    LeWalrus wrote:
    Ok, I've an external application that I want to be called inside a Java GUI. It has several input arguements, which the format looks something like:
    programname inputfile > outputfile
    Simple enough.
    >
    Works fine from a shell command line. From what I understand, this won't work using Runtime.exec() because that method will just start the application. Works fine from Runtime.exec(). Since you are'>' to write stdout to a file you need to us a shell to execute the command.
    String[] command = {"sh", "-c","programname inputfile > outputfile"};
    Process process = runtime.exec(command);
    You need to read, digest and implement the recommendations given in http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html .
    File input and output from the application has to be taken care of programatically (java.io stuff). Fine if you've only one input and output. But if you have several input files and hundreds of output files, where does this leave you. It would be much easier if you could pass a string command to the shell directly as if you typed it in the command line yoursel!

  • How to make call out from XI to external applications??

    Hi,
    I have XI running on my system.
    I want to know if there is any possibility to invoke
    or to make call outs from XI to external applications
    like java.If yes what is the procedure for that.
    Thanks in advance
    Sunita

    XI will need a triggering event to do this. That is, if you can send a message to XI, then using XI you can route the message to a Proxy and from the proxy (which could be a java proxy) you can make a call to a java program outside XI. But, basically, XI on its own will not make a call, but it needs a triggering message. So, you can configure a file adapter to send a triggering message from a file system to the intergration server, and configure routing rules so that the messages reaches a proxy.
    Warm regards,
    Venki.

  • Call a external application without using a webservice

    Hi all,
    How can we make a call to external application without using webservice from BPEL or OSB.Please share any links to refer.
    Thanks,
    Kiran

    Hi.
    Probably the options:
    1. Adapters. BPEL PM offers a different set of adapters that allows the process to communicate with external apps
    2. PRobably a basic HTTP POST could be an option
    3. Writing some code inside a Java Embedded activity
    Which application are u trying to communicate with?
    thx
    best

  • Calling external programs from within a Tomcat application

    I've got a fairly complex existing Tomcat application (which is packaged and built as a .war file) which I'm trying to edit so that it calls a Perl script part way through the processing, which will generate an XML file used later on. I think I've worked out how to call external scripts from within Java, but at the moment when I try and access the application via Tomcat the application either hangs or bails out (I don't know which, as the log files unhelpfully don't give any error messages).
    The code which is causing the problem looks like this:
    System.err.println("Calling runtime...");
    Runtime runtime = Runtime.getRuntime();
    System.err.println("Executing process...");
    Process process = runtime.exec("/path/to/ysearch.pl 'News' '\"search query\"' 'file");
    System.err.println("Waiting for process...");
    int exitVal = process.waitFor();
    System.out.println("Exited with error code: " + exitVal);The code gets as far as "Executing process..", beyond that there is nothing in the log file so I presume the runtime.exec() call is where the problem is. I'm not interested in reading the output from the script (there shouldn't be any), so that's not an issue, and the permissions on it allow anyone to read or execute ysearch.pl so I don't think there's a problem in that area.
    Does anyone have any suggestions which I could try to get this to work? I've only been using Tomcat for a week (I'm picking up on someone else's code) so I might have made a beginner's mistake. I'm using Tomcat 5 on Fedora Core 7, and Java 1.5.0_01 (I can't easily change any of those).

    I'm not sure, but I thing that overhead caused by calling du cannot be big enough to matter even on older machines.
    But, when calling du from Perl script you are also invoking shell, and this can be a little bit more 'heavy'.

  • Call an External Application from Web UI overview

    Hi Gurus,
    I am stuck with a situation here,
    Scenario is i have to create a button in overview page, such that when we click on it we need to call a external application.
    external application can be anything (URL).
    can anybody give a solution.
    thanx in advance.

    The process for launching the external URLs should be same as Web Dynpro Transactions.  But in this case while defining the URLs in the transaction launcher , you have to select the option for Non BSP URLs & defiine a MAPPED Logsys( In your case the could be any system in which the application exists). Also the URL for  Web Dynpro applicatons is sap/bc/webdynpro/sap/Web_Dynpro_Component_Name and is recognized by the target system. In your case you have to build a URL which should be recognized by your target system.
    This is how I have launched a ABAP webdynpro transaction. I guess if the URL is correct you can launch other external transactions.
    Regards
    Kavindra

  • To Call an external application Web

    Hello,
    I want from a menu entry OeBS to be able of call an application by an external link url (example: http://localhost:8080/MyApplication)
    Do you know what I have to save function to make that HTML Call ?
    (System Administrator -> Application -> Function)
    Thank you

    so if you have a test_launch.jsp in the $OA_HTML directory containing the following lines
    <%-- --%>
    <% response.sendRedirect("http://servername.domain.com:8080/MyApplication");     %>
    <%-- --%>
    You get that error when calling the function from within the ebusiness suite?
    What happens if you go directly to http://ebusiness_servername.domain.com:port/OA_HTML/test_launch.jsp

  • How to call WebDynpro application from an external application

    Hi All,
    I have an external application, from which an existing webdynpro application should be accessed.
    Is there any way i can access WebDynpro application through an URL, so that i can access the same from the external application.
    I have to pass a parameter also in the url from extrenal application for which that data should be displayed.
    Thanks
    Supriya

    You can call a web dynpro application from an external app by using the web dynpro application url.
    Go to WD application in studio and look at the properties tab, you will find the url.
    It should be something like this:
    http://<host>:<port>/webdynpro/dispatcher/<namespace>/<dc name>/<application name>
    MLS

  • OLE with c# for SAP AL - Error calling application via OLE GUIScanDoc

    Hi,
    I am creating a small scanning application which should be accessible from SAP. I read the documents  from SAP side which says, we need to create an OLE 2.0 Enabled application. I created an OCX application in vb6 and configured with SAP. the call is going to my ocx application but dont know how to implement "GUIScanDoc @AID,N" in my application. I tried to create a function named GUIScanDoc () in ocx but getting the same error stating *"Error calling application via OLE GUIScanDoc".
    If anyone has solution then plz plz help me out.
    Thanks in advance.
    P. Ramesh
    Edited by: rapr04 on May 22, 2011 2:37 PM

    I think you posted this in the wrong section of the forums, this area is just for SDK's relating to the BusinessObjects products.

  • Error calling application via OLE GUIScanDoc

    Hi,
    I am creating a small scanning application which should be accessible from SAP. I read the documents from SAP side which says, we need to create an OLE 2.0 Enabled application. I created an OCX application in vb6 and configured with SAP. the call is going to my ocx application but dont know how to implement "GUIScanDoc @AID,N" in my application. I tried to create a function named GUIScanDoc () in ocx but getting the same error stating *"Error calling application via OLE GUIScanDoc".
    If anyone has solution then plz plz help me out.
    Thanks in advance.
    P. Ramesh
    Edited by: rapr04 on May 22, 2011 2:37 PM

    I think you posted this in the wrong section of the forums, this area is just for SDK's relating to the BusinessObjects products.

  • Single Sign-On and External Applications Portlet

    I would like to know how complicated would be to call an External Application with SSO (like Hotmail), outside the External Applications Portlet.
    We have defined around 10 external applications with SSO,they worked fine.
    but due to look&feel issues, we would like to put them in a content area , like items that when the user clicks, takes them to the external application and performs the single sign-on.
    Any advice will be appreciated.
    tks!!

    Maria, I was experimenting with this last night, to answer your question, and I think a cool way of doing this would be the following:
    Create a custom attribute called "App ID" - make this a NUMBER type. This is where the external application id will be stored.
    Create a custom item type: "External Application"
    You have two options for the base type: either "URL" or "<None>". If you pick URL, then you can have the item contain the URL for fapp_process_login, but this is not advisable because it will require the administrator to type in this long URL every time a new application is added.
    If you select base type URL, you should use that URL to let the administrator provide a URL to the application's homepage, or a help page or something of that sort.
    Edit the newly created item to set the Attribute and Procedure properties.
    Add the "App ID" attribute - no default.
    On the Procedure tab, add the following procedures (called as HTTP), each with the App ID passed as "p_app_id":
    Login http://server.domain.com/pls/portal30_sso/portal30_sso.wwsso_app_admin.fapp_process_login
    Edit http://server.domain.com/pls/portal30_sso/portal30_sso.wwsso_app_admin.edit_fappuser
    That's it!
    Add the new custom item type to a folder, and all the administrator needs to do is set the title, and App ID for the new item.
    Excercise for the Reader
    You will notice that clicking on the Edit link will take you to the login server when you are done editing the credentials. To avoid this, pass another parameter to the edit procedure - p_done_url, and set a value for that to point to the page that you want to go to after editing credentials.

Maybe you are looking for

  • Report error while running in portal

    Hi All, I am running the reports well through portal. But when i drageed one of my free charectersitic into the rows it getting an 500 interal error. where as its working fine in Bex error: Exception occured while processing the current request; this

  • Help needed: Disk space does not free up even after deleting files.

    Background information for this problem: I have my iPhoto library on an external HD, and was importing files from that same drive into iPhoto, and began receiving messages that I was very low on disk space on my internal HD. From here, it seemed like

  • Read from a file into a JSP

    Okay, so I'm trying to make a JSP for an ePortfolio for school. I'm setting it up so that if a user clicks on a link to one of my papers, the JSP (text.jsp) takes the parameter "ptitle" from the get or post request and retrieves the appropriate text

  • Keynote, how to transfer ppt to ipad2? Help!

    I just bought keynote and I can't find a way to transfer my ppt's to my ipad2. I bought this for school and have run into nothing but issues. Frustrated. Does anyone know what to do?

  • External table in Oracle 10g and Windows server 2003

    I'm having a problem accessing an external table in an Oracle 10g and Windows 2003 server environment. The disk is remote (mapped) to the server. It's the usual access errors, kup-04001 or kup-04063. I have the [seemingly] exact same setup in an Orac