摘要:
1.列出没有销售订单的内部采购订单---used to list all Internal Requisitions that do not have anassociated Internal Sales orderSelect RQH.SEGMENT1 REQ_NUM,RQL.LINE_NUM,RQL.REQUISITION_HEADER_ID ,RQL.REQUISITION_LINE_ID,RQL.ITEM_ID ,RQL.UNIT_MEAS_LOOKUP_CODE ,RQL.UNIT_PRICE ,RQL.QUANTITY ,RQL.QUANTITY_CANCELLED,RQL.QU 阅读全文
摘要:
1.查询一揽子PO:这里要注意的是:不同的付款条件,币种,税率,都会可能产生一张新的一揽子PO协议select pla.PO_LINE_ID, pla.PO_HEADER_ID, pla.ITEM_ID, msib.SEGMENT1 ITEM_CODE,pla.UNIT_PRICE, pla.ITEM_DESCRIPTION, pla.START_DATE, pla.EXPIRATION_DATE, pla.CANCEL_FLAG, pla.CLOSED_CODE, pha.PO_HEADER_ID, pha.VENDOR_ID, pha.VENDOR_SITE_ID, pha.TERMS_I 阅读全文
摘要:
PO审批的动作从数据库中去看有:OPENNO ACTIONREJECTFORWARDAPPROVESUBMITCLOSERETURNCANCELIMPORTFINALLY CLOSE通过查看po_action_history表就会发现很有意思的事情了假设基本的PO审批架构为跟单员->采购员1审核->采购员2审核->采购总监审核那Sequence_Num Action_Code两列的数据就可以很清晰查看到整个审批流程了而表中的object_id实际上跟po_header_all的po_header_id 及po_release_all 中的po_release_id也是有关联的 阅读全文
摘要:
1.创建POPO_HEADERS_ALLselect po_header_id from po_headers_all where segment1 =;select * from po_headers_all where po_header_id =;po_lines_allselect * from po_lines_all where po_header_id =;po_line_locations_allselect * from po_line_locations_all where po_header_id =;po_distributions_allselect * from p 阅读全文