2014 Aug 18 7:47 AM
Hi Experts,
Im creating incoming invoice by using the BAPI, 'BAPI_INCOMINGINVOICE_CREATE'.
when im going to posting my invoice it is showing the error like 'EDI: Error in customizing for differential invoicing'.it is a urgent requirement and need to solve this ASAP.Pls help me out with this error
Im passing following parameters to BAPI:
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 = '5000008590'.
wa_header-comp_code = '1000'.
*wa_header-gross_amount = '50.11'. "Enter the gross amount(aft. tax) for the invoice
*wa_header-calc_tax_ind = 'X'.
wa_header-currency = 'INR'.
wa_header-INV_TRAN = 'X'.
wa_header-SIMULATION = 'X'.
wa_item-invoice_doc_item = '000001'.
wa_item-po_number = '3700000557'. "Enter the PO number
wa_item-po_item = '00010'. "Enter the PO item number
* wa_item-ref_doc = '5000008590'. "Enter the GR number
* wa_item-ref_doc_year = '2014'. "Enter the GR fiscal year
* wa_item-ref_doc_it = '0001'. "Enter the GR item number
* wa_item-tax_code = 'V0'. "Enter the tax code applicable
wa_item-item_amount = '50.60'. "Enter the item amount
* wa_item-quantity = '2380'. "Enter the invoice quantity
* wa_item-po_unit = 'EA'. "Enter the UoM
APPEND wa_item TO it_item.
CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'
EXPORTING
headerdata = wa_header
* * ADDRESSDATA =
IMPORTING
invoicedocnumber = g_invno
fiscalyear = g_fyear
TABLES
itemdata = it_item
* * ACCOUNTINGDATA =
* * GLACCOUNTDATA =
* * MATERIALDATA =
* * TAXDATA =
* * WITHTAXDATA =
* * VENDORITEMSPLITDATA =
return = it_ret
* * EXTENSIONIN =
.
IF g_invno IS NOT INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
* * IMPORTING
* * RETURN =
2014 Aug 21 10:47 AM
Thanks every one for your valuable solutions.
Issue is Solved by unchecking the flag.
wa_header-INV_TRAN = 'X'.
Thanks & Regards,
Ramjee.
2014 Aug 18 7:58 AM
Hi Ramjee,
Make sure the header and item types are same as the BAPI import export and table types.
1. wa_header type should be as same as the Bapi headerdata
2. g_invno type should be as same as the Bapi invoicedocnumber
3. g_fyear type should be as same as the Bapi fiscalyear
4. it_item type should be as same as the Bapi itemdata.
And check the sy-subrc after executing the BAPI before commit . \
Regards,
Krishna
2014 Aug 18 8:19 AM
Hello krishnaek,
All types are SAME and I have checked sy-subrc after executing BAPI it is 0.
2014 Aug 18 8:04 AM
Hi Ramjee,
please check the gross amount and the item amount. I think they should be equal in this case.
Regards,
Klaus
2014 Aug 18 8:20 AM
Hello Klaus,
I tried same scenario as u suggested ,still i am facing the same error.
2014 Aug 18 10:14 AM
Hi ramjee,
Please go through the below link.. the Link is with the ALE... In your system, the connection is with the EDI..
it may help you..
http://help.sap.com/saphelp_470/helpdata/en/14/98b0c8c10a11d2960400a0c930e0da/frameset.htm
2014 Aug 21 10:47 AM
Thanks every one for your valuable solutions.
Issue is Solved by unchecking the flag.
wa_header-INV_TRAN = 'X'.
Thanks & Regards,
Ramjee.