SO\PR回写的数据如下

select * from V_OUT_SHIPMENT_PLAN where date_change = '' and qtyopen>0

insert into OUT_ORDER_RES 
---JAVA FOR PR
select out_pr.PO_RELEASE_DATE,out_pr.supplier_id,out_pr.site_id,sap_eord.ekorg,out_pr.proc_group_id,out_pr.item,out_pr.qty,out_pr.qtyuom,substr(loc_id,-4) as LGORT
,'SAPRFC' as ERNAM,out_pr.due_datetime,out_pr.so_id,out_pr.so_lineid,out_pr.sobsl
from V_OUT_PR out_pr --其实是select * from tp_temp_pr
join sap_eord on out_pr.item = sap_eord.matnr and out_pr.supplier_id = sap_eord.lifnr and out_pr.site_id = sap_eord.werks
where out_pr.item in ('','') --JAVA FOR LABLE
SELECT LPAD(RECID,10,0) RECID,SUBSTR(ITEM,1,18) ITEM,SITE_ID,QTY,QTYUOM,NVL(ITEM_ID,0) ITEM_ID,CREATE_DATE,CREATE_TIME,'SAPRFC',LOC_ID FROM T_PRINT_LABEL --JAVA FOR LABLE1 打印标签
SELECT LPAD(RECID,10,0) RECID,ITEM,SITE_ID,CEIL(QTYALLOCATED)QTYALLOCATED,QTYUOM,CREATE_DATE,CREATE_TIME,'SAPRFC' FROM T_PRINT_LABEL_1 T1
上一篇:CentOS 安装Node.js


下一篇:.net IL 指令速查