码迷,mamicode.com
首页 > 其他好文 > 详细

EBS中后台AP发票审批脚本

时间:2016-07-07 19:00:00      阅读:839      评论:0      收藏:0      [点我收藏+]

标签:

Declare
    l_Hold_Count Number;
    l_Funds_Code Varchar2(30);
 
    l_Approve_Status Varchar2(120);

Begin
  Ap_Approval_Pkg.Approve(p_Run_Option         => Null,
                          p_Invoice_Batch_Id   => Null,
                          p_Begin_Invoice_Date => Null,
                          p_End_Invoice_Date   => Null,
                          p_Vendor_Id          => Null,
                          p_Pay_Group          => Null,
                          p_Invoice_Id         => 99014,
                          p_Entered_By         => Null,
                          p_Set_Of_Books_Id    => Null,
                          p_Trace_Option       => Null,
                          p_Conc_Flag          => ‘N‘,
                          p_Holds_Count        => l_Hold_Count,
                          p_Approval_Status    => l_Approve_Status,
                          p_Calling_Mode       => Null,
                          p_Calling_Sequence   => ‘CUX_3_AR_INTER_PKG‘,
                          p_Funds_Return_Code  => l_Funds_Code,
                          p_Debug_Switch       => Null,
                          p_Budget_Control     => Null,
                          p_Commit             => ‘N‘);

      If l_Hold_Count > 0 Then
        --x_success_flag  := fnd_api.g_ret_sts_error;
        x_Msg_Message := ‘AP发票:‘ ‘ 审批不通过,存在挂起:‘ ||
                         x_Msg_Message;
        -- Raise Fnd_Api.g_Exc_Error;
        x_Return_Status := Fnd_Api.g_Ret_Sts_Error;
        Goto Continue;
      End If;
End;

EBS中后台AP发票审批脚本

标签:

原文地址:http://www.cnblogs.com/bruce_zhao/p/5650923.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!