首页 > 其他分享 >EBS:从订单明细生成价目表DATALOAD格式

EBS:从订单明细生成价目表DATALOAD格式

时间:2023-01-04 16:34:17浏览次数:43  
标签:-- OOL 价目表 OOH ID DATALOAD MSI EBS ORDER

-- 用订单明细行生成价目表,DATALOAD格式,以便于导入价目表明细行。
SELECT --DISTINCT
       OOH.ORDER_NUMBER,
      -- OOL.LINE_NUMBER,
       '项目' AS "产品上下文",
       '\{TAB}' AS "跳格1",
       '项目编号' AS "产品属性", 
       '\{TAB}' AS "跳格2",
       MSI.SEGMENT1 AS ITEM_CODE,
       '\{TAB}' AS "跳格3",
       --MSI.DESCRIPTION AS ITEM_DESCRIPTION,
       --OOL.ORDER_QUANTITY_UOM,  
       '\{TAB 5}' AS "料号后跳5格",     
       MAX(OOL.UNIT_SELLING_PRICE) AS UNIT_SELLING_PRICE,   
       '\{TAB}' AS "离开单价",
       '*IR' AS "新增一行"  
      -- '*DN' AS "向下"
      -- ,OOL.*  
 FROM ONT.OE_ORDER_HEADERS_ALL OOH,
       ONT.OE_ORDER_LINES_ALL   OOL,
       INV.MTL_SYSTEM_ITEMS_B   MSI
      -- Hz_Cust_Accounts HCA -- 客户账户 
 WHERE OOH.HEADER_ID = OOL.HEADER_ID
   AND OOH.ORG_ID = 281
  -- AND OOH.SOLD_TO_ORG_ID = 811726 
 -- and OOH.ORDER_CATEGORY_CODE = 'ORDER'
   AND OOL.INVENTORY_ITEM_ID = MSI.INVENTORY_ITEM_ID
   AND OOL.SHIP_FROM_ORG_ID = MSI.ORGANIZATION_ID
   and NVL(ooL.cancelled_flag,'N') ='N'
   AND OOH.ORDER_NUMBER LIKE '1001389343'  -- 订单号
   AND MSI.SEGMENT1  NOT IN ('A1F60HVDV','JDOORLX','BESPWVHVDV')
 --ORDER BY OOL.LINE_NUMBER 
  GROUP BY OOH.ORDER_NUMBER,
      -- OOL.LINE_NUMBER,
    --   '项目' AS "产品上下文",
    --  '\{TAB}' AS "跳格1",
     --  '项目编号' AS "产品属性", 
     --  '\{TAB}' AS "跳格2",
       MSI.SEGMENT1-- AS ITEM_CODE

  

标签:--,OOL,价目表,OOH,ID,DATALOAD,MSI,EBS,ORDER
From: https://www.cnblogs.com/samrv/p/17025272.html

相关文章

  • 如何使用Burp Suite测试WebSocket
    BurpSuite具有测试WebSocket的能力,可以实时拦截和修改WebSocket消息。遗憾的是,Burp缺乏针对WebSockets的Repeater、Scanner或Intruder功能。但在新版BurpSuite中,增加了针对......
  • 如何使用Fiddler测试WebSocket
    一Fiddler本身可以捕获WebSocket流量,但是无法操纵WebSocket流量。1、启动fiddler,在主session列表中找到带ws图标的WebSocket请求。2、双击ws请求,Fiddler界面右边就会出......
  • EBS: 价目表权限分配查询与设置
    --价目表权限分配SELECTFR.RESPONSIBILITY_ID,--FR.APPLICATION_ID,FR.RESPONSIBILITY_NAMEAS"责任名",FR.RESPONSIBILITY_KEYAS"责......
  • python3 The owner of this website (future.com) has banned your access based on y
     打开网站出现“Theownerofthiswebsite(future.com)hasbannedyouraccessbasedonyourbrowser'ssignature(784)“ 在翻译一下:本网站(future.com)的所有者已......
  • 011websocket代理
    一、安装haproxysudoadd-apt-repositoryppa:vbernat/haproxy-2.6-ysudoaptinstallhaproxy-ysudosystemctlstatushaproxysudosystemctlenablehaproxycd......
  • Uncaught (in promise) Neo4jError: WebSocket connection failure. Due to security
    问题使用​​vue-neo4j​​​连接​​neo4j​​数据库时,控制栏出现以下问题:neo4j版本为4.4.5​​Uncaught(inpromise)Neo4jError:WebSocketconnectionfailure.Dueto......
  • java实现websocket的五种方式
    1.前言2.第一种使用Java原生代码实现websocket2.1.首先在项目中引入依赖2.2.创建WebsocketServer类2.3.启动SocketServer2.4.测试websocketserver3.使......
  • springboot @WebServlet为什么能生效
    示意图简述1. springboot启动类通过注解@ServletComponentScan,注入了指定的BeanFactoryPostProcessor,用来扫描@WebServlet等指定的类,将扫描到的LoginServlet类作......
  • WebSphere集群部署的问题
    集群部署后访问的时候无法访问,我的url是​​http://192.168.238.129:9081/lo/index.jsp​​你是不是新搭建的环境,在虚拟主机中没有添加9081这个端口?你在  应用程序服务......
  • Websphere6.1---SRVE0255E
    昨日郁闷了半天:在was中的建了第二个集群,把程序部署进去后,IE打入​​http://xxx.xxx.xxx.xxx:9081/xxx​​可是没反应。但把程序部署到第一个集群却是没得问题,这个无奈(⊙o......