1,问题描述
调用bapi BAPI_INCOMINGINVOICE_PARK创建预制发票时,报了个错误"采购凭证的帐户设置00不存在",
消息类ME,消息编号715.
<img class="alignnone size-full wp-image-6609" src="//pic.ikafan.com/imgp/L3Byb3h5L2h0dHAvd3d3LmJhaWR1c2FwLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxOS0wNi0yNV8xMS0wMC0zNS0xLmpwZw==.jpg" width="727" height="364" />
<img class="alignnone size-full wp-image-6611" src="//pic.ikafan.com/imgp/L3Byb3h5L2h0dHAvd3d3LmJhaWR1c2FwLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxOS0wNi0yNV8xNy0yMi0wNS5qcGc=.jpg" width="493" height="140" />
2,问题解决
查看一下bapi的输入参数发现,账户设置对应的是BAPI_INCINV_CREATE_ACCOUNT-SERIAL_NO
<img class="alignnone size-medium wp-image-6610" src="//pic.ikafan.com/imgp/L3Byb3h5L2h0dHAvd3d3LmJhaWR1c2FwLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxOS0wNi0yNV8xNy0xOC01Mi03NDB4MzU1LmpwZw==.jpg" width="740" height="355" srcset="http://www.baidusap.com/wp-content/uploads/2019-06-25_17-18-52-740x355.jpg 740w, http://www.baidusap.com/wp-content/uploads/2019-06-25_17-18-52-768x368.jpg 768w, http://www.baidusap.com/wp-content/uploads/2019-06-25_17-18-52.jpg 774w" sizes="(max-width: 740px) 100vw, 740px" />
debug时确实也发现了serial_no的赋值有错误,原本是计划科目分配(XUNPL = ‘‘,serial_no = ‘01‘),变成了非计划科目分配(XUNPL = ‘X‘,serial_no = ‘00‘),将xunpl和serial_no这两个字段值修正过来,bapi BAPI_INCOMINGINVOICE_PARK就不报错误了。
<img class="alignnone size-full wp-image-6612" src="//pic.ikafan.com/imgp/L3Byb3h5L2h0dHAvd3d3LmJhaWR1c2FwLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxOS0wNi0yNV8xNy0yMy0yOC5qcGc=.jpg" width="708" height="387" />
以上。
原文地址:https://www.cnblogs.com/datie/p/11428324.html