cancel
Showing results for 
Search instead for 
Did you mean: 

main differences between RFC function module and STANDARD fn.mod?

Former Member
0 Kudos

What are the main differences b/w RFC fn.mod and STANDARD fn. module except calling

b/w remote systems.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

RFC FM should have the parameters passed by VALUE only, but for STANDARD FMs it can be PASS BY VALUE or PASS BY REFERENCE

Naveen.

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

An RFC (remote function call) is similar to a regular function module, but typically called from outside of SAP. A session is established from the calling application to SAP, a user ID is logged on, and then a call is issued, triggering the processing inside the call. When it is done, it usually returns information such as a return code and application data. The calling application waits for the processing to complete, receives the data and can continue processing, taking the result into account. It can even issue multiple RFCs during one session. The main difference between RFCs and regular function modules is the definition of the interface (e.g. CHANGING parameters are not allowed) and the interaction with the user (RFCs should not popup windows, because there is no user available to react to it). RFCs leave no data behind for restarting the task. They either fail or complete according to the transaction concept, but since you are on a function level, a transaction may encompass more than one call. Therefore, you may need to issue a separate COMMIT call after you are done or you risk losing your work. RFCs are also bi-directional, i.e. they can be called by a client program or they can invoke a server program can be the client. In interfaces, you are more likely to use an RFC from a client program.

regards,

keerthi