Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

COEP with Functions BAPI_ACC_DOCUMENT_CHECK and 'BAPI_ACC_DOCUMENT_POST

Hi guys , Im trying to figure out which one is the best way of fill ti_acc_gl , with the data that I have

  
  DATA :BEGIN OF ti_acc_gl OCCURS 0,
          posnr_acc TYPE bapiacgl09-itemno_acc,
          hkont     TYPE bapiacgl09-gl_account,
          sgtxt     TYPE bapiacgl09-item_text,
          nplnr     TYPE bapiacgl09-network,
          vornr     TYPE bapiacgl09-activity,
          koart     TYPE bapiacgl09-acttype,
      END OF ti_acc_gl .

  DATA: BEGIN OF ti_acc_rec OCCURS 0,
          posnr_acc TYPE bapiacar09-itemno_acc,
          kunnr     TYPE bapiacar09-customer,
      END OF ti_acc_rec.

  DATA: BEGIN OF ti_curr_amo OCCURS 0,
          posnr_acc TYPE bapiaccr09-itemno_acc,
          bapiwrbtr TYPE bapiaccr09-amt_doccur,
      END OF ti_curr_amo.
 
  CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
    EXPORTING
      documentheader    = ti_doc_head
    TABLES
      accountgl         = ti_acc_gl
      accountreceivable = ti_acc_rec
      currencyamount    = ti_curr_amo
      RETURN            = ti_return.

I´m using table COEP but i dont know how to relate ti_acc_gl, ti_acc_rec, ti_curr_amo , any idea? , thank you.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question