Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to Debug RFC Enabled FM ?

Hello All,

I want to debug an RFC Enabled FM.

I've written a small Test program to check this.

DATA: eenumber	      LIKE	bapip2001-pernr,
      subtype	      LIKE	bapip2001-subty,
      objectid	      LIKE	bapip2001-objps,
      lockindicator	LIKE	bapip2001-sprps,
      validitybegin	LIKE	bapip2001-begda,
      validityend	      LIKE	bapip2001-endda,
      recordnumber	LIKE	bapip2001-seqnr.



CALL FUNCTION 'BAPI_ABSENCE_GETDETAIL 
  EXPORTING
    employeenumber          = eenumber
    subtype                 = subtype
    objectid                = objectid
    lockindicator           = lockindicator
    validitybegin           = validitybegin
    validityend             = validityend
    recordnumber            = recordnumber
* IMPORTING
*   RETURN                  =
*   START                   =
*   END                     =
*   ABSENCETYPE             =
*   ABSENCEDAYS             =
*   ABSENCEHOURS            =
*   NAMEOFABSENCETYPE       =
          .

IF sy-subrc <> 0.
  WRITE:/ 'UNsuccessful'.
ENDIF.

When a Break Point is kept at the above FM and When I press F5 the cursor is going into the FM .

But when I specify the Destination in the Call Statement as :

CALL FUNCTION 'BAPI_ABSENCE_GETDETAIL' DESTINATION 'SID_010'
  EXPORTING
    employeenumber          = eenumber
    subtype                 = subtype
    objectid                = objectid
    lockindicator           = lockindicator
    validitybegin           = validitybegin
    validityend             = validityend
    recordnumber            = recordnumber
* IMPORTING
*   RETURN                  =
*   START                   =
*   END                     =
*   ABSENCETYPE             =
*   ABSENCEDAYS             =
*   ABSENCEHOURS            =
*   NAMEOFABSENCETYPE       =
          .

The control is not going into the FM.

Can any one tell me how to debug the FM within a different system ?

Regards,

Deepu.K

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question