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

Similar Messages

  • WD ABAP - Reading the URL Parameters for FPM application

    Hi,
    As per the Custom requirment,
    I want to pass URL parameters for WD ABAP application (sap/bc/webdynpro/dbm/app_veh_cus_search) which uses FPM.
    example: sap/bc/webdynpro/dbm/app_veh_cus_search?Customer=12345&fromExternal=true
    I am facing difficulty in reading the URL parameters.
    How to read/get the URL Parameters for an FPM WD ABAP application????
    Observation:
    I tried reading the parameter in Window --> HANDLEDEFAULT method. But could NOT read the Parameters from here for FPM application whereas if I create a Z Custom application then I could read the URL Parameters. so the issue is in reading the URL Parameters for FPM application.
    Kindly support
    Regards,
    Hussain

    Hi Hussain,
    You can do this either with the methods of interface if_fpm_parameter...
    DATA lo_param TYPE REF TO if_fpm_parameter.
    lo_param = cl_fpm_factory=>get_instance( )->mo_app_parameter.
    CALL METHOD lo_param->get_value
        EXPORTING
            iv_key   = parameter_name
        IMPORTING
            ev_value = parameter_value.
    or a more generic approach using class cl_wd_runtime_services...
    cl_wd_runtime_services=>get_url_parameter
    Cheers,
    Amy

  • Drill down via the legend icons

    Hi,
    I created a line chart. Via navigate it's possible to drill down to a another report. Is it also possible to drill down via the legend icons?
    Thanks, Robbert

    hi,
    For this u can add one custom graph for the legends and enable the drill down on that legend
    please go through this thread
    refer obiee Guru John's reply
    Re: How to show only legend in graph?
    thanks,
    saichand

  • Drill down via legend

    Hi,
    I created a line chart. Via navigate it's possible to drill down to a another report. Is it also possible to drill down via the legend icons?
    Thanks, Robbert

    hi,
    For this u can add one custom graph for the legends and enable the drill down on that legend
    please go through this thread
    refer obiee Guru John's reply
    Re: How to show only legend in graph?
    thanks,
    saichand

  • 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

  • Looking For Method Of Displaying Drill-Down Subreport Data On Same Page

    Not sure what the technical term for this is, but I need to find a way to display dynamic drill-down sub-report data within a report.  Here is an example of what I am trying to accomplish:
    + DATA SUMMARY 1
    + DATA SUMMARY 1
    - DATA SUMMARY 1
            data detail 11
            data detail 12
    - DATA SUMMARY 2
            data detail 2
            data detail 2
    The idea is you click on the + (plus sign) and the subreport detail unfolds below the summary row.  To close the sub-report data, you click on the - (minus sign).  Right now, the report pops up the sub-report data in a separate tab, which is not what the client wants.
    Fuskie
    Who doesn't know if this is a function of report design or of viewer manipulation of report data...

    I think this is called In Place Drill Down.
    Fuskie
    Who appreciates y'alls help....

  • URL parameters for a Database Source in SES

    Can anyone provide us a valid url format for creating a Database Source in SES? I have followed the SES Admin documentation, and have tried a variety of options, but am not getting the results I desire.
    I have set up a view to my database table using the following syntax:
    create or replace view test_tablename2 AS
    SELECT 'docserver?docid=' || id URL,
    id KEY,
    'en' LANG,
    POSTDATE LASTMODIFIEDDATE,
    DOCUMENT CONTENT,
    'text/html' CONTENTTYPE,
    SUBJECT TITLE
    FROM tablename2;
    I also set up the Database Source in SES with the following parameters:
    Database Connection String: jdbc:oracle:thin:@IP Address: 1521: MAINDB
    URL Prefix: http://<SES computername.domain>: port/
    (I can't include the IP address, tablename, or machine names in this forum because they are classified).
    So, it crawls fine and gives me the expected number of documents found. And, when I search the source, I get a list of results. But, when I click on the link to the document, I get a 404 Page not found error. The url for the found doc shows as: <SES computername.domain:port/docserver?docid=1866
    If I click on the "cached" link, I can see the document just fine and the url displayed is:
    http://computername.domain:port/search/query/cache.jsp?id=438567&q=%&fid=
    So, obviously, I still don't have the url for the docsever right.
    Anyone have any ideas, please?
    thanks,
    Leah

    Hi Leah,
    The display URL for a Database Source should point to a separate server that provides web access to the document. It is not meant to point back to the SES instance. As the Admin Guide states:
    "This connector requires that there is URL-based access to the records in the result set of the view or query."
    In other words, the display URL should be something you can copy/paste into your browser location bar to view the document, with the other server rendering the document information to a user completely independently from SES.
    HTH,
    Mark

  • Input-Readiness of Query with drill down

    Hello experts,
    I've got an issue with the input readiness of a query.
    In the Query I use the characterisitc "Plan" as a drill-down-characterisitc.
    So I don't filter the query for the characterisitc 'plan' but I use it as drill-down-characterisitc, that ervery row is assigned to one 'plan'.
    My problem is that the query is not input-ready.
    Every other selection is correct. If I change my filter and filter the query for just one "Plan"-> everything works fine and the query is input ready.
    When I filter for more than one "Plan" the query is not input-ready, even the characteristic "Plan" is used as drill down charactersitic in the query rows.
    Furthermore:
    In the characterisitc-relationships of the cube, the characterisitc "Plan" is used as source characteristic for relationships with derivation.
    I tried to deactivate all characteristic-relationships. Same problem:
    - Input ready if I filter for just one plan
    - Not input ready if I filter for more than one plan and use the plan for drill-down
    It is not:
    - a data slice problem
    - not a problem of the unique selection in any other characterisitcs
    - data load behaviour of the cube
    - chnge mode settings in query
    If you have any idea, please let me know
    Thanks
    Johannes

    Hallo Herr Hilscher,
    Not input ready if I filter for more than one plan and use the plan for drill-down
    Kannst du noch mal erklären?
    Danke.
    With regards,
    Anand Kumar

  • 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!

  • 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

  • Query with drill down and w/o drill down

    Hi experts,
    We created a query with a RKF. In the output we are getting the RKF value correctly. But when we dril
    downed a characteristic i.e Special GL Ind the output is not matching. It is showing incorrect value when
    compared with the value without drill down. But if we remove the drill down then it is showing the correct
    value. What is the reason for this ?
    Regards,
    smitha.

    Our RKF def is as follows:
    Keyfigure: 0deb_cre_lc
    Chars:
    Posting Keys: 01,02,11,12
    Year start date: Restricting it with a variable created on it. Variable is of type Customer exit.This variable
    gets value from key date which is entered by user dynamically.
    Specified the offsets of Yr start date as 0 to 365.
    Regards,
    smitha.

  • Passing parameters for a query throught XML and capturing response in the same

    Hi All,
    I have defined a RequestParameters object and i am passing paramerts for a query through XML and trying to capture the result in the same and send back to the source. In this case i am send XML from excel.
    Below is my XML format.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <Insert xmlns="http://tempuri.org/">
    <dataContractValue>
    <dsRequest>
    <dsRequest>
    <SOURCE></SOURCE>
    <ACTION>Insert</ACTION>
    <RequestParams>
    <RequestParams>
    <ACC_NO>52451</ACC_NO>
    <EMP_CITY>HYD</EMP_CITY>
    <EMP_NAME>RAKESH</EMP_NAME>
    <EMP_CONTACT>99664</EMP_CONTACT>
    <EMP_JOM>NOV</EMP_JOM>
    <EMP_SALARY>12345</EMP_SALARY>
    </RequestParams>
    <RequestParams>
    <ACC_NO>52452</ACC_NO>
    <EMP_CITY>HYD</EMP_CITY>
    <EMP_NAME>RAKESH</EMP_NAME>
    <EMP_CONTACT>99664</EMP_CONTACT>
    <EMP_JOM>NOV</EMP_JOM>
    <EMP_SALARY>12345</EMP_SALARY>
    </RequestParams>
    </RequestParams>
    </dsRequest>
    <dsRequest>
    <SOURCE></SOURCE>
    <ACTION>Update</ACTION>
    <RequestParams>
    <RequestParams>
    <ACC_NO>52449</ACC_NO>
    <EMP_CITY>HYD1</EMP_CITY>
    <EMP_NAME>RAKESH1</EMP_NAME>
    <EMP_SALARY>1345</EMP_SALARY>
    </RequestParams>
    <RequestParams>
    <ACC_NO>52450</ACC_NO>
    <EMP_CITY>HYDer</EMP_CITY>
    <EMP_NAME>RAKEH</EMP_NAME>
    <EMP_SALARY>1235</EMP_SALARY>
    </RequestParams>
    </RequestParams>
    </dsRequest>
    </dsRequest>
    </dataContractValue>
    </Insert>
    </s:Body>
    </s:Envelope>
     Where i have a List of dsRequest and RequestParams, where i can send any number of requests for Insert,Update. I have two a XML element defined in RequestParams "RowsEffected","error" where the result will be caputred and is updated
    to the response XML.
    I have 6 defined in RequestParams
    EMP_SALARY(int),ACC_NO(int),EMP_CITY(string),EMP_NAME(string),EMP_CONTACT(string),EMP_JOM(string)
    My Question is:
    When i am trying to build response XML with the following code, the parameters which are not given in the Request XML are also appearing in the Response.
                    ResponseParams.Add(
    newdsResponse()
                        ACTION = OriginalParams[a].ACTION,
                        SOURCE = OriginalParams[a].SOURCE,
                        Manager = OriginalParams[a].Manager,
                        RequestParams = OriginalParams[a].RequestParams
    Where the OriginalParams is dsRequest
    Ex: In my update query i will only send three parameters, but in my response building with ablove code, i am getting all the variables defined as INT in the RequestParameters.
    Is there any way i can avoid this and build response with only the parameters given in the Request ??
    Appreciate ur help..Thanks
    Cronsey.

    Hi Kristin,
    My project is, User will be giving the parameters in the excel, and using VBA, the values are captured and an XML is created in the above mentioned format and is send to web service for the Insert/Update.
    I created a webservice which reads the values from <datacontract> and it consist of list of <dsRequests> where any number of Insert/Upate commands can be executed, with in which it contains a list of <RequestParams> for multiple insertion/Updation.
    //function call
    OriginalParams = generator.Function(query, OriginalParams);
    where OriginalParams is List<dsRequest>
    //inside function
    command.Parameters.Add()// parameters adding
    int
    val = command.ExecuteNonQuery();
    after the execution,an XML element is added for the response part.and it is looped for all the RequestParams.
    OriginalParams[i].Result.Add(
    newResult()
    { ERROR = "No Error",
    ROWS_EFFECTEFD = 1 });
    //once all the execution is done the response building part
    for(inta
    = 0; a < OriginalParams.Count; a++)
                    ResponseParams.Add(
    newdsResponse()
                      Result = OriginalParams[a].Result
    QUEST: When i am trying to build response XML with the following code, the parameters which are not given in the Request XML are also appearing in the Response.
    Ex: In my update query i will only send three parameters, but in my response building with ablove code, i am getting all the variables defined as INT in the RequestParameters.
    Is there any way i can avoid this and build response with only the parameters given in the Request ??
    Appreciate ur help..Thanks
    Cronsey.

  • 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...

  • Report is not showing a prompt for a Charactorstic Filter Drill Down..!!

    Hello Experts,
    Recently my project was enhanced with some more new project and mixed it with my project.
    Now my issue is before my new project was mixed into this project. We have the option..when a material drill down we come to see the Filter window.
    In that my old project, for the users comfortability and for knowing to users that there are more than 200 materials avaialble like that..in that filter they put one prompt message " has more than 200 values ".
    But after mixing up the enhanced new project, now..we are unable to see the above prompt message in Filter window..when material drill down.
    User requirement is to again users need to see that kinf of prompt in the materils drill down filter window.
    Requesting you , please reply me if any body faced this kind of issue in your projects or come to know from ur end.
    Thanks,
    SN.

    Hi,
    This Prompt message would have been set in WAD(XHTML Coding section) in your old project. Now , you cross check your Web template for the same. Your issue will be resolved.
    Regards,
    Suman

  • Macro for same level of Drill down - Data in different grids

    Dear Team
    We have two characateristics of product - Product Line & Parent product Line.
    I have created a planning book with two girds -
    What I want is, in the first grid -
    The Revised plan for the PL (Product Line) = Forecast Share of PL  * Planned Production of the PPL (Parent product pine).
    The Planned Production production of all PPLs together (Sum) is available in second gird. But how do I write a macro to fetch Planned production of each PPL (From second grid) and write a macro to calculate the logic in first grid?
    E.g. in Above screen, the Planned Production of 60 is total Planned production of two PPLs (Indica =10 & Indigo = 50).
    So If I want to achieve to calculate revised plan for Indica V2 & Indica Vista which has share of 40 & 60 % resp, in order to calculate the revised plan as 40% of 10 & 60% of 10 , how do I write a Macro to drill down second grid and fetch value of 10 for PPL = Indica?

    Hi Anish,
    There is "Series Names Destination:" parameter on Drill-Down (Insertion) Tab of Bubble chart component. By using that parameter you can retrieve selected serie. Via that value you can extract selected serie's selected value and drill down to required selection via some excel formulas like index-match or vlookup-hlookup. I hope that solves your issue.
    Regards,
    Ahmet

Maybe you are looking for

  • Bypassing the logon page

    <p>Hi,</p><p>I have been using the openDocument  function as detailed in the topic <a href="/node/1780">Opening a report in a new window on the web</a> to display a crystal report. Unless I happened to have already logged into InfoView I am first tak

  • How much hard disk free space?

    My mini is used almost exclusively as a media "appliance", hooked up to a large flat panel TV. Installed on the mini itself is the operating system and little more. Attached to it are several (currently 4) large (1 TB) firewire hard drives crammed wi

  • Lost pics (no solution in faqs or knowledgebase)

    Ok here it goes, I am on the most current version of Lightroom, and I have apparently 132 missing pics, I believe the error is on my part and not the database's from an upgrade. The reason is that after importing I didn't export them to my folders. N

  • Error while loading text

    Hi Gurus, When loading text data for 0material,it is getting an error and for material description we have both characterstics and numerics . *Error:"Data Records (00000000001E00000001):version(00000000001E00000001) is not valid."* I can share the sc

  • Why won't a blackberry receive a photo from my iphone

    I can receive pictures from a Blackberry, but the Blackberry won't receive pictures from my Iphone ?