用bapi BAPI_INCOMINGINVOICE_CREATE1创建发票校验时报错
原因:税率不可多行显示,相同税码显示于同一行

An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught in
procedure "MRM_INVOICE_TAXES_SAVE" "(FUNCTION)", nor was it propagated by RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
If you use an ABAP/4 Open SQL array insert to insert a record in
the database and that record already exists with the same key,
this results in a termination.

跟踪代码发现错误点: insert RBTX FROM TABLE T_RBTX.
分析数据插入失败,应该是数据主键重复,检查税率赋值,将append 调整为collect

loop xx....
*税
    lt_taxdata-tax_code = gs_alv-mwskz."税码
    lt_taxdata-tax_amount = gs_alv-invoice_tax_amount."税额
 *    append lt_taxdata."
     COLLECT lt_taxdata."同一种税码不可分两行
    CLEAR lt_taxdata.
...
endloop.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31405259/viewspace-2155262/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/31405259/viewspace-2155262/

MIRO BAPI_INCOMINGINVOICE_CREATE1 报错 MRM_INVOICE_TAXES_SAVE相关推荐

  1. 继承WebMvcConfigurer 和 WebMvcConfigurerAdapter类依然CORS报错? springboot 两种方式稳定解决跨域问题

    继承WebMvcConfigurer 和 WebMvcConfigurerAdapter类依然CORS报错???springboot 两种方式稳定解决跨域问题! 之前我写了一篇文章,来解决CORS报错 ...

  2. Access to XMLHttpRequest at file from origin ‘null‘ has been blocked by CORS policy谷歌浏览器本地打开项目js文件报错

    Access to XMLHttpRequest at 'file:///xxxxx/PQ.BaseInfo.proto' from origin 'null' has been blocked by ...

  3. go build 编译报错 missing go.sum entry for module providing package

    go build 编译报错 missing go.sum entry for module providing package 解决方法 // 移除未使用的依赖 go mod tidy 再次编译,就可 ...

  4. docker报错:driver failed programming external connectivity on endpoint, iptables:No chain by that name

    docker 报错: Error response from daemon: Cannot restart container hello: driver failed programming ext ...

  5. mybatis查询报错:com.mysql.cj.exceptions.DataConversionException: Cannot determine value type from string

    mybatis查询报错: com.mysql.cj.exceptions.DataConversionException: Cannot determine value type from strin ...

  6. mongo报错:not authorized on bb to execute command { create: \“xxx\“...}

    mongo报错: {"ok" : 0,"errmsg" : "not authorized on bb to execute command { cr ...

  7. restTemplate http请求报错:no suitable HttpMessageConverter found for response type and content type

    报错信息: org.springframework.web.client.UnknownContentTypeException: Could not extract response: no sui ...

  8. 解决gitte提交报错 error: GE007: Your push would publish a private email address.

    错误情况: gitte提交报错,无法提交上去,报错如下: remote: Powered by GITEE.COM [GNK-6.0] remote: error: GE007: Your push ...

  9. JS Uncaught SyntaxError:Unexpected identifier异常报错原因及其解决方法

    最近在写ajax的时候,调用js方法,遇到了Uncaught SyntaxError:Unexpected identifier异常报错,开始搞不清原因,很苦恼. 以为是js方法参数个数和长度的问题, ...

最新文章

  1. Windows下通过Python 3.x的ctypes调用C接口
  2. windows备份与还原和两个主机的相互通信
  3. poj2187(最远点的距离的平方)
  4. CodeForces - 1364C Ehab and Prefix MEX(贪心+构造)
  5. K8S精华问答 | Kubernetes集群常见问题
  6. containsall_Java Vector containsAll()方法与示例
  7. vector 函数都有哪些??
  8. Java 编程下的并发线程之间的同步代码块死锁
  9. !DOCTYPE html
  10. Linux文件系统变成只读的解决方法
  11. cisco 的网络地址转换技术(NAT)
  12. MySQL(9)-----多表创建及描述表关系(需求)
  13. iis aspnet_iisreg.exe 0x8007000B
  14. 计算机启动相机代码,如何在win7系统中启动相机
  15. 有他人的梦想,才会让人觉得更有意义!
  16. Tita绩效宝:为你的绩效评估提供100条评语案例
  17. 迅搜安装流程(基于官方文档)
  18. 【Java 数据结构 算法】宁可累死自己, 也要卷死别人 12 红黑树
  19. 【论文】——Once-for-All: Train One Network and Specialize it for Efficient Deployment阅读
  20. Windows Style Builder颜色模块的ColorizationColor值问题

热门文章

  1. 阿里研究院发布《2020中国区块链发展报告》,毛球科技助力数字经济加速发展
  2. wdcp-apache配置错误导致进程淤积进而内存吃紧
  3. mac 终端上运行NPM INSTALL时出现问题:npm error!cb() 从未调用过!解决了
  4. 解决iphonex底部导航问题
  5. X5的UI部分和传统Web页面开发的差异
  6. cpu上干硅脂怎么清理_安装CPU或者清理灰尘时CPU导热硅脂的使用方法及注意事项...
  7. 普氏分析在生信中的应用
  8. 二维动画后期制作的要点
  9. ​Linux最强总结!
  10. 使用gulp为项目中的文件自动添加版本号之实践思路