创建收款可以使用API - ar_receipt_api_pub.create_cash
但在跨ou的时候,比如我是ou_1,需要在程序中同时为ou_2,ou_3创建收款。如果创建的两个收款方法相同,会产生ERROR,根据matelink显示如下:
iReceivables: No Data Found In Package AR_RECEIPT_API_PUB Procedure Create_Cash (Doc ID 1534478.1)
bug描述如下:
When calling AR_RECEIPT_API_PUB.CREATE_CASH for receipts belonging to different operating units, receipts get created for the first operating unit but when the programs processes another record belongning to a different operating unit then API fails with out status as U. This issue happens only when customer is using the same receipt method id.
如果不想打patch,我认为可以在调用api的时候指定remittance_bank_account_id
Demo如下:
DECLARE w_x_return_status VARCHAR2(100); w_x_msg_count NUMBER; w_x_msg_data VARCHAR2(2000); -- API用 w_application_ref_type ar_receivable_applications.a