Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 17, 2017 at 08:11 PM

    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.
    Add comment
    10|10000 characters needed characters exceeded