‎2006 Nov 20 2:23 PM
Hi,
l am using BAPI: BAPI_ACC_GL_POSTING_POST, in BACKGROUND TASK.
an RFC, is ceated.
My Question, Is there a way to verify the RFC if an error occurs after RFC ran?
Bob
‎2006 Nov 20 2:28 PM
Hi robert,
1. we have to check thru tcode sm58.
2. It will list out all tRFCs which had some error.
regards,
amit m.
‎2006 Nov 20 2:26 PM
Did you try using the RETURN in the Tables parameter of the BAPI?
~Suresh
‎2006 Nov 20 2:28 PM
Immediately after the call to the bapi, you can loop the internal table RETURN to know what has happened in the call to the bapi/rfc.
something like this:
CALL FUNCTION 'BAPI_ACC_GL_POSTING_POST'
EXPORTING
DOCUMENTHEADER = DOCUMENTHEADER
IMPORTING
OBJ_TYPE = OBJ_TYPE
OBJ_KEY = OBJ_KEY
OBJ_SYS = OBJ_SYS
TABLES
ACCOUNTGL = ACCOUNTGL
CURRENCYAMOUNT = CURRENCYAMOUNT
RETURN = RETURN
EXTENSION1 = EXTENSION1
EXCEPTIONS
OTHERS = 1.
loop at return.
write:/ return-MESSAGE.
endloop.
Regards,
ravi
‎2006 Nov 20 2:28 PM
Hi robert,
1. we have to check thru tcode sm58.
2. It will list out all tRFCs which had some error.
regards,
amit m.