To use the bgRFC, the following configuration steps are required:
Creating RFC destination for outbound queue
Registering RFC destination for outbound queue
Creating RFC Destination for Outbound Queue
Go to transaction SM59 in the SAP backend system.
Choose Create to create a new connection.
In the RFC Destination field, enter the name of the RFC destination.
In the Connection Type field, enter 3 (Connection to ABAP System).
Select the Special Options tab and choose the qRFC Version as bgRFC (or) in higher releases choose the Transfer Protocol as 1 Classic with bgRFC.
Save the RFC destination and choose Connection Test to test the connection.
Registering RFC Destination for Outbound Queue
Go to transaction SBGRFCCONF in the SAP Gateway system.
Go to the Define Inbound Dest. tab and choose Create.
In the Inb. Dest. Name field, enter the name of the RFC destination.
Choose Save to save the queue prefixes.
Go to the Scheduler: Destination tab and choose Create.
In the dialog box, select Inbound as the destination type.
In the Destination field, enter the name of the RFC destination.
Choose Save to save the scheduler setting you have just created.
In the bgRFC Destination screen, choose Save to save your customizing settings.