Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

In Background Task

Former Member
0 Likes
503

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
461

Hi robert,

1. we have to check thru tcode sm58.

2. It will list out all tRFCs which had some error.

regards,

amit m.

3 REPLIES 3
Read only

suresh_datti
Active Contributor
0 Likes
461

Did you try using the RETURN in the Tables parameter of the BAPI?

~Suresh

Read only

Former Member
0 Likes
461

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

Read only

Former Member
0 Likes
462

Hi robert,

1. we have to check thru tcode sm58.

2. It will list out all tRFCs which had some error.

regards,

amit m.