With a UNION query my drill downs disappear

Hi all,
When a make a query in the query generator of SBO, all my drill downs or arrows vanish when I make a union of two or more queries. When I keep the queries separate, the drill downs are there. Has anybody experienced the same phenomenon? Has this been solved in a patch that I am unaware of or does it not happen in 2005 SP01? I am currently on 2005 SP00 patch 9.
Thanks in advance for the feedback.
André

Hi Alexey,
That certainly works. I have pasted my query below, and as you can see, its a little more complex than that. Would you be able to tell me where I can start on this?
Thanks,
André
SELECT DISTINCT
                      Serial.SuppSerial AS , GSHeader.DocNum AS PurchDocNum, GSHeader.DocDate AS PurchDocDate,
                      SerialInMove.CardCode AS SupplierCode, SerialInMove.CardName AS SupplierName, GoodsReceipt.ItemCode AS PurchItemCode,
                      GoodsReceipt.Dscription AS PurchDscription, GoodsReceipt.PriceBefDi AS PurchPriceBefDi, GoodsReceipt.DiscPrcnt AS PurchDiscPrcnt,
                      GoodsReceipt.Price AS PurchPrice, InvHeader.DocNum AS InvoiceDocNum, InvHeader.DocDate AS InvDocDate,
                      SerialOutMove.CardCode AS CusomerCode, SerialOutMove.CardName AS CustomerName, Invoice.ItemCode AS InvItemCode,
                      Invoice.Dscription AS InvDscription, Invoice.PriceBefDi AS InvPriceBefDi, Invoice.DiscPrcnt AS InvDiscPrcnt, Invoice.Price AS InvPrice,
                      ROUND(Invoice.Price / GoodsReceipt.Price, 2) AS ProfitMargin, SalesEmp.SlpName AS VTW
FROM         dbo.OSRI Serial INNER JOIN
                      dbo.SRI1 SerialInMove ON Serial.ItemCode = SerialInMove.ItemCode AND Serial.SysSerial = SerialInMove.SysSerial INNER JOIN
                      dbo.SRI1 SerialOutMove ON Serial.ItemCode = SerialOutMove.ItemCode AND Serial.SysSerial = SerialOutMove.SysSerial INNER JOIN
                      dbo.DLN1 Delivery ON SerialOutMove.BaseEntry = Delivery.DocEntry AND SerialOutMove.ItemCode = Delivery.ItemCode AND
                      SerialOutMove.BaseLinNum = Delivery.LineNum INNER JOIN
                      dbo.IGN1 GoodsReceipt ON SerialInMove.BaseEntry = GoodsReceipt.DocEntry AND SerialInMove.ItemCode = GoodsReceipt.ItemCode AND
                      SerialInMove.BaseLinNum = GoodsReceipt.LineNum INNER JOIN
                      dbo.OIGN GSHeader ON GoodsReceipt.DocEntry = GSHeader.DocEntry LEFT OUTER JOIN
                      dbo.OINV InvHeader INNER JOIN
                      dbo.INV1 Invoice ON InvHeader.DocEntry = Invoice.DocEntry ON Delivery.ItemCode = Invoice.ItemCode AND
                      Delivery.DocEntry = Invoice.BaseEntry FULL OUTER JOIN
                      dbo.OSLP SalesEmp ON Invoice.SlpCode = SalesEmp.SlpCode
WHERE     (SerialInMove.Direction = '0') AND (SerialOutMove.Direction = '1') AND (SerialInMove.BaseType = 59) AND (SerialOutMove.BaseType = 15) AND
                      (NOT (GoodsReceipt.ItemCode LIKE N'MET%')) AND (InvHeader.DocDate BETWEEN CONVERT(DATETIME, '2006-05-01 00:00:00', 102) AND
                      CONVERT(DATETIME, '2006-08-30 00:00:00', 102))
UNION
SELECT DISTINCT
                      SERIAL.SuppSerial AS , GRHeader.DocNum AS PurchDocNum, GRHeader.DocDate AS PurchDocDate,
                      SerialInMove.CardCode AS SupplierCode, SerialInMove.CardName AS SupplierName, GoodsReceipt.ItemCode AS PurchItemCode,
                      GoodsReceipt.Dscription AS PurchDscription, GoodsReceipt.PriceBefDi AS PurchPriceBefDi, GoodsReceipt.DiscPrcnt AS PurchDiscPrcnt,
                      GoodsReceipt.Price AS PurchPrice, InvHeader.DocNum AS InvoiceDocNum, InvHeader.DocDate AS InvDocDate,
                      SerialOutMove.CardCode AS CusomerCode, SerialOutMove.CardName AS CustomerName, Invoice.ItemCode AS InvItemCode,
                      Invoice.Dscription AS InvDscription, Invoice.PriceBefDi AS InvPriceBefDi, Invoice.DiscPrcnt AS InvDiscPrcnt, Invoice.Price AS InvPrice,
                      ROUND(Invoice.Price / GoodsReceipt.Price, 2) AS ProfitMargin, SalesEmp.SlpName AS VTW
FROM         dbo.OSRI SERIAL INNER JOIN
                      dbo.SRI1 SerialInMove ON SERIAL.ItemCode = SerialInMove.ItemCode AND SERIAL.SysSerial = SerialInMove.SysSerial INNER JOIN
                      dbo.SRI1 SerialOutMove ON SERIAL.ItemCode = SerialOutMove.ItemCode AND SERIAL.SysSerial = SerialOutMove.SysSerial INNER JOIN
                      dbo.IGN1 GoodsReceipt ON SerialInMove.BaseEntry = GoodsReceipt.DocEntry AND SerialInMove.ItemCode = GoodsReceipt.ItemCode AND
                      SerialInMove.BaseLinNum = GoodsReceipt.LineNum INNER JOIN
                      dbo.OIGN GRHeader ON GoodsReceipt.DocEntry = GRHeader.DocEntry FULL OUTER JOIN
                      dbo.OSLP SalesEmp INNER JOIN
                      dbo.OINV InvHeader INNER JOIN
                      dbo.INV1 Invoice ON InvHeader.DocEntry = Invoice.DocEntry ON SalesEmp.SlpCode = Invoice.SlpCode ON
                      SerialOutMove.BaseEntry = Invoice.DocEntry AND SerialOutMove.ItemCode = Invoice.ItemCode AND
                      SerialOutMove.BaseLinNum = Invoice.LineNum
WHERE     (SerialInMove.Direction = '0') AND (SerialOutMove.Direction = '1') AND (SerialInMove.BaseType = 59) AND (SerialOutMove.BaseType = 13) AND
                      (NOT (GoodsReceipt.ItemCode LIKE N'MET%')) AND (InvHeader.DocDate BETWEEN CONVERT(DATETIME, '2006-05-01 00:00:00', 102) AND
                      CONVERT(DATETIME, '2006-08-30 00:00:00', 102))
UNION
SELECT DISTINCT
                      Serial.SuppSerial AS , GRPOHeader.DocNum AS PurchDocNum, GRPOHeader.DocDate AS PurchDocDate,
                      SerialInMove.CardCode AS SupplierCode, SerialInMove.CardName AS SupplierName, GoodsReceiptPO.ItemCode AS PurchItemCode,
                      GoodsReceiptPO.Dscription AS PurchDscription, GoodsReceiptPO.PriceBefDi AS PurchPriceBefDi, GoodsReceiptPO.DiscPrcnt AS PurchDiscPrcnt,
                      GoodsReceiptPO.Price AS PurchPrice, InvHeader.DocNum AS InvoiceDocNum, InvHeader.DocDate AS InvDocDate,
                      SerialOutMove.CardCode AS CusomerCode, SerialOutMove.CardName AS CustomerName, Invoice.ItemCode AS InvItemCode,
                      Invoice.Dscription AS InvDscription, Invoice.PriceBefDi AS InvPriceBefDi, Invoice.DiscPrcnt AS InvDiscPrcnt, Invoice.Price AS InvPrice,
                      ROUND(Invoice.Price / GoodsReceiptPO.Price, 2) AS ProfitMargin, SalesEmp.SlpName AS VTW
FROM         dbo.OSRI Serial INNER JOIN
                      dbo.SRI1 SerialInMove ON Serial.ItemCode = SerialInMove.ItemCode AND Serial.SysSerial = SerialInMove.SysSerial INNER JOIN
                      dbo.SRI1 SerialOutMove ON Serial.ItemCode = SerialOutMove.ItemCode AND Serial.SysSerial = SerialOutMove.SysSerial INNER JOIN
                      dbo.DLN1 Delivery ON SerialOutMove.BaseEntry = Delivery.DocEntry AND SerialOutMove.ItemCode = Delivery.ItemCode AND
                      SerialOutMove.BaseLinNum = Delivery.LineNum INNER JOIN
                      dbo.PDN1 GoodsReceiptPO ON SerialInMove.ItemCode = GoodsReceiptPO.ItemCode AND SerialInMove.BaseEntry = GoodsReceiptPO.DocEntry AND
                      SerialInMove.BaseLinNum = GoodsReceiptPO.LineNum INNER JOIN
                      dbo.OPDN GRPOHeader ON GoodsReceiptPO.DocEntry = GRPOHeader.DocEntry LEFT OUTER JOIN
                      dbo.OINV InvHeader INNER JOIN
                      dbo.INV1 Invoice ON InvHeader.DocEntry = Invoice.DocEntry ON Delivery.ItemCode = Invoice.ItemCode AND
                      Delivery.DocEntry = Invoice.BaseEntry FULL OUTER JOIN
                      dbo.OSLP SalesEmp ON Invoice.SlpCode = SalesEmp.SlpCode
WHERE     (SerialInMove.Direction = '0') AND (SerialOutMove.Direction = '1') AND (SerialInMove.BaseType = 20) AND (SerialOutMove.BaseType = 15) AND
                      (InvHeader.DocDate BETWEEN CONVERT(DATETIME, '2006-05-01 00:00:00', 102) AND CONVERT(DATETIME, '2006-08-30 00:00:00', 102)) AND
                      (NOT (GoodsReceiptPO.ItemCode LIKE N'MET%'))
UNION
SELECT DISTINCT
                      Serial.SuppSerial AS , GRPOHeader.DocNum AS PurchDocNum, GRPOHeader.DocDate AS PurchDocDate,
                      SerialInMove.CardCode AS SupplierCode, SerialInMove.CardName AS SupplierName, GoodsReceiptPO.ItemCode AS PurchItemCode,
                      GoodsReceiptPO.Dscription AS PurchDscription, GoodsReceiptPO.PriceBefDi AS PurchPriceBefDi, GoodsReceiptPO.DiscPrcnt AS PurchDiscPrcnt,
                      GoodsReceiptPO.Price AS PurchPrice, InvHeader.DocNum AS InvoiceDocNum, InvHeader.DocDate AS InvDocDate,
                      SerialOutMove.CardCode AS CusomerCode, SerialOutMove.CardName AS CustomerName, Invoice.ItemCode AS InvItemCode,
                      Invoice.Dscription AS InvDscription, Invoice.PriceBefDi AS InvPriceBefDi, Invoice.DiscPrcnt AS InvDiscPrcnt, Invoice.Price AS InvPrice,
                      ROUND(Invoice.Price / GoodsReceiptPO.Price, 2) AS ProfitMargin, SalesEmp.SlpName AS VTW
FROM         dbo.OSRI Serial INNER JOIN
                      dbo.SRI1 SerialInMove ON Serial.ItemCode = SerialInMove.ItemCode AND Serial.SysSerial = SerialInMove.SysSerial INNER JOIN
                      dbo.SRI1 SerialOutMove ON Serial.ItemCode = SerialOutMove.ItemCode AND Serial.SysSerial = SerialOutMove.SysSerial INNER JOIN
                      dbo.PDN1 GoodsReceiptPO ON SerialInMove.BaseEntry = GoodsReceiptPO.DocEntry AND SerialInMove.BaseLinNum = GoodsReceiptPO.LineNum AND
                       SerialInMove.ItemCode = GoodsReceiptPO.ItemCode INNER JOIN
                      dbo.OPDN GRPOHeader ON GoodsReceiptPO.DocEntry = GRPOHeader.DocEntry FULL OUTER JOIN
                      dbo.OSLP SalesEmp INNER JOIN
                      dbo.OINV InvHeader INNER JOIN
                      dbo.INV1 Invoice ON InvHeader.DocEntry = Invoice.DocEntry ON SalesEmp.SlpCode = Invoice.SlpCode ON
                      SerialOutMove.BaseEntry = Invoice.DocEntry AND SerialOutMove.ItemCode = Invoice.ItemCode AND
                      SerialOutMove.BaseLinNum = Invoice.LineNum
WHERE     (SerialInMove.Direction = '0') AND (SerialOutMove.Direction = '1') AND (SerialInMove.BaseType = 20) AND (SerialOutMove.BaseType = 13) AND
                      (NOT (GoodsReceiptPO.ItemCode LIKE N'MET%')) AND (InvHeader.DocDate BETWEEN CONVERT(DATETIME, '2006-05-01 00:00:00', 102) AND
                      CONVERT(DATETIME, '2006-08-30 00:00:00', 102))
ORDER BY InvHeader.DocDate

Similar Messages

  • Query regarding drill down in Union reports in OBIEE

    Hi
    I have a report which is the union of two reports coming from difft subject areas.
    I have a column A in both the reports.In the union report of these two reports I'm trying to apply drill down on column A.
    The drill should take me to another report which is again a union report.
    When I click on the drilled value say A1 it doesn't show me data careesponding to A1, but intead of it this drill report gives me data for all the values under A A1,A2 ,A3 etc.
    I'm not sure why the drill is not working.
    Any special steps to be follwed when applying drill on union reports?
    pLs help
    thanks in advance !!

    Hi,
    Refer this ... how to drill down in combine request
    hope helps...

  • Poor performance with WebI and BW hierarchy drill-down...

    Hi
    We are currently implementing a large HR solution with BW as backend
    and WebI and Xcelcius as frontend. As part of this we are experiencing
    very poor performance when doing drill-down in WebI on a BW hierarchy.
    In general we are experiencing ok performance during selection of data
    and traditional WebI filtering - however when using the BW hierarchy
    for navigation within WebI, response times are significantly increasing.
    The general solution setup are as follows:
    1) Business Content version of the personnel administration
    infoprovider - 0PA_C01. The Infoprovider contains 30.000 records
    2) Multiprovider to act as semantic Data Mart layer in BW.
    3) Bex Query to act as Data Mart Query and metadata exchange for BOE.
    All key figure restrictions and calculations are done in this Data Mart
    Query.
    4) Traditionel BO OLAP universe 1:1 mapped to Bex Data Mart query. No
    calculations etc. are done in the universe.
    5) WebI report with limited objects included in the WebI query.
    As we are aware that performance is an very subjective issues we have
    created several case scenarios with different dataset sizes, various
    filter criteria's and modeling techniques in BW.
    Furthermore we have tried to apply various traditional BW performance
    tuning techniques including aggregates, physical partitioning and pre-
    calculation - all without any luck (pre-calculation doesn't seem to
    work at all as WebI apparently isn't using the BW OLAP cache).
    In general the best result we can get is with a completely stripped WebI report without any variables etc.
    and a total dataset of 1000 records transferred to WebI. Even in this scenario we can't get
    each navigational step (when using drill-down on Organizational Unit
    hierarchy - 0ORGUNIT) to perform faster than minimum 15-20 seconds per.
    navigational step.
    That is each navigational step takes 15-20 seconds
    with only 1000 records in the WebI cache when using drill-down on org.
    unit hierachy !!.
    Running the same Bex query from Bex Analyzer with a full dataset of
    30.000 records on lowest level of detail returns a threshold of 1-2
    seconds pr. navigational step thus eliminating that this should be a BW
    modeling issue.
    As our productive scenario obviously involves a far larger dataset as
    well as separate data from CATS and PT infoproviders we are very
    worried if we will ever be able to utilize hierarchy drill-down from
    WebI ?.
    The question is as such if there are any known performance issues
    related to the use of BW hierarchy drill-down from WebI and if so are
    there any ways to get around them ?.
    As an alternative we are currently considering changing our reporting
    strategy by creating several higher aggregated reports to avoid
    hierarchy navigation at all. However we still need to support specific
    division and their need to navigate the WebI dataset without
    limitations which makes this issue critical.
    Hope that you are able to help.
    Thanks in advance
    /Frank
    Edited by: Mads Frank on Feb 1, 2010 9:41 PM

    Hi Henry, thank you for your suggestions although i´m not agree with you that 20 seconds is pretty good for that navigation step. The same query executed with BEx Analyzer takes only 1-2 seconds to do the drill down.
    Actions
    suppress unassigned nodes in RSH1: Magic!! This was the main problem!!
    tick use structure elements in RSRT: Done it.
    enable query stripping in WebI: Done it.
    upgrade your BW to SP09: Has the SP09 some inprovements in relation to this point ?
    use more runtime query filters. : Not possible. Very simple query.
    Others:
    RSRT combination H-1-3-3-1 (Expand nodes/Permanent Cache BLOB)
    Uncheck prelimirary Hierarchy presentation in Query. only selected.
    Check "Use query drill" in webi properties.
    Sorry for this mixed message but when i was answering i tryied what you suggest in relation with supress unassigned nodes and it works perfectly. This is what is cusing the bottleneck!! incredible...
    Thanks a lot
    J.Casas

  • How to make output of ABAp query interactive(drill down)..?

    Hi All,
    I have developed one ABAP query which shows the output in which there is a coloumm 'order number'.
    I want to make this coloumn interactive ,that means after double clicking on any row of this colomn ,it should go to transaction KO02.
    Where do i have to write the code  in ABAP query ?
    I am very new to ABAP query..this is the first query i have deloped till now.
    points will be rewarded.
    Thnks in advance.
    Regards,
    Sanjay.

    <b>The below sample code is one such example of Drill down reporting...
    Make the necessary modifications, change the statement CALL TRANSACTION to whatever you want to CALL. Proceed further.</b>
    *"Table declarations...................................................
    TABLES:
      EKKO,                                " Purchasing Document Header
      CDHDR,                               " Change document header
      SSCRFIELDS.                          " Fields on selection screens
    *"Selection screen elements............................................
    SELECT-OPTIONS:
      S_EBELN FOR EKKO-EBELN,              " Purchasing Document Number
      S_LIFNR FOR EKKO-LIFNR,              " Vendor's account number
      S_EKGRP FOR EKKO-EKGRP,              " Purchasing group
      S_BEDAT FOR EKKO-BEDAT,              " Purchasing Document Date
      S_UDATE FOR CDHDR-UDATE.             " Creation date of the change
                                           " document
    *" Data declarations...................................................
    Field String to hold Purchase Document Number                       *
    DATA:
      BEGIN OF FS_EBELN,
        EBELN(90) TYPE C,                  " Purchase Document Number
        ERNAM     TYPE EKKO-ERNAM,         " Name of Person who Created
                                           " the Object
        LIFNR     TYPE EKKO-LIFNR,         " Vendor's account number
        EKGRP     TYPE EKKO-EKGRP,         " Purchasing group
        BEDAT     TYPE EKKO-BEDAT,         " Purchasing Document Date
      END OF FS_EBELN,
    Field String to hold Purchase Document Header                       *
      BEGIN OF FS_EKKO,
        EBELN TYPE EKKO-EBELN,             " Purchasing Document Number
        ERNAM TYPE EKKO-ERNAM,             " Name of Person who Created the
                                           " Object
        LIFNR TYPE EKKO-LIFNR,             " Vendor's account number
        EKGRP TYPE EKKO-EKGRP,             " Purchasing group
        BEDAT TYPE EKKO-BEDAT,             " Purchasing Document Date
      END OF FS_EKKO,
    Field String to hold Account Number and name of the Vendor          *
      BEGIN OF FS_LFA1,
        LIFNR TYPE LFA1-LIFNR,             " Account Number of Vendor
        NAME1 TYPE LFA1-NAME1,             " Name1
      END OF FS_LFA1,
    Field String to hold Change date and the name of the user           *
      BEGIN OF FS_CDHDR,
        OBJECTCLAS TYPE CDHDR-OBJECTCLAS,  " Object Class
        OBJECTID   TYPE CDHDR-OBJECTID,    " Object value
        CHANGENR   TYPE CDHDR-CHANGENR,    " Document change number
        USERNAME   TYPE CDHDR-USERNAME,    " User name
        UDATE      TYPE CDHDR-UDATE,       " Creation date of the change
                                           " document
      END OF FS_CDHDR,
    Field String to hold Change document items                          *
      BEGIN OF FS_CDPOS,
        OBJECTCLAS   TYPE CDPOS-OBJECTCLAS," Object class
        OBJECTID(10) TYPE C,               " Object Value
        CHANGENR     TYPE CDPOS-CHANGENR,  " Document change number
        TABNAME      TYPE CDPOS-TABNAME,   " Table Name
        FNAME        TYPE CDPOS-FNAME,     " Field Name
        VALUE_NEW    TYPE CDPOS-VALUE_NEW, " New contents of changed field
        VALUE_OLD    TYPE CDPOS-VALUE_OLD, " Old contents of changed field
      END OF FS_CDPOS,
    Field String to hold Date Element Name                              *
      BEGIN OF FS_DATAELE,
        TABNAME   TYPE DD03L-TABNAME,      " Table Name
        FIELDNAME TYPE DD03L-FIELDNAME,    " Field Name
        ROLLNAME  TYPE DD03L-ROLLNAME,     " Data element (semantic domain)
      END OF FS_DATAELE,
    Field String to hold Short Text of the Date Element                 *
      BEGIN OF FS_TEXT,
        ROLLNAME TYPE DD04T-ROLLNAME,      " Data element (semantic domain)
        DDTEXT   TYPE DD04T-DDTEXT,        " Short Text Describing R/3
                                           " Repository Objects
      END OF FS_TEXT,
    Field String to hold data to be displayed on the ALV grid           *
      BEGIN OF FS_OUTTAB,
        EBELN      TYPE EKKO-EBELN,        " Purchasing Document Number
        ERNAM      TYPE EKKO-ERNAM,        " Name of Person who Created the
                                           " Object
        LIFNR      TYPE EKKO-LIFNR,        " Vendor's account number
        EKGRP      TYPE EKKO-EKGRP,        " Purchasing group
        BEDAT      TYPE EKKO-BEDAT,        " Purchasing Document Date
        WERKS      TYPE LFA1-WERKS,        " Plant
        NAME1      TYPE LFA1-NAME1,        " Name1
        USERNAME   TYPE CDHDR-USERNAME,    " User name
        UDATE      TYPE CDHDR-UDATE,       " Creation date of the change
                                           " document
        DDTEXT     TYPE DD04T-DDTEXT,      " Short Text Describing R/3
                                           " Repository Objects
        VALUE_NEW  TYPE CDPOS-VALUE_NEW,   " New contents of changed field
        VALUE_OLD  TYPE CDPOS-VALUE_OLD,   " Old contents of changed field
      END OF FS_OUTTAB,
    Internal table to hold Purchase Document Number                     *
      T_EBELN LIKE STANDARD TABLE
                OF FS_EBELN,
    Internal table to hold Purchase Document Header                     *
    T_EKKO LIKE STANDARD TABLE
              OF FS_EKKO,
    Temp Internal table to hold Purchase Document Header                *
    T_EKKO_TEMP LIKE STANDARD TABLE
                   OF FS_EKKO,
    Internal table to hold Account number and Name of the Vendor        *
      T_LFA1 LIKE STANDARD TABLE
               OF FS_LFA1,
    Internal Table to hold Change date and the name of the user         *
      T_CDHDR LIKE STANDARD TABLE
                OF FS_CDHDR,
    Internal Table to hold Change document items                        *
      T_CDPOS LIKE STANDARD TABLE
                OF FS_CDPOS,
    Temp. Internal Table to hold Change document items                  *
      T_CDPOS_TEMP LIKE STANDARD TABLE
                     OF FS_CDPOS,
    Internal Table to hold Data Element Name                            *
      T_DATAELE LIKE STANDARD TABLE
                  OF FS_DATAELE,
    Temp. Internal Table to hold Data Element Name                      *
      T_DATAELE_TEMP LIKE STANDARD TABLE
                       OF FS_DATAELE,
    Internal Table to hold Short Text of the Date Element               *
      T_TEXT LIKE STANDARD TABLE
               OF FS_TEXT,
    Internal Table to hold data to be displayed on the ALV grid         *
      T_OUTTAB LIKE STANDARD TABLE
                 OF FS_OUTTAB.
                   C L A S S   D E F I N I T I O N                      *
      CLASS LCL_EVENT_HANDLER  DEFINITION DEFERRED.
    *" Data declarations...................................................
    Work variables                                                      *
      DATA:
        W_EBELN       TYPE EKKO-EBELN,     " Purchasing Document Number
        W_LIFNR       TYPE EKKO-LIFNR,     " Vendor's account number
        W_EKGRP       TYPE EKKO-EKGRP,     " Purchasing group
        W_VALUE       TYPE EKKO-EBELN,     " Reflected Value
        W_SPACE       VALUE ' ',           " Space
        W_FLAG        TYPE I,              " Flag Variable
        W_VARIANT     TYPE DISVARIANT,     " Variant
    *--- ALV Grid
        W_GRID        TYPE REF TO CL_GUI_ALV_GRID,
    *--- Event Handler
        W_EVENT_CLICK TYPE REF TO LCL_EVENT_HANDLER,
    *--- Field catalog table
        T_FIELDCAT    TYPE LVC_T_FCAT.
                          AT SELECTION-SCREEN EVENT                     *
    AT SELECTION-SCREEN ON S_EBELN.
    Subroutine to validate Purchase Document Number.
      PERFORM VALIDATE_PD_NUM.
    AT SELECTION-SCREEN ON S_LIFNR.
    Subroutine to validate Vendor Number.
      PERFORM VALIDATE_VEN_NUM.
    AT SELECTION-SCREEN ON S_EKGRP.
    Subroutine to validate Purchase Group.
      PERFORM VALIDATE_PUR_GRP.
                          START-OF-SELECTION EVENT                      *
    START-OF-SELECTION.
    Subroutine to select all Purchase orders.
      PERFORM SELECT_PO.
      CHECK W_FLAG EQ 0.
    Subroutine to select Object values.
        PERFORM SELECT_OBJ_ID.
      CHECK W_FLAG EQ 0.
    Subroutine to select Changed values.
        PERFORM SELECT_CHANGED_VALUE.
      CHECK W_FLAG EQ 0.
    Subroutine to Select Purchase Orders.
        PERFORM SELECT_PUR_DOC.
    Subroutine to select Vendor Details.
        PERFORM SELECT_VENDOR.
    Subroutine to select Text for the Changed values.
        PERFORM DESCRIPTION.
                          END-OF-SELECTION EVENT                        *
    END-OF-SELECTION.
      IF NOT T_EKKO IS INITIAL.
    Subroutine to populate the Output Table.
        PERFORM FILL_OUTTAB.
    Subroutine to build Field Catalog.
        PERFORM PREPARE_FIELD_CATALOG CHANGING T_FIELDCAT.
        CALL SCREEN 100.
      ENDIF.                               " IF NOT T_EKKO...
    CLASS LCL_EVENT_HANDLER DEFINITION
    Defining Class which handles events
    CLASS LCL_EVENT_HANDLER DEFINITION .
      PUBLIC SECTION .
        METHODS:
            HANDLE_HOTSPOT_CLICK
                 FOR EVENT HOTSPOT_CLICK OF CL_GUI_ALV_GRID
                           IMPORTING E_ROW_ID E_COLUMN_ID.
    ENDCLASS.                              " LCL_EVENT_HANDLER DEFINITION
    CLASS LCL_EVENT_HANDLER IMPLEMENTATION
    Implementing the Class which can handle events
    CLASS LCL_EVENT_HANDLER IMPLEMENTATION .
    *---Handle Double Click
      METHOD HANDLE_HOTSPOT_CLICK .
    Subroutine to get the HotSpot Cell information.
        PERFORM GET_CELL_INFO.
        SET PARAMETER ID 'BES' FIELD W_VALUE.
        CALL TRANSACTION 'ME23N'.
      ENDMETHOD.                           " HANDLE_HOTSPOT_CLICK
    ENDCLASS.                              " LCL_EVENT_HANDLER
    *&      Module  STATUS_0100  OUTPUT
          PBO Event
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'OOPS'.
      SET TITLEBAR 'TIT'.
    Subroutine to fill the Variant Structure
      PERFORM FILL_VARIANT.
      IF W_GRID IS INITIAL.
        CREATE OBJECT W_GRID
          EXPORTING
       I_SHELLSTYLE      = 0
       I_LIFETIME        =
            I_PARENT       = CL_GUI_CONTAINER=>SCREEN0
       I_APPL_EVENTS     =
       I_PARENTDBG       =
       I_APPLOGPARENT    =
       I_GRAPHICSPARENT  =
       I_NAME            =
       I_FCAT_COMPLETE   = SPACE
          EXCEPTIONS
            ERROR_CNTL_CREATE = 1
            ERROR_CNTL_INIT   = 2
            ERROR_CNTL_LINK   = 3
            ERROR_DP_CREATE   = 4
            OTHERS            = 5.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.                             " IF SY-SUBRC <> 0
        CALL METHOD W_GRID->SET_TABLE_FOR_FIRST_DISPLAY
          EXPORTING
           I_BUFFER_ACTIVE               =
           I_BYPASSING_BUFFER            =
           I_CONSISTENCY_CHECK           =
           I_STRUCTURE_NAME              =
            IS_VARIANT                    = W_VARIANT
            I_SAVE                        = 'A'
           I_DEFAULT                     = 'X'
           IS_LAYOUT                     =
           IS_PRINT                      =
           IT_SPECIAL_GROUPS             =
           IT_TOOLBAR_EXCLUDING          =
           IT_HYPERLINK                  =
           IT_ALV_GRAPHICS               =
           IT_EXCEPT_QINFO               =
           IR_SALV_ADAPTER               =
          CHANGING
            IT_OUTTAB                     = T_OUTTAB
            IT_FIELDCATALOG               = T_FIELDCAT
           IT_SORT                       =
           IT_FILTER                     =
          EXCEPTIONS
            INVALID_PARAMETER_COMBINATION = 1
            PROGRAM_ERROR                 = 2
            TOO_MANY_LINES                = 3
            OTHERS                        = 4
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.                             " IF SY-SUBRC <> 0.
      ENDIF.                               " IF W_GRID IS INITIAL
      CREATE OBJECT W_EVENT_CLICK.
      SET HANDLER W_EVENT_CLICK->HANDLE_HOTSPOT_CLICK FOR W_GRID.
    ENDMODULE.                             " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          PAI Event
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
        WHEN 'CANCEL'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                             " USER_COMMAND_0100  INPUT
    *&      Form  PREPARE_FIELD_CATALOG
          Subroutine to build the Field catalog
          <--P_T_FIELDCAT  Field Catalog Table
    FORM PREPARE_FIELD_CATALOG  CHANGING PT_FIELDCAT TYPE LVC_T_FCAT .
      DATA LS_FCAT TYPE LVC_S_FCAT.
    Purchasing group...
      LS_FCAT-FIELDNAME = 'EKGRP'.
      LS_FCAT-REF_TABLE = 'EKKO'.
      LS_FCAT-INTTYPE   = 'C'.
      LS_FCAT-OUTPUTLEN = '10'.
      APPEND LS_FCAT TO PT_FIELDCAT.
      CLEAR LS_FCAT.
    Purchasing Document Number...
      LS_FCAT-FIELDNAME = 'EBELN'.
      LS_FCAT-REF_TABLE = 'EKKO' .
      LS_FCAT-EMPHASIZE = 'C411'.
      LS_FCAT-INTTYPE   = 'C'.
      LS_FCAT-OUTPUTLEN = '10'.
      LS_FCAT-HOTSPOT   = 'X'.
      APPEND LS_FCAT TO PT_FIELDCAT .
      CLEAR LS_FCAT .
    Name of Person who Created the Object...
      LS_FCAT-FIELDNAME = 'ERNAM'.
      LS_FCAT-REF_TABLE = 'EKKO'.
      LS_FCAT-OUTPUTLEN = '15' .
      APPEND LS_FCAT TO PT_FIELDCAT.
      CLEAR LS_FCAT.
    Purchasing Document Date...
      LS_FCAT-FIELDNAME = 'BEDAT'.
      LS_FCAT-REF_TABLE = 'EKKO'.
      LS_FCAT-INTTYPE   = 'C'.
      LS_FCAT-OUTPUTLEN = '10'.
      APPEND LS_FCAT TO PT_FIELDCAT.
      CLEAR LS_FCAT.
    Vendor's account number...
      LS_FCAT-FIELDNAME = 'LIFNR'.
      LS_FCAT-REF_TABLE = 'EKKO'.
      LS_FCAT-INTTYPE   = 'C'.
      LS_FCAT-OUTPUTLEN = '10'.
      APPEND LS_FCAT TO PT_FIELDCAT.
      CLEAR LS_FCAT.
    Account Number of Vendor or Creditor...
      LS_FCAT-FIELDNAME = 'NAME1'.
      LS_FCAT-REF_TABLE = 'LFA1'.
      LS_FCAT-INTTYPE   = 'C'.
      LS_FCAT-OUTPUTLEN = '10'.
      LS_FCAT-COLTEXT   = 'Vendor Name'(001).
      LS_FCAT-SELTEXT   = 'Vendor Name'(001).
      APPEND LS_FCAT TO PT_FIELDCAT.
      CLEAR LS_FCAT.
    Creation date of the change document...
      LS_FCAT-FIELDNAME = 'UDATE'.
      LS_FCAT-REF_TABLE = 'CDHDR'.
      LS_FCAT-INTTYPE   = 'C'.
      LS_FCAT-OUTPUTLEN = '10'.
      LS_FCAT-COLTEXT   = 'Change Date'(002).
      LS_FCAT-SELTEXT   = 'Change Date'(002).
      APPEND LS_FCAT TO PT_FIELDCAT.
      CLEAR LS_FCAT.
    User name of the person responsible in change document...
      LS_FCAT-FIELDNAME = 'USERNAME'.
      LS_FCAT-REF_TABLE = 'CDHDR'.
      LS_FCAT-INTTYPE   = 'C'.
      LS_FCAT-OUTPUTLEN = '10'.
      LS_FCAT-COLTEXT   = 'Modified by'(003).
      LS_FCAT-SELTEXT   = 'Modified by'(003).
      APPEND LS_FCAT TO PT_FIELDCAT.
      CLEAR LS_FCAT.
    Short Text Describing R/3 Repository Objects...
      LS_FCAT-FIELDNAME = 'DDTEXT'.
      LS_FCAT-REF_TABLE = 'DD04T'.
      LS_FCAT-INTTYPE   = 'C'.
      LS_FCAT-OUTPUTLEN = '15'.
      APPEND LS_FCAT TO PT_FIELDCAT.
      CLEAR LS_FCAT.
    Old contents of changed field...
      LS_FCAT-FIELDNAME = 'VALUE_OLD'.
      LS_FCAT-REF_TABLE = 'CDPOS'.
      LS_FCAT-INTTYPE   = 'C'.
      LS_FCAT-OUTPUTLEN = '12'.
      APPEND LS_FCAT TO PT_FIELDCAT.
      CLEAR LS_FCAT.
    New contents of changed field...
      LS_FCAT-FIELDNAME = 'VALUE_NEW'.
      LS_FCAT-REF_TABLE = 'CDPOS'.
      LS_FCAT-INTTYPE   = 'C'.
      LS_FCAT-OUTPUTLEN = '12'.
      APPEND LS_FCAT TO PT_FIELDCAT.
      CLEAR LS_FCAT.
    ENDFORM.                               " PREPARE_FIELD_CATALOG
    *& Form  SELECT_PO
    Subroutine to select all the Purchase Orders
    There are no interface parameters to be passed to this subroutine.
    FORM SELECT_PO .
       SELECT EBELN                        " Purchasing Document Number
              ERNAM                        " Name of Person who Created
                                           " the Object
              LIFNR                        " Vendor's account number
              EKGRP                        " Purchasing group
              BEDAT                        " Purchasing Document Date
         FROM EKKO
      PACKAGE SIZE 10000
    APPENDING TABLE T_EBELN
        WHERE EBELN IN S_EBELN
          AND BEDAT IN S_BEDAT.
       ENDSELECT.
    IF SY-SUBRC NE 0.
       W_FLAG = 1.
       MESSAGE S401(M8).
    ENDIF.                                " IF SY-SUBRC NE 0
    ENDFORM.                               " SELECT_PO
    *&  Form  SELECT_OBJ_ID
      Subroutine to select Object ID
      There are no interface parameters to be passed to this subroutine.
    FORM SELECT_OBJ_ID .
    IF NOT T_EBELN IS INITIAL.
        SELECT OBJECTCLAS                  " Object Class
               OBJECTID                    " Object value
               CHANGENR                    " Document change number
               USERNAME                    " User name
               UDATE                       " Creation date
          FROM CDHDR
          INTO TABLE T_CDHDR
       FOR ALL ENTRIES IN T_EBELN
         WHERE OBJECTID EQ T_EBELN-EBELN
           AND UDATE IN S_UDATE
           AND TCODE IN ('ME21N','ME22N','ME23N').
       ENDSELECT.
       IF SY-SUBRC NE 0.
         W_FLAG = 1.
         MESSAGE S833(M8) WITH 'Header Not Found'(031).
       ENDIF.                              " IF SY-SUBRC NE 0.
    ENDIF.                                " IF NOT T_EBELN IS INITIAL
    ENDFORM.                               " SELECT_OBJ_ID
    *&  Form  SELECT_CHANGED_VALUE
      Subroutine to select Changed Values
      There are no interface parameters to be passed to this subroutine.
    FORM SELECT_CHANGED_VALUE .
    IF NOT T_CDHDR IS INITIAL.
        SELECT OBJECTCLAS                  " Object class
               OBJECTID                    " Object value
               CHANGENR                    " Document change number
               TABNAME                     " Table Name
               FNAME                       " Field Name
               VALUE_NEW                   " New contents of changed field
               VALUE_OLD                   " Old contents of changed field
          FROM CDPOS
       PACKAGE SIZE 10000
    APPENDING TABLE T_CDPOS
       FOR ALL ENTRIES IN T_CDHDR
         WHERE OBJECTCLAS EQ T_CDHDR-OBJECTCLAS
           AND OBJECTID   EQ T_CDHDR-OBJECTID
           AND CHANGENR   EQ T_CDHDR-CHANGENR.
        ENDSELECT.
        IF SY-SUBRC NE 0.
          W_FLAG = 1.
          MESSAGE S833(M8) WITH 'Item Not Found'(032).
        ENDIF.                             " IF SY-SUBRC NE 0.
    ENDIF.                               " IF NOT T_CDHDR IS INITIAL
      T_CDPOS_TEMP[] = T_CDPOS[].
    ENDFORM.                               " SELECT_CHANGED_VALUE
    *&   Form  SELECT_PUR_DOC
       Subroutine to select Purchase Order Details
       There are no interface parameters to be passed to this subroutine.
    FORM SELECT_PUR_DOC .
    IF NOT T_CDPOS IS INITIAL.
        SORT T_EBELN BY EBELN.
        LOOP AT T_CDPOS INTO FS_CDPOS.
          READ TABLE T_EBELN INTO FS_EBELN WITH KEY EBELN =
                                          FS_CDPOS-OBJECTID BINARY SEARCH.
          IF SY-SUBRC NE 0.
            DELETE TABLE T_EBELN FROM FS_EBELN.
          ENDIF.                           " IF SY-SUBRC NE 0.
        ENDLOOP.                           " LOOP AT T_CDPOS...
        LOOP AT T_EBELN INTO FS_EBELN.
          MOVE FS_EBELN-EBELN TO FS_EKKO-EBELN.
          MOVE FS_EBELN-ERNAM TO FS_EKKO-ERNAM.
          MOVE FS_EBELN-LIFNR TO FS_EKKO-LIFNR.
          MOVE FS_EBELN-EKGRP TO FS_EKKO-EKGRP.
          MOVE FS_EBELN-BEDAT TO FS_EKKO-BEDAT.
          APPEND FS_EKKO TO T_EKKO.
        ENDLOOP.                           " LOOP AT T_EBELN...
        T_EKKO_TEMP[] = T_EKKO[].
    ENDIF.                               " IF NOT T_CDPOS IS INITIAL
    ENDFORM.                               " SELECT_PUR_DOC
    *&  Form  SELECT_VENDOR
      Subroutine to select Vendor details
      There are no interface parameters to be passed to this subroutine.
    FORM SELECT_VENDOR .
      IF NOT T_EKKO IS INITIAL.
        SORT T_EKKO_TEMP BY LIFNR.
        DELETE ADJACENT DUPLICATES FROM T_EKKO_TEMP COMPARING LIFNR.
        SELECT LIFNR                       " Account Number of Vendor or
                                           " Creditor
               NAME1                       " Name 1
          FROM LFA1
          INTO TABLE T_LFA1
       FOR ALL ENTRIES IN T_EKKO_TEMP
         WHERE LIFNR EQ T_EKKO_TEMP-LIFNR.
       IF SY-SUBRC NE 0.
         MESSAGE S002(M8) WITH 'Master Details'(033).
       ENDIF.                              " IF SY-SUBRC NE 0.
      ENDIF.                               " IF NOT T_EKKO IS INITIAL
    ENDFORM.                               " SELECT_VENDOR
    *&  Form  DESCRIPTION
      Subroutine to get the description
      There are no interface parameters to be passed to this subroutine.
    FORM DESCRIPTION .
    IF NOT T_CDPOS IS INITIAL.
        SORT T_CDPOS_TEMP BY TABNAME FNAME.
        DELETE ADJACENT DUPLICATES FROM T_CDPOS_TEMP COMPARING TABNAME FNAME
        SELECT TABNAME                     " Table Name
               FIELDNAME                   " Field Name
               ROLLNAME                    " Data element
          FROM DD03L
          INTO TABLE T_DATAELE
       FOR ALL ENTRIES IN T_CDPOS_TEMP
         WHERE TABNAME EQ T_CDPOS_TEMP-TABNAME
           AND FIELDNAME EQ T_CDPOS_TEMP-FNAME.
        IF NOT T_DATAELE IS INITIAL.
        T_DATAELE_TEMP[] = T_DATAELE[].
        SORT T_DATAELE_TEMP BY ROLLNAME.
        DELETE ADJACENT DUPLICATES FROM T_DATAELE_TEMP COMPARING ROLLNAME.
          SELECT ROLLNAME                  " Data element
                 DDTEXT                    " Short Text Describing R/3
                                           " Repository Objects
            FROM DD04T
            INTO TABLE T_TEXT
         FOR ALL ENTRIES IN T_DATAELE_TEMP
           WHERE ROLLNAME EQ T_DATAELE_TEMP-ROLLNAME
             AND DDLANGUAGE EQ SY-LANGU.
          IF SY-SUBRC NE 0.
            EXIT.
          ENDIF.                           " IF SY-SUBRC NE 0.
        ENDIF.                             " IF NOT T_DATAELE IS INITIAL.
    ENDIF.                               " IF NOT T_CDPOS IS INITIAL.
    ENDFORM.                               " DESCRIPTION
    *&  Form  FILL_OUTTAB
      Subroutine to populate the Outtab
      There are no interface parameters to be passed to this subroutine.
    FORM FILL_OUTTAB .
      SORT T_CDHDR   BY OBJECTCLAS OBJECTID CHANGENR.
      SORT T_EKKO    BY EBELN.
      SORT T_LFA1    BY LIFNR.
      SORT T_DATAELE BY TABNAME FIELDNAME.
      SORT T_TEXT    BY ROLLNAME.
      LOOP AT T_CDPOS INTO FS_CDPOS.
        READ TABLE T_CDHDR INTO FS_CDHDR WITH KEY
                                       OBJECTCLAS = FS_CDPOS-OBJECTCLAS
                                       OBJECTID = FS_CDPOS-OBJECTID
                                       CHANGENR = FS_CDPOS-CHANGENR
                                       BINARY SEARCH.
          IF SY-SUBRC EQ 0.
            MOVE FS_CDHDR-USERNAME TO FS_OUTTAB-USERNAME.
            MOVE FS_CDHDR-UDATE    TO FS_OUTTAB-UDATE.
            READ TABLE T_EKKO INTO FS_EKKO WITH KEY
                                           EBELN = FS_CDHDR-OBJECTID
                                           BINARY SEARCH.
              IF SY-SUBRC EQ 0.
                MOVE FS_EKKO-EBELN TO FS_OUTTAB-EBELN.
                MOVE FS_EKKO-ERNAM TO FS_OUTTAB-ERNAM.
                MOVE FS_EKKO-LIFNR TO FS_OUTTAB-LIFNR.
                MOVE FS_EKKO-EKGRP TO FS_OUTTAB-EKGRP.
                MOVE FS_EKKO-BEDAT TO FS_OUTTAB-BEDAT.
                READ TABLE T_LFA1 INTO FS_LFA1 WITH KEY
                                               LIFNR = FS_EKKO-LIFNR
                                               BINARY SEARCH.
                  IF SY-SUBRC EQ 0.
                    MOVE FS_LFA1-NAME1 TO FS_OUTTAB-NAME1.
                  ENDIF.                   " IF SY-SUBRC EQ 0.
              ENDIF.                       " IF SY-SUBRC EQ 0.
          ENDIF.                           " IF SY-SUBRC EQ 0.
        MOVE FS_CDPOS-VALUE_NEW TO FS_OUTTAB-VALUE_NEW.
        MOVE FS_CDPOS-VALUE_OLD TO FS_OUTTAB-VALUE_OLD.
        READ TABLE T_DATAELE INTO FS_DATAELE WITH KEY
                                             TABNAME = FS_CDPOS-TABNAME
                                             FIELDNAME = FS_CDPOS-FNAME
                                             BINARY SEARCH.
          IF SY-SUBRC EQ 0.
            READ TABLE T_TEXT INTO FS_TEXT WITH KEY
                                           ROLLNAME = FS_DATAELE-ROLLNAME
                                           BINARY SEARCH.
              IF SY-SUBRC EQ 0.
                MOVE FS_TEXT-DDTEXT TO FS_OUTTAB-DDTEXT.
              ENDIF.                       " IF SY-SUBRC EQ 0.
          ENDIF.                           " IF SY-SUBRC EQ 0.
        APPEND FS_OUTTAB TO T_OUTTAB.
        CLEAR FS_OUTTAB.
      ENDLOOP.
    ENDFORM.                               " FILL_OUTTAB
    *&   Form  GET_CELL_INFO
       Subroutine to get the Cell Information
    -->  W_VALUE   Holds the value of Hotspot clicked
    FORM GET_CELL_INFO .
      CALL METHOD W_GRID->GET_CURRENT_CELL
        IMPORTING
         E_ROW     =
          E_VALUE   = W_VALUE
         E_COL     =
         ES_ROW_ID =
         ES_COL_ID =
         ES_ROW_NO =
    ENDFORM.                               " GET_CELL_INFO
    *&   Form  VALIDATE_PD_NUM
       Subroutine to validate Purchase Document Number
       There are no interface parameters to be passed to this subroutine.
    FORM VALIDATE_PD_NUM .
      IF NOT S_EBELN[] IS INITIAL.
        SELECT EBELN                       " Purchase Document Number
          FROM EKKO
          INTO W_EBELN
         UP TO 1 ROWS
         WHERE EBELN IN S_EBELN.
        ENDSELECT.
        IF SY-SUBRC NE 0.
          CLEAR SSCRFIELDS-UCOMM.
          MESSAGE E717(M8).
        ENDIF.                             " IF SY-SUBRC NE 0
      ENDIF.                               " IF NOT S_EBELN[]...
    ENDFORM.                               " VALIDATE_PD_NUM
    *&   Form  VALIDATE_VEN_NUM
       Subroutine to validate Vendor Number
       There are no interface parameters to be passed to this subroutine.
    FORM VALIDATE_VEN_NUM .
      IF NOT S_LIFNR[] IS INITIAL.
        SELECT LIFNR                       " Vendor Number
          FROM LFA1
          INTO W_LIFNR
         UP TO 1 ROWS
         WHERE LIFNR IN S_LIFNR.
        ENDSELECT.
        IF SY-SUBRC NE 0.
          CLEAR SSCRFIELDS-UCOMM.
          MESSAGE E002(M8) WITH W_SPACE.
        ENDIF.                             " IF SY-SUBRC NE 0
      ENDIF.                               " IF NOT S_LIFNR[]...
    ENDFORM.                               " VALIDATE_VEN_NUM
    *&   Form  VALIDATE_PUR_GRP
       Subroutine to validate the Purchase Group
       There are no interface parameters to be passed to this subroutine.
    FORM VALIDATE_PUR_GRP .
      IF NOT S_EKGRP[] IS INITIAL.
        SELECT EKGRP                       " Purchase Group
          FROM T024
          INTO W_EKGRP
         UP TO 1 ROWS
         WHERE EKGRP IN S_EKGRP.
        ENDSELECT.
        IF SY-SUBRC NE 0.
          CLEAR SSCRFIELDS-UCOMM.
          MESSAGE E622(M8) WITH W_SPACE.
        ENDIF.                             " IF SY-SUBRC NE 0
      ENDIF.                               " IF NOT S_EKFRP[]...
    ENDFORM.                               " VALIDATE_PUR_GRP
    *& Form  FILL_VARIANT
    Subroutine to fill the Variant Structure
    There are no interface parameters to be passed to this subroutine
    FORM FILL_VARIANT .
    Filling the Variant structure
      W_VARIANT-REPORT = SY-REPID.
      W_VARIANT-USERNAME = SY-UNAME.
    ENDFORM.                               " FILL_VARIANT
    Regards,
    Pavan

  • Strange behavior with hidden text field for drill down

    Hi All,
    I am pretty sure I know the cause, just not sure how to work around...
    I am trying to create a drill down report just like in the App Dev guide, and I have done everything the same as the example (2 times, once to follow the guide, and now on my app). The only difference is that I am using a text field rather than a numeric field as the link. This shouldn't be a problem (I wouldn't think) except that the text I NEED to use has '<==' in the middle. So when I check my session state var's, this is what I see:
    CHPAG0SC_MAILCDN_000000047_ CHPAG0SC_MAILCDN_000000047_ <==20060525101642
    When what I should see is:
    CHPAG0SC_MAILCDN_000000047_ <==20060525101642
    So I think that I am gettting duplication because of the characters, but again I don't know how to solve it.
    Any thoughts would be appreciated.
    Corey

    Hi Scott,
    I am trying to create a drill down report similar to the one in the app developers guide. I have a query on pg 1 that includes the required text field as the link. When I click the link, I get an error on pg 2 - which is trying to use the value from pg 1. I did check and saw that even though I set this value in session state (I thought that was what happened when I assigned the 'name' and 'value' in the column link), it is passed in the url, which is where I figured it was breaking. As stated, I need to use this text value as it is the only unique key for the data (currently - this is a data validation step (not an ApEx validation), where users are handling issues with data uploaded from a csv).
    My current process is as follows:
    1. User uploads 2 csv's
    2. Proc moves (from wwv_flow_files) and parses csv back into records and inserts into temp (all varchar2) table(s).
    3. User is displayed 3 'reports' - for each type of validation required - from the stage/temp table
    4. User would click on the 'Edit' link (like the drill down sample) to see more details about the record.
    5. Once the user is done with these reports, they would click another button to 'process' the data (move it into base tables)
    Because the text field is always unique, I figured I wouldn't create a sequence for this like I have for the 'base' (destination) tables.
    I didn't know that I was using a 'get' rather than a 'post', but of course it is a link, not a button - so I should ahve known better.
    Is there a way to do this without adding a sequence generated id for each, or is that just the quickest way?
    Thanks again,
    Corey

  • Realize Counter in Query without drill-down

    Hello to everybody,
    I have got a query which is displaying POS data for different subsidiaries. In the rows is the subsidiary-number and the sales slip number. In the columns I have a counter as key figure, which shall count the number of existing sales slips. This works well, when I drill-down to the sales slip number and the correct number of sales slips is displayed as result at the last row of the key figure.
    But I do not want every sales slip to be displayed, so I remove it from the drill-down, with the effect that the counter always shows "1" as result.
    How can I make the counter work without having the sales slip in the drill-down?
    Thank you very much!
    PS: Sorry in advantage, if my English is bad, but I am from Germany.

    I think I do now know the problem: the counter I use is a calculated key figure. There is a restricted key figure which counts the number of positions on each sales slip. This key figure is used to realize a calculated key figure which counts the number of sale slips by division of the number of positions by itself, which results in "1" for each sales slip. But of course for the result row it also shows "1", because at the result row there must be used a summation and not a division.
    Example:
    position...........sales slip
    counter............counter (position counter / position counter)
    4....................1
    6....................1
    3....................1
    7....................1
    =============
    20..................1 (because it calculates 20/20 and not 111+1)
    Any idea how to solve this? Thanks!

  • Conditional Formatting for Charts in Drill down - Disappears

    Hi All,
    I have a "Vertical Bar Chart" that is plotted against Time on Y-axis and Unit on the X-axis; it has drill feature selected.
    The chart also has conditional format specified and the color of the Vertical bar will change on a condition. Eg: The bar will show Red color if the Average Time taken is more than 60 minutes for an Appliance Unit. All this works fine.
    Problem
    As the chart has Drill feature enabled I can drill down on the chart say from Year - > Month -> Day. The issue is the conditional formatting disappears when you drill down the chart.
    It looks strange as the main chart shows Red color for a Unit and when you drill down I don't see the conditional format applied any more.
    Did anyone had similar problem, is there any work around here.
    Appreciate your help.
    Regards
    B

    Hi,
    Create a dummy column and in fx write this,
    Case when Table."Average Time" >60 then 0 else 1 end
    Add this also in th part of chart axis,
    Go to conditional formatting set the formatting on the dummy column when 0 set to Red color.
    Now you will have the conditional formatting even if you drill down.
    Thanks,
    Vino

  • Problem with the graph when making DRILL DOWN

    Hello
    Hierarchy properties when I go to  graph
    And does DRILL DOWN
    At least once time, the graph gets stuck and when I change a parameter, a grapch is stuck
    Attached Link
    http://youtu.be/3kE3F_Vz2SQ
    Does anyone have an idea?
    BEST REGARD
    GADI

    Hi Shivkumar,
    If you right-clic on the time scale you can set the time/date format, I assume this is the way you should follow to add the "day of month in the time stamp.
    Hope this help
    Message Edité par TiTou le 03-06-2006 09:47 AM
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    Clipboard01.png ‏20 KB

  • Query not drill down

    Hi
    We have a queres primary sales,stock statement reports etc...... on 0ic_c03 cube  ( we have some free chars in these queries  ) when  i dril down freechars like(family,brand,segment,plant,.....) its take  some chars are not dril doened
    Where i have done mistake  wht are the performence issue
    Urgent plz
    points awarded
    Regards,
    Ogeti

    Hi
    In my report  we have the flollowing free chars
    there is ni navigational attrs
    Brand
    Class
    Customer
    Family
    Material
    Plant
    Segment
    Size
    Here plant is the hierarchy
    All are drill downed  after a long time (30mins)
    when i drill down brand, sieze after along time it will disconnected

  • URL Parameterizing for BI Query Detail Drill Down via Xcelsius

    Hi Guys,
    I am In the process of building an Xcelsius dashboard using BI/BW as my source system, working on a "Details" URL button to allow the user to drill directly into the source BI queries with their current combo box selections. 
    I am trying to build a URL to pass a value to both a variable and to filter a characteristic. I want to pass a value to a 0fiscper variable and exclude an employee number. 
    I have been able to get each URL to work independently, but not working together. If I leave out either the variable part or the filter part it works, but it doesn't work with both the filter portion and characteristic filter section. 
    I followed other threads and used Web application designer (WAD) instructions to view the XHTML I will have to parametrize for my URL.
    This is how I have flattened/parametrized it
    Variable part:
    BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE&
    BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&
    BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=010/2010&
    BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=BCURFPER&
    data provider part
    BI_COMMAND_1-BI_COMMAND_TYPE=SET_SELECTION_STATE&
    BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_1=DP_1&
    characteristic filter part
    BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-CHARACTERISTIC=0EMPLOYEE&
    BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1-SELECTION_INPUT_STRING=!201
    So my complete URL is:
    http://serverinfo?
    QUERY=ABCQUERY&
    BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE&
    BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&
    BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=010/2010&
    BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=BCURFPER&
    BI_COMMAND_1-BI_COMMAND_TYPE=SET_SELECTION_STATE&
    BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_1=DP_1&
    BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-CHARACTERISTIC=0EMPLOYEE&
    BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1-SELECTION_INPUT_STRING=!201
    Then it gives me the following error when I attempt to run this...
    " The metadata of "CMD" "SET_VARIABLES_STATE" are incorrect for parameter "CHARACTERISTICS_SELECTIONS"
    If I set the debug=x flag to see what is generated in the error this is the info I get:
    The parameter "CHARACTERISTICS_SELECTIONS" in the metadata of "CMD" "SET_VARIABLES_STATE is not correctly defined:
    <parameterList>
      <param name="BI_COMMAND_TYPE" value="SET_VARIABLES_STATE"/>
      <param name="CHARACTERISTICS_SELECTIONS">
        <param name="CHARACTERISTIC_SELECTIONS" index="1">
          <param name="CHARACTERISTIC" value="0EMPLOYEE"/>
          <param name="SELECTIONS">
            <param name="SELECTION" modification_type="delete_if_value_not_equal" index="1">
              <param name="SELECTION_INPUT_STRING" value="!201"/>
            </param>
          </param>
        </param>
      </param>
      <param name="TARGET_DATA_PROVIDER_REF_LIST">
        <param name="TARGET_DATA_PROVIDER_REF" value="DP_1" index="1"/>
      </param>
      <param name="TARGET_VARIABLE_CONTAINER_REF" value="DEFAULT"/>
      <param name="VARIABLE_VALUES">
        <param name="VARIABLE_VALUE" index="1">
          <param name="VARIABLE" value="BCURFPER"/>
          <param name="VARIABLE_TYPE" value="VARIABLE_INPUT_STRING" modification_type="delete_if_value_not_equal">
            <param name="VARIABLE_INPUT_STRING" value="010/2010"/>
          </param>
        </param>
      </param>
    </parameterList>
    Thanks for looking!
    -Gary

    Hi Gary,
    We came across the following issue.Colud you please provide the solution which you used to resolve it.
    " The metadata of "CMD" "SET_ITEM_PARAMETERS" are incorrect for parameter "BUTTON_LIST".
    Thanks,
    Anji

  • Drill Down problem is query

    Hi,
    We are having a query based on a MultiProvider having a cube and a DSO. The query returns results without any problem.
    But, the moment we try to drill down by a few of the navigational attributes of a particular characteristic, the drill down takes forever.
    We had the "posted value" settings for the navigational attributes originally; we have also tried with the " master data" option, but,that did not help.
    At the backend, for the above mentioned navigation, we see an index scan happening on the DSO. We could perhaps try creating indices on the fields that the users are trying to drill down by. But, this will not be a good option as we have keep guessing all such fields that they might be using and cause an additional overhead.
    Incidentally,the same navigation used to yield results in 10 s sometime back before there was an application of an Oracle patch. It has stopped working as earlier ever since this was done. Our basis team has looked into the issue but they dis not find anything different at the database side due to this.
    I have been looking through the forum to check if I can see anything related but I have not come across any solution that relates directly to this problem so far.
    Any input on this is much appreciated.
    Thank You,
    Anjana

    Hi Anjana,
    Check your DSO setting was checked for SID generation upon activation or not. If it unchecked then your report will run very long time because of no indexes.
    Try your report with the fields you are drill down indefault view and see how much time report is running. So you will know whether it is dril down problem or huge data problem. Try to keep as many as filters as per user.
    Thanks.

  • Viewing reports with Drill Down option

    Hi all, here is the complaint that we received:
    Please try to find a means to help!
    When I’m in my Report and when in an account and I go to a deal to alter or look at it, when I return to reports I always am driven back to the top of the report file. If I’m in December and looking at the entire year I have to go through all accounts once again to get to the same starting point. A great irritant. I can’t help but think that there is a better way.
    Anyone know if this can be changed? Thank you in advance!!!

    Sorry, let me explain...
    The problem isn't with the report, they have issues with what happens after you drill down into the account from the report and go back to the report.
    When they go back to the report after adjusting the account/opp it doesn;t go back to what they were looking at, the view will go to the top of the report. Say they were looking at Account #100 out of 250 (250 total accounts in the report), if they drill down into account 100 and then go back to the report they will be taken back to account #1.
    Is that more clear?
    What they want is to be able to go back to the view of Account #100.

  • Drill down with manager restrict access

    Group,
    I applied a restricted view of an object (CITY) to a particular group.
    This object belongs to a table like the one below:
    TABLE X
         FIELD - COUNTRY
         FIELD - CITY
         FIELD - NEIGHBORHOOD
    The restriction that I created will not allow certain group has access to the cities.
    I Build a Web Intelligence report with field COUNTRY and enable drill down. When I login with the user group that owns the restrictions, it can drill from the view cities. When I update the report, I get an error because the user doesn´t have privilege to update some fields (CITY).
    I need to create a restriction that makes when you can not see a field, it jump to the next filel in the hierarchy from the drill down. Is it possible? eg. COUNTRY> NEIGHBORHOOD
    Thank you

    This should be achievable using Report to Report Interface (RRI) or by using the Dashboard..
    The requirement on the calculated key figure is not quite clear? If you could elaborate.. some one could help..

  • Bex report issue - no applicable data found when we drill down on free char

    Hi All,
    We are facing some strange issue  with one of the report.
    when user run the report for a week  (02/02/2009  - 02/08/2009) and then drill down on particular char  its working fine (first time).after that when he is trying to change and execute the report for other week on the same instence ( 02/09/2008 - 02/15/2009) by clicking on refresh and passing new values to the variable  its showing up correctly at the time of drill down on free char its showing as *no applicable data found.*
    when he logoff the system completey and run the report for the week( 02/09/2008 - 02/15/2009) values it is showing up with values even tough he drill down on free char.
    issue basically when he was trying to drill on free char by chaging different date values  in the same instance by clicking on refreh and by entering diffrent values  its showing up as not applicable data found.
    but when he enters the values for different weeks  each time by closing the system and relogin report is working fine and showing up data eventough he drill down on free char.
    Please help me out!

    Dear
    Please check if any condition or exception you have created for that query.
    Or still problem exists check SP level.
    Regds,
    Sachin J

  • OBIEE 11.1.1.6 Paretto Chart drill down

    A Pareto chart when created using OBIEE 11.1.1.6 drills down to the incorrect hierarchial map. This was a bug with OBIEE 10g:
    BUG:8769813 - DRILL DOWN IN PARETO GOES TO WRONG CHILD
    NOTE:517727.1 - pareto charts
    It was originally an issue with the use of Corda charts. This was supposed to be fixed with the move to OBIEE 11g but it does not seem to be so in our case, since we encounter the same error.
    Original OBIEE 10g error: https://support.oracle.com/epmos/faces/ui/km/DocumentDisplay.jspx?_afrLoop=738674755173621&id=1200914.1&_afrWindowMode=0&_adf.ctrl-state=k53hrt132_215
    I will look around on the forum, but any insight would help

    I will try and explain the sequence of occurances on an Oracle "Sample Sales Lite" analysis, in case it needs to be recreated.
    It is a very simple analysis using the “Sample Sales lite” subject area provided by Oracle. The criteria is just company from within offices as the dimension and revenue from within base fact as the fact.
    The typical hierarchial drill path for the “Company” dimension within offices as per the RPD definition is Company > Organization > Department > Office.
    When viewed as a table this drill path works perfectly fine. When we represent the same as a Paretto chart, on clicking on “Stockplus Inc”, the output drills down to a breakdown of "Genmind Corp" instead. This is the same when viewed as an analysis and on a dashboard.
    I have seen similar occurances with bubble charts as well. Do let me know.

Maybe you are looking for

  • Get previous items unique value in new add item form

    Hi I have on list having items related to multiple locations. Every location is related to one user. When user logs in it filters the list with that users location. Now when user click on add new item I want to get the data related to his location us

  • Photo viewer issue in N8

    when i opened the photo viewer to view photos, it takes more time to load (the loading symbol is rotating for more than minute).This was not the actual opening time before.If i try to exit the viewer, i couldn't,the display is switched off for a whil

  • Solaris 10 for X86 Install issue: "Server for display :0 can't be started"

    After fixing my "can't set locale" problem I am moving onto the "Server for display :0 can't be started" issue. Checking /etc/dtc/Xerrors yields: 1) error (PID 380) : Server unexpectedly died 2) error (PID 380) : Server for display :0 can't be starte

  • Classic in OS 10.5.8

    Can I access files form OS 9 by using Classic with OS 10.5.8 ?

  • History of the Infotypes deleted through PA30.

    Hi FOlks, Is it possible to see the history of the Infotypes deleted through PA30. Eg: In IT2001 sick leave applied on 20.01.2009 being deleted though PA30. After this deletion, would we be able to see who has deleted and what record has been deleted