應收發票及收款核銷相關的API和程式

2021-06-03 05:30:32 字數 1721 閱讀 7053

--收款

ar_receipt_api_pub

--發票

ar_invoice_api_pub

--下面是收款取消核銷和收款沖銷的程式包

--收款沖銷

procedure mew_ar_receipt_reverse(p_retcode         out number

,p_errbuf          out varchar2

,p_cash_receipt_id in number) is

v_return_status varchar2(240);

v_message_count number;

v_message_data  varchar2(4000);

begin

--ar_receipt_api_pub.reverse(p_cash_receipt_id => p_cash_receipt_id);

ar_receipt_api_pub.reverse(

-- standard api parameters.

p_api_version      => 1

,p_init_msg_list    => fnd_api.g_false

,p_commit           => fnd_api.g_false

,p_validation_level => fnd_api.g_valid_level_full

,x_return_status    => v_return_status

,x_msg_count        => v_message_count

,x_msg_data         => v_message_data

,-- receipt reversal related parameters

p_cash_receipt_id => p_cash_receipt_id

--,p_receipt_number         => null

,p_reversal_category_code => 'rev'

-- ,p_reversal_category_name => null

,p_reversal_gl_date     => sysdate

,p_reversal_date        => sysdate

,p_reversal_reason_code => 'payment reversal'

--,p_reversal_reason_name   => null

,p_reversal_comments    => null

,p_called_from          => null

,p_attribute_rec        => null

,p_global_attribute_rec => null

,p_cancel_claims_flag   => 'y');

for i in 1 .. v_message_count

loop

v_message_data := i || ': ' ||

fnd_msg_pub.get(fnd_msg_pub.g_next

,fnd_api.g_false);

end loop;

fnd_file.put_line(fnd_file.log

,v_return_status || ':' || v_message_data);

end;

應收發票相關指令碼

formatted on 2018 3 15 10 20 35 qp5 v5.256.13226.35538 select from hr organization units v ar 事物處理安全性限制 begin mo global.set policy context s 107 end 備...

應收發票相關指令碼

formatted on 2018 3 15 10 20 35 qp5 v5.256.13226.35538 select from hr organization units v ar 事物處理安全性限制 begin mo global.set policy context s 107 end 備...

AR 調整應收發票指令碼

declare g created by number fnd global.user id g creation date date sysdate g last updated by number fnd global.user id g last updated date date sysda...