Remote function/method call from SAP

Hi All,
Can we make a call to non-R/3(ASP or JSP or anyother language) system to execute the external system Method/Function.
Thanks & Regards,
Kishore Yerra.

Hi Kishor,
You can use RFC or BAPI for this purpose....
Go through below links...
Re: How to send data to and from .ASP pages through BAPI function modules.
RFC destination for outbound (ABAP calls Java) JCo
hope it will help you.
<b>Reward points if it is helpful</b>
Thanks & Regards
ilesh 24x7

Similar Messages

  • RFC remote function module call from XI

    hi
    I am trying to call a remote function module directly from XI which is not a bespoke module.
    And i am getting the following error:
    com.sap.aii.af.ra.ms.api.DeliveryException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: failed to parse BAPI response due to: com.sap.aii.af.rfc.util.bapi.BapiException: Parameter with name RETURN not found.
    Please help me in this.
    Thanks in advance.

    Hi Naina,
    Normally RFC are synchronous, they do have return parameter as export parameter.
    If return parameter is missing then , you can create Wrapper RFC.
    Wrapper RFC:
    It is nothing but you just  create BAPI in SE37 transaction with Return parameter as export parameter and make it remote enabled by clicking on Radio button.
    Under source code, CALL BAPI which XI has to call.
    Thats it!
    I hope this helps.
    Let me know if any help required.

  • Remote Function Module call from ECC to CRM (how to pass parameters?)

    Hi there,
    I have a remote FM that I would like to call from ECC to CRM. The FM is remote-enabled, so I assume that I can call this from CRM. However, in CRM some of the table structures that is required are not available. Hence, my export/import parameters won't be match, unless I create those types in CRM, but this is going to major work!! 
    How do we pass/import the parameters since the data type in ECC is vastly different/not available in CRM?
    Cheers

    The structure will need to be defined in CRM.

  • Raise exception in function module call from SAP owned program

    I need to raise an exception in a function module to terminate a transaction, display a error message and return to to previous selection screen so the user can fix the error before moving forward.......  
    How do you do this when the program using the function module is SAP owned?
    Thank You!
    Jeff

    Hi,
    After calling the function module, you can do something like this.
    IF SY-SUBRC <> 0.
      RAISE EXCEPTION.
    ENDIF.
    Regards,
    Ferry Lianto

  • How can i debug a rfc being called from sap

    hello Gurus,
    We made a RFC call from SAP r3 to sap grc nfe......we did not receive any data in sap grc .......we go to SM58 and there it gives
    the message "Name or password is incorrect (repeat logon)u201D.
    How can i find out where the data has stuck.
    Please help.
    BR
    Honey

    HI,
    please have a look at the link below..
    this may help u !!!
    [Re: how can i debug a rfc being called from .net connector (NCO) v2.0?;
    Best of Luck !!1
    Regards
    Ravi

  • Invoke MII Transaction thru RFC Call from SAP

    Hi,
    We want to get the data from Oracle DB table thru MII (12.0.2).
    We need to use RFC call from SAP to MII.
    Is it possible to invoke the MII transaction thru RFC by setting in Message Listener?
    We have used iDoc messages but not tried with RFC.
    How to do that?
    Regards,
    Senthil

    I feel MII doesn't have anything equivalent to RFC in ECC. You may try web services in an ABAP program
    Hope the article below helps you
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9f101377-0c01-0010-269f-c3ee905d583b&overridelayout=true
    Regards,
    Musarrat

  • Subroutine call from SAP Script

    Hi,
    I need to calculate required/outstanding qty. hence am passing existing values of reservation#/item# and issued qty.
    both req/out qty are returned blank by the code. please help.
    Following is my code segment for a external routine call from SAP Script.
    /:   PERFORM P_GET_QTY IN PROGRAM ZTEST
    /:   USING &MSEG-RSNUM&                     
    /:   USING &MSEG-RSPOS&                     
    /:   CHANGING &REQ_QTY&                     
    /:   CHANGING &MSEG-MENGE&                  
    /:   CHANGING &OUT_QTY&                     
    /:   ENDPERFORM
    REPORT ztest .
    TABLES resb.
    DATA: wa_resb TYPE resb,
          req_qty TYPE resb-bdmng,
          isd_qty TYPE mseg-menge,
          out_qty TYPE resb-bdmng.
    FORM p_get_qty TABLES input  STRUCTURE itcsy
                          output STRUCTURE itcsy.
      DATA: avlbl TYPE resb-bdmng.
      READ TABLE input WITH KEY 'MSEG-RSNUM'.
      CHECK sy-subrc = 0.
      wa_resb-rsnum = input-value.
      READ TABLE input WITH KEY 'MSEG-RSPOS'.
      CHECK sy-subrc = 0.
      wa_resb-rspos = input-value.
      READ TABLE input WITH KEY 'REQ_QTY'.
      CHECK sy-subrc = 0.
      req_qty = input-value.
      READ TABLE input WITH KEY 'MSEG-MENGE'.
      CHECK sy-subrc = 0.
      isd_qty = input-value.
      SELECT SINGLE * INTO wa_resb
                      FROM resb
                      WHERE rsnum = wa_resb-rsnum
                      AND   rspos = wa_resb-rspos.
      CHECK sy-subrc = 0.
      avlbl   = wa_resb-bdmng - wa_resb-enmng.
      req_qty = avlbl - out_qty.
      out_qty = req_qty - isd_qty.
      output-name = 'REQ_QTY'.
      output-value = req_qty.
    MODIFY output TRANSPORTING name value WHERE name = 'REQ_QTY'.
      APPEND output.
      output-name = 'OUT_QTY'.
      output-value = out_qty.
    MODIFY output TRANSPORTING name value WHERE name = 'OUT_QTY'.
      APPEND output.
    ENDFORM.
    Thanks,
    Ram.

    Hi Ram,
    I think you have to use MODIFY instead of append for the OUTPUT table.
    MOdify the table with KEY. This should resolve the problem.
    Ram, you can check this code and see how the MODIFY is to be used.
    REPORT YLSD999A.
    DATA  W_LENGTH TYPE I.
    *   GENERAL PURPOSE SUBROUTINES FOR CALLING FROM SAPSCRIPTS
    FORM DISPLAY_POUND TABLES IN_TAB STRUCTURE ITCSY
                              OUT_TAB STRUCTURE ITCSY.
      DATA: COUNT TYPE P VALUE 16.
      DATA: W_VALUE(17) TYPE C.        "defined as 7 chars to remove pence
      DATA: W_CHAR TYPE C.
      DATA: W_DUMMY TYPE C.
      DATA: W_CURR(3) TYPE C.
    *    Get first  parameter in input table.
      READ TABLE IN_TAB INDEX 1.
      WRITE IN_TAB-VALUE TO W_VALUE .
    * get second parameter in input table
      READ TABLE IN_TAB INDEX 2.
      MOVE IN_TAB-VALUE TO W_CURR.
      IF W_CURR = 'GBP'.
        W_CURR = '£'.
      ENDIF.
      W_LENGTH = STRLEN( W_CURR ).
    *    look for first space starting at right.
      WHILE COUNT > -1.
        W_CHAR = W_VALUE+COUNT(1).
    *  W_CHAR = IN_TAB-VALUE+COUNT(1).
        IF W_CHAR = ' '.
          COUNT = COUNT - W_LENGTH + 1.
          W_VALUE+COUNT(W_LENGTH) = W_CURR.
          COUNT = -1.
        ELSE.
    *     W_VALUE+COUNT(1) = W_CHAR.
          COUNT = COUNT - 1.
        ENDIF.
      ENDWHILE.
    * read only parameter in output table
      READ TABLE OUT_TAB INDEX 1.
      OUT_TAB-VALUE = W_VALUE.
      MODIFY OUT_TAB INDEX SY-TABIX.
    ENDFORM.
    Cheers
    VJ

  • Conversion of Remote Function module RFC_READ_TABLE from non unicode to uni

    Hi,
    Please can any one help me in the conversion of Remote function module RFC_READ_TABLE from non unicode to unicode.
    please tell me procdure and syntax change.
    Thanks in advance.
    zubera

    TABLE_ENTRIES_GET_VIA_RFC in unicode system
    Data retrieved by JCO formatted incorrectly
    Please give me reward points if it is useful...

  • Adobe Form called from SAP Portal, not executing interface global init code

    Hello!
    I have an adobe form called from both R/3 and SAP Portal and I need to show long text dinamically calculated.
    The deal is at the SAP Portal execution, as scenario characteristics don't allow string definitions, I'm using 255 characters tables (QISR_TAB_TYPE), that I'm trying to convert inside form interface (Global init code).
    The problem is that the interface global init code is being executed when the form is called from R/3, but it is not at SAP Portal.
    Does anybody know how to manage this? It's kind of a problem that the BAdi method int_service_request_init doesn't allow types over 255 characters... and if it is not possible to access the form interface code section (maybe there's any way)... i need to find some code section where i can convert tables before the form context is filled!!
    Thanks a lot!!
    Regards,
    Diana.

    Hi,
    have you searched on SCN? There are some threads with same problem such as [this one|/message/9270216#9270216 [original link is broken];. There is more threads. They may help you to solve your issue.
    Cheers

  • Web Service Call from SAP DS 4.2

    Hello all,
    Thank you for any insight you can provide:
    When calling a web service from a function call in SAP DS 4.2, it constantly provides an XML formatting error. We can call the web service fine through SOAPUI.
    Here is what SAP DS sends back as the error message:
    I believe the issue is highlighted
    Error importing XML Schema from file
    adapter_schema_in.xsd:
    XML parser failed: Error namespace 'http://businessobjects.com/service/RTJob_DMO_Address_Cleanse/input'
    is referenced without import declaration
    at line 11, Char 119 in
    xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:aw_RTJob_DMO_Address_Cleanse_Input_Realtime_DMO_Address_Cleanse_Input="http://businessobjects.com/service/RTJob_DMO_Address_Cleanse/input"
    xmlns:diws="http://www.businessobjects.com/diwebservice" targetNamespace="http://www.businessobjects.com/diwebservice"
    xsd:import namespace='http://businessobjects.com/service/RTJob_DMO_Address_Cleanse/input'
    schemaLocation='C:\ProgramData\SAP BusinessObjects\Data Services\ext\webservice\DataServices_ServerRTJob_DMO_Address_CleanseRTJob_DMO_Address_Cleanse_Input_Realtime_DMO_Address_Cleanse_Input0.xsd'
    xsd:element name="RTJob_DMO_Address_Cleanse_Input_Realtime_DMO_Address_Cleanse_Input"
    xsd:complexType
    xsd:sequence
    xsd:element ref="aw_RTJob_DMO_Address_Cleanse_Input_Realtime_DMO_Address_Cleanse_Input:AddressCleanseRequest"
    /xsd:sequence
    /xsd:complexType
    /xsd:element
    /xsd:schema
    . Validate your XML Schema using external schema validators (found at w3.org).
    How do we get around that issue, it shouldn't be passing that.
    This happens when running the job from the Admin Console as well as the Designer
    Again, thank you for any help.
    Ryan

    Update:
    Still having the issue, now manifesting trying to create/reimport a nested schema.
    Local Error Message
    Citrix Error Message
    XML Files attached as text files
    Version of Designer: 14.2.2.446
    Version of Job Server: 14.2.2.527
    Version of Job Engine: 14.2.2.527

  • WebService call from SAP outside NetWeaver

    Hi,
    can I call a webService from SAP outside NetWeaver? E.g. to call it directly from a RFC function module or other components?
    Best regards
    Nicole

    Hi,
    ist it, you want to consume a web service in ABAP?
    That can be done, yes. Searching exactly this on SDN brings up a lot of content like this: [Providing and Consuming Web Services in ABAP|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9] from my colleague Peter Mc Nulty.
    Regards,
    Benny

  • Problem with Windows Form called from SAP

    I have a simple VB.NET windows form that I'm calling from a new menu click event from within SAP.
    The form loads, as expected, when the menu item is clicked, but the form will always load outside of the SAP window and thus cannot be seen by the user unless they see it in their toolbar.
    Has anyone run into this in the past?  I would normally use the UI-API, but this is a form from another program that can't use the UI-API.
    I've also tested this with simple test forms with another test project and get the same results.
    Any ideas?
    Thanks!

    This isn't merely a matter of viewing <i>new</i> windows.
    When the SBO window is active and in full screen mode and one switches, using the task bar, to another application, more often than not the other application's window won't be displayed, or will be displayed but partially. One has to deactivate and re-activate the second window to see it correctly.
    It's the whole bloody SBO graphical engine that's bogus, if you ask me. Talk about reforging <i>that</i> to a profit-oriented company...
    @Marc Roussel:
    BTW, System.Windows.Forms.Form#ShowDialog() is a blocking method, AFAIK. So the following statements won't be executed ere the "dialog"'s closed.
    But this doesn't change the problem. The Activate() and BringToFront() don't help resolve the matter, in my experience. Sometimes the new form will appear on Z-top, sometimes it won't. Or maybe the true problem is that the window <i>is</i> on top, but doesn't get painted.
    ADDENDUM:
    Come to think of it, it might be worth a try to programmatically iconify/deiconify the new window. Something along the lines of:
    Dim f as Form = ...
    f.Show()
    Application.DoEvents()
    f.WindowState = FormWindowState.Minimized
    Application.DoEvents()
    f.WindowState = FormWindowState.Normal
    Application.DoEvents()
    (all in System.Windows.Forms Namespace)

  • Error in Functional module calling from XI!!!

    Hi All,
    I'm using XI to pick data from ORACLE write it in SAP and take the response from SAP and write it back in ORACLE database. I'm using a custom functional module in SAP and calling it from XI .
    The custom functional module create the CUSTOMER and ORDER .
    Customer is getting created in SAP but order is not created. We are using two different functional modules for customers and orders.
    The above functional modules are executing in SAP but while calling from XI only the customer is getting created in SAP.
    Please post your views and suggestions on this issue.
    Thanks in advance.
    LN

    First put the commit work after successfuly executing the order creation in the custom function module.
    If you already put and doesn't know why it is not creating the orders, debug the function module by putting the same data which you are passing from XI in test tab.
    Suppose, the Orders are creating in the dubug mode. Then debug the custome function module dynamically using SM50.
    Regards,
    Krishnaraju.

  • How to auto-recognize the function parameters called from a DLL built by VC6.0

    Hi,
    I use Teststand 3.5 with C/C++ Adapter, and the DLL is built by VC6.0.
    While I specify module for an action, the parameters of a function called from the DLL are not recognized.
    Since I have the DLL source, I know I can select the source file and verify prototype in the "Source Code" Tab.
    Under the way, almost parameters can be recognized, but some parameters, e.g. HANDLE or I definded, can not ( shows error message "The function definition cannot be found in the source file...").
    How to recognise these parameters?
    Thanks.

    The problem isn't that TestStand doesn't have enough native types. A handle can be represented in a TestStand numeric variable just fine. Instead, the issue is that when you select Verify Prototype, TestStand doesn't fully pre process your headers and compile your code to determine the types. To do so would require TestStand not only to be a full C/C++ compiler but it would also have to be able to read your compiler's projects and settings to resolve include paths, macros, etc.
    Since TestStand is not a C/C++ compiler, it just looks for the standard basic data types plus a few more that are common in test code.  Other data types will not be automatically recognized even if they can be mapped to TestStand types.
    Another option it to create a type library for your dll so that TestStand can automatically read the data type information from it. However, I don't know if that works for struct parameters and I looked for the document on devzone that explains how to do that in VC++ and it has been moved or deleted
    Maybe an AE would know of a link to a current document that describes how to do this?

  • Asyn Webservice call from SAP

    Hi All,
    We have created  client proxy using URL for Asyn method and for the proxy we created the  logical port in SOAMANAGER .
    then used  method of  Client Proxy in program and execued the same .
    Then we checked the result in SXI_monitor. The request for this method can be seen there but it shows an Error.
    Error type is "Sequence" and Execution state is "WSRM_CREATE_FAILED".
    I get an error
    XRFC>                                                                
    <
    XRFC> TRACE SOAP RUNTIME - trace records                             
    <
    XRFC>                                                                
    <
    XRFC> ------------------------------------------------------------------  <
    XRFC> E SOAP_RUNTIME 20120510151904.4227980 : CL_SOAP_RUNTIME_CLIENT 
    <
    XRFC> ->EXEC_PROCESSING Exception handling in SOAP runtime           
    <
    XRFC>                                                                
    <
    XRFC>                                                                
    <
    XRFC> E HTTP_TRANSPORT_BINDING 20120510151904.4121990 : CL_SOAP_HTTP 
    <
    XRFC> _TPBND_ROOT ->HANDLE_STATUS_CODE Received return code 500 (    
    <
    XRFC> Internal Server Error )                                        
    <
    XRFC>                                                                
    <
    XRFC>                                                                
    <
    XRFC> E SOAP_RUNTIME 20120510151904.4227690 : CL_SOAP_RUNTIME_CLIENT 
    <
    XRFC> ->EXEC_PROCESSING SOAP Fault Exception caught: : The message with   <
    XRFC> Action 'http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence'
    <
    XRFC> cannot be processed at the receiver, due to a ContractFilter   
    <
    XRFC> mismatch at the EndpointDispatcher. This may be because of either   <
    XRFC> a contract mismatch (mismatched Actions between sender and     
    <
    XRFC> receiver) or a binding/security mismatch between the sender and
    <
    XRFC> the receiver. Check that sender and receiver have the same     
    <
    XRFC> contract and the same binding (including security requirements,
    <
    XRFC> e.g. Message, Transport, None).                                
    <
    XRFC>                                                                
    <
    XRFC> ---------------------------------------------------------------------
    XRFC> End of user trace
    The request is reaching the server with error.
    Attached are the screen shot of the input from SAP and the message at the receiver side .

    Hi,
    ist it, you want to consume a web service in ABAP?
    That can be done, yes. Searching exactly this on SDN brings up a lot of content like this: [Providing and Consuming Web Services in ABAP|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9] from my colleague Peter Mc Nulty.
    Regards,
    Benny

Maybe you are looking for

  • Reg. Design of report

    Hi, I have prepared an ALV report. I want to show the total no. of records displayed, on the top of the report beside the discription. And tell me is there any standards to be maintained inside the prog. like top-of-page, start-of-sele, end-of-page.

  • To setup new siebel testing environment in windows

    Hi all, I am new to siebel server administation. Planning to setup current Siebel development setup in new test environment. Whether it is possible to setup new test environment same like development. If yes, for this what are files required from dev

  • Green button not working

    Apart from the obvious battery issues my green button has stopped working. i cant make calls or answer calls with it. the other day whilst taking a picture the red light on the camera came on and wouldn't go off either, so i had to remove the battery

  • My photosmart C5280 keeps printing out blank photos

    Every time I try to print a colour photo on my Photosmart C5280 it comes out blank Jackser

  • Where is the new Facebook integration on Mountain Lion?

    Where is the new Facebook integration on Mountain Lion?