欢迎来到天天文库
浏览记录
ID:17546948
大小:22.96 KB
页数:12页
时间:2018-09-03
《【po】采购到入库所经历的表》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、采购到入库所经历的表--0.请购单--创建请购单方式有--a.从外挂系统导入请购的接口表PO_REQUISITIONS_INTERFACE_ALL,并允许请求(名称:导入申请)select*frompo_requisitions_interface_allwhereinterface_source_code='TESTKHJ';--b.在系统中创建请购单(路径:PO/申请/申请)--请购单头信息selectprh.requisition_header_id,prh.authorization_status--未审批时为INCO
2、MPLETE frompo_requisition_headers_allprhwhereprh.segment1='600000'andprh.type_lookup_code='PURCHASE';--请购单行信息selectprl.requisition_line_id,prl.* frompo_requisition_lines_allprl whereprl.requisition_header_idin (selectprh.requisition_header_id frompo_req
3、uisition_headers_allprh whereprh.segment1='600000' andprh.type_lookup_code='PURCHASE');--请购单分配行select* frompo_req_distributions_allprda whereprda.requisition_line_idin (selectprl.requisition_line_id frompo_requisition_lines_allprl
4、 whereprl.requisition_header_idin (selectprh.requisition_header_id frompo_requisition_headers_allprh whereprh.segment1='600000' andprh.type_lookup_code='PURCHASE'));--1.采购订单的创建(路径:PO/采购订单/采购订单)--po_he
5、aders_all采购订单头表:selectpha.po_header_id,pha.segment1,pha.agent_id, pha.type_lookup_code,--标准采购单为STANDARD,--一揽子协议为BLANKET decode(pha.approved_flag,'R',pha.approved_flag, nvl(pha.authorization_status,'INCOMPLETE')),--审批,未审批时为INCOMPLETE,审批后为APPROVED
6、 po_headers_sv3.get_po_status(pha.po_header_id)--刚下完采购单,未审批时,po状态为未完成,审批后,状态为批准 frompo_headers_allpha wheresegment1=300446;--采购单号码--po_lines_all采购订单行表selectpla.po_line_id,pla.line_type_idfrompo_lines_allpla wherepo_header_id=(selectpo_header_idfrompo_headers_allw
7、heresegment1=300446);取已审批销售订单头和行的数据:涉及表:Po_headers_all,Po_lines_all逻辑如下:限制头表的如下属性,并通过Po_header_id把头、行表关联起来APPROVED_FLAG=Y--po_line_locations_all采购订单行的发送表(路径:PO/采购订单/采购订单/发运(T))--po_line_id=po_lines_all.po_line_id--当点击发运按钮时,系统会自动创建第一行发运行,可根据需要手工创建新的发运行--(例如同一采购订单行的物料
8、可能会发往不同的地点,此表记录物料发送情况)--下面为取订单与其发运的关系(可能存在多次发运)select*frompo_line_locations_allplla whereplla.po_line_id= (selectpla.po_line_id
此文档下载收益归作者所有