‎2017 Jul 17 7:32 PM
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.
‎2017 Jul 17 9:11 PM
Hello
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.