Entering content frameProcedure documentation Debugging a BAPI or RFC Call in ABAP Locate the document in its SAP Library structure

Use

If a BAPI or RFC call is returning wrong or no results to your VB application, you may want to debug the ABAP function that you are calling.

Prerequisites

You must have the SAPGUI installed on the machine on which you are working.

Procedure

  1. In your project, declare a reference to librfc32.dll (it has the description SAP: Remote Function Call: COM support 1.0 Type Library)
  2. Declare the following variable with this type in your project:

Dim sink as new RfcGuiSink

  1. Insert the following statement into your VB program before the ABAP function call you want to debug:

<proxy object>.AdviseRfcGuiSink sink, 1, 1

where <proxy object> is the same object that you are using to call the BAPI or remote function.

Result

When the VB program calls the BAPI, a SAPGUI window will start, and you can step through the BAPI or remote function module.

Caution

Remember to delete the AdviseRfcGuiSink call from the release version of your application!

 

 

 

 

Leaving content frame