cancel
Showing results for 
Search instead for 
Did you mean: 

COEP with Functions BAPI_ACC_DOCUMENT_CHECK and 'BAPI_ACC_DOCUMENT_POST

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

done , thank you