路径:应付款系统管理员/发票/发票

问题描述:

在AP发票界面录入一笔发票,验证发票,撤销发票,然后在AP发票界面的“活动”中创建会计科目,发现带出的并发请求“创建会计科目”正常跑完,但是通过“报表/查看会计科目”却无法查看该发票是否生成会计科目。

查询SQL:

select xte.entity_id,
xe.event_id,
xe.transaction_date,
xe.event_status_code,
xe.process_status_code,
xe.event_type_code
from xla.xla_transaction_entities xte, xla.xla_events xe
where xe.entity_id = xte.entity_id
and xte.application_id = xe.application_id
-- and xe.application_id = 200
and xte.entity_code = 'AP_INVOICES'
and xte.transaction_number = 'D301ZTX2017110001';

发现xe.event_status_code和 xe.process_status_code分别为 I 和 U ,并且表xla.xla_ae_headers与xla.xla_ae_lines没有相关数据,所以确认没有生成会计分录,原因不明。

解决方法:

一:参照sr提供的方式操作

To implement the solution, please execute the following steps:
1. Ensure that you have taken a backup of your system before applying the recommended solution.
2. Run the following scripts in a TEST environment first:
*********TEST INSTANCE FIRSTLY********
Step 1) Download and apply the data fix patch 19637587:R12.AP.A
**Please ignore the first step in case you have applied this patch before **********
Step 2) Execute the selection script : AP_MISC_INVOICE_DIAG.sql
sqlplus apps/apps
@$AP_TOP/patch/115/sql/AP_MISC_INVOICE_DIAG.sql
Parameters : ** invoice date (Format dd/mm/yyyy Eg. 28/01/1999)
l_start_date
l_end_date
This script will create the temp DB table and log file for review.
a) Driver table AP_TEMP_DATA_DRIVER_9738413
b) log file 9738413-diag-<DD_MI_SS>.html which displays the affected transactions.
Log files will be created in the following directory:
SELECT decode(instr(value,','),0,value,SUBSTR (value,1,instr(value,',') - 1)) FROM v$parameter WHERE name = 'utl_file_dir';
Step 3) Update process_flag in each driver table AP_TEMP_DATA_DRIVER_9738413 to 'Y' for any transactions that should be operated on.
update AP_TEMP_DATA_DRIVER_9738413 set process_flag = 'Y' where invoice_id in ('2007427');
commit;

Step 4) Execute the fix script
Example: sqlplus apps/apps
$AP_TOP/patch/115/sql/AP_MISC_INVOICE_FIX.sql
This script expects the following parameters
-p_user_name : Enter user name that has the required permissions.
-p_resp_name : Enter responsibility that has required permissions. (Case sensitive) eg. Payables Manager
-p_proposed_undo_date : New accounting date for undo accounting events. (DD/MM/YYYY)
-p_email_id: Optional. Enter if you want to receive the generated logs on email id.
Please verify the user name and responsibility name based on the SQL as below firstly, if return no record, that means the parameter is not correct.
SELECT *FROM fnd_user WHERE user_name = Upper('&P_User_Name');
SELECT * FROM fnd_responsibility_tl WHERE responsibility_name = '&p_resp_name ' AND ROWNUM = 1;
This script will generate log file 9738413-fix-<DD_MI_SS>.html
Step 5) Check whether the data fix is working or not.
-- process_flag : E (Error) ; D (Done / Finished)
select invoice_id , process_flag from AP_TEMP_DATA_DRIVER_9738413 where invoice_id in ('2007427');
3. Once the scripts complete, confirm that the data is corrected.
4. If you are satisfied with the results, issue a commit.
5. Confirm that the data is corrected when viewed in the Oracle Applications.
6. If you are satisfied that the issue is resolved, migrate the solution as appropriate to other environments.

二 重新对该发票“创建会计科目”

1 重新创建会计科目,报错如下,xe.event_status_code和 xe.process_status_code分别为 I 和 U ,但是表xla.xla_ae_headers与xla.xla_ae_lines有相关数据

2 按照报错提示,在AP职责下单独提交“创建会计科目”并发程序,并将“报表”参数设置为“详细信息”,然后下载“查看输出”文件,搜问题发票编号“D301ZTX2017110001”,

检查AP和GL的期间是否打开,发现GL的2017-11期间关闭,则打开GL期间,然后重新创建会计科目,创建成功

sr网址:

1)https://support.oracle.com/epmos/faces/SrDetail?_afrLoop=172711819808699&srNumber=3-16377513741&srDetailRelativeDateParam=null&queryModeName=Technical&needSrDetailRefresh=true&_afrWindowMode=0&_adf.ctrl-state=gih44hrzi_4

2)https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=174674419612511&parent=SrDetailText&sourceId=3-16377513741&id=1360390.1&_afrWindowMode=0&_adf.ctrl-state=gih44hrzi_21

EBS AP 创建会计科目失败的更多相关文章

  1. AP创建会计科目

    一. 创建会计科目的途径 1. 在发票工作台对单张发票进行创建科目: 2. 提交“创建会计科目”并发请求,对所有已经验证但尚未创建会计科目的发票进行创建会计科目. 二. 对单张发票创建会计科目 发票在 ...

  2. Oracle EBS AP 创建贷项通知单并核销到相应发票

    --1.0 生成与发票一样的贷项通知单 created by jenrry 20170423 DECLARE L_CUSTOMER_TRX_ID NUMBER; L_INVOICE_NUMBER VA ...

  3. Oracle EBS GL 创建会计科目

    SELECT ct.trx_number ,l.accounting_class_code ,l.entered_dr ,l.entered_cr ,fnd_flex_ext.get_segs('SQ ...

  4. EBS 创建会计科目 小结

    1 创建会计科目 方式(以AP发票为例) 1)在发票工作台对单张发票进行创建科目: 参考网址: https://www.cnblogs.com/bruce_zhao/p/3809493.html 备注 ...

  5. Vs2012 创建项目失败 未找到与约束ContractName

    刚开始使用vs2012的时候,创建项目失败,后来找到原因 ,是KB2840642V2的原因,于是 卸载之.vs正常

  6. SQL Server COM 组件创建实例失败

    SQL Server COM 组件创建实例失败   SQL2008数据库总会出现从 IClassFactory 为 CLSID 为 {17BCA6E8-A95D-497E-B2F9-AF6AA4759 ...

  7. 从ICassFactory为CLSID为{17BCA6E8-A950-497E-B2F9-AF6AA475916F}的COM组件创建实例失败问题解决方法

    从ICassFactory为CLSID为{17BCA6E8-A950-497E-B2F9-AF6AA475916F}的COM组件创建实例失败,原因是出现以下错误:c001f011.(Microsoft ...

  8. 从ICLassFactory 为 CLSID的COM组建创建实例失败:c001f011

    在sqlserver创建计划任务的时候,保存时出现:“从ICLassFactory 为 CLSID的COM组建创建实例失败:c001f011”. 解决方法:在运行sqlserver时,使用“以管理员身 ...

  9. 从ICassFactory为CLSID为{17BCA6E8-A950-497E-B2F9-AF6AA475916F}的COM组件创建实例失败,原因是出现以下错误:c001f011.(Microsoft.Server.manageDTS

    从ICassFactory为CLSID为{17BCA6E8-A950-497E-B2F9-AF6AA475916F}的COM组件创建实例失败,原因是出现以下错误:c001f011.(Microsoft ...

随机推荐

  1. \ n是将输出换行符的javascript的转义符。

    \ n是将输出换行符的javascript的转义符.<br/>是表示新文本行的HTML标签.JavaScript是一种脚本语言,而HTML是一种标记语言.如果使用javascript的文档 ...

  2. EF Code First 数据迁移操作

    打开执行命令窗体 1.EF Code First创建数据库 PM> Install-Package EntityFramework 2.EF Code First数据库迁移 2.1.生成数据库 ...

  3. JavaJDBC【三、增删改查】

    获取数据库连接后,可进行增删改查操作 语句生成: Statement s = con.createStatement(sql); //生成语句 PreparedStatement ps = (Prep ...

  4. 开源you-get项目爬虫,以及基于python+selenium的自动测试利器

    写在前面 爬虫和自动测试,对于python来说是最合适不过也是最擅长的. 开源的项目也很多,例如you-get项目https://github.com/soimort/you-get.盗链和爬虫神器. ...

  5. 1、Bash Shell

    一.什么是Bash shell BashShell是一个命令解释器,它在操作系统的最外层,负责用户程序与内核进行交互操作的一种接口,将用户输入的命令翻译给操作系统,并将处理后的结果输出至屏幕. 当我们 ...

  6. SQL语句复习【专题九】

    SQL语句复习[专题九] 视图:View视图的概念:视图是从若干基本表或其他视图构造出来的表.在创建一个视图时,只是存放的视图的定义,也即是动态检索数据的查询语句,而并不存放视图对应的数据在用户使用视 ...

  7. markdown实现点击链接下载文件

    今天用Markdown工具,需要实现一个点连接下载文件的功能,看起来很多简单我也没多想就直接写了,并且单个页面测试的时候也挺正常,就发布了,但是发布后使用的时候发现问题了,浏览器中直接点击链接没反应, ...

  8. YII2-按需加载并管理静态资源(CSS,JS)

    参考博客: https://segmentfault.com/a/1190000003742452#articleHeader5

  9. JMeter 控件整理

    一个线程组里多个请求的情况下,添加用户参数.如添加random函数,若不勾选“每次迭代更新一次”则每发送一个请求调用一次random函数,勾选上之后,整个线程组运行过程只调用一次random函数.

  10. 第三方库-正则re

    Python正则表达式里的单行re.S和多行re.M模式 Python 的re模块内置函数几乎都有一个flags参数,以位运算的方式将多个标志位相加.其中有两个模式:单行(re.DOTALL, 或者r ...