`
xitong
  • 浏览: 6177436 次
文章分类
社区版块
存档分类
最新评论

The script which used to Check GL-PO-AP-INV Period Status

 
阅读更多


--需要输入set_of_books_id,set_of_books_id可以从GL_SETS_OF_BOOKS查,Demo环境中的Vision Operations (USA)的set_of_books_id是1

  SELECT   a.period_name,
           a.period_num,
           a.gl_status,
           b.po_status,
           c.ap_status,
           d.inv_status
    FROM   (SELECT   period_name,
                     period_num,
                     DECODE (closing_status,
                             'O', 'Open',
                             'C', 'Closed',
                             'F', 'Future',
                             'N', 'Never',
                             closing_status)
                        gl_status
              FROM   gl_period_statuses
             WHERE       application_id = 101      --GL
                     AND start_date >= '01-JAN-08'
                     AND end_date < '01-JAN-09'
                     AND set_of_books_id = &&set_of_books_id) a,
           (SELECT   period_name,
                     DECODE (closing_status,
                             'O', 'Open',
                             'C', 'Closed',
                             'F', 'Future',
                             'N', 'Never',
                             closing_status)
                        po_status
              FROM   gl_period_statuses
             WHERE       application_id = 201          --Purchasing
                     AND start_date >= '01-JAN-08'
                     AND end_date < '01-JAN-09'
                     AND set_of_books_id = &&set_of_books_id) b,
           (SELECT   period_name,
                     DECODE (closing_status,
                             'O', 'Open',
                             'C', 'Closed',
                             'F', 'Future',
                             'N', 'Never',
                             closing_status)
                        ap_status
              FROM   gl_period_statuses
             WHERE       application_id = 200     --AP
                     AND start_date >= '01-JAN-08'
                     AND end_date < '01-JAN-09'
                     AND set_of_books_id = &&set_of_books_id) c,
           (SELECT   period_name,
                     DECODE (closing_status,
                             'O', 'Open',
                             'C', 'Closed',
                             'F', 'Future',
                             'N', 'Never',
                             closing_status)
                        inv_status
              FROM   gl_period_statuses
             WHERE       application_id = 401    --Inventory
                     AND start_date >= '01-JAN-08'
                     AND end_date < '01-JAN-09'
                     AND set_of_books_id = &&set_of_books_id) d                     
   WHERE   a.period_name = b.period_name AND a.period_name = c.period_name
ORDER BY   a.period_num;


--SELECT * FROM fnd_application WHERE application_id IN (101,201,200,401)


分享到:
评论

相关推荐

    a tool which is used to design the regular expression

    a tool which is used to design the regular expression a tool which is used to design the regular expression a tool which is used to design the regular expression a tool which is used to design the ...

    AIR-AP1850-K9-ME-8-7-102-0

    The AP acting as the WLC is referred to as the master AP while the other APs in the Cisco Mobility Express network, which are managed by this master AP, are referred to as subordinate APs. In ...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    Added TFlexFileFormat.StreamSupport property (default True), which difines, is it necessary to open file stream or give the file name only. - FIX: If the TCustomProp.Assign method calls when the ...

    mod_wsgi-win32-ap22py31-3.3.so.7z

    The aim of mod_wsgi is to implement a simple to use Apache module which can host any Python application which supports the Python WSGI interface. The module would be suitable for use in hosting high ...

    introduction-to-the-beaglebone-black-device-tree.pdf

    An example of this would be to describe how the UART interfaces with the system, which pins, how they should be muxed, the device to enable, and which driver to use. The original BeagleBone didn't ...

    Git-2.21.0-64-bit.zip

    committed, the command line prompt script failed to notice the current status, which has been improved. * Many GIT_TEST_* environment variables control various aspects of how our tests are run, ...

    Introduction to Space-Time wireless Communications

    Wireless networks are under constant pressure to provide ever higher data rates to increasing numbers of users with greater reliability. Space-time processing technology, which uses multiple antennas ...

    BURNINTEST--硬件检测工具

    - Changed the mechanism to check for the required DirectX Direct3D as the previous method did not work on some system (some W2003 servers). - Enhanced the mechanism to report memory hardware errors ...

    HMM-based Script Identification for OCR

    We propose an approach that repurposes the same HMM-based system used for OCR to the task of script/language ID, by replacing character labels with script class labels. We apply it in a multi-pass ...

    uipath level 1 lesson 3参考答案.docx

    一下为部分题目: 2. The String.Format(“Input = {0} and Output = {1}”, “1”,”2”) expression returns which of ...6. Which activity can be used to modify the value of an existing cell in a DataTable?

    epanet 2.012

    This software application is used to perform extended-period simulation of the hydraulic and water quality behavior within pressurized pipe networks, which consist of pipes, nodes (junctions), pumps,...

    A-Practical-Guide-to-LATEX-Tips.pdf

    but to give a quick reference to all the tips and tricks that can be used if you are encountering a (difficult) problem, or simply facing a question which you cannot find the answer to. I consider ...

    The Research of Distributed Power Quality on-line.pdf )

    used in power quality on-line monitoring system to store,display,count and analyze the collected data of voltage and current from each terminal, and communicates with supervisory computer through GPRS...

    cvpr18-3D Human Pose Estimation in the Wild by Adversarial Learning

    to enforce the pose estimator to generate anthropometri- cally valid poses even with images in the wild. We also observe that a carefully designed information source for the discriminator is essential...

    Check Disk and Format Disk

    The component may be used to format disks which are not currently in-use, and to verify the file system on any drives, but only fix it on drives that are not in-use. It may be useful for preparing ...

    SSD7 选择题。Multiple-Choice

    Which of the following SQL statements can be used to add a row to a table? (a) CREATE (b) INSERT (c) APPEND (d) ADD Correct answer is (b) Your score on this question is: 10.00 ...

    introduction-to-medical-imaging-physics-engineerin.pdf

    addition to solved example problems, which enable students to master the theory as well as providing them with the tools needed to solve more difficult problems. The basic theory, instrumentation ...

    Senfore_DragDrop_v4.1

    Even if you have used previous versions of the Drag and Drop Component Suite it would be a good idea to have a quick look at the demos. The library has been completely rewritten and a lot of new ...

    WiMedia_MAC-PHY_Interface_1v2 R1.pdf

    The Data Interface, which is used to transfer data to and from the MAC, operates differently depending on the state of the PHY. The Control Interface is used by the MAC to control the operating state...

    2009 达内Unix学习笔记

    用法 id [-ap] [user] id 显示自己的。 id root 显示root的。 id -a root 显示用户所在组的所有组名(如root用户,是所有组的组员) df 查看文件系统,查看数据区 用法 df [-F FSType] [-abeghklntVvZ] [-o ...

Global site tag (gtag.js) - Google Analytics