這期內(nèi)容當(dāng)中小編將會(huì)給大家?guī)碛嘘P(guān)如何理解EBS接口開發(fā)的應(yīng)收款處理,文章內(nèi)容豐富且以專業(yè)的角度為大家分析和敘述,閱讀完這篇文章希望大家可以有所收獲。
網(wǎng)站建設(shè)哪家好,找成都創(chuàng)新互聯(lián)公司!專注于網(wǎng)頁設(shè)計(jì)、網(wǎng)站建設(shè)、微信開發(fā)、微信小程序、集團(tuán)企業(yè)網(wǎng)站建設(shè)等服務(wù)項(xiàng)目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了文水免費(fèi)建站歡迎大家使用!
如下表中列出了與應(yīng)收款處理相關(guān)的表和說明:
表名 | 說明 | 其他信息 | ||
AR_BATCHES_ALL | AR收款批表 |
|
|
|
AR_BATCH_SOURCES_ALL | AR收款類型表 |
|
| 對(duì)應(yīng)視圖 |
AR_CASH_RECEIPTS_ALL | AR收款表 |
|
| 對(duì)應(yīng)視圖 |
AR_CASH_RECEIPT_HISTORY_ALL | AR收款歷史表 |
|
| 對(duì)應(yīng)視圖 |
AR_MISC_CASH_DISTRIBUTIONS_ALL | AR雜項(xiàng)收款分配表 |
|
| 對(duì)應(yīng)視圖 |
AP_BANK_ACCOUNTS_ALL | AR匯款銀行 |
|
| 對(duì)應(yīng)視圖 |
AR_RECEIPT_METHODS | AR收款分類 |
|
| 對(duì)應(yīng)視圖 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
這里只列出了應(yīng)收款處理相關(guān)的大多數(shù)常用表。還有一些不經(jīng)常用到的沒有涉及,具體可以參考o(jì)racle網(wǎng)站上的
創(chuàng)建收款
AR_RECEIPT_API_PUB.CREATE_CASH
核銷應(yīng)收INVOICE
AR_RECEIPT_API_PUB.APPLY
創(chuàng)建并同時(shí)核銷INVOICE
AR_RECEIPT_API_PUB.CREATE_AND_APPLY
取消核銷INVOICE
AR_RECEIPT_API_PUB. UNAPPLY
沖銷收款
AR_RECEIPT_API_PUB. REVERSE
核銷賬戶
AR_RECEIPT_API_PUB. APPLY_ON_ACCOUNT
撤銷核銷賬戶
AR_RECEIPT_API_PUB. UNAPPLY_ON_ACCOUNT
核銷活動(dòng)
AR_RECEIPT_API_PUB. ACTIVITY_APPLICATION
創(chuàng)建雜項(xiàng)收款
AR_RECEIPT_API_PUB. CREATE_MISC
核銷其他賬戶活動(dòng)
AR_RECEIPT_API_PUB. APPLY_OTHER_ACCOUNT
撤銷核銷其他賬戶
AR_RECEIPT_API_PUB. UNAPPLY_OTHER_ACCOUNT
核銷現(xiàn)金收款沖銷其他收款
AR_RECEIPT_API_PUB. APPLY_OPEN_RECEIPT
取消核銷現(xiàn)金收款沖銷其他收款
AR_RECEIPT_API_PUB. UNAPPLY_OPEN_RECEIPT
AR_RECEIPT_API_PUB. CREATE_APPLY_ON_ACC
核銷到INVOICE行明細(xì)
AR_RECEIPT_API_PUB. APPLY_IN_DETAIL
這個(gè)API一次可以創(chuàng)建一個(gè)收款,創(chuàng)建成功后,狀態(tài)為未核銷。
此API一次只能創(chuàng)建一個(gè)收款,無法創(chuàng)建收款批。
AR_RECEIPT_API_PUB. PROCEDURE Create_cash( -- Standard API parameters. p_api_version IN NUMBER, p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE, p_commit IN VARCHAR2 := FND_API.G_FALSE, x_return_status OUT NOCOPY VARCHAR2, x_msg_count OUT NOCOPY NUMBER, x_msg_data OUT NOCOPY VARCHAR2, -- Receipt info. parameters p_currency_code IN VARCHAR2 DEFAULT NULL, p_amount IN NUMBER DEFAULT NULL, p_receipt_number IN VARCHAR2 DEFAULT NULL, p_receipt_date IN DATE DEFAULT NULL, p_gl_date IN DATE DEFAULT NULL, p_customer_number IN VARCHAR2 DEFAULT NULL, p_receipt_method_id IN NUMBER DEFAULT NULL, p_cr_id OUT NOCOPY NUMBER )
僅包含主要參數(shù)
x_return_status API返回狀態(tài) x_msg_count API返回信息數(shù)量 x_msg_data API返回消息內(nèi)容 p_currency_code 幣種 值來源 select currency_code from fnd_currencies; p_receipt_number 收款編號(hào) p_receipt_date 收款日期 p_gl_date 入賬日期 p_customer_number 客戶編號(hào) 值來源 select b.account_number from hz_parties a, hz_cust_accounts b where a.party_name = '&Customer_name' and a.party_id = b.party_id p_receipt_method_id 收款方法 值來源 select receipt_method_id from ar_receipt_methods; p_cr_id 返回的收款I(lǐng)D API成功后,將會(huì)把數(shù)據(jù)提交到AR_RECEIVABLE_APPLICATIONS_ALL中
DECLARE l_return_status VARCHAR2(1); l_msg_count NUMBER; l_msg_data VARCHAR2(240); l_cash_receipt_id NUMBER; p_count number := 0; BEGIN -- 1) Set the applications context mo_global.init('AR');--初始化MOAC mo_global.set_policy_context('S', '261');--261是OU的ID fnd_global.apps_initialize(2125, 51260, 280, 0);--2125是USER_ID,51260是responsibility_id,280是application_id -- 2) Call the API AR_RECEIPT_API_PUB.CREATE_CASH ( p_api_version => 1.0, p_init_msg_list => FND_API.G_TRUE, p_commit => FND_API.G_TRUE, p_validation_level => FND_API.G_VALID_LEVEL_FULL, x_return_status => l_return_status, x_msg_count => l_msg_count, x_msg_data => l_msg_data, p_currency_code => 'CNY', p_amount => 10000, p_receipt_number => 'TEST20120120', p_receipt_date => '20-01-2012', p_gl_date => '20-01-2012', p_customer_number => 1945, p_receipt_method_id => 2004, p_cr_id => l_cash_receipt_id ); -- 3) Review the API output dbms_output.put_line('Status ' || l_return_status); dbms_output.put_line('Cash Receipt id ' || l_cash_receipt_id ); dbms_output.put_line('Message count ' || l_msg_count); if l_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; l_msg_data := FND_MSG_PUB.Get(FND_MSG_PUB.G_NEXT,FND_API.G_FALSE); if l_msg_data is NULL then exit; end if; dbms_output.put_line('Message ' || p_count ||'. '||l_msg_data); end loop; end if; END;
改API一次可以核銷一張INVOICE,如果需要核銷多張INVOICE,可以循環(huán)調(diào)用。
AR_RECEIPT_API_PUB.APPLY ( p_api_version IN NUMBER,, p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE, p_commit IN VARCHAR2 := FND_API.G_FALSE, p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL, p_cash_receipt_id IN ar_cash_receipts.cash_receipt_id%TYPEDEFAULT NULL,, p_customer_trx_id INra_customer_trx.customer_trx_id%TYPE DEFAULT NULL, p_amount_applied INar_receivable_applications.amount_applied%TYPE DEFAULT NULL, x_return_status OUT NOCOPY VARCHAR2, x_msg_count OUT NOCOPY NUMBER, x_msg_data => OUTNOCOPY VARCHAR2);
上述就是小編為大家分享的如何理解EBS接口開發(fā)的應(yīng)收款處理了,如果剛好有類似的疑惑,不妨參照上述分析進(jìn)行理解。如果想知道更多相關(guān)知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。