可以通过BAPI BAPI_PO_GETRELINFO 直接读取采购订单PO的审批信息数据,包括审批策略,审批组,审批状态,审批代码,发布标识以及对应的描述,还有审批代码对应的前序审批。
<img class="alignnone size-full wp-image-6220" src="http://www.baidusap.com/wp-content/uploads/2019-05-15_13-48-08.jpg" alt="" width="646" height="248" />举例说明:
Tcode me29n查看一个采购订单PO审批的相关数据,如下:
从中可以看出,这个采购订单有两级审批,审批代码分别是01,10,其中一级01已经批准,10的前序审批是01.
<img class="alignnone size-medium wp-image-6223" src="http://www.baidusap.com/wp-content/uploads/2019-05-15_13-56-23-740x283.jpg" alt="" width="740" height="283" srcset="http://www.baidusap.com/wp-content/uploads/2019-05-15_13-56-23-740x283.jpg 740w, http://www.baidusap.com/wp-content/uploads/2019-05-15_13-56-23.jpg 745w" sizes="(max-width: 740px) 100vw, 740px" />SE37,测试bapi BAPI_PO_GETRELINFO,只输入订单号的情况下,运行结果如下,
<img class="alignnone size-medium wp-image-6224" src="http://www.baidusap.com/wp-content/uploads/2019-05-15_14-01-43-740x507.jpg" alt="" width="740" height="507" srcset="http://www.baidusap.com/wp-content/uploads/2019-05-15_14-01-43-740x507.jpg 740w, http://www.baidusap.com/wp-content/uploads/2019-05-15_14-01-43.jpg 767w" sizes="(max-width: 740px) 100vw, 740px" />其中导出参数:
GENERAL_RELEASE_INFO:保存审批组,审批策略,发布标识等基本审批信息
<img class="alignnone size-medium wp-image-6225" src="http://www.baidusap.com/wp-content/uploads/2019-05-15_14-16-35-740x134.jpg" alt="" width="740" height="134" srcset="http://www.baidusap.com/wp-content/uploads/2019-05-15_14-16-35-740x134.jpg 740w, http://www.baidusap.com/wp-content/uploads/2019-05-15_14-16-35-768x139.jpg 768w, http://www.baidusap.com/wp-content/uploads/2019-05-15_14-16-35.jpg 950w" sizes="(max-width: 740px) 100vw, 740px" />RELEASE_PREREQUISITES:保存前序审批步骤,只有输入参数 PO_REL_CODE填入审批代码,此导出参数才会有内容。
RELEASE_ALREADY_POSTED:保存当前的已经批准的审批代码,此例子中,01已经批准
<img class="alignnone size-full wp-image-6226" src="http://www.baidusap.com/wp-content/uploads/2019-05-15_14-19-50.jpg" alt="" width="479" height="187" />表RELEASE_FINAL中保存全部的审批代码,也就是俗称的审批层级,本例子中分两级审批,一级是01, 二级是10
<img class="alignnone size-full wp-image-6227" src="http://www.baidusap.com/wp-content/uploads/2019-05-15_14-21-03.jpg" alt="" width="623" height="225" />以上。