Start of Content Area

Procedure documentation Executing a qRFC Example Program  Locate the document in its SAP Library structure

Use

Executing a qRFC example program.

 

Prerequisites

You have defined a destination in transaction SM59.

 

Procedure

Use transaction SE38 to run test report RSTRFCT0:

This graphic is explained in the accompanying text

 

Enter the name of the test program in the Program field and choose This graphic is explained in the accompanying text (Execute). The following screen appears:

 

This graphic is explained in the accompanying text

 

You must enter a destination and a queue name. You can use predefined queue names and destinations, or you can define your own. You must have already defined the destination in transaction SM59 (see SMQS: Registering a Destination). Start this qRFC by choosing  This graphic is explained in the accompanying text (Execute).

Note You can also set the additional flags NOSEND, SEPARATE, and UPDTASK. In this example, however, you do not need to select these flags.

 

You must make sure that the specified destination exists. To do this, run transaction SMQS and check whether the specified destination has the status U (not registered). If not, select the destination and press Deregistration. The Type column should then display U. This ensures that this qRFC is not executed immediately by the scheduler, which makes it easier for you to monitor the process.

 

This graphic is explained in the accompanying text

 

Now press qRFC Monitor. (This has the same effect as running transaction SMQ1). Your destination is displayed:

 

This graphic is explained in the accompanying text

 

Note If you have created a new destination, it is not displayed in the overview list. Press Deregistration and enter the destination you have created. You can then display your destination by pressing qRFC Monitor.

 

To view your qRFC in more detail, choose This graphic is explained in the accompanying text (Display).

 

This graphic is explained in the accompanying text

 

You can now trigger your qRFC call by choosing This graphic is explained in the accompanying text (Activate) (or by registering the destination in the scheduler).

 

This graphic is explained in the accompanying text

You can now execute this queue.

 

Result

You have successfully executed a qRFC with connection type 3. If nothing is displayed under your destination in the qRFC Monitor (transaction SMQ1), the call has been processed successfully.

 

 

 

 

End of Content Area