How the CRfcServerFunc Class Works 

The CRfcServerFunc Class is designed to encapsulate all calls for processing actions that can be made to R/3 as a server function. This class uses methods inherited from the CRfcFunction class to carry out the following actions:

The three member functions listed above are automatically called by CRfcServerApp

The CRfcServerFunc class is an abstract, base class for the custom server function classes needed by users. It establishes a framework by providing an overridable pure virtual function known as Process()for the derived classes to fill with function-specific processing logic.

Another overridable member function of the CRfcServerFunc class is GetDescription You can use it to return a text description of the particular server function represented by the class. This function is automatically called when testing in R/3 (3.0 onwards) under Transaction SM59 using the Function List utility. The default implementation of GetDescription returns NULL.

In summary, the only major work that needs to be done by the user of the CRfcServerFunc class is to implement the function-specific logic in the Process() method of his/her own custom server function class, which is derived from CRfcServerFunc.