Query on simple formula write in transformation

Hi Bw Experts,
i am loading 0calday(20100401) to Standard cube(BI 7.0) from flat file.In the cube output i need only month and year(i.e 04.2010).I have to write the simple formula in transformations on 0CALDAY Field.What is the formula i have to write?
Could you please help me out?
Thanks

Hi,
you can achive this using the Filed routine or formula
DATE_MONTH(0calday) which will display month and year.
or write filed routine
RESULT = TRAN_STRUCTURE-0CALDAY+0(6). (BW 3.x)
RESULT = SOURCE_FIELD-0CALDAY+0(6). (BI 7.0)
Regards
Kp
Edited by: prashanthk on Jul 31, 2010 7:12 PM
Edited by: prashanthk on Aug 1, 2010 6:21 AM

Similar Messages

  • Formula IF in transformation

    Hi Gurus,
    I am trying to write a formula in transformation for a charecterstic.
    IF( ( UMSKZ = 'E' OR UMSKZ = 'X' ), ( LEFT( ZUONR, 10 ) ), 'null' )
    check if spl. GL = E or X, then split the assignment number and update document number.
    It says formula syntax if fine but, while Doing DTP it is throwing error. like
    "Exceptions in Substep: Rules"
    Please help me out.

    This error comes in the DTP because of incorrect mapping/routine in the transformation. If i understood your problem then you want to pass on first 10 characters of ZUONR to your document number if Spl GL is E or X right?
    For this you can write a simple routine in the transformation instead of a formula.
    IF ( UMSKZ = 'E' OR UMSKZ = 'X' ).
    RESULT = ZUONR(10).
    ENDIF.
    Let me know if you face any issues.
    Thanks,
    Arminder

  • Creating a single variable from a simple formula

    Hi guys,
    I'm ploughing my way through the basics of expressions, constantly running into syntax errors as I still haven't found out the logic behind it all. It is still a great mystery to me when to use spaces, [ ] { } and ( ) not to mention =.
    I was trying to create a variable called "y" from a simple formula. My scripting looks like:
    veloc = 3;
    amplitude = -5;
    decay = 0;
    y = amplitude*Math.sin(veloc*time)/Math.exp(decay*time);
    [value[0],y[1]]
    But whatever brackets and things I put around this formula, whatever spaces or newlines, somehow AE doesn't accept it. When I replace the formula for a wiggle, the fifth line is accepted, and when I replace the "Y" in the fifth line for "value" there are no errors, so obviously AE considers the formula not valid. What is the difference between the output that wiggle(,) gives and the output of this formula? How should I write this expression? Is there any website resource where the logic behind the bracket, spacing, newline, order etc. of this script language is demystified? And I mean really at basic, really baby level. I am pretty good at maths, but the programming hieroglyphs and their secret rules still don't make sense to me.
    Any help is greatly, greatly appreciated.

    Hi Mylenium, thanks for your fast answer. I tried both
    veloc = 3;
    amplitude = -5;
    decay = 0;
    y = amplitude*Math.sin(veloc*time)/Math.exp(decay*time);
    [y[1]]
    and
    veloc = 3;
    amplitude = -5;
    decay = 0;
    y = amplitude*Math.sin(veloc*time)/Math.exp(decay*time);
    y[1]
    but it's a big no-go still. I am really not getting the logic of the format. AE reports Class 'Number' has no property or method named '1', or that the outcome should be of dimension 2, not 1. Any more ideas?

  • Execute query in background and write it's content in transparent table

    Hi,
    Is there an easy way to execute one query in background and write it's content in transparent table?
    Thanks,

    Hello,
    Yes you can do this in so mamy ways...
    GOTO RSCRM_REPORT -> select your query -> click on the extract button and set the parameters...table or file Execute.
    Create an APD in RSANWB select your query and you can store the result in ODS table...cube...
    Create a reporting agent and store the result.
    Regards,
    Pavan.

  • The query contains a formula with the operator SUMCT

    I m trying to get query ready for Webi, getting the error as 'The query contains a formula with the operator %RT. Therefore, the query cannot be released for OLE DB for OLAP'
    I have not used any kind of s %GT, %RT, %CT, SUMGT, SUMRT, SUMCT and LEAF, also i have suppressed results / over results from the query, over to it, i have removed the calculate results as 'summation' feature and set to 'not defined' for all of my key figures.
    Still getting the error...
    Please suggest.
    Niraj

    hi,
    Ensure that all Link IDs are visible in the lsdal.ini file  located in the \Windows\system directory of the PAS Server as those are then available to all users. The lsdal.ini file may not be correctly updated if: - You have created the BI Link IDs while using PAS in Client Server Mode - You have enabled multi user access for remote desktop. In this case an additional lsdal.ini file may appear in the user specific Windows directory of someone who may have remotely connected to the system to create the Link ID. That additional lsdal.ini file will only be valid for that specific user.
    Also try adding  "ODBOSECURITY=0" entry to the end of the c:\windows\lsserver.ini file on the server.
    hope it helps
    regards
    laksh

  • Help!  Simple Formula, Unique Output?

    Post Author: kjameson70
    CA Forum: Crystal Reports
    In order to save space, I am creating a simple formula to include a company name, location, contact & phone instead of putting each field into a Text Box, which makes the Detail section of the report the same size whether data is reported or not. 
    Creating the formula is easy, but I want each field to print on a new line, instead of in the same row or to wrap. 
    How do I tell the formula to go to the next line? **
    Current Formula:  + + +
    Preferred Result:   Company   Location   Contact   Phone
    Not:  CompanyLocationContactPhone2
    What needs to be done to get the Preferred Result?
    This result is one of many columns on the report.

    Post Author: SKodidine
    CA Forum: Crystal Reports
      & chrw(13) & & chrw(13) & & chrw(13) &

  • Sort descending a column generated by a simple formula?

    I have just upgraded to Numbers 3.2 from '09 and I have discovered this nasty problem where I can not “sort descending” a column generated by a simple formula.
    Imagine the sequence 1, 2, 4, 8, 16, 32, 64…
    — Let's add the first number, “1” in B1
    — Click on B2 and make it equal to B1*2
    — And so on, click your B2 cell and drop to bottom.
    We get this nice succession:
    OK. Now imagine we want to “sort-descending” this. We press on top and choose the descending option. And then we get this annoying result:
    How I can to fix this problem?
    This worked perfectly on previous Numbers versions ('09) and of course in Excel or OpenOffice. And it's a very “simple” and common feature.
    Or maybe I'm forgetting or misunderstanding something?
    Thanks for your support :-)
    Cristóbal Vila.

    Sorting has changed since the previous version.
    You can sort this by selecting the column with the sequence, then copy
    then select the menu item "Edit > Paste Formula Results"
    now sort
    another way is to place a "count" in column A... 0 thru whatever
    and place a formula to computer the power of two from that count:
    In this case I entered 0 in cell A1, then 1 in cell A2
    select cells A1 and A2 and fill down as needed by dragging the yellow dot that appears when you hover the cursor over to bottom edge of the selection
    In cell B1 I entered the formula "=2^A1"
    no select cell B1 copy
    select column B,  paste
    now you have a sort-safe table and may sort as needed

  • Simple formula going nuts!

    Post Author: echoi
    CA Forum: Formula
    I've a very simple formula that... for the life of me, I can't figure out whats going on with it.
    It is in a subreport, and all it's supposed to do is look up a string for every record and if it matches, it adds on the value of a different coulmn.  So here's the formula:
    whileprintingrecords;numbervar hours;
    if {Command.DESCRIPTION} = "Closed Labor Charges" thenhours := hours + {Command.QTY}else1234 // failure code
    What's weird about this is that there are three records that should match the "Closed Labor Charges" but the formula returned the value for only one of those records.  That's typical, I could have holes in my formula.
    What makes it even more odd from here on is that if I bring up 6 more records that have "Closed Labor Charges", the formula returns "1234" which is the failure code defined in the formula.  The records even contain the original match the formula found before and it's still returning a fail code.
    What is going on here?

    Post Author: V361
    CA Forum: Formula
    You may be able to peek into it a little by doing this.  add /0 to the formula, and save it. (You will get an error message, but save anyway)  run the report
    whileprintingrecords;numbervar hours;
    if {Command.DESCRIPTION} = "Closed Labor Charges" thenhours := hours + {Command.QTY}  /0else1234 // failure code
    The formula should pop up in formula explorer, and should show some values.
    (Not a great way to trouble shoot, but sometimes it is handy to see what the Formula is doing. )  Also, after you remove the /0 and convert back to the orginal formula, add {Command.DESCRIPTION} to the report (next to the formula), or in the details, and unsupress them, this way, you should be able to see the value for {Command.DESCRIPTION} just before the formula is evaluated.

  • Query Designer writeing formula takes very long time

    Experts,
    When i try to write a formula. The query designer is taking very long time to navigate.
    One formula is taking 20 mins to write.
    1. I have upgraded my laptop memory to 2 GB of Ram
    2. I am on 7.10 SP4 Patch 1. Had the same issue with the previous versions.
    Please suggest a resolution.
    The QD has tested my patence. I am sure no body wants to create a query for 2 days. There has to be a problem somewhere causing this.
    Thank you.

    Vinod,
    Save the query and then exit BW sessions, also restart your system.
    It might be a problem with main memory of your laptop or BW server load.
    But 20mins is too long for any kind of definition in query designer.
    Please check these things, perhaps it helps.
    Thanks,

  • To create the Query - make simple

    Hi,
    Totally four time refered same table , How to make the simple query?. Please suggest me.
    1)
    INNER JOIN item_chr_val_t WgtVolPerUnitAct_item
    ON itemcntchr.item_id = WgtVolPerUnitAct_item.item_id
    INNER JOIN chr_val_T WgtVolPerUnitAct_chrv
    ON WgtVolPerUnitAct_item.chr_id = WgtVolPerUnitAct_chrv.chr_id
    AND WgtVolPerUnitAct_item.chr_val_id = WgtVolPerUnitAct_chrv.chr_val_id
    INNER JOIN chr_T WgtVolPerUnitAct_chr
    ON WgtVolPerUnitAct_chrv.chr_id = WgtVolPerUnitAct_chr.chr_id
    2)
    INNER JOIN item_chr_val_t NoInMulPackAct_item
    ON WgtVolPerUnitAct_item.item_id = NoInMulPackAct_item.item_id
    INNER JOIN chr_val_T NoInMulPackAct_chrv
    ON NoInMulPackAct_item.chr_id = NoInMulPackAct_chrv.chr_id
    AND NoInMulPackAct_item.chr_val_id = NoInMulPackAct_chrv.chr_val_id
    INNER JOIN chr_T NoInMulPackAct_chr
    ON NoInMulPackAct_chrv.chr_id = NoInMulPackAct_chr.chr_id
    3)
    INNER JOIN item_chr_val_t MassWeightGros_item
    ON NoInMulPackAct_item.item_id = MassWeightGros_item.item_id
    INNER JOIN chr_Val_t MassWeightGros_chrv
    ON MassWeightGros_item.chr_val_id = MassWeightGros_chrv.chr_Val_id
    AND MassWeightGros_item.chr_id = MassWeightGros_chrv.chr_id
    INNER JOIN chr_t MassWeightGros_chr
    ON MassWeightGros_chrv.chr_id = MassWeightGros_chr.chr_id
    4) Main query referered same table
    Filteration part
    AND WgtVolPerUnitAct_chr.chr_code = pa.WgtVolPerUnitAct_code
    AND WgtVolPerUnitAct_item.chr_val_id IS NOT NULL
    AND NoInMulPackAct_chr.chr_code =pa.NoInMulPackAct_code
    AND NoInMulPackAct_item.chr_val_id IS NOT NULL
    AND MassWeightGros_chr.chr_code = pa.MassWeightGros_code
    AND MassWeightGros_item.chr_val_id IS NOT NULL
    With param As
    SELECT
    (SELECT RptPrmVal.rpt_prm_val_key
    FROM rpt_prm_val_instnc_assn_t RptPrmValInstasn
    INNER JOIN rpt_prm_val_t RptPrmVal
    ON RptPrmValInstasn.rpt_prm_val_id = RptPrmVal.rpt_prm_val_id
    WHERE RptPrmValInstasn.rpt_instnc_id = 85
    AND rptprmval.rpt_prm_id = 85
    ) WgtVolPerUnitAct_code,
                        (SELECT RptPrmVal.rpt_prm_val_key
    FROM rpt_prm_val_instnc_assn_t RptPrmValInstasn
    INNER JOIN rpt_prm_val_t RptPrmVal
    ON RptPrmValInstasn.rpt_prm_val_id = RptPrmVal.rpt_prm_val_id
    WHERE RptPrmValInstasn.rpt_instnc_id = 85
    AND rptprmval.rpt_prm_id = 80
    ) NoInMulPackAct_code,                    
    (SELECT RptPrmVal.rpt_prm_val_key
    FROM rpt_prm_val_instnc_assn_t RptPrmValInstasn
    INNER JOIN rpt_prm_val_t RptPrmVal
    ON RptPrmValInstasn.rpt_prm_val_id = RptPrmVal.rpt_prm_val_id
    WHERE RptPrmValInstasn.rpt_instnc_id = 85
    AND rptprmval.rpt_prm_id = 75
    ) MassWeightGros_code,
                        pkg_grd_global.f_get_central_language() central_lang,
                        PKG_GRD_GLOBAL.f_get_main_dscr_id ('REGION',pkg_grd_global.f_get_rgn_id_by_iso('xgl')) main_dscr_id
         FROM
              DUAL
    SELECT
         DECODE (regiON, 'GLOBAL','A',regiON ) ORDER_BY_COUNTRY,
         Qry_Ret.*
    FROM
    SELECT DISTINCT      
              PKG_GRD_GLOBAL.f_get_enty_main_dscr ('RGN',itemrgn.rgn_id,pa.main_dscr_id,pa.central_lang) regiON,     
    glblhier.CTRL_CHR_VAL_NAME module,
    glblhier.PROD_GRP_NAME pg,
    glblhier.SUPER_GRP_NAME sg,
    item.item_code item_code,
    idc.item_dscr item_dscr,
    DECODE (item.is_shared_ind,'Y','SHARED','N','NOT SHARED') Item_share,
    DECODE (itemrgn.is_ffu_ind, 'Y','IS FFU','N','IS NOT FFU') Item_ffu,
    PKG_GRD_GLOBAL.f_get_enty_main_dscr ('CVAL',WgtVolPerUnitAct_item.chr_val_id,PKG_GRD_GLOBAL.f_get_main_dscr_id ('CHARACTERISTIC VALUE',WgtVolPerUnitAct_chr.rgn_id),pa.central_lang) WgtVolPerUnitAct,
    PKG_GRD_GLOBAL.f_get_enty_main_dscr ('CVAL',NoInMulPackAct_item.chr_val_id,PKG_GRD_GLOBAL.f_get_main_dscr_id ('CHARACTERISTIC VALUE',NoInMulPackAct_chr.rgn_id),pa.central_lang) NoInMulPackAct,
    PKG_GRD_GLOBAL.f_get_enty_main_dscr ('CVAL',MassWeightGros_item.chr_val_id,PKG_GRD_GLOBAL.f_get_main_dscr_id ('CHARACTERISTIC VALUE',MassWeightGros_chr.rgn_id),pa.central_lang) MassWeightGros,
    itemrgn.dstn_strt_dt item_first_received_date,
    WgtVolPerUnitAct_chrv.numrc_val WgtVolPerUnitAct_numrc_val,
    decode (upper( PKG_GRD_GLOBAL.f_get_enty_main_dscr ('UOM',WgtVolPerUnitAct_chrv.uom_id,PKG_GRD_GLOBAL.f_get_dscr_id ('UNIT',pkg_grd_global.f_get_rgn_id_by_iso('xgl'),'LONG'),pa.central_lang)),
    'MILLILITRES',1,'CENTILITRES',10,'LITRES',1000,'GRAMS',1,'MILLIGRAMS',0.001,'KILOGRAMS',1000),
    NoInMulPackAct_chrv.numrc_val NoInMulPackAct_numrc_val,
    MassWeightGros_chrv.numrc_val MassWeightGros_numrc_val,
    decode (upper( PKG_GRD_GLOBAL.f_get_enty_main_dscr ('UOM',MassWeightGros_chrv.uom_id,PKG_GRD_GLOBAL.f_get_dscr_id ('UNIT',pkg_grd_global.f_get_rgn_id_by_iso('xgl'),'LONG'),pa.central_lang)),
    'MILLILITRES',1,'CENTILITRES',10,'LITRES',1000,'GRAMS',1,'MILLIGRAMS',0.001,'KILOGRAMS',1000)
    FROM item_t item
    INNER JOIN item_rgn_assn_t itemrgn
    ON item.item_id = itemrgn.item_id
    INNER JOIN item_dscr_t idc
    ON itemrgn.item_id = idc.item_id
    INNER JOIN hdng_typ_t itemhdng
    ON idc.hdng_typ_id = itemhdng.hdng_typ_id
    INNER JOIN item_chr_val_t itemcntchr
    ON idc.item_id = itemcntchr.item_id
    INNER JOIN glbl_hier_t glblhier
    ON itemcntchr.chr_val_id = glblhier.CTRL_CHR_VAL_ID
    INNER JOIN item_chr_val_t WgtVolPerUnitAct_item
    ON itemcntchr.item_id = WgtVolPerUnitAct_item.item_id
    INNER JOIN chr_val_T WgtVolPerUnitAct_chrv
    ON WgtVolPerUnitAct_item.chr_id = WgtVolPerUnitAct_chrv.chr_id
    AND WgtVolPerUnitAct_item.chr_val_id = WgtVolPerUnitAct_chrv.chr_val_id
    INNER JOIN chr_T WgtVolPerUnitAct_chr
    ON WgtVolPerUnitAct_chrv.chr_id = WgtVolPerUnitAct_chr.chr_id
    INNER JOIN item_chr_val_t NoInMulPackAct_item
    ON WgtVolPerUnitAct_item.item_id = NoInMulPackAct_item.item_id
    INNER JOIN chr_val_T NoInMulPackAct_chrv
    ON NoInMulPackAct_item.chr_id = NoInMulPackAct_chrv.chr_id
    AND NoInMulPackAct_item.chr_val_id = NoInMulPackAct_chrv.chr_val_id
    INNER JOIN chr_T NoInMulPackAct_chr
    ON NoInMulPackAct_chrv.chr_id = NoInMulPackAct_chr.chr_id
    INNER JOIN item_chr_val_t MassWeightGros_item
    ON NoInMulPackAct_item.item_id = MassWeightGros_item.item_id
    INNER JOIN chr_Val_t MassWeightGros_chrv
    ON MassWeightGros_item.chr_val_id = MassWeightGros_chrv.chr_Val_id
    AND MassWeightGros_item.chr_id = MassWeightGros_chrv.chr_id
    INNER JOIN chr_t MassWeightGros_chr
    ON MassWeightGros_chrv.chr_id = MassWeightGros_chr.chr_id
    INNER JOIN param pa
    ON 1=1
    WHERE idc.lang_id = pa.central_lang
    AND itemhdng.online_hdng_flg = 'Y'
    AND itemrgn.actv_dstn_ind = 'Y'
    AND WgtVolPerUnitAct_chr.chr_code = pa.WgtVolPerUnitAct_code
    AND WgtVolPerUnitAct_item.chr_val_id IS NOT NULL
    AND NoInMulPackAct_chr.chr_code =pa.NoInMulPackAct_code
    AND NoInMulPackAct_item.chr_val_id IS NOT NULL
    AND MassWeightGros_chr.chr_code = pa.MassWeightGros_code
    AND MassWeightGros_item.chr_val_id IS NOT NULL
    ) Qry_Ret
    Regards,
    Sudhakar P.

    Maybe
    please consider it as a template it's paper and pencil work, Notepad actually.
    I don't have your tables and no knowledge about what your query is supposed to do, I just tried a transformation aimed to avoid the repeated use of several tables
    with
    param As
    (select WgtVolPerUnitAct_code,WgtVolPerUnitAct_code,MassWeightGros_code,
            pkg_grd_global.f_get_central_language() central_lang,
            PKG_GRD_GLOBAL.f_get_main_dscr_id('REGION',pkg_grd_global.f_get_rgn_id_by_iso('xgl')) main_dscr_id
       from (select max(decode(rptprmval.rpt_prm_id,85,RptPrmVal.rpt_prm_val_key)) WgtVolPerUnitAct_code,
                    max(decode(rptprmval.rpt_prm_id,80,RptPrmVal.rpt_prm_val_key)) WgtVolPerUnitAct_code,
                    max(decode(rptprmval.rpt_prm_id,75,RptPrmVal.rpt_prm_val_key)) MassWeightGros_code
               from rpt_prm_val_instnc_assn_t RptPrmValInstasn,
                    rpt_prm_val_t RptPrmVal
              WHERE RptPrmValInstasn.rpt_prm_val_id = RptPrmVal.rpt_prm_val_id
                AND RptPrmValInstasn.rpt_instnc_id = 85
                AND rptprmval.rpt_prm_id in (85,80,75)
    SELECT DECODE(regiON,'GLOBAL','A',regiON ) ORDER_BY_COUNTRY,
           Qry_Ret.*
      FROM (SELECT DISTINCT
                   PKG_GRD_GLOBAL.f_get_enty_main_dscr('RGN',
                                                       rgn_id,
                                                       main_dscr_id,
                                                       central_lang
                                                      ) regiON,     
                   CTRL_CHR_VAL_NAME module,
                   PROD_GRP_NAME pg,
                   SUPER_GRP_NAME sg,
                   item_code,
                   item_dscr,
                   Item_share,
                   Item_ffu,
                   case when WgtVolPerUnitActitem_chrvalid IS NOT NULL
                         and WgtVolPerUnitActchr_rgnid IS NOT NULL
                        then PKG_GRD_GLOBAL.f_get_enty_main_dscr('CVAL',
                                                                 WgtVolPerUnitActitem_chrvalid,
                                                                 PKG_GRD_GLOBAL.f_get_main_dscr_id('CHARACTERISTIC VALUE',
                                                                                                   WgtVolPerUnitActchr_rgnid
                                                                 central_lang
                                                                ) WgtVolPerUnitAct,
                   case when NoInMulPackActitem_chrvalid IS NOT NULL
                         and NoInMulPackActchr_rgnid IS NOT NULL
                        then PKG_GRD_GLOBAL.f_get_enty_main_dscr('CVAL',
                                                                 NoInMulPackActitem_chrvalid,
                                                                 PKG_GRD_GLOBAL.f_get_main_dscr_id('CHARACTERISTIC VALUE',
                                                                                                   NoInMulPackActchr_rgnid
                                                                 central_lang
                                                                ) NoInMulPackAct,
                   case when MassWeightGrositem_chrvalid IS NOT NULL
                         and MassWeightGroschr_rgnid IS NOT NULL
                        then PKG_GRD_GLOBAL.f_get_enty_main_dscr('CVAL',
                                                                 MassWeightGrositem_chrvalid,
                                                                 PKG_GRD_GLOBAL.f_get_main_dscr_id('CHARACTERISTIC VALUE',
                                                                                                   MassWeightGroschr_rgnid
                                                                 central_lang
                                                                ) MassWeightGros,
                   item_first_received_date,
                   WgtVolPerUnitAct_numrcval WgtVolPerUnitAct_numrc_val,
                   case when WgtVolPerUnitAct_uomid IS NOT NULL
                        then decode(upper(PKG_GRD_GLOBAL.f_get_enty_main_dscr('UOM',
                                                                              WgtVolPerUnitAct_uomid,
                                                                              PKG_GRD_GLOBAL.f_get_dscr_id('UNIT',
                                                                                                           pkg_grd_global.f_get_rgn_id_by_iso('xgl'),
                                                                                                           'LONG'
                                                                              central_lang
                                    'MILLILITRES',1,'CENTILITRES',10,'LITRES',1000,'GRAMS',1,'MILLIGRAMS',0.001,'KILOGRAMS',1000
                   end ,
                   NoInMulPackAct_numrcval NoInMulPackAct_numrc_val,
                   MassWeightGros_numrcval MassWeightGros_numrc_val,
                   case when MassWeightGros_uomid IS NOT NULL
                        then decode(upper(PKG_GRD_GLOBAL.f_get_enty_main_dscr('UOM',
                                                                              MassWeightGros_uomid,
                                                                              PKG_GRD_GLOBAL.f_get_dscr_id('UNIT',
                                                                                                           pkg_grd_global.f_get_rgn_id_by_iso('xgl'),
                                                                                                           'LONG'
                                                                              central_lang
                                    'MILLILITRES',1,'CENTILITRES',10,'LITRES',1000,'GRAMS',1,'MILLIGRAMS',0.001,'KILOGRAMS',1000
                   end
              FROM (SELECT itemrgn.rgn_id,
                           pa.main_dscr_id,
                           pa.central_lang,
                           glblhier.CTRL_CHR_VAL_NAME module,
                           glblhier.PROD_GRP_NAME pg,
                           glblhier.SUPER_GRP_NAME sg,
                           item.item_code item_code,
                           idc.item_dscr item_dscr,
                           DECODE(item.is_shared_ind,'Y','SHARED','N','NOT SHARED') Item_share,
                           DECODE(itemrgn.is_ffu_ind,'Y','IS FFU','N','IS NOT FFU') Item_ffu,
                           case when chrt.chr_code = pa.WgtVolPerUnitAct_code
                                then itemcntchr.chr_val_id
                           end WgtVolPerUnitActitem_chrvalid,
                           case when chrt.chr_code = pa.NoInMulPackAct_code
                                then itemcntchr.chr_val_id
                           end NoInMulPackActitem_chrvalid,
                           case when chrt.chr_code = pa.MassWeightGros_code
                                then itemcntchr.chr_val_id
                           end MassWeightGrositem_chrvalid,
                           case when chrt.chr_code = pa.WgtVolPerUnitAct_code
                                then chrt.rgn_id
                           end WgtVolPerUnitActchr_rgnid,
                           case when chrt.chr_code = pa.NoInMulPackAct_code
                                then chrt.rgn_id
                           end NoInMulPackActchr_rgnid,
                           case when chrt.chr_code = pa.MassWeightGros_code
                                then chrt.rgn_id
                           end MassWeightGroschr_rgnlid,
                           itemrgn.dstn_strt_dt item_first_received_date,
                           case when chrt.chr_code = pa.WgtVolPerUnitAct_code
                                then chrvalt.numrc_val
                           end WgtVolPerUnitAct_numrcval,
                           case when chrt.chr_code = pa.NoInMulPackAct_code
                                then chrvalt.numrc_val
                           end NoInMulPackAct_numrcval,
                           case when chrt.chr_code = pa.MassWeightGros_code
                                then chrvalt.numrc_val
                           end MassWeightGros_numrcval,
                           case when chrt.chr_code = pa.WgtVolPerUnitAct_code
                                then chrvalt.uom_id
                           end WgtVolPerUnitAct_uomid,
                           case when chrt.chr_code = pa.MassWeightGros_code
                                then chrvalt.uom_id
                           end MassWeightGros_uomid
                      FROM item_t          item,
                           item_rgn_assn_t itemrgn,
                           item_dscr_t     idc,
                           hdng_typ_t      itemhdng,
                           item_chr_val_t  itemcntchr,
                           glbl_hier_t     glblhier,
                           chr_T           chrt,
                           chr_val_T       chrvalt,
                           param           pa
                     WHERE item.item_id          = itemrgn.item_id
                       AND itemrgn.item_id       = idc.item_id
                       AND idc.hdng_typ_id       = itemhdng.hdng_typ_id
                       AND idc.item_id           = itemcntchr.item_id
                       AND idc.lang_id           = pa.central_lang
                       AND itemcntchr.chr_id     = chrvalt.chr_id
                       AND itemcntchr.chr_val_id = glblhier.CTRL_CHR_VAL_ID
                       AND itemcntchr.chr_val_id = chrvalt.chr_val_id
                       AND chrt.chr_id           = chrvalt.chr_id
                       AND chrt.chr_code in (pa.WgtVolPerUnitAct_code,pa.NoInMulPackAct_code,pa.MassWeightGros_code)
                       AND itemcntchr.chr_val_id IS NOT NULL
                       AND itemhdng.online_hdng_flg = 'Y'
                       AND itemrgn.actv_dstn_ind    = 'Y'
           ) Qry_RetRegards
    Etbin

  • Simple formula using hierarchy ??

    Hi,
    I'm building a prototype cube to report salary payroll information. The cube is using a Wagetype Hierarchy that I've built. I would like to be able to do calculation <u><b>based on that hierarchy</b></u>. Ex: (non-productive hours) / (productive hours).
    Is there a way to do what I want ?
    Ps: I'm using BW version 3.1

    To build my hierarchy, I used an external characteristic and each node represent a group of wage type. When I then build my query, I don't know how to use those nodes in a formula, since I don't see them in the formula builder.
    Maybe my question is very simple, but please don't hesitate to give me lots of details, it may only be that I don't know the commands.
    Thanks

  • Not able to find a simple type in Xquery transformation

    Hi,
    In Eclipse, for Xquery transformation, i am not able to find the XMLObject simple type, under the source or target mapping simple type.
    Need help plzz
    Thanks,
    Sarat

    XMLObject is not a XML Schema data type, it is a Java data type. So you wont see it in XQuery graphical mapper. XMLObject in Java is mapped to xs:anyType in Schema. What is your exact requirement?

  • Using Sybase query in Placeholder/Formula columns

    Hi,
    This is addendum to the post subjected as "JDBC query with Sybase database".
    I am working with 9i Reports builder conecting to Sybase db through jdbc-odbc component. I can execute any statement in the form of query / procedure in jdbc query wizard.
    I would like to know, how can i give/execute sybase compliant sql statements in placeholder, formula or for that matter any other place in reports builder.
    Say, I have selected a column of in char format "020925" which represents a date of 25th Septemeber'2002. I want to give a statement like, "convert(datetime,'020925')", which converts to date format.
    How can I specify this statement in a formula column.?? (formula column plsql editor recognize only oracle related statements)
    Thanks & Regards
    Anand

    Hi Sachin,
    So you mean to say, any other feature of Reports builder can't be used along with Sybase db. say triggers, local procedure / functions, etc.,
    Is there any workaround to this setback?
    Rgds
    Anand

  • Steps to create a simple formula for 2 KF

    Hi, Can someone please give me steps to create a formula for 2 KF or redirect me.  Do I need to create a formula variable?  I just need to add KF1 + KF2.  I RClicked on KF structure in columns and i can see only structure elements and formula variable.  I don't see my KF.  I am in netweaver 2004s.
    Thanks,
    Radha

    No it isn't new in Netweaver 7.0.
    Left hand side - > Keyfigures - > Calculated Keyfigures - > Right Click - " CKF "
    You shud see keyfigures existing on the Infoprovider & other RKF's , CKF's existing on the query under "Available Operands " 
    When u create a formula ( which is local ) u may not see the keyfigures which doesnot exist in columns - u shud hav the keyfigures in the Columns to use them in the formula - u can use in the formula & to avoid them on the report jst hide em.
    Message was edited by:
            Jr Roberto

  • Write and transform to String XML

    I have a big trable.
    I dinamicly generate XML File and try to transform it to String. I use standart toString() method for root Element of XML Document.
    My data are in Windows-1251 encoding, but result String is in UTF-8 encoding.
    When I write dinamicly generated XML Document in File.
    I set encoding Windows-1251, but result is in UTF-8.
    PLEASE HELP ME!!!!!

    Well, regarding file encodings Java has a history and so does MS-Windows. I don't know all the details for the Russian (let's rather use the term Cyrillic from now on) encodings but I went through a similar problem with German and iso-8859-1 encoding. The problem was similar in that some characters above 127 got displayed as '?'.
    Java uses a default encoding which changed in versions later than 1.1.7 from iso-8859-1 to CP1252 (I assume that for Cyrillic that translates to iso-8859-5 and cp1251, respectively).
    Windows and DOS have a whole list of changes with respect to Cyrillian encodings: CP855, CP866 and finally CP1251, which is incompatible with both iso-8859-5 and ISO-IR-111 (aka KOI8).
    Since your characters are displayed as '?' it's very unlikely you'll see a UTF-8 encoding in your output file (with all due respect), it rather seems to be a mismatch between one of the iso encodings and CP1251, that's my guess.
    Anyways, let me describe my problem a bit, and hopefully you can deduce a solution for yours.
    My XML file contained character 129 (that's a u with two dots on top) and displaying as well as writing that character to a file put a '?' in its place. DOS ASCII editors (as well as older Windows editors) use iso-8859-1 and display and input character 129 correctly and when I used JSDK1.1.6 everything was fine. Now, Java assumes CP1251 and by forcing it to use iso-8859-1 I got input and output working just fine.
    Since I don't have a Cyrillic Windows version at my disposal I can't find out which encoding will work for you, but it has to do with the default encoding Java is using, not so much with the XML and its parsing.
    You can use the following test program to find out what the correct settings are. Play with the encoding settings (CP8xx, iso-8859-5, CP1251) until both input and output files are identical and contain the correct characters.
    import java.io.*;
    class x{
       public static void main(String[] args)
          try
             InputStreamReader  isr = new InputStreamReader(new FileInputStream("ascii.txt"), "iso-8859-1");
             OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream("ascii_out.txt"), "iso-8859-1");
             char[] buf=new char[1024];
             int n;
             while((n=isr.read(buf,0,1024))!=-1)
                osw.write(buf,0,n);
             isr.close();
             osw.close();
          catch(Exception e)
             e.printStackTrace();
    }If you still have problems, please provide more information:
    1. encoding attribute you're setting in the XML file
    2. the default file encoding of your Java version (a system property) + JSDK version
    3. XML parser vendor + version
    4. What you exactly mean by "transform" (XSLT ? just outputting ?)
    5. Some code samples might help, too.
    Hope that helps,
    Good luck.
    P.S.
    Here are some links for info on character sets and encodings:
    http://czyborra.com/charsets/codepages.html
    http://czyborra.com/charsets/iso8859.html
    http://www.cl.cam.ac.uk/~mgk25/unicode.html

Maybe you are looking for

  • Adobe Application Mgr will not install on virtual machine. (Parallels Win7 on a MacPro)

    Greetings, I am unable to install the Adobe Application Manager. I get the following error message: "This application cannot be run from a network drive. Please copy it to a local folder and re-launch it." I have tried copying it to several local fol

  • Itunes wont install/update

    I have tried three times to update itunes to the lates version, all three times it crashes my computer. So I deleted itunes and tried to insatll it from scratch, again it crashed my computer. I downloads just fine, then gets to install and just sits

  • Filtering and saving data simultaneously on FPGA (NI 9223)

    Hi, I'm trying to use the NI 9223 Module to save my measured data and to filter it simultaneously. The example I use is "Ni 9223 User-Controlled IO Sampling". I'm able to write the data into the FIFOs at the desired sampling rate, but I can't figure

  • Help.Looking for a new HD/ mini DV camera that will work with FCP ExpressHD

    I just bought a imac with final cut express HD and am looking to buy a new HD/mini DV camera for under $900.00 that i will have no problems with my mac.I was looking at the Sony-HDR-HC3 HD mini which i found for $700.00 and that seemed pretty good.Do

  • 1/2 Speed

    Hi  I had a rock solid 52mbps down and 11 up since I got BT Infinity (8 months), yet now my profile is: Download speedachieved during the test was - 29.87 Mbps  For your connection, the acceptable range of speedsis 12 Mbps-30.56 Mbps .  Additional In