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 call

Former Member
0 Likes
1,055

Dear All,

I was trying to implement a tRFC call using the addition IN BACKGROUND TASK; as I understand that while making a tRFC call the RFC function, together with data is saved in the database of the AS ABAP with a unique TID & I thought that we can view the TID using the transaction SM58. But to add to my surprise I could see nothing, can you please elaborate the possible reasons for this?

Well I understand the following points already.

1. A function call that contains the clause STARTING NEW TASK represents an aRFC call.

2. A function call that contains the clause IN BACKGROUND TASK represents a tRFC call.

3. If a function call only contains a DESTINATION clause but does not contain any clauses like STARTING NEW TASK or IN BACKGROUND TASK then it represents a sRFC call.

One more think if you could probably put light on is what is a bgRFC call?

Many Thanks,

Tanmoy

Dear All,

I was trying to implement a tRFC call using the addition IN BACKGROUND TASK; as I understand that while making a tRFC call the RFC function, together with data is saved in the database of the AS ABAP with a unique TID & I thought that we can view the TID using the transaction SM58. But to add to my surprise I could see nothing, can you please elaborate the possible reasons for this?

Well I understand the following points already.

1. A function call that contains the clause STARTING NEW TASK represents an aRFC call.

2. A function call that contains the clause IN BACKGROUND TASK represents a tRFC call.

3. If a function call only contains a DESTINATION clause but does not contain any clauses like STARTING NEW TASK or IN BACKGROUND TASK then it represents a sRFC call.

One more think if you could probably put light on is what is a bgRFC call?

Many Thanks,

Tanmoy

1 REPLY 1
Read only

0 Likes
740

Hello Tanmoy,

bgRFC does everything you could do with "Classic tRFC qRFC".

But it does it faaar better.

I highly recoomend bgRFC - bgRFC Programming - Connectivity - SAP Library

To summarize, here is the list of RFC options in ABAP:

(1)    sRFC – synchronous RFC (DESTINATION….)

  • (2)    aRFC – asynchronous RFC (with or without response) (STARTING NEW TASK… DESTINATION…)
  • (3)    pRFC – asynchronous RFC over an RFC server group (with or without response) (STARTING NEW TASK… DESTINATION IN GROUP…).
  • (4)    tRFC/qRFC – ‘store and execute later’ RFC – execution controlled by qRFC scheduler (IN BACKGROUND TASK….)
  • (5)    bgRFC – ‘store and execute later’ RFC – execution controlled by bgRFC scheduler (IN BACKGROUND UNIT….)

Thank you,

Best Regards,

JothiSubaramaniam P

SAP IMS CST