Hi All,
I am using BAPI_INCOMINGINVOICE_CREATE to create an invoice using below data,
wa_header-invoice_ind = 'X'.
wa_header-doc_date = sy-datum. "Enter the document date
wa_header-pstng_date = sy-datum. "Enter the posting date
wa_header-ref_doc_no = 'Test'.
wa_header-comp_code = 'L110'.
wa_header-gross_amount = '528.2400'. "Enter the gross amount(aft. tax) for the invoice
wa_header-calc_tax_ind = 'X'.
wa_header-currency = 'USD'.
wa_item-invoice_doc_item = '000001'.
wa_item-po_number = '4600013733'. "Enter the PO number
wa_item-po_item = '00010'. "Enter the PO item number
wa_item-tax_code = 'I1'. "Enter the tax code applicable
wa_item-item_amount = '528.2400'. "Enter the item amount
wa_item-quantity = '1'. "Enter the invoice quantity
wa_item-po_unit = 'PC'. "Enter the UoM
APPEND wa_item TO it_item.
when i call the BAPI its giving me an error
Enter a tax code in item 000001
so when i entered a data in TAXDATA table of BAPI again it throw an error,
Enter value in either field HEADERDATA-CALC_TAX_IND or field TAX_AMOUNT (import parameter TAXDATA).
As per my requirement we wanted to set CALC_TAX_IND .
Kindly suggest me.
Thanks and regards,