Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

port &trfc port

Former Member
0 Kudos
244

what is the diff between PORT &TRFC port?

3 REPLIES 3

Former Member
0 Kudos
88

Hi,

Port: is the medium by which we can sed information from one system to another.

TRFC port: To make the execution of RFC functs reliable and independent from the availabilty of RFC server the TRFC was introduced.

Regards,

Satish.

reward for useful answers....

Former Member
0 Kudos
88

Ports are a fundamental requirement for communicating by means of the the IDoc interface. At least one port must exist for each external system. A port is a logical representation of a communication

channel in SAP, with the data communicated being IDOCs.IDoc data can be sent and received through a multitude of different media. In order to decouple the definition of the media characteristics from the application using it, the media is accessed via ports.

A port is a logical name for an input/output device. A program talks to a port which is presented to it with a common standard interface. The port takes care of the translation between the standard interface format and the device dependent format.Instead of defining the communication path directly in the partner profile, a port number is assigned. The port number then designates the actual medium. This allows you to define the characteristics of a port individually and use that port in multiple profiles. Changes in the port will then reflect automatically to all profiles without touching them.

Transactional RFC :

It is an asynchronous communication process,meaning that when an idoc is dispatched, The sender does not wait for the idoc to be received on the destination system. Control returns as soon as the idoc is successfully transferred to the communication layer. The IDOC gets a status code of 03 if it is successful. The communication layer must make sure that the idoc is successfully transferred to the destination system.

former_member313782
Active Participant
0 Kudos
88

Hi Sravanthi,

Port is the name of the channel by which the SAP system exchanges electronic data with an external system.

In general, You conect a USB to the system thru a USB port and the system recognises the USB thru the port.

Similar is in the case of SAP also.

In SAP you often have to send data between SAP - SAP/ Non -SAP systems. this transfer of data between systems is done thru ports.

The types of ports available in SAP are,

TRFC port,

ABAP port,

Fike Port,

XML port,

HTML port.

There are various technical methods for implementing this type of communication (port types). The selection of the port type depends on the technical configuration of the external system.

For example, most EDI subsystems read IDocs in the form of sequential files - that is, the port type "file" is used.

TRFC is a type of port used when the data being exchanged is Transactional data.

Data can be transferred between two SAP systems reliably and safely via transactional RFC (tRFC).

The TRFC was renamed from Asynchronous RFC to Transactional RFC, because asynchronous RFC has another meaning in SAP systems.

The remote system need not be available at the time when the RFC client program is executing a tRFC. In SAP systems, the tRFC component stores the called RFC function together with the corresponding data in the database, including a unique transaction identifier (TID). This ensures that the called function module executed exactly once in the RFC server system.

TRFC port is used when we are sending the data which has to be sent quickly, in small packets and when it doesnot need to wait for the reply.

Also, when we have to send standard data ie., standard Idoc etc, we do it using TRFC port, it doesnot allow to do additions to the data being sent. for that we need to use ABAP port.

You can goto the tcode we21 and check out the various ports available.

Hope this will help you,

kindly reward if useful,

Regards,

Jose