分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

Relation between Requisition and PO tables,Here is link:

PO_DISTRIBUTIONS_ALL =>PO_HEADER_ID, REQ_DISTRIBUTION_ID
PO_HEADERS_ALL=>PO_HEADER_ID, SEGMENT1
PO_REQ_DISTRIBUTIONS_ALL =>DISTRIBUTION_ID, REQUISITION_LINE_ID
PO_REQUISITION_LINES_ALL =>REQUISITION_LINE_ID
PO_REQUISITION_HEADERS_ALL =>REQUISITION_HEADER_ID, REQUISITION_LINE_ID, SEGMENT1

What you have to make a join on PO_DISTRIBUTIONS_ALL (REQ_DISTRIBUTION_ID) and PO_REQ_DISTRIBUTIONS_ALL (DISTRIBUTION_ID) to see if there is a PO for the req.

1. You need to list out all Internal Requisitions that do not have an associated Internal Sales order.

---used to list all Internal Requisitions that do not have an  associated 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.QUANTITY_DELIVERED ,RQL.CANCEL_FLAG ,RQL.SOURCE_TYPE_CODE ,RQL.SOURCE_ORGANIZATION_ID ,RQL.DESTINATION_ORGANIZATION_ID,RQH.TRANSFERRED_TO_OE_FLAGfromPO_REQUISITION_LINES_ALL RQL, PO_REQUISITION_HEADERS_ALL RQHwhereRQL.REQUISITION_HEADER_ID = RQH.REQUISITION_HEADER_IDand RQL.SOURCE_TYPE_CODE = 'INVENTORY'and RQL.SOURCE_ORGANIZATION_ID is not nulland not exists (select 'existing internal order'from OE_ORDER_LINES_ALL LINwhere LIN.SOURCE_DOCUMENT_LINE_ID = RQL.REQUISITION_LINE_IDand LIN.SOURCE_DOCUMENT_TYPE_ID = 10)ORDER BY RQH.REQUISITION_HEADER_ID, RQL.LINE_NUM;

2. You want to display what requisition and PO are linked(Relation with Requisition and PO )

-----Relation with Requistion and POselect r.segment1 "Req Num",       p.segment1 "PO Num"from po_headers_all p, po_distributions_all d,po_req_distributions_all rd, po_requisition_lines_all rl,po_requisition_headers_all r where p.po_header_id = d.po_header_id and d.req_distribution_id = rd.distribution_id and rd.requisition_line_id = rl.requisition_line_id and rl.requisition_header_id = r.requisition_header_id 

3. You need to list out all cancel Requisitions

-----list My cancel Requistionselect prh.REQUISITION_HEADER_ID,      prh.PREPARER_ID ,      prh.SEGMENT1 "REQ NUM",      trunc(prh.CREATION_DATE),      prh.DESCRIPTION,      prh.NOTE_TO_AUTHORIZERfrom apps.Po_Requisition_headers_all prh,     apps.po_action_history pah where Action_code='CANCEL' and pah.object_type_code='REQUISITION' and pah.object_id=prh.REQUISITION_HEADER_ID 

4. You need to list those PR which havn't auto created to PO.(Purchase Requisition without a Purchase Order)

-----list all Purchase Requisition without a Purchase Order that means  a PR has not been autocreated to PO.  select   prh.segment1 "PR NUM",   trunc(prh.creation_date) "CREATED ON",   trunc(prl.creation_date) "Line Creation Date" ,  prl.line_num "Seq #",   msi.segment1 "Item Num",   prl.item_description "Description",   prl.quantity "Qty",   trunc(prl.need_by_date) "Required By",   ppf1.full_name "REQUESTOR",   ppf2.agent_name "BUYER"   from   po.po_requisition_headers_all prh,   po.po_requisition_lines_all prl,   apps.per_people_f ppf1,   (select distinct agent_id,agent_name from apps.po_agents_v ) ppf2,   po.po_req_distributions_all prd,   inv.mtl_system_items_b msi,   po.po_line_locations_all pll,   po.po_lines_all pl,   po.po_headers_all ph   WHERE   prh.requisition_header_id = prl.requisition_header_id   and prl.requisition_line_id = prd.requisition_line_id   and ppf1.person_id = prh.preparer_id   and prh.creation_date between ppf1.effective_start_date and ppf1.effective_end_date   and ppf2.agent_id(+) = msi.buyer_id   and msi.inventory_item_id = prl.item_id   and msi.organization_id = prl.destination_organization_id   and pll.line_location_id(+) = prl.line_location_id   and pll.po_header_id = ph.po_header_id(+)   AND PLL.PO_LINE_ID = PL.PO_LINE_ID(+)   AND PRH.AUTHORIZATION_STATUS = 'APPROVED'   AND PLL.LINE_LOCATION_ID IS NULL   AND PRL.CLOSED_CODE IS NULL   AND NVL(PRL.CANCEL_FLAG,'N') <> 'Y'  ORDER BY 1,2

5. You need to list all information form PR to PO ...as a requisition moved from different stages till converting into PR. This query capture all details related to that PR to PO.

----- List and all data entry from PR till POselect distinct u.description "Requestor", porh.segment1 as "Req Number", trunc(porh.Creation_Date) "Created On", pord.LAST_UPDATED_BY, porh.Authorization_Status "Status", porh.Description "Description", poh.segment1 "PO Number", trunc(poh.Creation_date) "PO Creation D

Purchasing Useful Scripts相关推荐

  1. 初始化Mysql系统报错,begin failesd--conpilation aborted at scripts........

    在编译安装Mysql之后进行初始化,但是出现了报错 初始化mysql scripts/mysql_install_db --basedir=/usr/local/mysql --datadir=/us ...

  2. Composer scripts脚本:事件列表与脚本触发

    脚本 什么是脚本? 一个脚本,在 Composer 中,可以是一个 PHP 回调(定义为静态方法)或任何命令行可执行的命令.脚本对于在 Composer 运行过程中,执行一个资源包的自定义代码或包专用 ...

  3. npm scripts的生命周期管理

    2019独角兽企业重金招聘Python工程师标准>>> 我们平时阅读一些开源项目,可能会发现有些项目的package.json里的scripts区域定义的脚本很复杂,令人眼花缭乱. ...

  4. SAP Variant Conditions in Purchasing using reference characteristics【中英文双语版】

    SAP Variant Conditions in Purchasing using reference characteristics  SAP变式物料的采购如何玩转?看看这篇你就明白了! I ha ...

  5. SAP MM MM17里不能修改物料主数据'Purchasing Value Key'字段值?

    SAP MM MM17里不能修改物料主数据'Purchasing Value Key'字段值? 记得在D项目上线之前数据导入系统之后,业务提出一些物料采购视图里的'Purchasing value k ...

  6. SAP MM Purchasing Report中Selection Parameter WE101 WE103

    SAP MM Purchasing Report中Selection Parameter WE101 & WE103 在采购相关的报表比如ME2L/ME2M/ME2N的查询界面,都有一个参数叫 ...

  7. XCode 学习技巧之 User Scripts

    XCode 学习技巧之 User Scripts是本文要介绍的内容,XCode作为一款强大的IDE,当然也支持脚本功能.通过添加自己的脚本我们可以很方便的完成我们的工作. 在XCode中点击 Edit ...

  8. js获取已知scripts中是否存在某变量_JS全局变量是如何工作的?

    原文: https://2ality.com/2019/07/global-scope.html 翻译: 刘小夕 在这篇博文中,我们将研究 JavaScript 的全局变量是如何工作的.如: scri ...

  9. Linux的shell scripts

    一.什么是脚本(scripts) 安装一定逻辑关系记录的命令文件,在此文件有可执行权限的情况下可以用文件名称发起脚本内记录命令的执行,shell脚本是一种解释性语言,文件内记录的动作需要解释器shel ...

最新文章

  1. VC6迁移到VS2008几个问题——良好的代码,从我做起,从现在开始。
  2. MPB:南农金巍等-​​​瘤胃甲烷菌的分离培养与保存
  3. Jeff Dean:一年开源12款新工具,谷歌负责任AI原则落地生根
  4. Java如何获取系统cpu、内存、硬盘信息
  5. 数据中心未来将向“四高”演进
  6. Sublime Text 4.0 4102 安装插件的问题
  7. 成功通航:用宜搭提升数字化管理效能,确保每次飞行任务安全执行
  8. IoT安全系列-如何发现攻击面并进行测试(物联网安全)
  9. 笨办法学 Python · 续 练习 1:流程
  10. 初学者的React全家桶完整实例
  11. 拓端tecdat|R语言实现LDA主题模型分析网购数据
  12. 豆瓣已玩烂,来爬点有逼格的 ——IMDB 电影提升你的品位
  13. java tracert_tracert-命令小结
  14. 进化算法和深度强化学习的关系?
  15. 计算机网络学生主页链接,计算机网络中一组相关网页通过超链接连接,用于描述一组完整的信息,称为( )。A.网站B.主页C.服 - 扁豆云问答...
  16. Math三点共线判断
  17. PR软件——音频变音(机器音)
  18. Could not find a package configuration file provided by “std_msg“ with any of the following names:
  19. 学习Ext第一天(Ext 简介)
  20. 什么是 Python Launcher?

热门文章

  1. (SCI论文写作)使用Visio导出图片时,边角有黑色框线和大块留白的解决办法(PDF,jpg,png等多格式通用)
  2. 【IEEE 2021大奖出炉】谷歌AI掌门人Jeff Dean获冯诺依曼奖
  3. 调用高德地图API将地名转换成经纬度
  4. 在安装oracle10.2.0.3后,在配置ODBC时报错“SQORAS32.DLL错误
  5. 世界杯,来一起“唠嗑”呀!
  6. ZED Connection -> CAMERA DETECTION ISSUE
  7. 大数据分析人工智能中机器学习算法有哪些
  8. [读书笔记]《我是一只IT小小鸟》
  9. 央行昨天承认增发了43万亿人民币
  10. 1600页!卷S人的 Java《八股文》PDF手册