Skip to Content
0

Bapi to post FI document(bapi_acc_document _post) in Background Sheduling not working

Jul 17, 2017 at 06:32 PM

46

avatar image
Former Member

I am using bapi_Acc_document_post to post the Customer Entry in my Custom report.

my report is working fine in my server but it is not working client server because they running this report by scheduling job, so posting is not happening.

please suggest if this bapi can work in background scheduling, do i need to do any enhancement for this.

please let me know if some other bapi is available.

thanks in advance.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Nic Teunckens Jul 17, 2017 at 08:11 PM
0

Hello

  • Do you actually know why it is not working in Background Scheduling?
  • Have you experimented with this BAPI and added syntax "IN BACKGROUND TASK" and possibly addionally adding "AS SEPARATE UNIT" to make it run in a Background Scenario...


If this approach should work, you can check for :

*---> Check Prgr running in Background ...
IF sy-binpt = abap_true OR
   sy-batch = abap_true.

  CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST' IN BACKGROUND TASK
  ...

ENDIF.
Share
10 |10000 characters needed characters left characters exceeded