Calling an application written in C/C++ from SAP

Hi
I have a need to call an application written in C/C++ language in external system from RFC.Can anyone guide me how to do it.

Try something like this:
CALL FUNCTION 'WS_EXECUTE'
   EXPORTING
    DOCUMENT                 = ' '
     cd                       = 'c:\temp '
    COMMANDLINE              = ' '
    INFORM                   = ' '
     program                  = 'c:\temp\YourProgHere.exe'
    STAT                     = ' '
    WINID                    = ' '
    OSMAC_SCRIPT             = ' '
    OSMAC_CREATOR            = ' '
    WIN16_EXT                = ' '
    EXEC_RC                  = ' '
  IMPORTING
    RBUFF                    =
   EXCEPTIONS
     frontend_error           = 1
     no_batch                 = 2
     prog_not_found           = 3
     illegal_option           = 4
     gui_refuse_execute       = 5
     OTHERS                   = 6

Similar Messages

  • Calling portal application via it 's url from R/3 (with authentication)?

    Hello,
    how to call portal application by its url from R/3 (using ABAP)? How to avoid authentication screen?
    Best regards,
    Josef Motl

    <i>What I want is to call portal application on background (not to call browser).</i>
    you can use CL_HTTP_CLIENT class or HTTP_GET or HTTP_POST function modules for the same. (but you need to pass the user id /pwd in the program) (ITS doesnt fit your case)
    check out the demo programs.
    for CL_HTTP_CLIENT
    RSHTTP01
    HTTP_GET/POST
    RSHTTP20  
    RSHTTP70  
    RSHTTP90  
    Regards
    Raja
    Message was edited by: Durairaj Athavan Raja

  • Call to Web Sevice in external system from SAP CRM

    Hi,
    I have to make a call to External system from SAP CRM 5.0 system. The external system will provide a sample webservice which SAP will try to initiate
    Can you please tell me:
    1. What settings/object needs to be maintained in SAP in order to make this call.
    2. how I can make a call to this Web-Service from a BADI and pass the values to web service and also capture the returning value.
    Please explain in detail
    Thanks,
    Mike

    Mike,
    You should honestly search the SDN site for consuming web services with ABAP.  There are some good examples.
    However the general procedure is easy:
    1.  Generate an ABAP proxy using the WSDL provided to you by the external program
    2.  Configure an HTTP destination for the server of the web services (needed for HTTPS calls)
    3.  Configure the logical port for the web service using lpconfig
    4.  Write the abap code to call the webservice via the proxy.  Works very similar to FM call in my opinion.
    To expose a webservice(bapi being called from outside) you need to do a little more work
    1.  Create a web services for the RFC enabled function module via SE80
    2.  Use wsadmin and wsconfig to make the service available
    3.  Publish the service out to the UDDI as needed.
    Once again this code is pretty well documented in the standard help and SDN.  Do a simple search on ABAP proxies and you will find what you need.
    Take care,
    Stephen

  • WebDynpro Application issue consuming asynchronous webservice from SAP PI

    Hello experts i ask you for help thie following issue:
    i am developing a webdynpro application which is supposed to
    send some data from inputfields, and a file, in order to achieve it, that dynpro application is consuming an asyncrhronous webservice , this service is running in SAP Process integration .it uses only a component.
    Iam having serious problems at mapping the asynchronous PI web service model -->to -->controller >and then to->view
    since when i deploy the application into the  SAP portal´s application server, it runs , but  inputfields cannot be written.i dont mean unabled, what i mean, is. cannot write anything on them.ECXEPT the file upload UI element.
    I have reviewed sap help page, 3 sappress books, about dynpro, and the procedure i am performind is agree with them.
    endpoint test answers the folloiwng:
    Message Servlet is in Status OK
    Status information:
    Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/xi/NW04S_20_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#1 $) bound to /MessageServlet
    Classname ModuleProcessor: null
    Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean
    Lookupname for remoteModuleProcessorLookupName: null
    ModuleProcessorClass not instantiated
    ModuleProcessorLocal is Instance of com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0_0
    ModuleProcessorRemote not instantiated
    what i did is the same as before(in another projects weh i used to import rfc models):
    1.- import webservice model,and add it to component
    2.-map web service model to controller context
    3.-map controller´s context to view context
    4.-create actions and methods
    5.-binding context controller to ui elements
    Dear experts, my questions are:
    What am i doing wrong?
    should i permorm another steps because the web service is in another application server (SAP PI)?
    Should i create a stand alone proxy and then access it from webdynpro?
    when i call the web service model excution it seems does not run, neverthless the invocation does not have any syntax error , what coul it be?
    Thanx in advance!!

    just for the sake of other who may hit this thread , the solution is to add sap-client=<clientno> in the url for wsdl

  • Calling a C program as an RFC from SAP : VERY URGENT

    Hi All,
    I have got a SAP program which is trying to call a C program on the UNIX server of the SAP system. I have created the RFC destination in SM59 and have tested the connection to be working fine. inside the C program , a code has been written to create a sample file on the server. Now when i am executing the SAP program, though the file gets created, but i am getting an Exception of "SYSTEM ERROR" at the SAP side.
    Can anybody help on this regard why I am getting that error?
    Its very URGENT

    Hi Priyanth,
      I am not sure but check this out
      If you are using any commands , check if that command is configured in SM69

  • Login pop-up when launching Webdynpro ABAP application from SAP Inbox

    Hello All,
    We have configured our workflow to trigger WD ABAP application from SAP Inbox.
    However when we launch the workitem from SAP Inbox, we are getting a login pop-up screen in IE which prompts us to enter SAP password.
    Can you please help how can we avoid getting that login screen and how the WD ABAP application can single sign on from SAP GUI to IE for that user-id.
    Appreciate all your help.
    Regards,
    Samta.

    Hi Samta,
    You can configure User(RFC) and password for your webdynpro appl'n using SICF tcode.
    Path : /default_host/sap/bc/webdynpro/sap/(your wdp appln)
    Thanks
    Katrice

  • Calling Winfax from SAP

    Does anyone know how I would call Winfax or any other Fax software from SAP ?

    Have a look at
    FM
      call function 'SO_DOCUMENT_SEND_API1'
    Regards,
    Nikhil

  • How to call a method written in user control (ascx file) from javascript

    Hi to All,
    I have one scenario where I need to call a method written in user control (.ascx.cs file) from javascript (ascx file). I tried below code but it is not working,  I found later it works only for aspx or asmx file , is it true ?? 
    Code: 
    $.ajax({
                type: "POST",
                url: "ViewSearch/SetServerSessionText",
                data: "{'name':'" + searchText + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                error: function () {
                    alert("error");
    Can anyone please tell me how to call ascx.cs  code from javascript ??
    Thanks in Advance !!!

    yes that is true, ajax calls can only be made to an endpoint like aspx pages/web service, basically anything that can return a http response etc. User Control can be embedded inside of aspx pages.

  • How do I call an Application Module method from a EntityImpl class?

    Guys and Gals,
    Using Studio Edition Version 11.1.1.3.0.
    I've got a price update form, that when submitted, takes the part numbers and prices in the form and updates the corresponding Parts' price in the Parts table. Anytime this Parts view object's ReplacementPrice attribute is changed, an application module method needs to be called which updates a whole slew of related view objects. I know you can modify view objects via associations (How do I call an Application Module method from a ViewObjectImpl class? but that's not what I'm trying to do. These AppModuleImpl methods are the hub for all price updates, as many different operations may affect related pricing (base price lists, price buckets, etc) and hence, call the updatePartPricing(key) method.
    For some reason, the below code does not call / run / activate the application module's method. The AppModuleDataControl exists and recordPartHistory(key) is registered and public. At runtime, the am.<method> code is simply ignored, and as a weird side-effect, I cannot navigate out of my current page flow.
      public void setReplacementPrice(Number value)
        setAttributeInternal(REPLACEMENTPRICE, value);
        AppModuleImpl am = (AppModuleImpl)this.getDBTransaction().findApplicationModule("AppModuleDataControl");
        Key key = new Key(new Object[]
            { getPartNumber() });
        am.recordPartHistory(key);  // AppModuleImpl method which records pricing history
        am.updatePartPricing(key); // AppModuleImpl method which updates a whole slew of related pricing tables
      }Any ideas?

    Thanks Timo.
    Turns out the code provided was correct, but the AppModuleImpl method being called was not. A dependent ViewObject wasn't returning the row I was expecting. I then tried to perform some operations on that row, which in turn ... just stopped everything, but didn't give me an error.
    It was the lack of the error that threw me off. I had never messed with calling an AppModuleImpl method from the EntityImpl so I assumed that's what was messing up.
    You are correct. It is available from the ViewRow, but I thought it better to put it in the EntityImpl. This method will be called every time the replacement cost is modified. If I didn't put it in the EntityImpl, I'd have to remember to call it every time a replacement cost changed.

  • Webservice call to XI Interface through SOAP Adapter from a Web application

    I  am getting  the following error, when I try to call the XI Interface using soap adapter from a web application.
    ERROR  :
    SystemError:
              <context>XIAdapter</context>
              <code>ADAPTER.JAVA_EXCEPTION</code>
              <text><![CDATA[
    com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException
    at some time i am getting the following error.
    faultCode: HTTP
    faultSubcode:
    faultString: (500)Internal Server Error
    faultActor:
    faultNode:
    faultDetail:
         {}:return code:  500
    &lt;SAP:Error&gt;&lt;SAP:Category&gt;XIServer&lt;/SAP:Category&gt;&lt;SAP:Code&gt;RCVR_DETERMINATION.NO_RECEIVER_CASE_BE&lt;/SAP:Code&gt;&lt;SAP:Stack&gt;No receiver could be determined&lt;/SAP:Stack&gt;&lt;/SAP:Error&gt;
         HttpErrorCode:500
    (500)Internal Server Error
    can any of  one help to resolve this.
    Thanks  in advance

    Ganie
    You are getting the exception at very first point of Pipeline Service i.e Receiver Determination, do compare the namespace, Sender Interface Name & Sender Service name with the payload you are sending from web-application, they must be exactly same.
    The best way to get the test payload is suggested in above reply.

  • The difference in calling an application module from a backing bean

    Hello everybody!
    I don't understand exactly, where is the difference in calling an application module from a backing bean in the following ways.
    Example 1
    FacesContext context = FacesContext.getCurrentInstance();
    ValueBinding vb = context.getApplication().createValueBinding("#{data}");
    BindingContext bc = (BindingContext)vb.getValue(context);
    DCDataControl dc = bc.findDataControl("AppModuleDataControl");
    AppModuleImpl appModule = (AppModuleImpl)dc.getDataProvider();Example 2
    String amDef = "model.services.AppModule";
    String config = "AppModuleLocal";
    AppModuleImpl appModule = (AppModuleImpl)Configuration.createRootApplicationModule(amDef, config);Example 3 (the same like Example 1???)
    String EL = "#{data.AppModuleDataControl.dataProvider}";
    FacesContext fc = FacesContext.getCurrentInstance();
    ValueBinding vb = fc.getApplication().createValueBinding(EL);
    AppModuleImpl appModule = (AppModuleImpl)vb.getValue(fc);Please can anybody explain, what the three examples do? Which example is preferred to call an application-module-method from a backing bean?
    Thanks and regards
    Majo
    Edit: I am using ADF BC 10g in JDev10 :)

    Hi :)
    >
    This could work, but can you describe the use case for which you need to get the ApplicationModule?
    Maybe we can find a better way to implement your functionality.
    >
    Sure, i know a lot of better ways to implement the same functionality too but its a huge project, its not my code and we have no time to reimplement this functions ;)
    Frank, i don't understand the first line of your code.
    DCBindingContainer bindings = ... resolve #{bindings}Where do i get the bindingContainer, if I don't have the "JSFUtils"- or "ADFUtils"-classes?
    Regards
    Majo
    Edit:
    Sorry, i have answer, before i think about it ;)
    FacesContext context = FacesContext.getCurrentInstance();
    Application app = context.getApplication();
    DCBindingContainer bindings = (DCBindingContainer)app.getVariableResolver().resolveVariable(context, "bindings");
    BindingContext bctx = bindings.getBindingContext();
    DCDataControl dc = bctx.findDataControl("AppModuleDataControl");
    AppModuleImpl am = (AppModuleImpl)dc.getDataProvider();or in my backing bean, when i add the property to the faces-config.xml
    DCBindingContainer bindings = this.getBindings();
    BindingContext bctx = bindings.getBindingContext();
    DCDataControl dc = bctx.findDataControl("AppModuleDataControl");
    AppModuleImpl am = (AppModuleImpl)dc.getDataProvider();Is this right?

  • Calling BSP Application from Business Object?

    Hi,
    Can any one tried to call BSP Application from Business Object for showing in the Portal.
    I have the following Scenario:
    1. BSP Page: User will input the Date and Submit to store in the Database. and in this page the Workflow will be truggered and a Work item will be sent to the Next Level User.
    2. When he executes the Work Item it has to trigger the BSP Application and has to show in the Enterprise Portal.
    All this has to happen in the Enterprise Portal.
    If any one knows how to triggere from business object, please let me know.
    Thanks & Regards
    Sumanth

    Hi Vijay,
    Thanks for the information. Its long back i was working on this, but not successful,
    Now the similar requirement i need to develope in R/3.
    I checked the mentioned class in R/3 4.7, This class is not available. I hope this is only in CRM because of PC-UI.
    Any Suggesions how can i achieve this execution of BSP.
    In one of the document i saw the Business Object BUS1006 as an example but i could not locate the way to reutilize the similar way.
    Thanks & Regards
    Sumanth

  • Calling Webdynpro application from report program

    Hi All,
    I am working with report program which displays ALV grid and if i select a row and click the button in application toolbar it should navigate to webdynpro application.
    This webdynpro application should get loaded with the datas that i ve selected in the ALV output.
    for eg., in alv display
    select carrid connid
    X        10      10
               20      20
    Webdynpro Application
    carrid   10
    connid  10  
    Kindly help me in acheving this.

    Hi,
    SET/GET parameters wont work in WD Envoirment, because WDA programs are executed in browser and that doesnt has a connection to SAP GUI.
    You may use the shared memory to transfer work area from the report program, and import the work area agin in the WDA in the WDDOINIT method of the controller where you want to set the fields.
    data: send type string.
    send = 'enter file name here'.
    export send TO shared memory indx(XY)  id 'wda'.
    CALL FUNCTION 'CALL_BROWSER'
    EXPORTING
       URL                          = 'http://SSR11S07.8000/sap/bc/webdynpro/sap/ztest_wda1 '.
    And in the WDDOINIT method of the controller, you may import the variable.
    data receive type string.
    import send = receive from shared memory indx(xy) id 'wda'.
    Then you may use the method set_attribute to set the value to respective UI element on the screen.
    Regards,
    Runal

  • Web dynpro abap : Call an application from another with parameters

    Hi ,
    Could you please tell me how to call an application from another with parameters?
    Thanks a lot
    Karim

    * Construct the URL
          call method cl_wd_utilities=>construct_wd_url
            exporting
            application_name              = 'APPLICATIION_NAME'
          importing
            out_absolute_url              = g_url.
    * Append parameters to URL
      data: g_par1 = lv_value. " value of your parameter
      call method cl_http_server=>append_field_url
        exporting
          name  = 'PAR1' " Parameter name
          value = g_par1
        changing
          url   = g_url.
    * Call the Application
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component  TYPE REF TO if_wd_component.
      DATA lo_window         TYPE REF TO if_wd_window.
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
      lo_window         = lo_window_manager->create_external_window(
                       url = g_url ).
      lo_window->open( ).

  • Calling Java application(forms) from Oracle/Developer

    Hi
    How can i call java application by using Oracle/Developer 10g. Pl. name the methods that i can use.
    regards
    Touseef

    In Oracle a Java stored procedure is a program you write in Java to run in the server, exactly as a PL/SQL stored procedure. You invoke it directly with products like SQL*Plus, or indirectly with a trigger. You can access it from any Oracle Net client—OCI, precompiler, or JDBC.
    Oracle provides a fully-compliant implementation of the Java programming language and JVM. Oracle Database Java Developer's Guide explains how to write stored procedures in Java, how to access them from PL/SQL(or developer), and how to access PL/SQL functionality from Java. -> http://download-uk.oracle.com/docs/cd/B19306_01/java.102/b14187/chfive.htm#BABGCGBG

Maybe you are looking for