RFC is used to communicate between SAP systems and SAP to Non-SAP systems using TCP/IP protocol.

Similar documents
ALE Introduction and Administration

Oracle Cloud Using the SAP Adapter with Oracle Autonomous Integration Cloud

Oracle Cloud Using the SAP Adapter. Release 17.3

StreamServe Persuasion SP5 StreamServe Connect for SAP - Business Processes

Data Interfaces Application Development in the ABAP/4 Development Workbench Week 4

Optimize the RFC performance for mysap CRM Mobile Sales Version 1.00 April Applicable Releases: SAP CRM Mobile Sales and Service 4.0 and 5.

SAP Automation (BC-FES-AIT)

Configuration of Web service runtime

Forwarding Alerts to Alert Management (ALM)

SPNEGO SINGLE SIGN-ON USING SECURE LOGIN SERVER X.509 CLIENT CERTIFICATES

IDoc Connector for XML Component (BC-FES-AIT)

SAP Communication: CPI-C Programming (BC-CST-GW)

SAP NETWEAVER - TRANSPORT MANAGEMENT

How To Enable Business Workflow for SAP NetWeaver Gateway 2.0

A Step-by-Step Guide on Asynchronous RFC - to -JDBC Scenario Using SAP PI 7.0

BC SAPconnect HELP.BCSRVCOM. Release 4.6C

OpenText RightFax 10.6

Monitoring Agent for SAP Applications Fix pack 11. Reference IBM

Configure UD Connect on the J2EE Server for JDBC Access to External Databases

Setting up Connection between BW and R/3 for Data Load

SAP- ABAP/4 ADVANCED COURSE CONTENT

Installation Instructions for SAS/ACCESS 4.2 Interface to R/3

Contents Overview... 5 Downloading Primavera Gateway... 5 Primavera Gateway On-Premises Installation Prerequisites... 6

opensap How-to Guide for Exercise Instructor-Led Walkthrough of SAML2 Configuration (Week 4 Unit 5)

Enterprise Integration Module for SAP Solution Manager 7.2

Deltek Time & Expense with Employee Self Service Version New Installation for Microsoft SQL Sever

Configuring Remote Access using the RDS Gateway

HPE Enterprise Integration Module for SAP Solution Manager 7.1

The Test Workbench in the SAP System (BC-CAT-PLN)

Interface Documentation in SAP Solution Manager 7.2 Setup and End User Guide (Support Package 05)

Overview of ALE / IDOCs

IBM Security Identity Manager Version Administration Topics

OpenText RightFax 10.0 Connector for Microsoft SharePoint 2007 Administrator Guide

OpenText RightFax 10.0 Connector for SAP Guide

SAP ABAP ONLINE TRAINING COURSE

An Overview of ABAP Debugger Settings and System Areas

Dominic Yow-Sin-Cheung SAP GRC Regional Implementation Group (RIG) elearning Series Part 5 of 5

SAP Business Connector SAP Adapter Guide

Configuring SAP Targets and Runtime Users

SAP NetWeaver How-To Guide How To... Configure SAP HANA for CTS

A Step-by-Step Guide on IDoc-to-File Using Business Service in the XI Integration Directory

Request Policy Number from AgentNet

Table of Contents 1 AQL SMS Gateway How to Guide...1

Connect for SAP (NetWeaver)

HP Enterprise Integration Module for SAP Solution Manager

Step by Step Guide for PI Server Start and Stop Procedure

IMPLEMENTING SINGLE SIGN-ON (SSO) TO KERBEROS CONSTRAINED DELEGATION AND HEADER-BASED APPS. VMware Identity Manager.

Configuring Secure Network Communications for SAP

User's Guide - Master Schedule Management

Office 365 Standalone Security

SAP Composite Application Framework. Creating an External Service type Callable Object in Guided Procedures

PMP Installation and Networking Instructions

Connect for SAP (Classic)

Configuring SharePoint 2007

Qlik Connector for SAP Installation guide

Monitoring SAP ENCYCLOPEDIA ... ENCYCLOPEDIA. Monitoring Secrets for SAP. ArgSoft Intellectual Property Holdings, Limited

Working with the Remote Console for the Remote Support Platform

Resume Parsing. SAP enhancement package 3 for SAP ERP 6.0. Document Version ERECRUIT 603 RECRUIT 603

Scan-to- . using Office 365. Copytech s guide to setting up Scan-to- on Konica Minolta MFDs using MS Office 365

A Step-by-Step Guide on IDoc-ALE between Two SAP Servers

CLI users are not listed on the Cisco Prime Collaboration User Management page.

How-To Guide SAP NetWeaver Document Version: How To... Configure CM Services in SAP NetWeaver 7.3 and up

Perceptive Matching Engine

Partner Integration Portal (PIP) Installation Guide

The EDGE Estimator v12 Network Database Install

Product and Release Information

Interface Documentation in SAP Solution Manager 7.2 Setup and End User Guide. Document Version 1.0 (January 2017)

INSTALLATION GUIDE Spring 2017

How to Configure Office 365 for Inbound and Outbound Mail

User Manual Zultys Outlook Communicator V.2

ZL UA Exchange 2013 Archiving Configuration Guide

Identity Provider for SAP Single Sign-On and SAP Identity Management

Configure Enhanced CTS for SAP NetWeaver Exchange Infrastructure 7.0 SPS14. How-to Guide. Version 1.10 March 2008

BACKUP APP V7 QUICK START GUIDE FOR SYNOLOGY NAS

SAP Exchange Connector (BC- SRV-COM)

BlackBerry Enterprise Server for Microsoft Office 365. Version: 1.0. Administration Guide

CLI users are not listed on the Cisco Prime Collaboration User Management page.

Avalanche Remote Control User Guide. Version 4.1

The two bullets below provide instructions that will guide you through the process of setting up and connecting to the ILG VPN:

Installation Guide

Installing and Configuring vcloud Connector

SAP Global Track and Trace Onboarding Guide

SAPconnect. Before you begin. September 13, 2005 Rev. 1. Technical Note

HP Service Health Reporter

Integration Guide. Document Version:

Installation & Configuration Guide

<Partner Name> <Partner Product> RSA SECURID ACCESS Implementation Guide. PingIdentity PingFederate 8

Monitoring System Landscapes Using the DBA Cockpit

<Partner Name> <Partner Product> RSA SECURID ACCESS Implementation Guide. Pulse Connect Secure 8.x

User Addendum User Box Scan support on the Fiery E C-KM Color Server, version 1.1

Configuring and Managing WAAS Legacy Print Services

DMP 128 Plus C V DMP 128 Plus C V AT. ShoreTel Configuration Guide REVISION: DATE: DECEMBER 6 TH 2018

Installation Guide Worksoft Certify Execution Suite

PayPal Standard Sandbox Testing

SAP R/ Version

HOW TO USE THE WEB DYNPRO CONTENT ADMINISTRATOR. SAP NetWeaver 04 SP Stack 9 JOCHEN GUERTLER

A Step-by-Step Guide on IDoc-to- JDBC Using Business Service in the XI Integration Directory

TraiTel Telecommunications. TTMessenger 4.xx. User Manual

Understanding the Automation Pack Content

Installation Manual. Fleet Maintenance Software. Version 6.4

Transcription:

What is RFC in SAP? RFC is used to communicate between SAP systems and SAP to Non-SAP systems using TCP/IP protocol. RFC means that the ABAP programmer does not have to write his or her own communication routines. For an RFC call, the RFC interface Converts all parameter data to the format required in the remote system calls the communication routines that are required to communicate with the remote system handles errors that occur during the communication. RFC s are defined in T-Code SM59. There are 4 types of RFC s 1. Asynchronous RFC 2. Synchronous RFC 3. Transactional RFC 4. Queue RFC 1. Asynchronous RFC: Like a post card. The sending system may or may not receive it. i.e. there is no acknowledgement from the receiving. The transmission is not reliable. 2. Synchronous RFC: It is not like ARFC. It gets an acknowledgement from the target system. (Like a register post). If the receiving system is not available the process goes into RFC/ CPIC/ Sleep mode and waits until it is wakened by the target system. Target system/ Receiving system may be busy i.e. all the resources are used up. This is reliable but time consuming and expensive (Client Copy) the job should get finished. 3. Transactional RFC: TRFC It is an advanced version of ARFC and SRFC. T he request goes to receiving system if it is not handled a Transaction ID is generated by the source system. A program RSARFCSE is scheduled in the background to run for every 60 seconds. Transaction SM58 is used for Transactional RFC. It is used to document all the transactional ID s and ensure that they are received by the recipient system. This is consistence and reliable. 4. Queued RFC: It is an advanced version of TRF and ensures that the transaction is committed based on FIFO/ Queue. It ensures transaction consistency of LUW and reliability of data transmission. SMQ1 to monitor the outbound queues of a sending system refer SCOTT for FAX SMQ2 Provides interface to monitor inbound queues. What to check when RFC Connection fails? Check the following: 1.Port Number

2.Hostname 3.RFC User / Password 4.RFC user authorizations RFC Tables For trfc outbound the tables used are ARFCSSTATE and ARFCSSDATA. For qrfc outbound the tables used are TRFCQOUT ARFCSSTATE and ARFCSSDATA. RFCDES: Destination table for Remote Function Call RFCATTRIB: Administration table for RFC destinations RFCDOC: Description of Possible RFC Connections (->RFCDES) RFCSYSACL: List of permitted trusted systems for the current system RFCCHECK: Table for asynchronous RFC administration RFCTRUST: List of existing trusting systems RFCGO: RFC stub generation - generation of user parameters RFCCMC: CMC data for mail RFCSTXTAB: RFC statistics administration RFC2SOAPS: RFC After SOAP Stubs Directory ARFCSSTATE: Description of ARFC Call Status (Send) ARFCSDATA: ARFC Call Data (Callers) TRFCQOUT: trfc Queue Description (Outbound Queue) ARFCRSTATE: Status of ARFC Calls on Receiver Side What is BAPI? BAPI (Business Application Programming Interface) is a set of interfaces to object-oriented programming methods that enable a programmer to integrate third-party software into the proprietary R/3 product from SAP. For specific business tasks such as uploading transactional data, BAPIs are implemented and stored in the R/3 system as remote function call (RFC) modules. What is the difference between SAP RFC & BAPI? BAPI stands for Business Application Programming Interface. It is a library of functions that are released to the public as an interface into an existing SAP system from an external system. RFC stands for Remote Function Call RFC is the protocol used to call functions in an R/3 system by a caller external to R/3 or to call programs external to R/3 from an R/3 system Difference RFC makes direct system calls BAPI makes indirect call through objects(programs) to Non SAP systems.

How to create an RFC destination? Go to SM59 transaction Click on create icon in the above screen, which leads to below screen Specify RFC Destination name and description and connection Type in the above screen Please note respective connection type to be selected from dropdown based on the connection required. Usually 3 is for ABAP system. (Pls find screenshot below)

In the below screen, please select load balancing radio button based on your system setup (i.e if there is load balancing configured for your system, specify it as yes otherwise no) Please provide Target host details like hostname or ipaddress and system number as below: As shown below, Proceed to Logon & security tab and provide following details : Select trusted system as no, in case you would like to connect to a system with a user id and password. If you don t want to get authenticated by credentials specify the system as trusted system which won t prompt to enter user id/pwd credentials in the below screen. Please provide Language details like EN (for English), Client details, User id and password for the system you would like to create a connection.

Please leave default values in other tabs (i.e MDMP & Unicode, Special options, Administration) and then click on Save to complete the RFC creation. How to Test RFC connection? If it functioning well it should show output similar to below screen :

If this is fine, come back to earlier screen and execute Unicode test by clicking the button. Output similar to below screen, should be displayed if connection is OK Also you need to perform authorization test to make sure user id / password credentials provided are correct. Please navigate as below and perform the test:

Navigate to Utilities -> Test -> Authorisation test and click the same to execute. If the RFC configuration is fine, screen shot similar above will appear. Otherwise an error will be displayed based on which you need to troubleshoot to fix the issue. How to delete an RFC? Go to SM59 and select the RFC that is to be deleted as shown below:

And click on delete icon Click yes to confirm deletion, which deletes the RFC. How to export and import RFC information This can be used to take backup of RFC destinations before system copy and can be restore d once system copy is over. 1. Login to SAP Server with sidadm user 2. create a file with rfcexp.dat with below mentioned data export client =771 file="f:\rfcexp.ctl" Select * from rfcattrib Select * from rfcdes Select * from rfcdoc Select * from RFCSY SACL select * RSECACHK select * RSECACT B 3. Run command R3trans -w rfcexp.log F:\rfcexp.dat

4. Export should be over with RC=0 5. For import create file rfcimp.dat with following content import file="f:\rfcexp.ctl" 6. Run Command R3trans -w rfcimp.log rfcimp.dat RFCs should be imported How to reset status of queue in qrfc? Answer: T-Code : SMQ1 ---> qrfc monitor ---> reactivate queue Additional Info: Check SM13 for "Waiting for Updates" for root cause analysis on queue status Establishing a Connection Between AS ABAP and AS Java The AS ABAP uses the SAML service of the AS Java to perform the SAML protocol execution with the source site. Therefore the AS ABAP needs a connection to an AS Java with a running SAML service to perform SAML authentication. Normally the AS Java used is the one installed on the same instance as the AS ABAP. However, it is possible to use any other AS Java with a proper release version. To check whether the AS Java has a suitable release version: Configure the connection between the AS ABAP and the AS JAVA Activate SAML for a resource on the AS ABAP as described in Activating SAML for Resources in the AS ABAP In the SAML configuration dialog box in transaction SICF, choose Test Connection. If the AS Java does not have a suitable release version, you get a corresponding error message. Prerequisites The SAML service of the AS Java is running. Procedure Configuration on the AS Java 1. In the JCo RFC Provider of the AS Java, check whether there is already a configured connection to the AS ABAP that has a corresponding entry in the maintenance of RFC destinations in the AS ABAP. 2. If there is no such connection yet, create a new connection with the following values: Field Name Value RFC

destination Program ID Gateway host Gateway service Number of processes We recommend that you use: SAML_SERVICE_<SID>where <SID> is the system ID of the AS ABAP to which you are connecting. Enter a host name on which a gateway process of the AS ABAP runs (this can be any application server of the AS ABAP). Enter the port of the gateway or the alias (usuallysapgw<nn> where <nn> is the instance number of the AS ABAP). This number determines how many SAML authentications can be executed in parallel and thus depends on the expected rate of SAML authentications per second. For getting started, use 1. Repository Application server host System number Client Application server of the AS ABAP System number of the AS ABAP Client of the AS ABAP Language User The user must have appropriate authorizations to access the repository. Password In the RFC destination section and the Repository section, configure a connection to the same AS ABAP. 3. Choose Set. The connection should appear in the list on the left side with a running symbol. If not, check the log files to find the cause of the error. Configuration in the AS ABAP 1. Start the Configuration of RFC Connections (transaction SM59). 2. Check whether the RFC destination SAPJ2EE is already pre-configured and points to the local AS Java using connection data that matches the data you have found or entered in the JCo RFC Provider of the AS Java. 3. If this is not the case: a. Create a new RFC destination of type T. b. On the Technical Settings tab page, choose Registered Server Program as Activation Type. c. Enter the same Program ID, Gateway Host, and Gateway Service as you entered in the connection on the AS Java. d. Save your data. e. Choose Connection Test to check whether the connection between the AS ABAP and the AS Java is correctly established. Result You have an RFC destination in the AS ABAP that can be used to communicate with the AS Java. What is the function module to check RFC Connection?

Call the Function module "RFC_PING" and check the SY-SUBRC EQ 0. If you want some sample code, check the where used list for this FM and also the function module "LDAP_CHECKIN_RFCDEST" What is the RFC API? The SAP system provides the RFC API (Remote Function Call Application Programming Interface) that you install on non-sap systems to help you implement RFC partner programs. The RFC API is a set of C- language routines that perform certain communications tasks for you. The RFC API supports the following external systems: Microsoft Windows platforms (Windows 2000 and Windows XP) HP-UIX Sun Solaris Alfa OSF IBM AIX OS 390 OS 400 These platforms use the RFC functionality between an SAP system and a C program. It is of no significance whether the remote function is provided in an SAP system or in a C program. For each supported platform, there is an RFC SDK including the RFC library specific for each of these platforms, SAP RFC header files and some sample RFC programs. The RFC API is always required Both methods for implementing RFC programs use the RFC API: RFC programs generated by the RFC Interface Generator use API routines to call an SAP function module. In addition, the application you write (that calls the RFC stub program) must also use API routines to establish a connection with the SAP system, prepare table parameter structures, and so on. User-created programs (if you write your own) must likewise use API routines. Your program must perform all the same communication tasks as an automatically-generated stub and its caller. For information about the RFC API components you need for your RFC projects, see Contents of the RFC SDK.