Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_INCOMINGINVOICE_CREATE problem

Former Member
0 Likes
879

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
696

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

3 REPLIES 3
Read only

Former Member
0 Likes
697

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

Read only

0 Likes
696

Thanks for your answer but I think that this parameter is used for invoice/credit memo selection I think.

Read only

0 Likes
696

This one is to make the BAPI to post the invoice

BAPI_INCINV_CREATE_HEADER-INVOICE_IND - Indicator: post invoice.

Did you try this?