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

trfc vs arfc

Former Member
0 Likes
1,222

what is the diff. between TRFC AND ARFC? in which situation which is used?plz explain....

what is the diff. between TRFC AND ARFC? in which situation which is used?plz explain....

2 REPLIES 2
Read only

Former Member
0 Likes
589

check this for trfc and qrfc

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5b6a85b11d6b28500508b5d5211/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5b6a85b11d6b28500508b5d5211/content.htm</a>

regards

shiba dutta

Read only

Former Member
0 Likes
589

Hi Pavan ,

ARFC is basiacally used when your processing does not depend on the result of the execution of the program , so what happens is that the control immediatedly passes back to the program after the FM is called .

AFRC can be classifeid as RFC with response and without response.

Now in a ARFC we have to specify the Task in which the program is to be exeucted , so based on the task we specify the FM will be in that Session/Unit of work . To call ARFC we need the addition STARTING NEW TASK 'your task name' in the FM call .

so what happens is if we call 10 FM with dirrerent tasks then they all are executed in different sessions .where as if we specify the same taks they all are executed in one single session.

In case of TRFC , the program are executed in backround and it is in same session and it ensures that all the FM are exected once or not at all and if any of the FM raises an exception all the porcessed are rolledback.

In the TRFC all the FM to a perticular destination are grouped together in a single transactional unit.

Regards

Arun