Creating / consuming RFC s

Hello,
I have no experience with RFCs but I need to build an SOA demo application using the inside-out approach.
Could you give me some pointers to good and easy to understand documentation about RFCs in SAP? I'd like to know what they are, what they do, how they are doing it and how to build / find / consume them in an SAP environment.
Hope you can help me out.
Regards,
Peter

In SOA, the entire interface and communication will be done over SOAP XML format. Here we need to identify the source and destination as inside-out approach. The Function Module which is going to be used as remotely enabled in the attributes as a primary.
SAP WebAS is 6.2 or less the connectivity url would be different.
Ex.
http://<server>:<port>/sap/bc/soap/wsdl11?services=ZRFC_GOODMVT_CREATE
Here we do not need any web service. This is called Outside-in approach.
SAP Web AS 6.4 and above, the connectivity url would like below
Here web service to be created for RFC
http://<server>:<port>/sap/bc/srt/rfc/sap/ZRFC_WBRIDGE_INTEGRATION?sap-client=301&wsdl=1.1
Once execute those urls from browser, you would get the respective WSDL , which interact with other applications out side.
This is one part of the SOA.
SR

Similar Messages

  • Error in consuming RFC Webservice in webdynpro

    Hi,
         I am trying to consume RFC Webservices in webdynpro.For that i created Z- functional module for availability check.But once i am deploying this application ,all the input fields of the corresponding application are disabled.
    The error is like
    Exception on execution of web service on destination 'DEFAULT_WS_EXECUTION_DEST' for operation 'ZwrMaterialAvailability' in interface 'ZWebService'
    Can someone help me to resolve this error?
    Thanks,
    Kundan

    Hi Saravanan ,
                             Thanks for your replay.
    Once i am testing the WSDL URL in netweaver webservice navigator,it showing an error like like
    Cannot download WSDL from http://host name.sap.com:8000/sap/bc/srt/wsdl/sdef_ZWEBSERVICE/wsdl11/ws_policy/document?sap-client=800: It is not allowed to access this service.
    But same URL is working fine in browser.It's displaying the XML file.
    Can you provide the solution to resolve this error?
    Thanks,
    Kundan

  • How to create a RFC destination for extracting data to HANA

    Hello All,
    Could someone help me in providing a document or note on how to create a RFC destination for extracting data from SAP data source to HANA using SAP LT replication server ?
    I am able to create a data base connection while transforming data from non SAP data source,but wasnt able to transform data which is from SAP abap tables .

    Hi Venkatesh,
    In SM59 t.code we create RFC destinations.
    Go thru the video link for creating RFC destinations step by step
    How to setup a trusted RFC connection between SAP systems: a step-by-step guide - YouTube

  • Error in creating create Consumer proxy:

    Hi all ,
                    while creating create Consumer proxy: in SE80 ,by giving the URL of the webservice i am getitng a error which is
    Exception occurred in communication framework:Error in HTTP Framework:404conn failedhttp, i am new to this SOA, please help me
    Thanking you
    Sridhar

    Hi.
    Can you tell us how did you solve it?? I´m getting the ( missing) error too.
    Thanks in advance.

  • Error while creating adaptive RFC model

    Dear All,
    I am trying to create Adaptive RFC model by  which i can fetch data from R/3 trough BAPI and display on the webDynpro UI.
    I am getting error
    Exception: org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library librfc. Found version "640.0.55" but required at least version "640.0.76".)
    Kindly suggest.
    Thanks
    Ashish

    Hi,
    Check this link....
    com.sap.mw.jco.JCO$Exception (104) RFC_ERROR_SYSTEM_FAILURE

  • Creating a RFC application(SAP R/3) that connects to web portal.

    Hello Everyone,
    I need to create a rfc application that should connect to portal& fetch some data in some table according to some input parameters provided at runtime & display the data in TABLEVIEW control.
    Anyone can guide me on this i:e- how to go about it. What things i should know or should be aware of before creating this application. Any PDF documents , any help material, any guidance about the same will be of great help.
    Thanks,
    Prasad
    [email protected]

    Hi Prasad
    I guess you are trying to develop an application which will run in ABAP stack and will connect to JAVA stack and retrieve some data from there(i.e from java)-correct me if I am wrong. if this is exactly what you want to do then I must say sorry since establishing this route of communicaton is not known to me. But i can suggest you a workaround where you create your application in java so that in runs Java stack picks up data from portal(i.e. WAS database) make call to some RFC from ABAP to persist that data in some ABAP table.
    Let me know if it makes sense to you.
    Cheers
    Sudip

  • Create a RFC SEND IDOC FROM SAP TO NON SAP

    Hi Gurus,
    I tried to create a RFC to send my IDOCS to a Window Server.
    The administrator has created a share like eg.:  \\hsare\idoc_received
    How should I do to attempt this share?
    I created a TCP/IP RFC and in program ID, I put the path but the connection does not respond.
    Anybody could help me please or has a suggestions?
    What is the best solution to send the IDOC to this place ? 
    Thank you in advance for your help.
    M.

    Hello Rahhaoui,
    There are enormous information available on SCN about FTP file transfer
    For your reference you can check this wiki:
    File transfer from Application Server to FTP - Contributor Corner - SCN Wiki

  • Create a RFC connection of type ABAP pointing to nowhere?

    Hi guys
    I would like to create a RFC destination of type ABAP pointing to nowhere. IDocs sent to a transactional RFC port using this RFC destination shall be listed as processed successful but they shall disappear and not be transported to the target system.
    Does anybody have an idea?
    Thanks and regards
    Markus

    Think this won't work because tRFC will wait for a commit from the receiving system. You won't get it and the messages will stuck in SM58...
    Regards,
    Kai

  • Create a RFC destination with default pass word

    hi folk,
    I've a Z-program which creates a RFC destionation (SM59) with a default password. The RFC destination has been created successfully with all the necessary fields, but the pass word is not aticve.
    I'm using this fucntion module to scramble the pass word.
      slen = STRLEN( p_p_prfcpw ).
      SET EXTENDED CHECK OFF.
        CALL FUNCTION 'HTTP_SCRAMBLE'
          EXPORTING
            SOURCE            = p_p_prfcpw
            sourcelen         = slen
            key               = key
         IMPORTING
           DESTINATION       = p_pw
    I've got this message from SM59.
    Error in conversion of user password for destination A3
    Message no. SR131
    Diagnosis
    The upgrade to SAP Release 7.0 starts an XPRA program that converts passwords to secure storage. In certain cases, you may need to skip this procedure (for example, due to database locks during the upgrade). This can cause the passwords to become invalid.
    Procedure
    Enter the user password again.
    Any clues what is going wrong or how to solve this situation?
    Best regards
    Linhng

    hi Roberto,
    Everything is working except the pass word is not "converted" when I create the RFC destination in my z-program.
    So my question is still how do I create a RFC destination with the "correct" pass word.
    I've tried the function module  HTTP_SCRAMBLE to convert the pw and also without the FM.
    Best regards
    LinhNg

  • Where the Transaction ID is created in RFC

    HI,
    Where the Transaction ID is created in RFC?
    Kindly help me out.
    Thanks.

    Which session ID are your taking about?
    Are you doing J2EE development?
    -Alexis

  • Session created by RFC Destination don't close.

    Hi Experts
    I create an RFC Destination in NetWeaver 7.2, and i use this destination to access some RFC from CAF project.
    The problem is when i access the RFC, the ECC create a session to the user and don't close this session.
    After some time i have a lot of session created in ECC. The session in ECC should be closed, because i get some error when there are a lot of session with the same user opened in ECC.
    I create the destination in NWA - Destination.
    Could someone help to solve this?
    Regards
    Marcos Brandã

    Not anwsered.

  • Problem creating JCo rfcs

    Hi,
    I want to create JCo rfcs in systems.
    But confused between these functionalities :
    1> JCo rfc prvider : This is present in Visual Admin and is used to register J2EE engine as rfc destination.
    2> Maintain JCo connection : This is present in content admin in WebDynpro tool. Here we can provide details.
    Whats the difference between two and which is to be used when?
    Thanks

    Hi,
    JCo RFC Provider Service:
    The RFC is an SAP interface protocol, which simplifies the programming of communication processes between systems. The RFCs enable you to call and execute predefined functions in a remote system, or in the same system. The RFCs manage the communication process, parameter transfer, and error handling.
    In the J2EE Engine the RFC functions are implemented by the JCo RFC Provider service, which is used for processing ABAP to Java requests. A feature is provided for receiving calls from the SAP systems u2013 this is done by registering the J2EE Engine as a RFC destination.
    The JCo RFC Provider Service processes calls from the SAP systems. It dispatches the calls to a stateless session bean, which is registered in the J2EE Engine naming system. By naming convention the JNDI name used is identical to the name of the SAP function module.
    Technically, the service is based on the JCo (SAP Java Connector).
    Please refer the sap help link:
    http://help.sap.com/saphelp_nw04/helpdata/en/6a/82343ecc7f892ee10000000a114084/content.htm
    What is JCo connection and use please refer the following URL:
    http://wiki.sdn.sap.com/wiki/display/Java/JCO+Connection

  • Is it possible to create a RFC using EWB(Engineering Workbench) API's???

    Hi Experts.
    My Client has a requirement. He wants me to check on EWB(Engineering Workbench) API's to create a RFC to MODIFY ROUTING. I've seen EWB(Transaction Code: CEWB). It is a Workbench for Modifying Routings/BOM's etc.,, Now I want somebody who is expert in ABAP OO to tell me is it possible to write a custom RFC for Routing Modification?

    You can use use the function module 'CP_BD_DIRECT_INPUT_PLAN' or 'CP_BD_DIRECT_INPUT_PLAN_EXT' to update routings.
    Edited by: Carsten Grafflage on May 20, 2010 4:18 PM

  • How to create an RFC for MIGO transaction?

    How to create an RFC for MIGO transaction?
    I want my RFC to accept all details as accepted in MIGO transaction.
    For the entered PO no, display the materials against it and allow user to enter the quantity for the same.
    Then the user should be able to post the PO by executing the RFC.
    Kindly revert asap.
    Thanx in advance,
    Bhakti

    Put good movement header data in structure header
      l_header-pstng_date = sy-datum.
      l_header-doc_date = sy-datum.
      l_header-ver_gr_gi_slip = space.
    Assign goods movement code
      l_wa_goodsmvt_code-gm_code = c_gm_code.
    Add material, plant, and other line item details in
    goods movement item table
      l_wa_goodsmvt_item-material = l_wa_selected-matnr.
      l_wa_goodsmvt_item-plant = l_wa_selected-werks.
      l_wa_goodsmvt_item-stge_loc = l_wa_selected-lgort.
      l_wa_goodsmvt_item-batch = l_wa_selected-charg.
      l_wa_goodsmvt_item-move_type = l_wa_selected-mov_type.
      l_wa_goodsmvt_item-entry_qnt = l_wa_selected-deviceid.
      l_wa_goodsmvt_item-entry_uom = l_wa_selected-meins.
      l_wa_goodsmvt_item-move_plant = l_wa_selected-zwerks.
      l_wa_goodsmvt_item-move_stloc = l_wa_selected-zsloc.
      l_wa_goodsmvt_item-move_batch = l_wa_selected-rec_batch.
      l_wa_goodsmvt_item-serialno_auto_numberassignment = space.
      APPEND l_wa_goodsmvt_item TO l_i_goodsmvt_item.
      CLEAR l_wa_goodsmvt_item.
      l_wa_serial_num-matdoc_itm = l_c_mat_doc_item.
      l_wa_serial_num-serialno = l_wa_selected-sernr.
      APPEND l_wa_serial_num TO l_i_serial_num.
      CLEAR l_wa_serial_num.
    To call BAPI BAPI_GOODSMVT_CREATE to transfer material of transfer
    type one step
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header       = l_header
          goodsmvt_code         = l_wa_goodsmvt_code
        IMPORTING
          goodsmvt_headret      = l_goodsmvt_headret
        TABLES
          goodsmvt_item         = l_i_goodsmvt_item
          goodsmvt_serialnumber = l_i_serial_num
          return                = l_i_return.
    cheers
    Aveek

  • Creating Port,RFC desitination in R3 for XI

    Can somebody send a link for creating Port/RFC destination in R3 system WITH SCREENSHOTS.. I need step-by-step process.. pls
    Thanks-GS

    Hi Gopal,
    To create RFC destination in R/3 TCODE is SM59.
    Go to SM59->R/3 Connections->Create new->Give RFC destination name,type is 3 in this case,then give target host as the host name of ur R/3 system to which u want to connect then give system no.(most of the time it is 00) then select as a host name or ip address then go to logon security tab give language,client of ur target system and enter username and password which should be used to logon in target system.Then save this connection click on test Connection if it is successful click on remote Logon.
    To create ports TCODE is WE21->Transactional RFC->create new
    Then give port name then select RFC destination( the one u created in previous step).
    Thanks.

Maybe you are looking for