Add statistical function to this?

I have this SQL which aggregate quantity per week.
WITH  weeks_vw AS
    ( SELECT  DISTINCT TO_CHAR(fill_year_day,'IYYYIW') AS fill_year_week
            FROM
           ( SELECT  to_date('2012-11-01','yyyy-mm-dd')  + (ROWNUM-1) AS fill_year_day
                    FROM    DUAL
                    CONNECT BY      LEVEL <= TRUNC(to_date('2012-12-10','yyyy-mm-dd') - to_date('2012-11-01','yyyy-mm-dd') ) + 1)
SELECT  a.material, a.plant, sum(NVL(quantity,0)) AS sales_qty_sum
    FROM
SELECT  t.material, t.plant, t.quantity, TO_CHAR(t.posting_date,'IYYYIW') AS posting_week
         FROM    tblTotalCom t
         Where     t.plant = '1900'
         AND     t.Posting_date >= to_date('2012-11-01','yyyy-mm-dd')
         AND     t.Posting_date <= to_date('2012-12-10','yyyy-mm-dd')
         AND     t.material = 'Label1' ) A
    PARTITION BY (a.material,a.plant) RIGHT OUTER JOIN weeks_vw  ON weeks_vw.fill_year_week = A.posting_week
    GROUP BY  a.material, a.plant, fill_year_weekNow I want to add a statistical function as below in this SQL to remove outliers.
WITH     got_analytics     AS
     SELECT       deptno
     ,       ename
     ,       sal
     ,       AVG (sal)    OVER (PARTITION BY  deptno)     AS avg_sal
     ,       STDDEV (sal) OVER (PARTITION BY  deptno)     AS stddev_sal
     FROM       scott.emp
SELECT       a.*
,       CASE
           WHEN  ABS (sal - avg_sal)     > stddev_sal * 1.0   -- Change this number
           THEN  '*** Outlier ***'
       END     AS outlier
FROM       got_analytics  a
ORDER BY  deptno
,            sal
;Do not know how to do it ...?

Why did you answer that as a question? Are you not sure which approach you need? Is my question unclear? Obviously, it's hard to provide something that helps you if we're not sure exactly what you are trying to accomplish...
WITH  weeks_vw AS
    ( SELECT  DISTINCT TO_CHAR(fill_year_day,'IYYYIW') AS fill_year_week
            FROM
           ( SELECT  to_date('2012-11-01','yyyy-mm-dd')  + (ROWNUM-1) AS fill_year_day
                    FROM    DUAL
                    CONNECT BY      LEVEL <= TRUNC(to_date('2012-12-10','yyyy-mm-dd') - to_date('2012-11-01','yyyy-mm-dd') ) + 1)
SELECT material,
      plant,
      sales_qty_sum,
      avg(sales_qty_sum) over () avg_sum,
      stddev(sales_qty_sum) over () std_dev_sum,
      abs((sales_qty_sum - avg(sales_qty_sum) over ())/ stddev(sales_qty_sum) over ()) stddevs_away
  FROM (
      SELECT  a.material, a.plant, sum(NVL(quantity,0)) AS sales_qty_sum
          FROM
            SELECT  t.material, t.plant, t.quantity, TO_CHAR(t.posting_date,'IYYYIW') AS posting_week
              FROM    tblTotalCom t
             Where     t.plant = '1900'
              AND     t.Posting_date >= to_date('2012-11-01','yyyy-mm-dd')
              AND     t.Posting_date <= to_date('2012-12-10','yyyy-mm-dd')
              AND     t.material = 'Label1' ) A
       PARTITION BY (a.material,a.plant) RIGHT OUTER JOIN weeks_vw  ON weeks_vw.fill_year_week = A.posting_week
       GROUP BY  a.material, a.plant, fill_year_week)should compute the average sum, the standard deviation of the sum, and the number of standard deviations a particular row is from the mean. You can then filter out those rows that are more than 1 standard deviation from the mean
WITH  weeks_vw AS
    ( SELECT  DISTINCT TO_CHAR(fill_year_day,'IYYYIW') AS fill_year_week
            FROM
           ( SELECT  to_date('2012-11-01','yyyy-mm-dd')  + (ROWNUM-1) AS fill_year_day
                    FROM    DUAL
                    CONNECT BY      LEVEL <= TRUNC(to_date('2012-12-10','yyyy-mm-dd') - to_date('2012-11-01','yyyy-mm-dd') ) + 1)
SELECT *
  FROM (
SELECT material,
      plant,
      sales_qty_sum,
      avg(sales_qty_sum) over () avg_sum,
      stddev(sales_qty_sum) over () std_dev_sum,
      abs((sales_qty_sum - avg(sales_qty_sum) over ())/ stddev(sales_qty_sum) over ()) stddevs_away
  FROM (
      SELECT  a.material, a.plant, sum(NVL(quantity,0)) AS sales_qty_sum
          FROM
            SELECT  t.material, t.plant, t.quantity, TO_CHAR(t.posting_date,'IYYYIW') AS posting_week
              FROM    tblTotalCom t
             Where     t.plant = '1900'
              AND     t.Posting_date >= to_date('2012-11-01','yyyy-mm-dd')
              AND     t.Posting_date <= to_date('2012-12-10','yyyy-mm-dd')
              AND     t.material = 'Label1' ) A
       PARTITION BY (a.material,a.plant) RIGHT OUTER JOIN weeks_vw  ON weeks_vw.fill_year_week = A.posting_week
       GROUP BY  a.material, a.plant, fill_year_week))
WHERE stddevs_away <= 1Note that this will generally filter out ~33% of your data if you assume a normal distribution so this is a rather odd definition of "outlier". I believe in the earlier question you asked, it was suggested that you would probably want to pick cutoff of more than 1 standard deviation
Also, it would be very helpful if you posted the DDL to create the table, the DML to populate some sample data, and the expected results. Obviously, since I don't have your tables, I can't test the queries I posted which makes it very possible that I introduced an inadvertent syntax error.
Justin
Edited by: Justin Cave on Dec 11, 2012 5:15 PM

Similar Messages

  • Downloaded 11.0.3 (42) 64 bit to my MacBook Pro and it crashes every time I select a song a use the 'add to' function to add to a play list. It's never done this before, is it a bug with the new version?

    downloaded 11.0.3 (42) 64 bit to my MacBook Pro and it crashes every time I select a song a use the 'add to' function to add to a play list. It's never done this before, is it a bug with the new version?

    You could just disable updates. Change these settings in about:config.
    * app.update.auto - set to false
    * app.update.enabled - set to false
    You can still check for updates with the "Check for Updates" button in the About Firefox window, but it will download the update file anyway if there is an update available. You can also check which is the current release from here:
    * http://sjc.mozilla.com/en-US/firefox/new/

  • I want to add new field to this list

    hi all,
    i want to add new field to this list.
    kostenstelle from table zfmkstel
    *& Report  ZFM_MOBLIST                                                 *
    REPORT  ZFM_MOBLIST.
    TABLES: zfm_handy , pa0002.
    TYPE-POOLS : slis.
    DATA: g_repid LIKE sy-repid,
          gs_print            TYPE slis_print_alv,
          gt_list_top_of_page TYPE slis_t_listheader,
          gt_list_end_of_page TYPE slis_t_listheader,
          gt_events           TYPE slis_t_event,
          gt_sort             TYPE slis_t_sortinfo_alv,
          gs_layout           TYPE slis_layout_alv,
          gt_fieldcat         TYPE slis_t_fieldcat_alv,
          fieldcat_ln LIKE LINE OF gt_fieldcat,
          col_pos TYPE i.
    *DATA : BEGIN OF it_moblist OCCURS 0.
           INCLUDE STRUCTURE zfm_handy.
    *DATA :  nachn  TYPE  pa0002-nachn,     
           vorna TYPE  pa0002-vorna,
         END OF it_moblist.
    DATA : BEGIN OF IT_MOBLIST OCCURS 0,
           TELNUM TYPE ZFM_HANDY-TELNUM,
           KARTNR TYPE ZFM_HANDY-KARTNR,
           ZUTART TYPE ZFM_HANDY-ZUTART,
           PERNR TYPE ZFM_HANDY-PERNR,
           nachn  TYPE pa0002-nachn,
           VORNA TYPE pa0002-vorna,
           ZDATE TYPE ZFM_HANDY-ZDATE,
           PINNR TYPE ZFM_HANDY-PINNR,
           PUKNR TYPE ZFM_HANDY-PUKNR,
           TARIF1 TYPE ZFM_HANDY-TARIF1,
           TARIF2 TYPE ZFM_HANDY-TARIF2,
           TARIF3 TYPE ZFM_HANDY-TARIF3,
           GTYPE TYPE ZFM_HANDY-GTYPE,
           IMEI TYPE ZFM_HANDY-TARIF1,
            twincard type zfm_handy-twincard,
            twinbill type zfm_handy-twinbill,
            einbau type zfm_handy-einbau,
            beschr type zfm_handy-beschr,
            text1 type zfm_handy-text1,
             text2 type zfm_handy-text2,
              text3 type zfm_handy-text3,
              end of it_moblist.
    DATA : BEGIN OF IT_zfm_handy OCCURS 0,
         TELNUM TYPE ZFM_HANDY-TELNUM,
         KARTNR TYPE ZFM_HANDY-KARTNR,
         ZUTART TYPE ZFM_HANDY-ZUTART,
         PERNR TYPE ZFM_HANDY-PERNR,
         ZDATE TYPE ZFM_HANDY-ZDATE,
         PINNR TYPE ZFM_HANDY-PINNR,
         PUKNR TYPE ZFM_HANDY-PUKNR,
         TARIF1 TYPE ZFM_HANDY-TARIF1,
         TARIF2 TYPE ZFM_HANDY-TARIF2,
         TARIF3 TYPE ZFM_HANDY-TARIF3,
         GTYPE TYPE ZFM_HANDY-GTYPE,
         IMEI TYPE ZFM_HANDY-TARIF1,
          twincard type zfm_handy-twincard,
          twinbill type zfm_handy-twinbill,
          einbau type zfm_handy-einbau,
          beschr type zfm_handy-beschr,
          text1 type zfm_handy-text1,
           text2 type zfm_handy-text2,
            text3 type zfm_handy-text3,
            end of it_zfm_handy.
    *DATA : BEGIN OF it_zfm_handy OCCURS 0.
           INCLUDE STRUCTURE zfm_handy.
    *DATA END OF it_zfm_handy.
    DATA : BEGIN OF it_pa0002 OCCURS 0,
            pernr TYPE pa0002-pernr,
            nachn   TYPE pa0002-nachn,     
           vorna     TYPE pa0002-vorna,
           pernr TYPE pa0002-pernr,
           END OF it_pa0002.
    INITIALIZATION.
      g_repid = sy-repid.
      PERFORM print_build USING gs_print.      "Print PARAMETERS
    START-OF-SELECTION.
      PERFORM data_selection.
      PERFORM build_fieldcat.
      PERFORM eventtab_build CHANGING gt_events.
      PERFORM comment_build  CHANGING gt_list_top_of_page.
      PERFORM call_alv.
    *&      Form  TOP_OF_PAGE
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = gt_list_top_of_page.
      WRITE: sy-datum, 'Page No', sy-pagno RIGHT-JUSTIFIED.
    ENDFORM.                    "TOP_OF_PAGE
    *&      Form  END_OF_PAGE
    FORM end_of_page.
      WRITE: /.
      WRITE AT (sy-linsz) sy-pagno CENTERED.
    ENDFORM.                    "END_OF_PAGE
    ### PRINT SETTINGS
    FORM print_build USING ls_print TYPE slis_print_alv.
      ls_print-print              = ' '. "PRINT IMMEDIATE
      ls_print-no_print_selinfos  = 'X'. "NO SELECTION INFO
      ls_print-no_coverpage       = ' '. "NO COVER PAGE
      ls_print-no_new_page        = ' '. "NO NEW PAGE
      ls_print-no_print_listinfos = 'X'. "NO PRINT LIST INFO
      ls_print-reserve_lines      = 2.   " FOOTERLINE
    ENDFORM.                    "PRINT_BUILD
    *&      Form  data_selection
          text
    -->  p1        text
    <--  p2        text
    FORM  data_selection .
      data : n(8) type n.
      SELECT * FROM
                 zfm_handy
           INTO CORRESPONDING FIELDS OF TABLE it_zfm_handy where pernr ne space.
      IF NOT it_zfm_handy[] IS INITIAL.
        loop at it_zfm_handy.
          n = it_zfm_handy-pernr.
          it_zfm_handy-pernr = n.
          modify it_zfm_handy.
        endloop.
        SELECT  pernr  nachn        
               vorna     
         FROM  pa0002
         INTO TABLE it_pa0002
         FOR ALL ENTRIES IN it_zfm_handy
         WHERE pernr = it_zfm_handy-pernr and endda = '99991231'.
       SELECT  pernr  nachn        
              vorna     
        FROM  pa0002
        INTO TABLE it_pa0002
        FOR ALL ENTRIES IN it_zfm_handy
        WHERE pernr = it_zfm_handy-pernr and begda le sy-datum and endda ge sy-datum.
      ENDIF.                              " not it_zfm_handy
      LOOP AT it_zfm_handy.
        MOVE-CORRESPONDING  it_zfm_handy TO it_moblist.
        clear it_pa0002.
        READ TABLE it_pa0002  WITH KEY pernr = it_zfm_handy-pernr.
        if sy-subrc = 0.
          move it_pa0002-nachn to it_moblist-nachn.
          move it_pa0002-vorna to it_moblist-vorna.
          move it_pa0002-pernr to it_moblist-pernr.
        ENDIF.
        APPEND  it_moblist.
        CLEAR   it_moblist.
    *endif.
      ENDLOOP.
    ENDFORM.                    " data_selection
    *&      Form  BUILD
          text
    -->  p1        text
    <--  p2        text
    FORM build_fieldcat .
    Explain Field Description to ALV
      DATA: fieldcat_in TYPE slis_fieldcat_alv.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname = 'TELNUM'.
      fieldcat_ln-tabname   = 'IT_MOBLIST'.
      fieldcat_ln-no_out    = ' '.
      fieldcat_ln-seltext_l = 'TELNUM'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname = 'KARTNR'.
      fieldcat_ln-tabname   = 'IT_MOBLIST'.
      fieldcat_ln-no_out    = ' '.
      fieldcat_ln-seltext_l = 'KARTNR'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname = 'ZUTART'.
      fieldcat_ln-tabname   = 'IT_MOBLIST'.
      fieldcat_ln-no_out    = ' '.
      fieldcat_ln-seltext_l = 'ZUTART'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'PERNR'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'PERNR'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'NACHN'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l =  'NACHN'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'VORNA'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'VORNA'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'ZDATE'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'ZDATE'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'PINNR'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'PINNR'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'PUKNR'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'PUKNR'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'TARIF1'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'TARIF1'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'TARIF2'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'TARIF2'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'TARIF3'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'TARIF3'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'GTYPE'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'GTYPE'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'IMEI'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'IMEI'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'TWINCARD'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'TWINCARD'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'TWINBILL'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'TWINBILL'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'EINBAU'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'EINBAU'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'BESCHR'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'BESCHR'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'TEXT1'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'TEXT1'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'TEXT2'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'TEXT2'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'TEXT3'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'TEXT3'.
      APPEND fieldcat_ln TO gt_fieldcat.
    DATA SORTING
      DATA: gs_sort TYPE slis_sortinfo_alv.
      CLEAR gs_sort.
      gs_sort-fieldname = 'TELNUM'.
      gs_sort-spos      = 1.
      gs_sort-up        = 'X'.
    GS_SORT-SUBTOT    = 'X'.
      APPEND gs_sort TO gt_sort.
    CLEAR GS_SORT.
    GS_SORT-FIELDNAME = 'KARTNR'.
    GS_SORT-SPOS      = 2.
    GS_SORT-UP        = 'X'.
    *GS_SORT-SUBTOT    = 'X'.
      APPEND gs_sort TO gt_sort.
    ENDFORM.                    " BUILD
    *&      Form  EVENTTAB_BUILD
          text
         <--P_GT_EVENTS  text
    FORM eventtab_build  CHANGING lt_events TYPE slis_t_event.
      CONSTANTS:
    gc_formname_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE',
    gc_formname_end_of_page TYPE slis_formname VALUE 'END_OF_PAGE'.
      DATA: ls_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = lt_events.
      READ TABLE lt_events WITH KEY name =  slis_ev_top_of_page
                               INTO ls_event.
      IF sy-subrc = 0.
        MOVE gc_formname_top_of_page TO ls_event-form.
        APPEND ls_event TO lt_events.
      ENDIF.
    define END_OF_PAGE event
      READ TABLE lt_events WITH KEY name =  slis_ev_end_of_page
                               INTO ls_event.
      IF sy-subrc = 0.
        MOVE gc_formname_end_of_page TO ls_event-form.
        APPEND ls_event TO lt_events.
      ENDIF.
    ENDFORM.                    " EVENTTAB_BUILD
    *&      Form  COMMENT_BUILD
          text
         <--P_GT_LIST_TOP_OF_PAGE  text
    FORM comment_build  CHANGING gt_top_of_page TYPE slis_t_listheader.
      DATA: gs_line TYPE slis_listheader.
      DATA: today_date(10) TYPE c.
      CONCATENATE
      sy-datum+6(2) '.'
      sy-datum+4(2) '.'
      sy-datum(4) INTO today_date.
      CLEAR gs_line.
      gs_line-typ  = 'H'.
      gs_line-info = 'MOBLIST DETAILS'.
      APPEND gs_line TO gt_top_of_page.
      CLEAR gs_line.
      gs_line-typ  = 'S'.
      gs_line-key  = 'Date:'.
      gs_line-info = today_date.
      APPEND gs_line TO gt_top_of_page.
    GS_LINE-KEY  = 'User:'.
    GS_LINE-INFO = sy-uname.
      APPEND gs_line TO gt_top_of_page.
      CLEAR gs_line.
      gs_line-typ  = 'A'.
      gs_line-info = 'ACTION'.
      APPEND gs_line TO  gt_top_of_page.
    ENDFORM.                    " COMMENT_BUILD
    *&      Form  CALL_ALV
          text
    -->  p1        text
    <--  p2        text
    FORM call_alv .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
       i_callback_program = g_repid
    I_CALLBACK_PF_STATUS_SET = ' '
    I_CALLBACK_USER_COMMAND = ' '
       is_layout =  gs_layout
       it_fieldcat = gt_fieldcat
         it_sort = gt_sort
         it_events = gt_events
         is_print = gs_print
       TABLES
         t_outtab = IT_MOBLIST
       EXCEPTIONS
         program_error = 1
       OTHERS = 2.
    ENDFORM.                    "CALL_ALV.

    Hi,
    add:
    1) to IT_MOBLIST
    text3 type zfm_handy-text3,
    kostl type csks-kostl,
    end of it_moblist.
    2)...
    CLEAR fieldcat_in.
    fieldcat_ln-fieldname = 'KOSTL'.
    fieldcat_ln-tabname = 'IT_MOBLIST'.
    fieldcat_ln-no_out = ' '.
    fieldcat_ln-seltext_l = 'KOSTL'.
    APPEND fieldcat_ln TO gt_fieldcat.

  • How do I get an Apple License to add Mac functions to the keyboard my company manufactures?

    I'm writing to inquire about the process for obtaining a VID license to add mac functions to the keyboard my company manufactures. I've called serveral numbers (Apple Support, Apple Software Licensing, Apple Legal, Apple Corporate, Apple Developers, etc as well as emailed all these departments and more) with no response or instructions on how to move forward. Is what we're hoping for even possible???
    The mac functions we want to add to our keyboard are: the ability to touch one key to open the dashboard, same for the expose feature- rather than needing to press two keys- fn plus the F1-F12 key needed (this is a mac function that can be set up in the control panel on any mac). We would like our keyboards to be work in this manner, just as a mac keyboard would.
    We do not need to use the Dashboard or expose keycap images (I already know there are no current licenses for those), just the functions.
    Does anyone know the process for obtaining this sort of license? The cost? Any information would be helpful. I've been put on hold for over two hours, on several occassions, lead to empty voicemail systems that lead to no-one, and written over a dozen emails with only automated responses- none of which applicable to our question.
    I just want to know if this is possible ! Please help!
    Thank you in advanced.

    "...you don't have to press two keys to do any of that on a Mac keyboard." That is our goal, we are not a mac keyboard, but manufacture PC and Mac compatible keyboards.... since we are not an apple product, to utilize those hot and media keys we've had to press fn first...
    we want our next keyboard release to do as mac keyboards do and by that only press one button for those functions. We are advised to first recieve apple permissions to manufacture a keyboard like this.
    Also, I have been all over the site linked above, I've emailed and called these guys several times (from the link):
    Apple Inc.
    Software Licensing Dept
    12545 Riata Vista Circle
    MS:198-3SWL
    Austin, TX 78727
    (also their phone is 512.674.2645)
    No one there has been able to answer my question, or be able to offer any help regarding this type of license (contrary to the department name).
    Thanks for responding, but unfortunately it doesn't really help us answer our question.

  • How do I add a functional "submit button" to a pdf form in Adobe Acrobat Pro XI ? I created the pdf form in Adobe Forms Central.

    How do I add a functional "submit button" to a pdf form in Adobe Acrobat Pro XI ? I created the pdf form in Adobe Forms Central. It's for an online Diet Questionnaire. After people complete the form I'd like them to click "SUBMIT" and the completed form will be emailed to me.

    This can be a bit confusing because Acrobat 11 comes with the desktop app that allows you to create simple PDF forms without having a FormsCentral account. Some people find this helpful, but you need to understand that when you generate the PDF form, it is Reader-enabled by Acrobat. In order to edit the form further in Acrobat, you have to create a non-enabled copy of the form. You do this in Acrobat by opening the form and selecting: File > Save a Copy
    and opening the copy. It is not opened automatically.
    You can now add a button and set it up to submit by email, either using a "Submit a form" action or the submitForm JavaScript method. You can set it up to include just the form data or the entire PDF, and will want to use a mailto type URL. Submitting the form to the FormsCentral server has a number of important advantages over email (much more reliable, more secure, etc.), so you might want to consider it.
    If the form needs to be saved with Reader versions prior to 11, then you will need to Reader-enable the document. In Acrobat 11 you do this by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools

  • How to use Add Shipments functionality in Shipment document creation

    Dear All,
    We wanted to use the Add Shipments functionality in the Shipment document creation / change.
    We have two different shipment types.
    I want to add shipments of one shipment type in to Shipment document of anohter shipment type.
    I am not able to do it now as system is saying in the selection log that the shipment types are not same.
    Please let me know what are the pre requisite configurations to enable us to add shipments in to another shipment.
    Please let me tknow he standard functionality of "Add Shipments option" and how to use it to add shipments in a Shipment
    Regards
    Venkat

    Hi Venkat,
    The option "find shipments" is provided to select the shipments to reassign or deassign the deiveries etc in VT01n or VT02n
    transaction planning screen. Basically you can play around to assign and reassign the deliveries to different shipments
    This option is not creating the shipment within shipment. It is just selection of shipments for planning purposes
    Hope this helps.
    Regards,
    Ramana

  • Attempting to add aditional functionality to my program. Can it be done?

    I play online poker. I've written a program that keeps track of poker hands I've played, as well as the players I've played against. After every hand, the poker client writes the hand to a text file. My program reads these text files, extracts certain information regarding the hands and stores it in a database.
    I want to add the functionality to the program that would enable it to be aware of things that are happening during the course of a hand; i.e, what cards are displayed on the board, what action each player has taken (raise, bet, check, etc.), how much each player bets, etc. These things can easily be attained AFTER the hand is over by reading through the text file that is saved, but I want the program to have access to this information DURING the hand, so I can have it preform various calculations and various other tasks.
    Now, I'm not sure how to go about doing this, nor am I sure if this can even be done in java. I expect what I would need to do is have the program intercept the data which represents various things - actions taken by players, bet sizes, displayed cards, etc - that is transfered between the poker client and server . Or, perhaps, there is a simpler, more obvious solution to this.
    So, is there any way to do the above with the proposed solution? If not, is there any other way that my program can work with the poker client itself in order to obtain the desired information without dealing with the interaction between the poker client and server?

    Who does this and how? Is the progam dumping this information? Are you manually entering it? Or did you actually write a program that is doing this? And how does it work?What happens is after a hand is completed, the poker client writes the hand to a text file. My program reads through this text file and extracts certain information. So, the text file looks something like this:
    Seat 4: player 1 ($156.50 in chips)
    Seat 6: player 2 ($17.50 in chips)
    player 1: posts small blind $1
    player 2: posts big blind $2
    *** HOLE CARDS ***
    Dealt to player 1 [9s Js]
    player 1: raises $2 to $4
    player 2: raises $2 to $6
    player 1: calls $2
    *** FLOP *** [3d As Jh]
    player 2: bets $2
    player 1: calls $2
    *** TURN *** [3d As Jh] [3h]
    player 2: bets $4
    player 1: raises $4 to $8
    player 2: calls $4
    *** RIVER *** [3d As Jh 3h] [6s]
    player 2: bets $4
    player 1: calls $4
    *** SHOW DOWN ***
    player 2: shows [Ah Kd] (two pair, Aces and Threes)
    player 1: mucks hand
    player 2 collected $39 from pot
    *** SUMMARY ***
    Total pot $41 | Rake $2
    Board [3d As Jh 3h 6s]
    Seat 3: player 2(big blind) showed [Ah Kd] and won ($39) with two pair, Aces and Threes
    Seat 4: player 1 mucked [9s Js]
    So my program just parses this text and extracts certain information, then saves it to a database I created using JDBC. I can then access this info through the GUI I created.
    This question is problematic because I don't see how if you actually wrote a program that actually does something that you couldn't make it working during the game and not just after. What I suspect is happening is that either the client is dumping this information for you or that you are manually capturing it.
    So can you describe how you are getting the information now exactly?The problem is that the text file is written to AFTER the hand takes place, not during. I'm looking for a way to access what is taking place in the hand, during the hand and not after.
    Is that helfpul at all?

  • Add Memo Functionality not working in UWL

    Hi All,
    We have added the code in custom UWL to activate the "Add memo" functionality under "You can also:"
    in portal inbox for the tasks as per suggested in help.sap.com.
    Now when I enter the value and title, then click on submit under Add Memo, i get an error "This action is not valid for this item". I have tried the same with different tasks but for all i get the same error.
    Please assist me if any other configuration has to be done to make it working.
    Thanks
    Edited by: Namit Mehta on Apr 17, 2009 6:00 AM

    I found the answer myself.. along with "addmemo" parameter , we also have to add "uploadmemo" parameter in UWL task configuration file.
    THis resolved my issue.
    Thanks

  • How to add new function in B1

    Can i add new function in B1.Example exist function in 2005 version is Concat(,) if i want to add new function can i do.I want function to convert number to text for decribe total price, example total price = 3250 the text must show as 'three thousand and two hundred fifty'.Can i do.Please reply.
                                            thank you

    Hi Virasak
    Where are you trying to do this??? In your program or the pld. If in the pld it can be done, works great.
    In the sdk itself i do not think there is any functions for this, but you should check in your programming enviroment to see if it has such a function.
    Hope this helps

  • TileList Add/Remove function problems for a flex beginner

    I am starting up a new project for my university course which will allow users to drag and drop icons into their own area.
    I wanted to use a TileList to provide the buttons for the users to select their area i.e. when a user clicks on a button in the TileList their area will be shown then they can drag items into it from another area that will always be shown (these items will later act as links to websites effectively making this application an interactive favourites menu but I'm nowhere near that point yet).
    The thing is I also wanted the user's to have the ability to add a new user or remove a selected user by clicking buttons to either add a new user or click a button that will delete a selected user however after searching the internet for code and using it in my application it's a little but messed up.
    The problem is I have created an array of 5 profiles (slots for each user) but I only want each slot to be added once whereas at the moment I can remove buttons easily using the remove item button when a user button is selected but if i add a few profiles then delete one and add another sometimes there will be 2 instances of the same button added. I only want ONE of each profile button from the array to be viewable in the application at any one time. It's hard for me to explain this so heres my full code for the applicattion. I'm sure it just needs slightly tweaking but if someone could edit it for me it would be greatly appreciated as I'm totally stuck:-
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:components="components.*" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#545351, #E3DFDF]">
       <mx:Script>
          <![CDATA[
             import mx.managers.*;
               private var _dragManager:DragManager;
               private var _historyManager:HistoryManager;
               private var _popupManager:PopUpManager;
               import flash.net.navigateToURL;
               import flash.net.URLRequest;
               import flash.net.URLVariables; 
               import mx.events.ListEvent; 
               import mx.controls.Button;
                import mx.collections.*;
                import mx.controls.Alert;
          ]]>
       </mx:Script>
        <mx:Script>
            <![CDATA[
                import mx.effects.easing.Elastic;
                import mx.collections.ArrayCollection;
                [Bindable]
                private var myDP:ArrayCollection = new ArrayCollection(
                private var dpArr:Array = [{label: "New Profile 1", data:1},{label: "New Profile 2", data:2}, {label: "New Profile 3", data:3},{label: "New Profile 4", data:4}, {label: "New Profile 5", data:5}];
                private function deleteItem():void {
                    // Remove item from Array Collection
                    if(myDP.length > 0){
                        var toRemove:Array = [];
                    for (var i:int = 0; i < tlist0.selectedItems.length; i++)
                        toRemove.push(tlist0.selectedItems);
                    for (i = 0; i < toRemove.length; i++)
                        myDP.removeItemAt(myDP.getItemIndex(toRemove));
                private var zcount:int = 0;
                private function addItem():void {
                    // Add item from source Array to Array Collection
                    if(myDP.length < dpArr.length){
                        myDP.addItemAt(dpArr[myDP.length],myDP.length);
                 private function tileList_itemClick(event:ListEvent):void {
                private function showAlert(event:ListEvent):void{
                  Alert.show("You clicked button #"+event.currentTarget.selectedItem.data);
            ]]>
        </mx:Script>
        <mx:Sequence id="itemsChangeEffect1">
            <mx:Blur blurYTo="12" blurXTo="12" duration="300" perElementOffset="150" filter="removeItem"/>
            <mx:Parallel>
                <mx:Move duration="750" easingFunction="{Elastic.easeOut}" perElementOffset="20"/>
                <mx:RemoveItemAction startDelay="400" filter="removeItem"/>
                <mx:AddItemAction startDelay="400" filter="addItem"/>
                <mx:Blur startDelay="410" blurXFrom="18" blurYFrom="18" blurXTo="0" blurYTo="0" duration="300" filter="addItem"/>
            </mx:Parallel>
        </mx:Sequence>
       <mx:Canvas width="1168" height="716" backgroundColor="#0219FB" horizontalCenter="0" verticalCenter="0" borderColor="#000000" borderStyle="solid" borderThickness="1" cornerRadius="20"  backgroundAlpha="0.8">
          <mx:Canvas id="UserArea" left="10" x="0" y="49" width="670" height="594" backgroundColor="#000000" cornerRadius="20" borderStyle="solid">
               <mx:TileList id="tlist0" itemClick="{showAlert(event)}" itemRenderer="mx.controls.Button" top="10" left="10" right="10"  color="#FFFFFF" height="50" width="100%" fontSize="12" fontStyle="bold" columnCount="5" rowCount="2" direction="horizontal" dataProvider="{myDP}" itemsChangeEffect="{itemsChangeEffect1}" backgroundColor="#000000" fontWeight="bold" borderStyle="none"/>
               <mx:Canvas x="63" y="129" width="200" height="200" fontSize="36" borderColor="#FFFFFF" id="Canvas1" visible="false">
                  <mx:Label x="27" y="25" text="Profile 1"/>
               </mx:Canvas>
          </mx:Canvas>
          <mx:Button label="Remove item" click="deleteItem();" color="0x323232" x="96" y="10"/>
          <mx:Button label="Add item" click="addItem();" color="0x323232" x="10" y="10"/>
       </mx:Canvas>
    </mx:Application>

    I've changed the code for the additem function to this but it only works to an extent now:-
    private function addItem():void
    // Add item from source Array to Array Collection
    if (myDP.length < dpArr.length && !myDP.contains(dpArr[myDP.length])){
         myDP.addItemAt(dpArr[myDP.length],myDP.length);
    It does only allow 1 of only the 5 profiles from the array to be added to the tilelist as I wanted but it appears that it is now impossible to add buttons anymore in certain situations.
    For example if i run the application add all the profile buttons so all profile buttons are shown in the tile list and then remove profile buttons 2 3 and 4 and then click the add item button 3 times buttons 2 3 and 4 should be added however only 3 and 4 appear after profile 5 and 2 doesn't appear no matter how many times I click 'add item'.
    What I want is for all 5 buttons from the array to be addable at any time but only one of each number should be shown. This may be to do with other code but I'm not sure.

  • How to Implement Add User Functionality in ADF

    Hi,
    I already setup my web app to use ADF security and the sample user's and groups that I have created in jazn-data.xml is already
    functioning as expected.
    I just need to add the functionality on how to programmmaically add user in my weblogic internal LDAP realm
    and assign them to the currently configured user groups.
    This would be available to Admin Level user.
    Anybody has good site or link on how to accomplish this in my ADF Web Application?
    Thanks
    JDEV 11G PS3

    Hi Arun,
    Jdev Version 11.1.1.6.0
    I have one table already created in a hosted db.It has some columns namely Component,Manager,%CodeCoverage,TotalLines,Covered Lines.One manager has 5-6 components under him.
    What I want is to have a table having manager name and if I click on manager,it should show components under him with all the details mentioned above.
    I wanted to achieve it through tree table but don't know how to proceed

  • Add a function in the save process of a bid quotation

    Dear Experts,
    I like to add a function module into the save process of the quotation (bid_quot)
    I found the html template, but not the place where I can add my function. I also found the java comand where the save function is called.
    I'm really new to this, so I', not that familiar with these processes.
    What I would like to do is to create a change document when a user creates a quotation. Is there another solution?
    Best regards
    Christian

    Hi,
    I did a research on your error message and it seems this problem was introduced with MAX 4.6. This version switched to a new error reporting mechanism and reports even errors that are which are not critical to your task.
    These errors typically show up as "unexpected" and if your error falls into this category have a look to this KB for further assistance.
    If it doesn't fall into this category, your could try to go back to the MAX 4.5 or 4.4.. Of course you would need to reinstall some components and might not be able to use newer drivers at all.
    Let me know.
    DirkW

  • Need to add Chat functionality on iStore

    Hi,
    I need to add chat functionality on iStore.
    I got this link from Oracle Community forum , but i think it is applicable only to Oracle forums.
    iStore
    Any ideas please for the implementation for the chat code.
    Thanks,
    Sabitha

    You can consider setting up Call Back....
    Setting up Call Back in Oracle iStore
    After setting up Oracle iSupport and Oracle Telephony Manager, set the following profile option at the application level to iStore.
    IBE: Use Call Me Back: Set to Yes to activate the callback feature.
    The profile option defaults to No if not set.

  • Using advanced statistical functions in BO or creating your own ones

    Hello,
    Can someone tell me if it is possible to use more advanced statistical functions in BO (webi or deski f.i.) like the possibility to extrapolate figures. I only see a limited functions in Webi (mean, intrapolate, percentiles, ...).
    If not is it then possible to add own functions in the available functions?
    many regards

    I believe there are more possibilities in WEbi 4.O

  • Add emil functionality to Report Painter

    Hi all,
    It is tough to explain my requirement but I i am doing my best to make it clear!!1
    We have Transaction ZZ007A which calles Report writer Program
    My requirement is to add emil functionality to send these reports to clients.
    We have one of selection parameter is Profit center Group. I need to call this transaction separately for all profit centers under this grouo and email report to correspndant profit center.
    This Report is not ABAP, it is report writer.
    How can I do this?
    Cheers
    Shiva
    Title was edited by:
            Alvaro Tejada Galindo

    Hi
    You have to download the out[ut and to send the output file as mail to others.
    because you can't write code to send mails in the report painter/writer reports.
    check the links
    Report Writer functions can be accessed from within the Report Painter.
    The difference lies in the GUI of the report painter.
    For Report Painter
    http://help.sap.com/saphelp_47x200/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/content.htm
    For Report Writer
    http://help.sap.com/saphelp_47x200/helpdata/en/66/bc7dc143c211d182b30000e829fbfe/content.htm
    Refer the following links :
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    http://sap.ittoolbox.com/groups/technical-functional/sap-r3-other/accessing-tables-using-report-painterwriter-98766
    http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_bw31/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
    Regards
    Anji

Maybe you are looking for

  • Trying to install windows 8 onto Macbook pro MBP55

    I am trying to install windows 8 onto my MacBook Pro (MBP55) I have installed the latest firmware (bootcamp 5.1.0) but keep getting an error message. "cant install software because it is not currently availble from the software update server" Has thi

  • Acrobat XI, XP, startup message-Adobe has encountered a problem and must close

    Acrobat XI, XP, startup message-Adobe has encountered a problem and must close Uninstalled Acrobat 9 Restarted computer Loaded Acrobat XI Start Acrobat XI Produces - Adobe has encountered a problem and must close

  • Sony KDL46v5100 connection with 7216-1

    I have purchased and replaced the Sony KDL46v5100 with the same model during the last 30 days.  The problem continues:  I have tried both component and HDMI connections to the 7216 receiver and I get the same problem.   On a random schedule, the conn

  • Laptop not showing colors correctly

    Hi, We are trying to figure out why there should be a difference in colors when viewed on a laptop, different colors too than on a desktop, its NOT my site though. The link: www.pcnetsimplified.com Thanks if you find time to look, and it may be you c

  • Do I interact with the browser or Plug-in

    I am interested in how Flash gets displayed in a web browser and how much of the interaction and display is dependant on the web browser. If you interact with a flash application on a web browser are you really interacting with the browser first whic