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

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

0 Likes
1,104

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.

1 REPLY 1
Read only

NTeunckens
Active Contributor
0 Likes
569

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.