Application Development and Automation 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: 
Read only

Write down the syntax for calling an RFC function module?

Former Member
0 Likes
526

1) Write down the syntax for calling an RFC function module?

2) When we are distributing the data between saps to sap, which type of port can be used?

3) What is the standard program to execute IDOC’S in back ground?

4) What is the role of subsystem in EDI?

1 REPLY 1
Read only

Former Member
0 Likes
355

Its is not mandatory if you are calling the RFC FM in the same system.

If you want the FM to be executed on another system and operate on the data of THAT system, then you have to specify the destination along with the call

like:

call function 'RFC****'

destination <dest>

the destination must be created in sm59 transaction.

http://help.sap.com/saphelp_nw04/helpdata/en/22/0425f2488911d189490000e829fbbd/content.htm

***************************************************

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.

****************************************************************************************

Depending on the message type and how it has been configured it varies. If on the other hand, you are looking for an option to reprocess the IDoc, the transaction is BD87.

There is no Std program/Tcode to execute the Idoc

Using the T codes WE02 and WE05 you can see the number of Idocs.

Generally after doing all the configuration and writing the fun module for a particular application, when you save the Application document(example Sales order) an IDoc will be created and sent to the port.

From there it goes to the respective place.

***********************************************************************************

Check out this :

http://www.erpgenie.com/sapedi/edi_subsystems.htm

Regards

Vasu