‎2007 Jun 12 8:58 PM
Hi!.
I have a problem with BAPI_INCOMINGINVOICE_CREATE. I execute this function and it returns an invoice number and parameter RETURN that contains error messages is empty. The problem is when I see in transaction mir4 that this invoice doesn't exist!!. Any suggestion?.
Thanks.
Miguel.
‎2007 Jun 12 9:14 PM
Migual,
You are missing the following parameter..while calling BAPI, Pass 'X" for header parameters in Invoice_ind.
Populate invoice header structure for BAPI call
<b> w_headerdata-invoice_ind = 'X'.</b>
w_headerdata-del_costs_taxc = p_mwskz.
w_headerdata-doc_date = p_inv_hdr-fkdat.
w_headerdata-pstng_date = p_inv_hdr-fkdat.
w_headerdata-ref_doc_no = p_inv_hdr-xblnr.
w_headerdata-comp_code = p_bukrs.
w_headerdata-gross_amount = p_netwr_split
+ p_del_costs.
w_headerdata-currency = w_waers.
w_headerdata-calc_tax_ind = space.
w_headerdata-del_costs = p_del_costs.
w_headerdata-pmnt_block = space.
Reward if it helps
‎2007 Jun 12 9:14 PM
Migual,
You are missing the following parameter..while calling BAPI, Pass 'X" for header parameters in Invoice_ind.
Populate invoice header structure for BAPI call
<b> w_headerdata-invoice_ind = 'X'.</b>
w_headerdata-del_costs_taxc = p_mwskz.
w_headerdata-doc_date = p_inv_hdr-fkdat.
w_headerdata-pstng_date = p_inv_hdr-fkdat.
w_headerdata-ref_doc_no = p_inv_hdr-xblnr.
w_headerdata-comp_code = p_bukrs.
w_headerdata-gross_amount = p_netwr_split
+ p_del_costs.
w_headerdata-currency = w_waers.
w_headerdata-calc_tax_ind = space.
w_headerdata-del_costs = p_del_costs.
w_headerdata-pmnt_block = space.
Reward if it helps
‎2007 Jun 12 9:20 PM
Thanks for your answer but I think that this parameter is used for invoice/credit memo selection I think.
‎2007 Jun 12 9:25 PM
This one is to make the BAPI to post the invoice
BAPI_INCINV_CREATE_HEADER-INVOICE_IND - Indicator: post invoice.
Did you try this?