zoukankan      html  css  js  c++  java
  • Oracle EBS AP 取消发票

    --取消发票 created by jenrry 20170425
    declare
     l_result        BOOLEAN;
     l_message_name          VARCHAR2(240);     
     l_invoice_amount           NUMBER; 
     l_base_amount              NUMBER; 
     l_temp_cancelled_amount    NUMBER; 
     l_cancelled_by             NUMBER;        
     l_cancelled_amount         NUMBER; 
     l_cancelled_date           DATE; 
     l_last_update_date         DATE; 
     l_original_prepayment_amount  NUMBER;
     l_pay_curr_invoice_amount     NUMBER;
     l_token                       VARCHAR2(240);
     l_calling_sequence            VARCHAR2(240);
    begin
      FND_GLOBAL.APPS_INITIALIZE(USER_ID      => 1111,
                                 RESP_ID      => 50737,
                                 RESP_APPL_ID => 20005);
      mo_global.init('SQLAP');
      
    
      mo_global.set_policy_context(p_access_mode => 'S', p_org_id => 142);
      l_result := AP_CANCEL_PKG.Ap_Cancel_Single_Invoice(
                 P_invoice_id                 => 13020,
                 P_last_updated_by            => 1111,
                 P_last_update_login          => 1111,
                 P_accounting_date            => fnd_conc_date.string_to_date('2017-02-21'),
                 P_message_name               => l_message_name,
                 P_invoice_amount             => l_invoice_amount,
                 P_base_amount                => l_base_amount,
                 P_temp_cancelled_amount      => l_temp_cancelled_amount,
                 P_cancelled_by               => l_cancelled_by,
                 P_cancelled_amount           => l_cancelled_amount,
                 P_cancelled_date             => l_cancelled_date,
                 P_last_update_date           => l_last_update_date,
                 P_original_prepayment_amount => l_original_prepayment_amount,
                 P_pay_curr_invoice_amount    => l_pay_curr_invoice_amount,
                 P_token                      => l_token,
                 P_calling_sequence           => l_calling_sequence) ;
                 
         if l_result then
           dbms_output.put_line('l_message_name1: '||'S');
           
           end if;
         dbms_output.put_line('l_message_name: '||l_message_name);
    
    
           
    end;
    

      

    土豆君
  • 相关阅读:
    C# 特性(Attribute)学习
    ASP.NET Request.MapPath() 与 Server.MapPath()
    Asp.net对http request 处理的全过程!
    保存网址
    寻找silverlight高手帮忙解决问题,谢谢,
    基于.Net Framework的N层分布式应用开发
    VB.NET 代码转为C#
    刚刚开通博客噢 。欢迎大家光临啊
    配置本地服务器的几种方式
    前端必备工具 (记录)
  • 原文地址:https://www.cnblogs.com/jenrry/p/10020744.html
Copyright © 2011-2022 走看看