Unable to create invoice
Hi All,
I'd like to create an invoice in SRM. If I press the button create invoice a popup comes up with following message:
"Error in Backend communication; please inform your systemadministrator"
All other processes (PO, GR) are working fine. Can anybody help me? Can it be an authority problem?
Thanks Stefan
Hi
Which SRM system version are you using ?
Seems like some configuration settings are missing in the system.
->Have you defined the no ranges correctly for SC in EBP and PR in R/3 with internal and external indications ?
-> Have you defined transaction type in SRM IMG properly ?
-> If the RFC authorizations were not correct, then this would be the case for ALL your SC !!! I don't think this is the case.
Have you raised an OSS message with SAP yet on this ?
Meanwhile, Please go through this ->
Error in backend communication while Enter Invoice in SRM Shopping
Error while communicating with the backend system
Po creation (error in backend comunicatio)
Refer to SAP OSS Notes - 656633, 881086.
Try looking in to this note 656633. I have created one more RFC destination SRMSRCHELP in SRM and R/3. In the logon and security tab i have assigned a dialog user SEARCHRFC in both the Systems .then I have assigned this RFC destination in the IMG menu DEFINE BACKEND SYSTEMS.
back-end communication error for r/3 parameter search
Please revert in the event of any query.
Regards
- Atul
Similar Messages
-
Unable to create invoices due in 2011
Hello,
I am unable to create invoices due in 2011. Hope do I open up the year 2011 for access.
Thank You!
AndrewHi,
Go to posting period window --> open the current period (unlocked period) by click arrow link if the invoice's posting date is in this current period --> in the field due date, set the due date from 01.01.2010 and to 31.12.2011.
Apply to next period if in the next period, there is still invoice that will due in 2011
JimM -
Unable to Create Invoice from iSupplier
I am unable to create invoice from isupplier module,
the moment i click on create invoice "with a PO" or "without a PO" under finance Tab,
i get this error "You cannot complete this task because you accessed this page using the browser's navigation button(the browser Back button, for example).
But I have not accessed the pages with any browser navigation buttons at all.
please advise what may be preventing me from creating invoice?This is caused by the incorrect setup of the browser.
The browser's "Temporary Internet Files" setting for "Check for newer versions of stored pages" was set to "Never". This caused the browser to pull up the old data instead of querying the server.
Please make sure the browser's "Temporary Internet Files" setting for "Check for newer versions of stored pages" is set to "Automatic".
You Used Your Browser's Navigation Buttons To Get Here (Doc ID 1214138.1) -
Unable to create Invoice against a Project based Purchase Order
Hi,
We have a scenario, wherein there is Purchase Order created against a NETWORK ACTIVITY of a PROJECT. We have created a Invoice with ref to this PO. Now we want to cancel this Invoice by creating the Credit Memo against this PO. But, while trying to create the Credit Memo, we end with the following error message:
"Budget for WBS element XXXX/12:7777-XX-X1-Y1-Z1 was exceeded by XXXX EUR in document item 003 Ntwk actvty XXXXXXXXXXXX 00110.
Hence unable to create the Credit Memo. Desperately looking for your response to solved this.............
Rgds,Hi,
Check the cost as on today for ur project under project itself using CJ20n & then go to CJ30 and check the Budget for ur WBS
regds,
CB -
Hi All,
I am trying to create an AR invoice using an API AR_INVOICE_API_PUB.create_single_invoice.
But neither it gives any error nor any record in the table Ra_Interface_Lines_All.
Can you please help on the issue, or am i using a wrong API to achieve the same.
I am trying to create an invoice on R12.1.3.
PFB the code below for reference.
CREATE OR REPLACE PACKAGE BODY xx_pdf_ar_inbound_pkg IS
* Name : xx_pdf_ar_inbound_pkg *
* Object Type : Package Body *
* Description : This package is created for CR SCRIP Migration *
* Parameters : NA *
* Return Values: None *
* Change History *
* Date Name Ver Modification *
* 04/01/2011 xx 0.1 Package Body created. *
* Name : xx_PDF_INV_CREATE_PROC *
* Object Type : Procedure *
* Description : This is the main procedure which will create ar invoiceson *
* Parameters : p_effective_date *
* Return Values: NA *
* Called By : xx_pdf_ar_inbound_pkg *
* Change History *
* Date Name Modification *
* 04/01/2011 xx 0.1 procedure created. *
PROCEDURE xx_PDF_INV_CREATE_PROC(ERRBUF OUT VARCHAR2,
RETCODE OUT VARCHAR2) IS
p_msg_count number;
p_msg_data varchar2(2000);
p_trx_header_tbl ar_invoice_api_pub.trx_header_tbl_type;
p_trx_lines_tbl ar_invoice_api_pub.trx_line_tbl_type;
p_trx_dist_tbl ar_invoice_api_pub.trx_dist_tbl_type;
p_trx_salescredits_tbl ar_invoice_api_pub.trx_salescredits_tbl_type;
p_batch_source_rec ar_invoice_api_pub.batch_source_rec_type;
l_cnt number := 0;
l_header_id number := 0;
l_line_id number := 0;
L_BILL_TO_CUSTOMER_ID number := 0;
L_CUST_TRX_TYPE_Id number := 0;
L_TERM_ID number := 0;
L_SALESREP_Id number := 0;
L_TERRITORY_Id number := 0;
L_VAT_TAX_Id number := 0;
L_SALESREP_NAMe varchar2(280);
l_customer_trx_id number;
l_return_status varchar2(80);
v_org_id number;
l_org_id NUMBER := fnd_profile.VALUE('ORG_ID');
ln_user_id number;
ln_resp_id number;
ln_app_id number;
CURSOR c_ar_inv_header IS
SELECT * FROM xx_pdf_ra_cust_head_intf WHERE record_status = 'NEW';
CURSOR c_ar_inv_lines(p_line_invoice_num VARCHAR2) IS
SELECT *
FROM xx_pdf_ra_cust_lines_intf
WHERE record_status = 'NEW'
AND Invoice_NumbeR = p_line_invoice_num;
BEGIN
FND_FILE.PUT_LINE(FND_FILE.LOG, '*******START******');
-- MO_GLOBAL.SET_POLICY_CONTEXT('S', 204);
-- The following is required when running from the command line
-- Remember to comment it out when you are creating the script to run
-- from a Concurrent program
-- MO_GLOBAL.INIT('AR');
-- select MO_GLOBAL.get_current_org_id() into v_org_id from dual;
select fnd_profile.value('USER_ID') INTO ln_user_id from dual;
select fnd_profile.value('RESPONSIBILITY_ID')
INTO ln_resp_id
from dual;
select fnd_profile.value('APPLICATION_ID') INTO ln_app_id from dual;
begin
fnd_global.apps_initialize(ln_user_id, ln_resp_id, ln_app_id, 0);
exception
when others then
FND_FILE.PUT_LINE(FND_FILE.LOG, 'Error while apps initialize =');
end;
FND_FILE.PUT_LINE(FND_FILE.LOG, 'Current MO Org_id=' || l_org_id);
l_header_id := 0;
IF p_trx_header_tbl.count > 0 THEN
p_trx_header_tbl.DELETE;
END IF;
FND_FILE.PUT_LINE(FND_FILE.LOG, 'Before Header Loop');
FOR r_c_ar_inv_header IN c_ar_inv_header LOOP
begin
FND_FILE.PUT_LINE(FND_FILE.LOG, 'In Header Loop');
select CUST_ACCOUNT_ID
INTO l_bill_to_customer_id
from HZ_CUST_ACCOUNTS HCA, HZ_PARTIES HP
where HP.PARTY_ID = HCA.PARTY_ID
AND HP.PARTY_NAME = r_c_ar_inv_header.Bill_Customer_NAME
AND HCA.ACCOUNT_NUMBER = r_c_ar_inv_header.Bill_Customer_No;
exception
when others then
l_bill_to_customer_id := NULL;
end;
FND_FILE.PUT_LINE(FND_FILE.LOG,
'--Got Bill to Cust Account ID : ' ||
l_bill_to_customer_id);
begin
select cust_trx_type_id
INTO l_cust_trx_type_id
from ra_cust_trx_types_all
where type = r_c_ar_inv_header.Transaction_Type
and (name = 'xx Invoice' or NAME = 'xx Credit Memo');
exception
when others then
l_cust_trx_type_id := 1001;
end;
FND_FILE.PUT_LINE(FND_FILE.LOG,
'--Got Bill to cust_trx_type_id : ' ||
l_cust_trx_type_id);
/*get the payment term id*/
BEGIN
SELECT term_id
INTO l_term_id
FROM ra_terms_tl rtt
WHERE rtt.name = r_c_ar_inv_header.payment_term;
EXCEPTION
WHEN OTHERS THEN
l_term_id := 1000;
END;
FND_FILE.PUT_LINE(FND_FILE.LOG, '--Got term_id : ' || l_term_id);
/*Get Sales Rep ID*/
BEGIN
SELECT salesrep_id, name
INTO l_salesrep_id, l_salesrep_name
FROM ra_salesreps_all
WHERE name = r_c_ar_inv_header.Sales_Person
AND rownum = 1;
EXCEPTION
WHEN OTHERS THEN
l_salesrep_id := -3;
END;
FND_FILE.PUT_LINE(FND_FILE.LOG,
'--Got l_salesrep_id : ' || l_salesrep_id);
/*Get Territory id*/
BEGIN
SELECT territory_id
INTO l_territory_id
FROM ra_territories
WHERE name = 'UK Default';
EXCEPTION
WHEN OTHERS THEN
l_territory_id := 1001;
END;
FND_FILE.PUT_LINE(FND_FILE.LOG,
'--Got l_territory_id : ' || l_territory_id);
p_trx_header_tbl(l_header_id).trx_header_id := l_header_id;
p_trx_header_tbl(l_header_id).trx_number := r_c_ar_inv_header.INVOICE_NUMBER;
p_trx_header_tbl(l_header_id).trx_date := r_c_ar_inv_header.Transaction_Date;
p_trx_header_tbl(l_header_id).trx_currency := r_c_ar_inv_header.Currency_Code;
--reference_number
p_trx_header_tbl(l_header_id).trx_class := 'INV'; --trx_class
p_trx_header_tbl(l_header_id).cust_trx_type_id := l_cust_trx_type_id; --1001;
p_trx_header_tbl(l_header_id).gl_date := r_c_ar_inv_header.Transaction_Date;
p_trx_header_tbl(l_header_id).bill_to_customer_id := l_bill_to_customer_id;
p_trx_header_tbl(l_header_id).bill_to_contact_id := NULL;
p_trx_header_tbl(l_header_id).bill_to_address_id := NULL;
p_trx_header_tbl(l_header_id).bill_to_site_use_id := r_c_ar_inv_header.Bill_Location_No;
FND_FILE.PUT_LINE(FND_FILE.LOG,
'--Inserted Bill To header details : ' ||
l_territory_id);
p_trx_header_tbl(l_header_id).ship_to_customer_id := NULL;
p_trx_header_tbl(l_header_id).ship_to_account_number := NULL;
p_trx_header_tbl(l_header_id).ship_to_customer_name := NULL;
p_trx_header_tbl(l_header_id).ship_to_contact_id := NULL;
p_trx_header_tbl(l_header_id).ship_to_address_id := NULL;
p_trx_header_tbl(l_header_id).ship_to_site_use_id := NULL;
p_trx_header_tbl(l_header_id).sold_to_customer_id := NULL;
p_trx_header_tbl(l_header_id).term_id := l_term_id;
p_trx_header_tbl(l_header_id).primary_salesrep_id := l_salesrep_id;
p_trx_header_tbl(l_header_id).primary_salesrep_name := l_salesrep_name;
p_trx_header_tbl(l_header_id).exchange_rate_type := NULL;
p_trx_header_tbl(l_header_id).exchange_date := NULL;
p_trx_header_tbl(l_header_id).territory_id := l_territory_id;
p_trx_header_tbl(l_header_id).remit_to_address_id := 1020; --hard coded for testint purpose, need to derive it programmatically
FND_FILE.PUT_LINE(FND_FILE.LOG,
'--Inserted Remit To header details : ');
p_trx_header_tbl(l_header_id).invoicing_rule_id := null;
p_trx_header_tbl(l_header_id).printing_option := 'N';
p_trx_header_tbl(l_header_id).purchase_order := r_c_ar_inv_header.INVOICE_NUMBER;
p_trx_header_tbl(l_header_id).purchase_order_revision := NULL;
p_trx_header_tbl(l_header_id).purchase_order_date := NULL;
p_trx_header_tbl(l_header_id).comments := NULL;
p_trx_header_tbl(l_header_id).internal_notes := NULL;
p_trx_header_tbl(l_header_id).finance_charges := NULL;
p_trx_header_tbl(l_header_id).receipt_method_id := NULL;
p_trx_header_tbl(l_header_id).related_customer_trx_id := NULL;
p_trx_header_tbl(l_header_id).agreement_id := NULL;
p_trx_header_tbl(l_header_id).ship_via := NULL;
p_trx_header_tbl(l_header_id).ship_date_actual := NULL;
p_trx_header_tbl(l_header_id).waybill_number := NULL;
p_trx_header_tbl(l_header_id).fob_point := NULL;
p_trx_header_tbl(l_header_id).customer_bank_account_id := NULL;
p_trx_header_tbl(l_header_id).default_ussgl_transaction_code := NULL;
p_trx_header_tbl(l_header_id).status_trx := 'OP'; --HARD CODED for testing, need to check
p_trx_header_tbl(l_header_id).paying_customer_id := l_bill_to_customer_id;
p_trx_header_tbl(l_header_id).paying_site_use_id := r_c_ar_inv_header.Bill_Location_No;
FND_FILE.PUT_LINE(FND_FILE.LOG,
'--Inserted paying_site_use_id header details : ');
p_trx_header_tbl(l_header_id).default_tax_exempt_flag := NULL;
p_trx_header_tbl(l_header_id).doc_sequence_value := NULL;
p_trx_header_tbl(l_header_id).attribute_category := NULL;
p_trx_header_tbl(l_header_id).attribute1 := 'PD';
p_trx_header_tbl(l_header_id).attribute2 := 'PD';
p_trx_header_tbl(l_header_id).attribute3 := NULL;
p_trx_header_tbl(l_header_id).attribute4 := NULL;
p_trx_header_tbl(l_header_id).attribute5 := r_c_ar_inv_header.INVOICE_NUMBER;
p_trx_header_tbl(l_header_id).attribute6 := r_c_ar_inv_header.Transaction_Date;
p_trx_header_tbl(l_header_id).attribute7 := NULL;
p_trx_header_tbl(l_header_id).attribute8 := NULL;
p_trx_header_tbl(l_header_id).attribute9 := NULL;
p_trx_header_tbl(l_header_id).attribute10 := NULL;
p_trx_header_tbl(l_header_id).attribute11 := NULL;
p_trx_header_tbl(l_header_id).attribute12 := NULL;
p_trx_header_tbl(l_header_id).attribute13 := NULL;
p_trx_header_tbl(l_header_id).attribute14 := NULL;
p_trx_header_tbl(l_header_id).attribute15 := NULL;
p_trx_header_tbl(l_header_id).global_attribute_category := NULL;
p_trx_header_tbl(l_header_id).global_attribute1 := null;
p_trx_header_tbl(l_header_id).global_attribute2 := null;
p_trx_header_tbl(l_header_id).global_attribute3 := null;
p_trx_header_tbl(l_header_id).global_attribute4 := null;
p_trx_header_tbl(l_header_id).global_attribute5 := null;
p_trx_header_tbl(l_header_id).global_attribute6 := null;
p_trx_header_tbl(l_header_id).global_attribute7 := null;
p_trx_header_tbl(l_header_id).global_attribute8 := null;
p_trx_header_tbl(l_header_id).global_attribute9 := null;
p_trx_header_tbl(l_header_id).global_attribute10 := null;
p_trx_header_tbl(l_header_id).global_attribute11 := null;
p_trx_header_tbl(l_header_id).global_attribute12 := null;
p_trx_header_tbl(l_header_id).global_attribute13 := null;
p_trx_header_tbl(l_header_id).global_attribute14 := null;
p_trx_header_tbl(l_header_id).global_attribute15 := null;
p_trx_header_tbl(l_header_id).global_attribute16 := null;
p_trx_header_tbl(l_header_id).global_attribute17 := null;
p_trx_header_tbl(l_header_id).global_attribute18 := null;
p_trx_header_tbl(l_header_id).global_attribute19 := null;
p_trx_header_tbl(l_header_id).global_attribute20 := null;
p_trx_header_tbl(l_header_id).global_attribute21 := null;
p_trx_header_tbl(l_header_id).global_attribute22 := null;
p_trx_header_tbl(l_header_id).global_attribute23 := null;
p_trx_header_tbl(l_header_id).global_attribute24 := null;
p_trx_header_tbl(l_header_id).global_attribute25 := null;
p_trx_header_tbl(l_header_id).global_attribute26 := null;
p_trx_header_tbl(l_header_id).global_attribute27 := null;
p_trx_header_tbl(l_header_id).global_attribute28 := null;
p_trx_header_tbl(l_header_id).global_attribute29 := null;
p_trx_header_tbl(l_header_id).global_attribute30 := null;
p_trx_header_tbl(l_header_id).interface_header_context := NULL;
p_trx_header_tbl(l_header_id).interface_header_attribute1 := r_c_ar_inv_header.INVOICE_NUMBER;
p_trx_header_tbl(l_header_id).interface_header_attribute2 := NULL;
p_trx_header_tbl(l_header_id).interface_header_attribute3 := NULL;
p_trx_header_tbl(l_header_id).interface_header_attribute4 := NULL;
p_trx_header_tbl(l_header_id).interface_header_attribute5 := NULL;
p_trx_header_tbl(l_header_id).interface_header_attribute6 := NULL;
p_trx_header_tbl(l_header_id).interface_header_attribute7 := NULL;
p_trx_header_tbl(l_header_id).interface_header_attribute8 := NULL;
p_trx_header_tbl(l_header_id).interface_header_attribute9 := NULL;
p_trx_header_tbl(l_header_id).interface_header_attribute10 := NULL;
p_trx_header_tbl(l_header_id).interface_header_attribute11 := NULL;
p_trx_header_tbl(l_header_id).interface_header_attribute12 := NULL;
p_trx_header_tbl(l_header_id).interface_header_attribute13 := NULL;
p_trx_header_tbl(l_header_id).interface_header_attribute14 := NULL;
p_trx_header_tbl(l_header_id).org_id := l_org_id;
p_trx_header_tbl(l_header_id).legal_entity_id := l_org_id;
p_trx_header_tbl(l_header_id).payment_trxn_extension_id := NULL;
p_trx_header_tbl(l_header_id).billing_date := NULL;
p_trx_header_tbl(l_header_id).interest_header_id := NULL;
p_trx_header_tbl(l_header_id).late_charges_assessed := NULL;
p_trx_header_tbl(l_header_id).document_sub_type := NULL;
p_trx_header_tbl(l_header_id).default_taxation_country := NULL;
p_trx_header_tbl(l_header_id).mandate_last_trx_flag := NULL;
FND_FILE.PUT_LINE(FND_FILE.LOG,
'--Inserted Complete header details : ');
l_line_id := 1;
IF p_trx_lines_tbl.COUNT > 0 THEN
p_trx_lines_tbl.DELETE;
END IF;
FOR r_c_ar_inv_lines IN c_ar_inv_lines(r_c_ar_inv_header.invoice_number) LOOP
p_trx_lines_tbl(l_line_id).trx_header_id := l_header_id;
p_trx_lines_tbl(l_line_id).trx_line_id := l_line_id;
p_trx_lines_tbl(l_line_id).link_to_trx_line_id := NULL;
p_trx_lines_tbl(l_line_id).LINE_NUMBER := l_line_id;
p_trx_lines_tbl(l_line_id).REASON_CODE := NULL;
p_trx_lines_tbl(l_line_id).INVENTORY_ITEM_ID := NULL;
p_trx_lines_tbl(l_line_id).DESCRIPTION := r_c_ar_inv_lines.DESCRIPTION;
p_trx_lines_tbl(l_line_id).QUANTITY_ORDERED := NULL;
p_trx_lines_tbl(l_line_id).QUANTITY_INVOICED := r_c_ar_inv_lines.Quantity;
p_trx_lines_tbl(l_line_id).UNIT_STANDARD_PRICE := NULL;
p_trx_lines_tbl(l_line_id).UNIT_SELLING_PRICE := r_c_ar_inv_lines.Unit_Price;
p_trx_lines_tbl(l_line_id).SALES_ORDER := NULL;
p_trx_lines_tbl(l_line_id).SALES_ORDER_LINE := NULL;
p_trx_lines_tbl(l_line_id).SALES_ORDER_DATE := NULL;
p_trx_lines_tbl(l_line_id).ACCOUNTING_RULE_ID := NULL;
p_trx_lines_tbl(l_line_id).LINE_TYPE := 'LINE'; -- hard coded for testing purpose
p_trx_lines_tbl(l_line_id).ATTRIBUTE_CATEGORY := null;
p_trx_lines_tbl(l_line_id).ATTRIBUTE1 := null;
p_trx_lines_tbl(l_line_id).ATTRIBUTE2 := null;
p_trx_lines_tbl(l_line_id).ATTRIBUTE3 := null;
p_trx_lines_tbl(l_line_id).ATTRIBUTE4 := null;
p_trx_lines_tbl(l_line_id).ATTRIBUTE5 := null;
p_trx_lines_tbl(l_line_id).ATTRIBUTE6 := null;
p_trx_lines_tbl(l_line_id).ATTRIBUTE7 := null;
p_trx_lines_tbl(l_line_id).ATTRIBUTE8 := null;
p_trx_lines_tbl(l_line_id).ATTRIBUTE9 := null;
p_trx_lines_tbl(l_line_id).ATTRIBUTE10 := null;
p_trx_lines_tbl(l_line_id).ATTRIBUTE11 := null;
p_trx_lines_tbl(l_line_id).ATTRIBUTE12 := null;
p_trx_lines_tbl(l_line_id).ATTRIBUTE13 := null;
p_trx_lines_tbl(l_line_id).ATTRIBUTE14 := null;
p_trx_lines_tbl(l_line_id).ATTRIBUTE15 := null;
p_trx_lines_tbl(l_line_id).RULE_START_DATE := null;
p_trx_lines_tbl(l_line_id).INTERFACE_LINE_CONTEXT := null;
p_trx_lines_tbl(l_line_id).INTERFACE_LINE_ATTRIBUTE1 := null;
p_trx_lines_tbl(l_line_id).INTERFACE_LINE_ATTRIBUTE2 := null;
p_trx_lines_tbl(l_line_id).INTERFACE_LINE_ATTRIBUTE3 := null;
p_trx_lines_tbl(l_line_id).INTERFACE_LINE_ATTRIBUTE4 := null;
p_trx_lines_tbl(l_line_id).INTERFACE_LINE_ATTRIBUTE5 := null;
p_trx_lines_tbl(l_line_id).INTERFACE_LINE_ATTRIBUTE6 := null;
p_trx_lines_tbl(l_line_id).INTERFACE_LINE_ATTRIBUTE7 := null;
p_trx_lines_tbl(l_line_id).INTERFACE_LINE_ATTRIBUTE8 := null;
p_trx_lines_tbl(l_line_id).INTERFACE_LINE_ATTRIBUTE9 := null;
p_trx_lines_tbl(l_line_id).INTERFACE_LINE_ATTRIBUTE10 := null;
p_trx_lines_tbl(l_line_id).INTERFACE_LINE_ATTRIBUTE11 := null;
p_trx_lines_tbl(l_line_id).INTERFACE_LINE_ATTRIBUTE12 := null;
p_trx_lines_tbl(l_line_id).INTERFACE_LINE_ATTRIBUTE13 := null;
p_trx_lines_tbl(l_line_id).INTERFACE_LINE_ATTRIBUTE14 := null;
p_trx_lines_tbl(l_line_id).INTERFACE_LINE_ATTRIBUTE15 := null;
--channel in the form
p_trx_lines_tbl(l_line_id).SALES_ORDER_SOURCE := null;
p_trx_lines_tbl(l_line_id).AMOUNT := r_c_ar_inv_lines.Line_Amount;
p_trx_lines_tbl(l_line_id).TAX_PRECEDENCE := null;
p_trx_lines_tbl(l_line_id).TAX_RATE := NULL;
p_trx_lines_tbl(l_line_id).TAX_EXEMPTION_ID := NULL;
p_trx_lines_tbl(l_line_id).MEMO_LINE_ID := NULL;
p_trx_lines_tbl(l_line_id).UOM_CODE := NULL;
p_trx_lines_tbl(l_line_id).DEFAULT_USSGL_TRANSACTION_CODE := NULL;
p_trx_lines_tbl(l_line_id).DEFAULT_USSGL_TRX_CODE_CONTEXT := NULL;
BEGIN
SELECT vat_tax_id
INTO l_vat_tax_id
FROM AR_VAT_TAX_ALL_B
WHERE end_DATE IS NULL
AND ORG_ID = l_org_id
and tax_type = 'VAT'
AND ENABLED_FLAG = 'Y'
AND TAX_CODE = r_c_ar_inv_header.Invoice_VAT_code;
EXCEPTION
WHEN OTHERS THEN
l_vat_tax_id := 10152;
END;
p_trx_lines_tbl(l_line_id).VAT_TAX_ID := l_vat_tax_id;
p_trx_lines_tbl(l_line_id).TAX_EXEMPT_FLAG := NULL;
p_trx_lines_tbl(l_line_id).TAX_EXEMPT_NUMBER := NULL;
p_trx_lines_tbl(l_line_id).TAX_EXEMPT_REASON_CODE := NULL;
p_trx_lines_tbl(l_line_id).TAX_VENDOR_RETURN_CODE := NULL;
p_trx_lines_tbl(l_line_id).MOVEMENT_ID := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE1 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE2 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE3 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE4 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE5 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE6 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE7 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE8 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE9 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE10 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE11 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE12 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE13 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE14 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE15 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE16 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE17 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE18 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE19 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE20 := NULL;
p_trx_lines_tbl(l_line_id).GLOBAL_ATTRIBUTE_CATEGORY := NULL;
p_trx_lines_tbl(l_line_id).AMOUNT_INCLUDES_TAX_FLAG := 'N';
p_trx_lines_tbl(l_line_id).WAREHOUSE_ID := NULL;
p_trx_lines_tbl(l_line_id).CONTRACT_LINE_ID := NULL;
p_trx_lines_tbl(l_line_id).SOURCE_DATA_KEY1 := NULL;
p_trx_lines_tbl(l_line_id).SOURCE_DATA_KEY2 := NULL;
p_trx_lines_tbl(l_line_id).SOURCE_DATA_KEY3 := NULL;
p_trx_lines_tbl(l_line_id).SOURCE_DATA_KEY4 := NULL;
p_trx_lines_tbl(l_line_id).SOURCE_DATA_KEY5 := NULL;
p_trx_lines_tbl(l_line_id).INVOICED_LINE_ACCTG_LEVEL := NULL;
p_trx_lines_tbl(l_line_id).SHIP_DATE_ACTUAL := NULL;
p_trx_lines_tbl(l_line_id).OVERRIDE_AUTO_ACCOUNTING_FLAG := NULL;
p_trx_lines_tbl(l_line_id).DEFERRAL_EXCLUSION_FLAG := NULL;
p_trx_lines_tbl(l_line_id).RULE_END_DATE := NULL;
p_trx_lines_tbl(l_line_id).SOURCE_APPLICATION_ID := NULL;
p_trx_lines_tbl(l_line_id).SOURCE_EVENT_CLASS_CODE := NULL;
p_trx_lines_tbl(l_line_id).SOURCE_ENTITY_CODE := NULL;
p_trx_lines_tbl(l_line_id).SOURCE_TRX_ID := NULL;
p_trx_lines_tbl(l_line_id).SOURCE_TRX_LINE_ID := NULL;
p_trx_lines_tbl(l_line_id).SOURCE_TRX_LINE_TYPE := NULL;
p_trx_lines_tbl(l_line_id).SOURCE_TRX_DETAIL_TAX_LINE_ID := NULL;
p_trx_lines_tbl(l_line_id).HISTORICAL_FLAG := NULL;
p_trx_lines_tbl(l_line_id).TAXABLE_FLAG := NULL;
p_trx_lines_tbl(l_line_id).TAX_REGIME_CODE := NULL;
p_trx_lines_tbl(l_line_id).TAX := NULL;
p_trx_lines_tbl(l_line_id).TAX_STATUS_CODE := NULL;
p_trx_lines_tbl(l_line_id).TAX_RATE_CODE := NULL;
p_trx_lines_tbl(l_line_id).TAX_JURISDICTION_CODE := NULL;
p_trx_lines_tbl(l_line_id).TAX_CLASSIFICATION_CODE := NULL;
--Late Charges
p_trx_lines_tbl(l_line_id).interest_line_id := NULL;
p_trx_lines_tbl(l_line_id).TRX_BUSINESS_CATEGORY := NULL;
p_trx_lines_tbl(l_line_id).PRODUCT_FISC_CLASSIFICATION := NULL;
p_trx_lines_tbl(l_line_id).PRODUCT_CATEGORY := NULL;
p_trx_lines_tbl(l_line_id).PRODUCT_TYPE := NULL;
p_trx_lines_tbl(l_line_id).LINE_INTENDED_USE := NULL;
p_trx_lines_tbl(l_line_id).ASSESSABLE_VALUE := NULL;
FND_FILE.PUT_LINE(FND_FILE.LOG, 'In the end of lines cursor ');
END LOOP;
AR_INVOICE_API_PUB.create_single_invoice(p_api_version => 1.0,
x_return_status => l_return_status,
x_msg_count => p_msg_count,
x_msg_data => p_msg_data,
x_customer_trx_id => l_customer_trx_id,
p_batch_source_rec => p_batch_source_rec,
p_trx_header_tbl => p_trx_header_tbl,
p_trx_lines_tbl => p_trx_lines_tbl,
p_trx_dist_tbl => p_trx_dist_tbl,
p_trx_salescredits_tbl => p_trx_salescredits_tbl);
commit;
FND_FILE.PUT_LINE(FND_FILE.LOG, 'Msg ' || substr(p_msg_data, 1, 225));
FND_FILE.PUT_LINE(FND_FILE.LOG, 'Status ' || l_return_status);
IF l_return_status = fnd_api.g_ret_sts_error OR
l_return_status = fnd_api.g_ret_sts_unexp_error THEN
FND_FILE.PUT_LINE(FND_FILE.LOG, 'unexpected errors found!');
ELSE
SELECT count(*) Into l_cnt From ar_trx_errors_gt;
IF l_cnt = 0 THEN
FND_FILE.PUT_LINE(FND_FILE.LOG,
'Customer Trx id ' || l_customer_trx_id);
COMMIT;
ELSE
FND_FILE.PUT_LINE(FND_FILE.LOG, 'Transaction not Created');
END IF;
END IF;
END LOOP; --Header Loop
END xx_PDF_INV_CREATE_PROC;
END xx_pdf_ar_inbound_pkg;
sho errHi,
I see you are confused between using ra_interface_lines_all and API. The AR Invoice can be created in two method.
1. Using Autoinvoice interface a open interface program. For this you need to populate ra_interface_lines_all and ra_interface_distributions_all (if you are not using auto accounting) interface tables and then submit the Autoinvoice Master program, a interface program to load the AR invoices. Once the program completes, the errors will be stored in ra_interface_errors_all table.
2. Second method is to use the API. If you are using API, no interface table will be used to and errors will not be stored in interface tables. You can use the following routine to get the errors.
IF l_return_status != 'S' THEN
dbms_output.put_line('unexpected errors found!');
IF p_msg_count = 1 Then
dbms_output.put_line('l_msg_data '||l_msg_data);
ELSIF l_msg_count > 1 Then
LOOP
p_count := p_count+1;
p_msg_data := FND_MSG_PUB.Get(FND_MSG_PUB.G_NEXT,FND_API.G_FALSE);
IF p_msg_data is NULL Then
EXIT;
END IF;
dbms_output.put_line('Message' || p_count ||'.'||l_msg_data);
END LOOP;
END IF;
ELSE
dbms_output.put_line(' Got Created Sucessfully : '||l_customer_trx_id);
END IF;
KG -
Unable to create Invoice through BAPI
HI Experts!
We are trying to create PO based (no GR and SES) invoice through "BAPI_INVOICECREATE". It is working perfectly for Material PO, but not for service PO. We are putting PO Quantity as '1' and UOM is "AU" for service. Getting error that "PO Quantity and UOM for iten 00001 is not in limit"
Help!!!!I believe you can use UOM = EA as long as the rest of the P.O. is set correctly for the service and not GR of items.
Please test in QA invirornment (if you have one) first. (not 100% sure it will work for your system but it does work for mine) -
Flexible RE. Not able to create invoice against contract.
Hi all
I am new in Flex RE. I created a contract using tcode-RECN and assigned object (rental object) and master tenant with it. But i am unable to create invoice with tcode RERAIV.
The error that comes is
Selection of open items from FI documents
. No relevent items were found for 2 contract partners(Warning)
. No relevant items were found in the period(Error)
Pls help me with that.
Thanx in advance
DeepakHi Deepak,
i am assuming you are posting for the month Decemer.
point 1. please check what is the Due date in cash flow for the contract.
Point 2 . you have mentioned the contract Start date is 04.12.2010 and end date is 31.12.2010.
End of Term date is 10.12.2010.
DId you preclosed the contract ?
Point 3. pleae check the prequency in posting parameters Tab. is it days, monts or years , are u charging in advance or Arrears ?
Point 4. check is contract activated ?
hope you will find the solution
Thanks
Jilani -
Unable to create Accounting document for my Outgoing excise Invoice
Dear All,
I am implementing sales from Factory. I am unable to creat accounting document for my Outgoing excise invoice. When I click the Utilization button, The excise invoice type is selected Deemed.
1. How to control which Which Excise invoice type should be selected in J1IIN.
2. For Deemed exports will system not genererate Accounting document for Excise Invoice?
3. Where to view the excise invoice document types (Like Billing and order types)
Thanks & RegardsFor deemed export sales,
-Accounting documents will not get generated. (ref: Excise Acct Determination in CIN settings, you will not find Excise Tranraction type:ARE3 for which G/L account will not be assigned)
-Excise Invoice type will be automatically triggered based on configuration : Excise Group / Series Group detetermination.
- For Deemed Exports , only Quantity will get updated in RG1, but not the value. thats the reason, accounting document will not get generated.
- This excise invoice is created, for - to update the RG1 registry / ARE3 creation.
hope it clears
regards, -
Unable to create confirmation/invoice in SRM,Classic Scenario
Hi Guru's,
I am unable to create Confirmation/Invoice in the Portal, attached the screen shot of the error
its is the problem with the ADRC table, there is no entry in the table for the BP.
I tried to access the table via SM30 to add the entry in ADRC manually, I get a message table maintenance not defined
Regards,
KiranHi Kiran,
Could you please also advise whether all the users are not able to create the confirmation in portal. Or if there is any specific user who is not able to do that?
And I also request you to advise whether you going to do the invoice in SRM portal in classic scenario?
Best Regards,
Bharathi -
Unable to create excise invoice against the Material document
Hi experts,
Unable to create excise invoice against the Material document in J1IEX transaction.
Material document is generated through quality management which movement type is 105.
error message :
Material document cannot be processed
Message no. M7130
Thanks
SAP MMSteps to do GR along with excise,
1.Capture excise invoice using J1IEX.
2. Refer excise invoice no. in MIGO(SAP not recommends to post excise invoice against 105 mvmt against blocked stock)
3. Post excise invoice using J1IEX -
Problem with payables open interface import-unable to pick invoice data
Hi,
I have put the Interface data in two staging table and then moved them to AP_INVOICES_INTERFACE and AP_INVOICE_LINES_INTERFACE tables.
Code:
insert into XXWU_AP_INVOICES_INTERFACE (
invoice_id,
invoice_num,
vendor_id,
vendor_site_id,
vendor_site_code,
invoice_amount,
INVOICE_CURRENCY_CODE,
invoice_date,
DESCRIPTION,
PAY_GROUP_LOOKUP_CODE,
source,
org_id,
OPERATING_UNIT
values (
ap_invoices_interface_s.nextval,
'INV345DJ',
'3317',
'14335',
'ACH NY1',
1200.00,
'USD',
to_date('01-31-2010','mm-dd-yyyy'),
'This Invoice is created for test purpose',
'WUFS SUPPLIER',
'Manual Invoice Entry',
81,
'WU_USD_OU'
insert into XXWU_AP_INVOICE_LN_INTERFACE (
invoice_id,
invoice_line_id,
line_number,
line_type_lookup_code,
amount,
org_id
values (
ap_invoices_interface_s.currval,
ap_invoice_lines_interface_s.nextval,
1,
'ITEM',
1200.00,
81
INSERT INTO AP_INVOICES_INTERFACE (SELECT * FROM XXWU_AP_INVOICES_INTERFACE);
INSERT INTO AP_INVOICE_LINES_INTERFACE (SELECT * FROM XXWU_AP_INVOICE_LN_INTERFACE);
I can very much see the data in Open Interface Invoices(Front End). But when I run the payables open interface import program with correct Operating Unit, Source and Batch Name, the program unable to pick the data from the interface tables and unable to create a invoice.
Note:
1] The program run successfully everytime, but there is no output in the output file.
2] In the Log file One Message is there saying 'Zero(0) invoices were created during the process run.'
3] All the initail setup is right, i think, because I ran the same program few days back and it was working fine and the invoices were created at that time. Now what is going wrong I am unable to figure it out.
Please help ASAP.Thanks in Advance
DJ Koch.
Edited by: DJKOCH on 17 Aug, 2010 9:51 PMCan you run the program - Payables Open Interface Import with Debug mode set to Yes.
Once the program completes sucessfully verify the log file of the program and try to find out if there are any invoices which is causing the exceptions.
Also confirm that the invoices which are in the AP_INVOICES_INTERFACE and AP_INVOICE_LINES_INTERFACE tables are of the correct period in which you are trying to create the invoices.
Hope this helps.
Thanks and Regards
Manish Jain. -
Hi Experts,
While Creating Invoice i am getting below error
G/L account 0001 11002 cannot be posted to, please correct your entry
Message no. >0205
Diagnosis
This G/L account is blocked against posting or is a reconciliation account and cannot be posted to directly.
System Response
The G/L account cannot be posted to.
Procedure for System Administration
Check you entry for errors, or change the master record of the G/L account: Proceed.
I have taken lot of experts advises, but unable to solve. I have checked FS00, EK01 and EK02 and unable to find what problem is with these Tcodes.
When i was trying to check Tcode FS00 i found G/L Account is "11002 - Constructions" and when i tried to see account group it was Balance Sheet Account and by experts advise i changed it to P&L Statement Acct, when i am opening Initially after saving Account Grp.Tcode FS00 it is showing Acct. Grp. as P&L Statement Acct and when i am choosing other tabs in FS00 the Acct Grp is Changing back to Balance sheet acct.. I am unable to find what wrong with this.
I want to ask whether the problem is with above mentioned thing or with other, i believe i have explained my error in detail. Please advise how can i overcome this error.
Regards,
Kushal
Moderator note - thread locked, same issue identified in G/L error while posting an amount - TXN: FPE1 - SAP ISU and Error while trying to do BillingHi friends,
The error thats triggered is "For object RV_BELEGnumber range 19 does not exist".
I have deleted all the existing no ranges in VN01 and customized the nuber range for invoice doc and set it at Z1(Internal no range :1000-1999) and the existing no range entry in OBA7 for RV is 18(1800000000- 1899999999).
Z1(Internal no range :1000-1999) for Invoices
Z2(Internal no range :2000-2999) for Deliveries
Z3 (Internal no range :3000-3999) for sales orders
So my VN01 entries consists of Z1(Internal no range :1000-1999) ,Z2(Internal no range :2000-2999) ,Z3 (Internal no range :3000-3999) .
The sales orders and deliveries are working out fine but while generating the invoice its triggering the above message.
Pl help on this.
Thanks
Ivy -
SRM-SUS: "Create Invoice" button not available in "Confirmation"
A confirmation is created from SUS(702) and posted to ECC (607). Service Entry sheet is released in ECC.
Supplier unable to see the "Create Invoice" button in the confirmation. Please advise what could be missing here?
Is there any status update to Confirmation about the acceptance of service entry. I can see a Service-acknowledgement is posted into SUS but is not visible in the SUS portal.Hi,
Did you check whether 'GR based IV' is clicked for respective vendor?
Regards, -
Force Accounting Doc when create Invoice
HI all,
I am unable to create an accounting doc when invoice is created.
It error : 'Cost Center BB11 3120 does not exist on 10/28/2011'.
Cost center 3120 does not exist at all. The invoices has posting status 'Error in Accounting INterface'. Is there a way i can force the invoice to create the accounting document for this invoice ?
thanks
JoyceHi Shiva,
We go by account assignment. For this cost element 61530, the Column ' Acct Assgnmnt ' is 3 .
It has profit ctr of 30, 400, 420 and its cost center. However, acctg doc seems to point to an invalid cost center for profit center 30.
Any suggestions ?
thanks
Joyce -
Unable to create Contract account
I am unable to create contract account. I am getting the error message as "Key selection not defined for application R company code List of budget billing proceuders(R301)"
How to go further?Hi, Jack
Did you go to the path I indicated? In there, for each company code, you need to maintain which budget billing procedures you allow.
0 means no BB procedure.
SAP says:
"If you enter 1 (statistical procedure), budget billing requests are managed as statistical items in the Contract Accounts Receivable and Payable (FI-CA) component and do not affect the general ledger.
If you enter 2 (debit entry procedure), budget billing requests are posted as partial bills.
If you enter 3 (payment plan procedure), the budget billing amount is requested as the new bill amount instead of the bill amount determined by billing and invoicing. The difference between the actual bill amount and the payment plan amount is managed in a special item. This procedure is used for monthly billing.
If you enter 4 (payment scheme procedure), the bill amount is integrated into the budget billing plan. The bill can no longer be paid separately. The budget billing requests are posted as statistical items in the same way to the installment plan.
If you enter 5 (down payment request plan), a special payment plan is created for industry customers. This plan is suitable for industry customers with monthly periods as the down payment plan for the month after next. To use this procedure, establish the settings in Customizing."
After that, you need to maintain all the activities related to the BB procedures you want to use, in SAP Utilities / Invoicing / Budget Billing Plan. Check all activities and see what you need to customize.
Maybe you are looking for
-
Number range of accounting document for different plants
whenever a billing document is created in SD (using the T-code VF01); an accounting document will be simultaneously created in the FI module. one document type(TS,number range---60:1 to 9999 ) have four plants .different plants have own number range
-
Duh - I can't see the output because it's in another process??
I've been banging my head, trying to learn how to make Unix scripts and Java work together. At my job there's a lot of that, and I'm an intern and wanting to learn more so I've been playing at home. I have a Linux (RedHat7.2) partition at home, so I
-
How to relate a report page to a tabular form?
I have a table called PRODUCT SQL> desc product Name Null? Type PRODUCTNUMBER NOT NULL VARCHAR2(15 CHAR) PRODUCTDESCRIPTION VARCHAR2(30 CHAR) LOCATION
-
Business service NOT getting configured from jca file in Windows 7
I am faced with a problem in Windows 7. In one machine with Win XP as OS, when I create a business service from a JCA(.jca) file, the Endpoint URI gets configured automatically with jca://<jndi name>/... and having protocol as jca. But, when I do the
-
File sharing is not working from pc to imac os x 10.9.2
file sharing is not working from pc to imac os x 10.9.2