04-27-2006 12:02 PM
Hi All,
In my object i am trying to use <b>BAPI_INCOMINGINVOICE_PARK</b> function module.
The requirement is Parking Invoives using this F.M
If i run through this F.M <b>One invoice per P.O should be created</b>.
But i am getting errors when i am processing this F.M.
Can anybody tell me what are the mandatory parameters[Fields] i need to pass so that it will be successfully
processed.
If not used please search From <b>SE37</b> - Then give F.M as <b>BAPI_INCOMINGINVOICE_PARK</b> then hit on <b>Where-Used-List</b> and check wether any Z-Program is using is and post me that code.
I had checked the above F.M Documentation.
But still i am unable to process it successfully.
Remember my requirement is to PARK Invoices per Purchase Order(s).
If anybody need my code used for above BAPI i am ready to post.
Can anybody help me in this regard!
Thanks in advance.
Thanks & Regards,
Prasad.
04-27-2006 12:11 PM
04-27-2006 12:14 PM
Hi prasad,
Import parameters HEADERDATA is mandatory in BAPI_INCOMINGINVOICE_PARK .
Also tables ITEMDATA and RETURN are mandatory.
Check program RSBUS2081.
Regards,
Tanveer.
Mark helpful answers.
04-27-2006 12:21 PM
HI,
That program does not exist in my server.
And other i had used all the mandatory Tables for Parameters.
Following is my specific par of code.
<b> LOOP AT i_ekbe INTO wa_ekbe.
CLEAR: wa_invoice_header,
i_invoice_item,
i_return,
v_inv_doc_no,
v_fisc_year,
wa_return.
REFRESH: i_invoice_item,
i_return.
Appending Invoice header Work Area
wa_invoice_header-invoice_ind = c_x.
wa_invoice_header-doc_date = sy-datum.
wa_invoice_header-pstng_date = wa_ekbe-budat.
wa_invoice_header-comp_code = c_100.
wa_invoice_header-gross_amount =
wa_invoice_header-currency = c_usd.
wa_invoice_header-calc_tax_ind = c_x.
Appending Invoice item data
i_invoice_item-invoice_doc_item = '0001'.
i_invoice_item-po_number = wa_ekbe-ebeln.
i_invoice_item-po_item = wa_ekbe-ebelp.
i_invoice_item-tax_code = ' '.
i_invoice_item-item_amount = '20.00'.
i_invoice_item-quantity = '10.000'.
i_invoice_item-ref_doc = '5600000634'.
i_invoice_item-ref_doc_year = '2006'.
i_invoice_item-ref_doc_it = '10'.
i_invoice_item-po_unit = 'EA'.
i_invoice_item-COND_TYPE = 'VPRS'.
APPEND i_invoice_item.
Calling module BAPI_INCOMINGINVOICE_PARK
CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
EXPORTING
headerdata = wa_invoice_header
ADDRESSDATA =
IMPORTING
invoicedocnumber = v_inv_doc_no
fiscalyear = v_fisc_year
TABLES
itemdata = i_invoice_item
NFMETALLITMS =
ACCOUNTINGDATA =
GLACCOUNTDATA = i_gla
MATERIALDATA = i_mat
TAXDATA =
WITHTAXDATA =
VENDORITEMSPLITDATA =
return = i_return.
READ TABLE i_return INTO wa_return
WITH KEY type = c_e.
IF sy-subrc EQ 0.
ENDIF.
ENDLOOP.</b>
Can anybody help in this regard.
Thanks,
Prasad.
04-27-2006 12:25 PM
04-27-2006 1:01 PM
Hi,
For Invalid Order's errors are coming into I_RETURN as
1.Enter goods receipt data only when working with GR-based IV
2.Enter a reference to a valid goods receipt (line 000001)
3.Unit of measure EA differs from unit of measure 10 in order item 4200001046 00001
For Valid order's error is as:
1. Enter a reference to a valid goods receipt (line 000001)
Can anybody tell me what exact data i need to pass to this BAPI to get invoice.
Thanks,
Prasad.
04-27-2006 1:33 PM
Hi,
Any combination changes are required while passing data into parameters of Above BAPI.
If anybody knows please post!
Otherwise if any body have done the BDC for <b>FV60</b> TCOde please post that code.
So that i can try from BDC.
Thanks & Regards,
Prasad.
04-10-2007 5:44 PM
I used t-code FBV1 formating the flat file and then SUBMIT RFBIBL00.
06-20-2006 2:03 PM
Hi, I have the same problem using BAPI_INCOMINGINVOICE_PARK in that I get "Enter a reference to a valid goods receipt" and I don't have one to enter. If I park manually using MIR7 using the same data, a goods receipt isn't required. Any help would be appreciated.
Graham
04-10-2007 6:19 PM