BAPI_INCOMINGINVOICE_CREATE
Hi ,
I am using this BAPI to Create incomming Vendor Invoice Creation Basically i am doing MIRO transaction. Here i am passing invoice_ind, doc_type, doc_Date, pstng_Date, comp_code,currency_iso and Gross_amount in headerdata structure.
Also Passing following data in Itemdata structure. invoice_doc_item, po_number, po_item, ref_doc, ref_doc_year, ref_doc_it, item_amount,
quantity, po_unit, tax_code,taxjurcode.IF i give all the above inputs the BAPI us processing Well.
But i need to process the BAPI for Non GR based PO so i need to process the BAPI with out Reference information ie) ref_doc, ref_doc_year, ref_doc_it, item_amount,
quantity, po_unit. If i tried to process i am getting error.
Can some one help on this?
Thanks,
Subbu
you still need to add po_number po_item even though GR does not apply
Similar Messages
-
J_1NFTYPE problem on BAPI_INCOMINGINVOICE_CREATE
English
Hi all.
I've to create a subsequent debit document, for freight reasons.
Im executing the bapi_incominginovoice_create with these parameters:
*-----Header parameters:
C_X to wl_header-INVOICE_IND ,
C_RE to wl_header-DOC_TYPE ,
it_mm018-dtfrete to wl_header-DOC_DATE ,
p_data to wl_header-PSTNG_DATE ,
it_mm018-NUMFRETE to wl_header-REF_DOC_NO ,
it_rbkp-bukrs to wl_header-COMP_CODE ,
it_mm018-LIFNR_O to wl_header-DIFF_INV ,
C_BRL to wl_header-CURRENCY ,
C_1 to wl_header-EXCH_RATE ,
it_mm018-VALFRETE to wl_header-GROSS_AMOUNT ,
C_X to wl_header-CALC_TAX_IND ,
p_data to wl_header-BLINE_DATE ,
wl_dias to wl_header-DSCT_DAYS1 ,
it_mm018-nffrete to wl_header-HEADER_TXT ,
it_mm018-VALFRETE to wl_header-DEL_COSTS ,
C_1 to wl_header-TAX_EXCH_RATE.
and
*Item
wl_cont to wl_it_item-INVOICE_DOC_ITEM,
it_rseg-ebeln to wl_it_item-po_number ,
it_rseg-ebelp to wl_it_item-po_item ,
it_rseg-lfbnr to wl_it_item-ref_doc ,
it_rseg-lfgja to wl_it_item-ref_doc_year ,
it_rseg-lfpos to wl_it_item-ref_doc_it ,
C_S to wl_it_item-de_cre_ind .
it_mm019-ivafrete to wl_it_item-tax_code.
it_rseg-menge to wl_it_item-quantity ,
it_rseg-bstme to wl_it_item-po_unit ,
it_rseg-bprme to wl_it_item-po_unit_iso ,
it_rseg-bpmng to wl_it_item-po_pr_qnt .
And its working fine.
but if i insert :
C_F5 to wl_header-PLANNING_LEVEL,
C_C1 to wl_header-J_1BNFTYPE ,
to the header structure, the bapi do not execute properly and return an error:
External NF number/series is wrong wl_header-REF_DOC_NO
I tried some other thinks like delete the left zeros of this number wl_header-REF_DOC_NO and doing this, the bapi does not return an error but does not return the invoicedocnumber(the # of the created document), in other words, it does not work.
Can anyone help me to fix this error ???
thanks and regards
Português
Oi pessoal,
Eu tenho que criar um documento de débito posterior por razões de frete.
Estou executando a BAPI_INCOMINGINVOICE_CREATE com os seguintes parâmetros:
*-----Parâmetros de cabeçalho:
C_X to wl_header-INVOICE_IND ,
C_RE to wl_header-DOC_TYPE ,
it_mm018-dtfrete to wl_header-DOC_DATE ,
p_data to wl_header-PSTNG_DATE ,
it_mm018-NUMFRETE to wl_header-REF_DOC_NO ,
it_rbkp-bukrs to wl_header-COMP_CODE ,
it_mm018-LIFNR_O to wl_header-DIFF_INV ,
C_BRL to wl_header-CURRENCY ,
C_1 to wl_header-EXCH_RATE ,
it_mm018-VALFRETE to wl_header-GROSS_AMOUNT ,
C_X to wl_header-CALC_TAX_IND ,
p_data to wl_header-BLINE_DATE ,
wl_dias to wl_header-DSCT_DAYS1 ,
it_mm018-nffrete to wl_header-HEADER_TXT ,
it_mm018-VALFRETE to wl_header-DEL_COSTS ,
C_1 to wl_header-TAX_EXCH_RATE.
e
*Parâmetros de Item
wl_cont to wl_it_item-INVOICE_DOC_ITEM,
it_rseg-ebeln to wl_it_item-po_number ,
it_rseg-ebelp to wl_it_item-po_item ,
it_rseg-lfbnr to wl_it_item-ref_doc ,
it_rseg-lfgja to wl_it_item-ref_doc_year ,
it_rseg-lfpos to wl_it_item-ref_doc_it ,
C_S to wl_it_item-de_cre_ind .
it_mm019-ivafrete to wl_it_item-tax_code.
it_rseg-menge to wl_it_item-quantity ,
it_rseg-bstme to wl_it_item-po_unit ,
it_rseg-bprme to wl_it_item-po_unit_iso ,
it_rseg-bpmng to wl_it_item-po_pr_qnt .
E esta funcionando muito bem.
Mas se eu insiro os seguintes parametros:
C_F5 to wl_header-PLANNING_LEVEL,
C_C1 to wl_header-J_1BNFTYPE ,
a estrutura do cabeçalho, a bapi não executa como deveria e retorna o seguinte erro:
Nº NF externo/série está incorreto wl_header-REF_DOC_NO
Eu tentei outras coisas como apagaros zeros da esquerda do campo wl_header-REF_DOC_NO e fazendo isso a bapi nao retona mais o erro, porém também nao retorna o número do documento criado, em outras palavras, não funiona.
Alguém poderia me ajudar a resolver este problema???
Grato
Leonardo OliveiraI Solve this problem using the same code that can be found in the 1st message, and after each bapi I made a batch input at the J1b1n transaction to make the document apper at the fiscal book
thanks anyway -
BAPI_INCOMINGINVOICE_CREATE without GR/IR
Hi,
We are using BAPI_INCOMINGINVOICE_CREATE to create incoming invoices. The customizing in my company is that first invoice received will create goods receipt for the entire PO and item and GR/IR account is cleared for the same. If any subsequent invoices received for the same PO it still post the PO amount to GR/IR account.
We do not required to clear GR/IR account for the subsequent invoice. This should happen only for the first invoice. If we try to do this online in MIRO it will retrieve null for values for the PO and item combination no entries related to GR/IR are created.
The same thing is not happening while using the BAPI. Its giving an error if I am not passing PO info but if I pass the info its posting an invoice with an entry to GR/IR account.
Please let me know which parameters I need to change in BAPI_INCOMINGINVOICE_CREATE to not to refer to PO or GR/IR for the subsequent invoices.According to this article we need to pass AccountingData table to the BAPI for an unplanned account assignment.
Also in this table amount, quantity and GL account information must be passed but in my case I do not want GR/IR account to be cleared with the PO amount for the subsequent invoices.
I have gone through the documentation of BAPI but could not get a solution. Please let me know if there is any parameter which stops GR/IR account to be debited with the PO amount. -
Field and table names requested for BAPI_INCOMINGINVOICE_CREATE
Hi all,
The following data is being hardcoded in BAPI_INCOMINGINVOICE_CREATE functional module for testing the functioning of this bapi. Now kindly suggest me how to make this BAPI useful for all PO's. the following data is being passed into BAPI for generation of invoice. Kindly provide technical names along with table names for the following fields.
HEADERDATA
INVOICE_IND X
DOC_TYPE RE
DOC_DATE 24.07.2007
PSTNG_DATE 24.07.2007
REF_DOC_NO 5000000940
COMP_CODE ACW
CURRENCY INR
GROSS_AMOUNT 33,750.0000
CALC_TAX_IND X
BLINE_DATE 24.07.2007
iTEM DATA
INVOICE_DOC_ITEM 000001
PO_NUMBER 10070100
PO_ITEM 00001
TAX_CODE V0
ITEM_AMOUNT 33,750.0000
SHEET_NO 1000002022
ITEM_TEXT SDFDS
SHEET_ITEM 0000000001
Thanx in advance.
KrishnaHi I have taken particular PO and Executed the code. It is generating the Invoice Document No. Now it want to remove all the Hardcoding. Code i have used is as follows. How do i remove the hardcoding ?? send meif sample code is available???
Internal table declaration *
DATA: gt_headerdata TYPE STANDARD TABLE OF bapi_incinv_create_header
INITIAL SIZE 0,
gt_itemdata TYPE STANDARD TABLE OF bapi_incinv_create_item
INITIAL SIZE 0,
gt_accountingdata TYPE STANDARD TABLE OF bapi_incinv_create_account
INITIAL SIZE 0,
gt_return TYPE STANDARD TABLE OF bapiret2
INITIAL SIZE 0.
DATA: gs_headerdata LIKE bapi_incinv_create_header.
DATA: gs_itemdata LIKE bapi_incinv_create_item.
DATA: gs_accountingdata TYPE bapi_incinv_create_account.
DATA: gs_return TYPE bapiret2.
DATA: l_date TYPE sy-datum.
l_date = sy-datum - 15.
Error flag *
DATA: l_errflag(1) TYPE c.
Build Invoice header
Document Type (Invoice)
gs_headerdata-invoice_ind = 'X'.
gs_headerdata-doc_type = 51.
Document Date
gs_headerdata-doc_date = l_date.
Posting Date
gs_headerdata-pstng_date = l_date.
Reference Document No
gs_headerdata-ref_doc_no = 323348.
gs_headerdata-gross_amount = 31.
Currency
gs_headerdata-currency = 'USD'.
Company Code
gs_headerdata-comp_code = 'D3'.
Baseline Date
gs_headerdata-bline_date = l_date.
**Tax Indicator
*gs_headerdata-calc_tax_ind = 'X'.
Build order item(s) - Only 1 is used in this example
Document Item
gs_itemdata-invoice_doc_item = 000001.
Purchase Order Number
gs_itemdata-po_number = 3700000011.
Purchase Order Item
gs_itemdata-po_item = 00010.
Quantity
gs_itemdata-quantity = 31.
gs_itemdata-po_unit = 'Z00'.
Item Amount
gs_itemdata-item_amount = 31.
gs_itemdata-tax_code = 'O0'.
gs_itemdata-taxjurcode = '0100000000'.
APPEND gs_itemdata TO gt_itemdata.
Document Item
*gs_itemdata-invoice_doc_item = '00002'.
Purchase Order Number
*gs_itemdata-po_number = '4700000158'.
Purchase Order Item
*gs_itemdata-po_item ='00020' .
Quantity
*gs_itemdata-quantity = '5'.
*gs_itemdata-po_unit = 'Z00'.
Item Amount
*gs_itemdata-item_amount = '5'.
*gs_itemdata-tax_code = 'O0'.
*gs_itemdata-taxjurcode = '0100000000'.
*APPEND gs_itemdata TO gt_itemdata.
Accounting Data
***gs_accountingdata-costcenter = 'DUMMY CCTR'.
*gs_accountingdata-invoice_doc_item = '00001'.
*gs_accountingdata-xunpl = 'X'.
*gs_accountingdata-tax_code = 'O0'.
*gs_accountingdata-taxjurcode = '0100000000'.
*gs_accountingdata-ITEM_AMOUNT = 100.
*gs_accountingdata-gl_account = '0003805101'.
*APPEND gs_accountingdata TO gt_accountingdata.
*CLEAR :gs_accountingdata.
*Call the BAPI to Create the Return Order
data: gv_INVOICE type BAPI_INCINV_FLD-INV_DOC_NO,
gv_YEAR type BAPI_INCINV_FLD-FISC_YEAR.
CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'
EXPORTING
headerdata = gs_headerdata
IMPORTING
INVOICEDOCNUMBER = gv_INVOICE
FISCALYEAR = gv_YEAR
TABLES
return = gt_return
itemdata = gt_itemdata.
accountingdata = gt_accountingdata.
PERFORM error.
Check and write Return table
FORM error.
LEAVE TO LIST-PROCESSING.
CLEAR l_errflag.
LOOP AT gt_return INTO gs_return.
WRITE: / gs_return-type, gs_return-message(200).
IF gs_return-type = 'E'.
l_errflag = 'X'.
ENDIF.
ENDLOOP.
PERFORM commit.
ENDFORM. " ERROR INPUT
No errors - Commit
FORM commit.
IF l_errflag IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
ENDFORM. " COMMIT INPUT
Thanks in advance
Krishnasri -
Error while creating invocie using BAPI_INCOMINGINVOICE_CREATE
Hi all,
I am trying to create the MM invoice using the BAPI_INCOMINGINVOICE_CREATE, i am passing the data which i get from the bapi
BAPI_INCOMINGINVOICE_getdetails.
i remove the document # and 1-2 fields from the returned parameters of the getdetail bapi, but i am facing a problem of invoice amount "Balance not zero: 107,711.80- debits: 107,711.80 credits: 0.00"
what i missing while passing the data inot the create bapi FM could some one plese throw some light on this.
Regardshi
try to use BAPI_RESERVATION_CREATE1
hope it helps
regards
Aakash Banga -
Error in invoice creation using BAPI BAPI_INCOMINGINVOICE_CREATE
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,Dear Reddy
My excel contain date format 'YYYYMMDD'
But the server in i am uploading data having date format 'DDMMYYYY'.
bapi also having date format YYYYMMDD.
BUT in TCODE AS91 HAVING DATE IN DDMMYYYY FORMAT.
Due to this format it is giving error. -
Error while using bapi BAPI_INCOMINGINVOICE_CREATE to post MIRO
Hi Friends,
Im using bapi BAPI_INCOMINGINVOICE_CREATE to post MIRO.
im passing data to table GLACCOUNTDATA.
Below are the table fields im paasing
INVOICE_DOC_ITEM " '000001' deafault always
GL_ACCOUNT "Which is constant for all in my case
ITEM_AMOUNT " Total PO net amt + Frieght charges header level
DB_CR_IND " 'S' always default
COMP_CODE " 'RPPL' always default
TAX_CODE " 'V0' deafault always
PROFIT_CTR " for ex 1100180. based on plant
While posting this bapi is trhrowing error as below
'profit centre RPPL/1100180 does not exist for 01.12.2008'
where 01.12.2008 is the MIRO posting date which im passing in header.
We checked dates for profit centres they are correct.
Awaiting the reply ASAP.
Regards,
VenkyHi,
It would be better if you do a recheck on data input for BAPI. If you sure the data are ok but the BAPI still gives error message, then I suggest to post to OSS.
Regards,
Teddy Kurniawan -
Z1-015 Error "Enter Business Area" in BAPI_INCOMINGINVOICE_CREATE
Hi All,<br/><br/>
Here is a scenario that has totally confused me and I don't know what to do. Any guidance in this area will be highly appreciated.<br/><br/>
I am using BAPI BAPI_INCOMINGINVOICE_CREATE for MIRO. Our client gets invoices that contains both PO lines and some Non PO lines. For the PO lines I am populating the BAPI_INCINV_CREATE_ITEMDATA table and for the non po lines I am populating the BAPI_INCINV_CREATE_GL_ACCOUNTDATA table. In the structure BAPI_INCINV_CREATE_GL_ACCOUNT I am also populating the Bus_Area field with the Business Area value along with other values. The header Bus_Area is also populated with business area code. <br/><br/>
However, when I try to post the invoice the bapi return me a message: Z1 015 "Enter Business Area" and the invoice does not get booked in SAP, <br/><br/>
I have tried searching this forum and also googled about it, but I got no help in this regard. Please help me out in understanding this problem. I am attaching the code below for ease of understanding my problem. I am using SAP .Net Connector for the purpose. However, any guide related to this error (may not be .Net specific) will be appreciated.<br/><br/>
//objects used for creating the invoice ****<br/>
BAPI_INCINV_CREATE_ADDRESSDATA Addressdata = new BAPI_INCINV_CREATE_ADDRESSDATA();<br/>
BAPI_INCINV_CREATE_HEADER Headerdata = new BAPI_INCINV_CREATE_HEADER();<br/>
BAPI_INCINV_CREATE_ACCOUNTTable Accountingdata = new BAPI_INCINV_CREATE_ACCOUNTTable();<br/>
BAPI_INCINV_CREATE_ACCOUNT Account = new BAPI_INCINV_CREATE_ACCOUNT();<br/>
BAPI_INCINV_CREATE_ITEMTable Itemdata = new BAPI_INCINV_CREATE_ITEMTable();<br/>
BAPI_INCINV_CREATE_GL_ACCOUNTTable Glaccountdata = new BAPI_INCINV_CREATE_GL_ACCOUNTTable();<br/>
BAPI_INCINV_CREATE_GL_ACCOUNT Glaccount = new BAPI_INCINV_CREATE_GL_ACCOUNT();<br/>
BAPI_INCINV_CREATE_MATERIALTable Materialdata = new BAPI_INCINV_CREATE_MATERIALTable();<br/>
BAPIRET2Table InvReturn = new BAPIRET2Table();<br/>
BAPI_INCINV_CREATE_TAXTable Taxdata = new BAPI_INCINV_CREATE_TAXTable();<br/>
BAPI_INCINV_CREATE_VENDORSPLITTable Vendoritemsplitdata = new BAPI_INCINV_CREATE_VENDORSPLITTable();<br/>
BAPI_INCINV_CREATE_WITHTAXTable Withtaxdata = new BAPI_INCINV_CREATE_WITHTAXTable();<br/>
// ****<br/>
// populating the header<br/>
Headerdata.Bus_Area = invoice.BusinessArea;<br/>
Headerdata.Comp_Code = invoice.CompanyCode;<br/>
Headerdata.Doc_Date = invoice.InvoiceDate;<br/>
Headerdata.Doc_Type = "RE";<br/>
Headerdata.Diff_Inv = invoice.VendorID;<br/>
Headerdata.Currency = invoice.Currency;<br/>
Headerdata.Exch_Rate = 1.00M; // to be replaced<br/>
Headerdata.Gross_Amount = invoice.InvoiceAmount;<br/>
Headerdata.Header_Txt = "";<br/>
Headerdata.Invoice_Ind = "X"; // X = Invoice , '' = Credit Memo<br/>
Headerdata.Inv_Rec_Date = invoice.DateReceived;<br/>
Headerdata.Pmnttrms = invoice.PaymentTerm;<br/>
if (invoice.IsMatched == "0")<br/>
Headerdata.Pmnt_Block = "A"; // in case the IsMatch Status = 0<br/>
Headerdata.Pstng_Date = invoice.PostingDate;<br/>
Headerdata.Calc_Tax_Ind = "X";<br/>
Headerdata.Del_Costs = 0.00M;<br/>
Headerdata.Ref_Doc_No = invoice.InvoiceNumber;<br/>
Headerdata.Inv_Year = "0000";<br/><br/>
// populating the line<br/>
List<Invoice.LineItem> lines = invoice.LineItems.Where(item => item.PONumber.Trim() != String.Empty).ToList();<br/>
int itemCount = 0, accSlNo = 0;<br/>
foreach (Invoice.LineItem line in lines)<br/>
{<br/>
itemCount++;<br/>
string strItemNo = FillCharacter(itemCount.ToString(), "0", 6);<br/>
BAPI_INCINV_CREATE_ITEM Item = new BAPI_INCINV_CREATE_ITEM();<br/>
Item.Invoice_Doc_Item = strItemNo;<br/>
Item.Po_Number = line.PONumber;<br/>
Item.Item_Amount = line.Amount;<br/>
Item.Quantity = line.Quantity;<br/>
Item.Po_Item = FillCharacter(line.PO_LineNo, "0", 5);<br/>
Item.Po_Unit = line.PO_Unit;<br/>
Item.Po_Unit_Iso = line.PO_Unit_Iso;<br/>
Item.Tax_Code = line.TaxCode;<br/>
Item.Cond_St_No = "000";<br/>
Item.Cond_Count = "00";<br/><br/>
Item.Ref_Doc_It = "0000";<br/>
Item.Ref_Doc_Year = "0000";<br/><br/>
Item.Po_Pr_Qnt = Convert.ToDecimal(Po_item["Quantity"]);<br/>
Item.Po_Pr_Uom = Po_item["Orderpr_Un"].ToString();<br/>
Item.Po_Pr_Uom_Iso = Po_item["Orderpr_Un_Iso"].ToString();<br/><br/>
Itemdata.Add(Item);<br/><br/>
}<br/>
// populating the GL Accounts for the non PO and PM lines where the PO number will be blank<br/>
List<Invoice.LineItem> nonPOlines = invoice.LineItems.Where(item => item.PONumber.Trim() == String.Empty && item.LineItemType == "L").ToList();<br/>
itemCount = 0;<br/>
foreach (Invoice.LineItem line in nonPOlines)<br/>
{<br/>
int multiplier = 1;<br/>
itemCount++;<br/>
Glaccount = new BAPI_INCINV_CREATE_GL_ACCOUNT();<br/>
Glaccount.Invoice_Doc_Item = FillCharacter(itemCount.ToString(), "0", 6);<br/>
Glaccount.Db_Cr_Ind = "S"; // debit<br/>
Glaccount.Neg_Postng = "";<br/>
if (line.Amount < 0.00M)<br/>
{<br/>
Glaccount.Neg_Postng = "X";<br/>
Glaccount.Db_Cr_Ind = "H"; // credit<br/>
multiplier = multiplier * -1;<br/>
}<br/>
Glaccount.Comp_Code = invoice.CompanyCode;<br/>
Glaccount.Item_Text = line.Description;<br/>
Glaccount.Item_Amount = line.Amount * multiplier;<br/>
Glaccount.Gl_Account = line.GLCode;<br/>
Glaccount.Costcenter = line.CC;<br/>
Glaccount.Profit_Ctr = line.PC;<br/>
Glaccount.Orderid = line.OrderNo;<br/>
Glaccount.Tax_Code = line.TaxCode;<br/>
Glaccount.Bus_Area = line.BA;<br/>
Glaccount.Person_No = "00000000";<br/>
Glaccount.Sdoc_Item = "000000";<br/>
Glaccount.Ref_Date = "00000000";<br/>
Glaccount.Wbs_Elem = "00000000";<br/>
Glaccount.Profit_Segm_No = "0000000000";<br/>
Glaccount.Alloc_Nmbr = line.Assignment;<br/>
Glaccount.Tr_Part_Ba = line.BA;<br/>
Glaccount.Activity = "";<br/>
Glaccount.Acttype = "";<br/>
Glaccount.Cmmt_Item = "";<br/>
Glaccount.Cmmt_Item_Long = "";<br/>
Glaccount.Co_Busproc = "";<br/>
Glaccount.Costobject = "";<br/>
Glaccount.Func_Area = "";<br/>
Glaccount.Func_Area_Long = "";<br/>
Glaccount.Fund = "";<br/>
Glaccount.Funds_Ctr = "";<br/>
Glaccount.Network = "";<br/>
Glaccount.Rl_Est_Key = "";<br/>
Glaccount.Sd_Doc = "";<br/>
Glaccount.Grant_Nbr = "";<br/><br/>
Glaccountdata.Add(Glaccount);<br/>
}<br/>
proxyPOInvoice.Bapi_Incominginvoice_Create(Addressdata, Headerdata, out FiscalYear, out InvoiceNumber,<br/>
ref Accountingdata, ref Glaccountdata, ref Itemdata, ref Materialdata, ref InvReturn, ref Taxdata, ref Vendoritemsplitdata, ref Withtaxdata);<br/>Hi,
This error was mis leading. If CalculateTax flag is set to 'X' and there is balance in the transaction currency then, instead of giving "Balance in transaction currency" error "Enter Business Area" error comes.
There must be some logic for SAP to give this error, but it was somewhat misleading. When i removed the flag for CalculateTax="", this error vanished and "Balance in transaction currency" error came. When I retrified that my invoice got booked properly.
Thanks to all anyway for the responses provided.
Best Regards
Sutirtha -
Error in BAPI_INCOMINGINVOICE_CREATE in miro for delivery cost
E M8 321 Document contains same order item more than once 000000 6500020704 00110
I am getting this error message while booking multiple delivery cost Invoices against the same Purchase Order Line Item through BAPI_INCOMINGINVOICE_CREATE
Please guideneed to give 'invoice doc item' as '000001' and '000002' for both items.And in second invoice doc item you need to entry 'condition type' & 'freight Vendor'.
-
Error in BAPI_INCOMINGINVOICE_CREATE Function Module ?
Hi,
I got error while testing BAPI_INCOMINGINVOICE_CREATE Function Module as
" Enter a reference to a valid goods receipt (line 000001) " for Creating Invoice liike as MIRO.
Please Tell me how to solve & how to ( MIRO ) Create Invoice for Purchase Order .Hello Ramana,
I encountered this same error. Your PO GR-Bsd IV (ekpo-webre = 'X') is checked. You have to add the following fields when you populate your ItemData Table;
MOVE: rseg-lfbnr TO i_item-ref_doc,
rseg-lfgja TO i_item-ref_doc_year,
rseg-lfpos TO i_item-ref_doc_it.
Hope this helps. Good Luck!
Dodie -
How to populate the payment block through the BAPI_INCOMINGINVOICE_CREATE
Hi,
I am trying to create the incoming invoice through the BAPI (BAPI_INCOMINGINVOICE_CREATE) .
In MIRO transaction when i create the Invoice without any tax , the <b>payment block shows free for payement</b> . How to give create the invoice with the following condition through the BAPI (BAPI_INCOMINGINVOICE_CREATE) . when there is Tax : The payment block = 'R' (Invoice verification) .
No Tax : The payment block = ' ' (Free for Payment).But everytime the invoice is created the Payment block is set to 'R' even if the Tax is not given.
Following i am populating
<b>Header Structure:</b>
<b>Test Value Description PI Header Data Fields</b>
X Invoice Indicator HEADERDATA-INVOICE_IND
SPACE Document Type HEADERDATA-DOC_TYPE
05-11-2006 Document Date HEADERDATA-DOC_DATE
17-11-2006 Posting Date HEADERDATA-PSTNG_DATE
123456-B1 Ref Document Number HEADERDATA-REF_DOC_NO
9001 Company Code HEADERDATA-COMP_CODE
7006924 Vendor Number HEADERDATA-DIFF_INV
BRL Currency HEADERDATA-CURRENCY
BRL Currency HEADERDATA-CURRENCY_ISO
10000 Gross Amount HEADERDATA-GROSS_AMOUNT
05-11-2006 Baseline ate HEADERDATA-BLINE_DATE
DD Header Text HEADERDATA-HEADER_TXT
0001 Payment Terms HEADERDATA-PMNTTRS
123456-B1 Ref Document Number HEADERDATA-REF_DOC_NO
Z1 NF Type HEADERDATA-J_1BNFTYPE
space Payment Block Key HEADERDATA-PMNT_BLOCK
<b>For Item Structure:</b>
<b>Test Data Description BAPI Item Data Fields</b>
000001 Invoice Item ITEMDATA-INVOICE_DOC_ITEM
4500021387 Purchase Order Number ITEMDATA-PO_NUMBER
0010 Purchase Order Item ITEMDATA-PO_ITEM
Z1 Tax Code ITEMDATA-TAX_CODE
SP 50308 Tax Jurisdiction Code ITEMDATA-TAXJURCODE
10000 Item Amount ITEMDATA-ITEM_AMOUNT
200 Item Quantity ITEMDATA-QUANTITY
EA Purchase Order Unit ITEMDATA-PO_UNIT
Can u please tell me what is the mistake or any other ways of populating the Payment block.
Always the payment block is 'R' in MIR4 transaction even if i give space in the BAPI -
Error while running BAPI_INCOMINGINVOICE_CREATE
hi,
i am executing the following bapi: BAPI_INCOMINGINVOICE_CREATE
but i am getting the following error:
"Price too high (tolerance limit of 10.00 INR exceeded)"
my input details to bapi are as follows:
HEADER level details:
INVOIC PO_NUMBER PO_IT REF_DOC REF_ REF_ D TA
000001 50000464 00001 5000001382 2007 0001 V0
ITEM_AMOUNT
1,616.0000
SHEET_ITEM
0000000001
item level details:
INVOIC PO_NUMBER PO_IT REF_DOC REF_ REF_ D TA TAXJURCODE ITEM_AMOUNT
000001 50000464 00001 5000001382 2007 0001 V0 1,616.0000
SHEET_ITEM
0000000001
VENDORITEMSPLITDATA details are as follows:
SPLIT_ SPLIT_AMOUNT
000001 1,616.0000
the scene is as follows:
MRHR is being replaced by MIRO
in MRHR we can use BDC : but for MIRO we are calling BAPI (above)
if someone wants the BDCDATA we supply to MRHR .. pls tell
if that could be relevant.
pls help me on this error.
helpful ans . would be rewarded
thanks.
abhijit d.hi,
Tolerence limit is differnece amount mentioned in PO and Invoice.
So this limit is may be set ,probably less than 10 .
Bcos of this you are getting the error,to remove this error either increase the tolerence limit to more than 10 or mention the invoice price similar to the one in PO.
sirish -
How to get the payment block through the BAPI_INCOMINGINVOICE_CREATE
Hi,
how to populate payment block through the BAPI (BAPI_INCOMINGINVOICE_CREATE). always it is showing 'R' in MIR4 Transaction after the BAPI is executed.check
BAPI_INCINV_CREATE_HEADER-PMNT_BLOCK
regards
Prabhu -
BAPI_INCOMINGINVOICE_CREATE : Payment Terms not appearing
Dear All,
In the Bapi "BAPI_INCOMINGINVOICE_CREATE ", i am passing the HEADERDATA (invoice_ind, doc_type, doc_date, pstng_date, ref_doc_no, comp_code, diff_inv, currency, gross_amount, pmnttrms) and ITEMDATA (invoice_doc_item, po_number, po_item, tax_code as 0, item_amount, quantity, po_unit, cond_type)
and when i run the Bapi,the invoice document is getting generated successfully and in the display mode(Transaction:mir4) when i give this invoice no. all the values which i have passed to bapi are captured correctly except the PAYMENT TERMS is blank.
THOUGH I AM PASSING THE PAYMENT TERMS IN THE BAPI, THE PAYMENT TERM IS BLANK IN THE GENERATED INVOICE.
Can anyone please give me a correct solution.
Thanks & Regards
SajidI think SAP does not support this functionality!!!!!
-
Post Vendor invoice with Down Payment via BAPI_INCOMINGINVOICE_CREATE
Hi Experts,
We have configured downpayment functionality for PO's. We have below process
Create PO with down Payment request -> Create down payment request -> Run payment program for paying down payment -> Post GR -> Post invoice with BAPI (considering down payments against invoice)
But unfortunately when I am trying to post PO invoice with downpayment details using BAPI_INCOMINGINVOICE_CREATE I do not see any fields related to down payment. Can some one confirm me if SAP has provided this functionality? if NO any workarounds?
Rgds,
HarishHi experts,
any suggestions?
Regards,
Elena -
Bapi Fm BAPI_INCOMINGINVOICE_CREATE Giving error *Balance is not equal to .
Dear All,
Note: Cin as implemetned.
Get error from Fm BAPI_INCOMINGINVOICE_CREATE is Balance is not equal to zero.
Have passed the correct inputs to the Fm its Invoice is creting ,while the only case Cenvat comes based in the PO/Vendor that time error is generating.
Passing values : HEADER LEVEL : Grand total value (item + tax value + cenvat value).
item level : total value of item price.
tax account : bed,escess, bcs. cenvat value and taxcode.
For rest of the case which is not having in the Cenvat some value type passed invoice no is generating.
Please Suggest me to come out from this issues. How to pass the value in case cenvat.
Regards,
Santosh
Edited by: santosh jajur on Mar 10, 2010 10:43 AM
Edited by: santosh jajur on Mar 10, 2010 10:44 AMHi
I encountered Same problem in different BAPI.
It been solved by turning one of sums to negative.
I don't familiar with this specific BAPI but mayby this will help to you to.
Best Regards
Yossi Rozenberg
Maybe you are looking for
-
I have a mid 2010 Macbook Pro running Snow Leopard and foolishly upgraded to Yosemite. Now have numerous problems. Is it possible to go back in time with Time Machine and reinstall Snow Leopard? Then upgrade to Lion or Mavericks? Any other ideas o
-
Hi there, I made the monthly payment for the Adobe apps, i managed to download Illustrator and Photoshop but can't seem to download Indesign. It says that "file seems to be corrupted... try later". How do I solve this problem?
-
How to upload the image and diplay the image in the browser using jsp
How to upload the image and diplay the image in the browser using jsp thanks shan
-
Hi, I am trying to call the below classes from a function module to use the below methods to create the shopping cart. Classes: /SAPSRM/CL_PDO_FACTORY_SC_ADV /SAPSRM/CL_PDO_BO_SC Methods: GET_ITEM_DETAIL UPDATE_ITEMS SUBMIT_UPDATE SAVE Could you plea
-
Hi Everyone, I am trying to set up Campaign Automation and have got most way there. I now have an e-mail being sent out with a hyperlink to a BSP Survey. When I click on the link I complete the survey and the details are updated in table CRM_SVY_DB_S