Commitment Value calculation in CJI5 Report

Hi All,
I am using ECC 6.0 EhP4.
While running CJI5 report, I am facing one issue as when I run CJI5 report for Open Items only then no output is appearing but if I remove this check box indicator then some Purchase Order are appearing with Val/CO Area Currency = 0 for all PO.
So wanted to know on what basis system is showing commitment against those PO number. I checked all PO and found that all are closed.
I think somehow PO commitment not get transferred to ...?
How should I deal with this issue? Any Guess...?
Also in S_ALR_87013558 report is showing commitment value but this commitment values not getting matched with Line Items
Frankly speaking I dont know for which column should I compare this value in Line Item report of S_ALR_87013558.
Also if PO get Closed then COOI table should show line items against that PO ot not?
Please suggest.
Swapnil Kharul

Hello Ahmed,
Thanks for your reply.
Actually RPSCO is showing one Line Item against VT=22.
And also while WBS Element Closed message is appearing as -
"There is still a purchase order commitment for WBS E.XXXX.XXX.XX
    Message no. KO447
So I think there is still commitment as this one is standard message.
What you say?
Many Thanks.
Swapnil Kharul

Similar Messages

  • Commitment value for service PR not appearing in 12ksta report

    We have two types of service PR-- COS & CCV. Although the PR is not deleted, its Deletion indicator in the COOI table in the COS PR is set automatically while same Deletion indicator is not set in the EBAN table.  As a result ZERO Value is appearing in the WGHBTR, WTGBTR,WKGBTR,WOGBTR of the COOI table and zero value in the 12KSTA report. Why this difference of the Deletion indicator in the two tables for the same PR ?
    With the similar configuration, there is no problem with the CCV PR .
    How do I remove the Deletion indicator from the COOI table for the COS PR ?
    Please help.
    SM Hussain

    Dear Saurav
    We checked thru OKKP,CUNI,RKACOR04,RAKANBU01, CJEN. CJBN and including your suggested notes like 152571,47992, 671563, 167350 etc with no results.
    We are wondering how Deletion indicator is set in COOI table when the PR is not actually deleted, if you can help us to throw some light on this aspect.
    With regards
    SM Hussain

  • Table name for open PO commitment Value

    Hi Expert,
    Please provide the Table name where I can get the (open PO commitment value from Project).
    BR,
    Morshed Alam

    Table is COOI :Commitments Management: Line Items, but you have to pass the Object no. of the object to get the commitment.
    Better approach is to use the std. report CJI5 - Commitment line item..
    With Regards
    Nitin P.

  • Service PR amount is noyt reduced after Service PO creation  in CJI5 report

    Dear Experts,
    When user created Service PO with T-code ME21, Service PR amount is not reduced from CJI5 report & also increased budget in CJ30.
    But when user create PO with T-code ME21N, Service PR commitment is getting reduced after Service PO creation in CJI5.
    Please explain & propose solution.
    Thanks & Regards,
    Arvind

    Hiiii...
    Note that there is no difference between creation of purchase order via the t.code ME21 or ME21N...what might be your problem in increase of assigned values is because the buyer (purchase dept) is not referencing the purchase requisition at the time of creation of purchase order as a result of which the system is not reducing the purchase requisition committment.
    Hope this helps....
    Regards
    Kaashif M

  • Shared DateVar in Subreport and datediff calculation in Main Report?

    Hello experts,
    I am using CRXI sp2.  I have a report that contains two subreports for different dates in the same date field that are identified by a Service Code.  The subreports have been placed in the same group footer 1a to be displayed and the calculation resides in the main report group footer 1b.  The shared variables are as follows:
    whileprintingrecords;
    shared datevar Codedate5473;
    Codedate5473:={@Codedate5473};
    and
    whileprintingrecords;
    shared Datevar Codedate5623;
    Codedate5623:={@Codedate5623}
    The main report has the following calculation is in group footer 1a.
    Whileprintingrecords;
    Shared numbervar daysbetween;
    if (isnull({@Shared 5623})or isnull({@Shared 5473})) then 0
    else daysbetween:= datediff("d",{@Shared 5623},{@Shared 5473})
    This returns negative numbers as well as calculations where one of the shared variables is null.
    I reset the calculation in the report header as well.
    Thanks for your help in advance.
    Kevin

    Hi Kevin,
    I can reproduce your issue, As per my knowledge the crystal will make some issues in null value computation as well as  shared variable  computation
    In your report i can see , you tried to access values from subreport to main report through shared variable. that will make problem. we can access values from main report to subreport without any issue using shared..dont ask me the reason..i am not the right person to say that... lol.
    The another wrong thing  i was found in your formula is , you are not resetting the shared variable any where.. so once the date field is null, the shared variable returning the previous value.
    So this is the solution for you..
    1,You have to add one more subreport for displaying your result., Lets say 'Sub report3'
    and create a formula, like.(Same which you have write before for the result)
    shared datevar Codedate5473;
    shared Datevar Codedate5623;
    numbervar daysbetween;
    WhilePrintingRecords;
    daysbetween:= datediff("d",Codedate5473,Codedate5623);
    daysbetween;
    2, Re- write your first two formulas like this
    For Subreport1,
    WhilePrintingRecords;
    shared dateVar Codedate5473;
    if isnull({Codedate5473}) then
    Codedate5473:=date(0,0,0)
    else
    Codedate5473:=date({Codedate5473});
    For subreport2
    WhilePrintingRecords;
    shared dateVar Codedate5623;
    if isnull({Codedate5623}) then
    Codedate5623:=date(0,0,0)
    else
    Codedate5623:=date({Codedate5623});
    Hope this will works for you,
    Cheers,
    Salah.
    Edited by: salahudheen muhammed on Aug 7, 2009 1:05 PM

  • Replace the value 733.534 in reporting.

    Hi Experts,
    I am facing one problem in reporting. I am in BI 7.0 environment.
    Reports are export to EP everthing is good,
    Issue:
    one column displaying value like -733.534
    my requirement is don't display this value istead of this should display same flag or colour ....
    Root cause:
    this fields is calculated in the reporting level, so this is not coming from any data target.
    calculation: Days from two different Dates.
    eg; offer given date - offer excepted date = Days( resulet)
    I calculated by farmula with replacement path.
    this -733.534 value is displaying only when any one of the two dates are missed then this value will displaying.
    if both dates are in reporting calculated value is displyaing right. (currect result).
    can any help me how to replace the value -733.534 by any flag or colour.
    Regards
    Vijay

    Hi,
    You can achieve this by using exceptions in Query desigenr.you can put some colours for those values.
    Let me know if you have any issues.
    Reg
    Pra

  • Is it possible to pass a formula value from a sub-report to a main report

    Hi there,
    Im trying to pass a formula value from a Sub-report back upto into my Main report but the value doesnt seem to be getting passed up. Ive tried it the other way around, that is, passing a value from the main report to the sub-report and that works fine.
    Below is an example of what I am trying to do but it is not working. In my sub-report Ive declared a formula variable as,
    formula name=main_subIntRatePageCount
    Shared NumberVar subIntRatePageCount := TotalPageCount;
    and in the Main report Ive declared the formula variable as,
    formula name=subIntRatePageCount
    Shared NumberVar subIntRatePageCount;
    subIntRatePageCount;
    I want the value assigned to "subIntRatePageCount" in my Sub-Report to be available to my Main report.
    The problem I am trying to solve is that the sub-report is spilling over onto two pages, and I need a way of updating the page display on the main report to reflect this. The page display is of format, "displaying page 1 of  3", but its not taking into account the extra page produced by the sub-report, so it should say "displaying page 1 of 4".

    Also thanks Raghavendra, Asha,
    I've tried adding the "whileprintingrecords" statement but that doesnt seem to make any difference.
    I notice that the subReport is being called from my the GroupFooter section of the main report, and I am trying to reference the variable in the main repot in the Page Footer section. Could it be that the variable hasnt been calculated in the Page Footer by the time I calculate it in sub-Report? I thought Crystal Reports does at least 5 passes over the report evaluating all the formulas before it prints the report?
    The problem Im trying to solve is I need to know how many pages my report will have before its completed, so that i can print the statement "displaying page 1 of X", and X is currently not being calculated correctly because the sub-report is printing onto 2 pages and not 1 so the report thinks I have 1 of X pages and not X+1.
    Regards
    Robert.

  • Not able to Submit CJI5 report in background using Variant

    Hi Experts,
    Is it possible to fill the multiple screens through FM rs_create_variant.
    Reagrds,
    Nava

    Hi Ramesh,
    I am trying to submit the CJI5 report in back ground through variant. The varaint was created using FM RS_CREATE_VARIANT. it's throughing an error .
    IF I create variant directly via selectin screen then it's working fine.
    FYI.
    REPORT z_co99_cji5
           NO STANDARD PAGE HEADING
           MESSAGE-ID 00
           LINE-SIZE 290.
    PROGRAM      : Z_CO99_CJI5                                           *
    TITLE        : CJI5 In Background                                    *
    AUTHOR.      : Raja Nesanoor                                         *
    DATE WRITTEN : 27-Feb_2007                                           *
    REVTRAC      : xxxxxx                                                *
    PROGRAM FUNCTION:                                                    *
    To DISPLAY CJI5 Report in background                                 *
    PROGRAM TYPE : Executable  program                                   *
    DEV. CLASS   : XXXXXX                                                *
    LOGICAL DB   : NA                                                    *
    AUHTORIZATION CHECKS                                                 *
    Object           Authorization Fields             ABAP Fields        *
    S_TCODE                                                              *
                        BUKRS                          v_BUKRS           *
    CHANGE HISTORY                                                       *
    Date         Id        Name      Indicator   Description             *
    DATA : v_repid LIKE sy-repid VALUE 'ZRKPEP005' ,
    v_variant LIKE varid-variant VALUE 'V_CJI5' .
    DATA: BEGIN OF w_varid.
            INCLUDE STRUCTURE varid.
    DATA: END OF w_varid.
    DATA: BEGIN OF i_rsparams OCCURS 10.
            INCLUDE STRUCTURE rsparams.
    DATA: END OF i_rsparams.
    DATA: BEGIN OF i_rsparams1 OCCURS 10.
            INCLUDE STRUCTURE rsparams.
    DATA: END OF i_rsparams1.
    DATA: BEGIN OF i_varit OCCURS 2.
            INCLUDE STRUCTURE varit.
    DATA: END OF i_varit.
    DATA: BEGIN OF i_vscreens OCCURS 2.
            INCLUDE STRUCTURE rsdynnr.
    DATA: END OF i_vscreens.
    start-of-Selection
    START-OF-SELECTION.
      SET PARAMETER ID 'CAC' FIELD 'GC10'.
      SET PARAMETER ID 'PDB' FIELD '000000000001'.
      PERFORM populate_var_table.
      PERFORM create_variant.
      PERFORM submit_cji5.
    *& Form POPULATE_VAR_TABLE
    text
    --> p1 text
    <-- p2 text
    FORM populate_var_table .
      CLEAR w_varid .
      REFRESH i_varit .
      REFRESH i_rsparams .
      i_rsparams-selname = 'CN_NETNR'.
      i_rsparams-kind = 'S'.
      i_rsparams-sign = 'I'.
      i_rsparams-option = 'EQ'.
      i_rsparams-low = '90273536'.
      i_rsparams-high = space.
      APPEND i_rsparams.
      CLEAR : i_rsparams .
      i_rsparams-selname = 'CN_NETNR'.
      i_rsparams-kind = 'S'.
      i_rsparams-sign = 'I'.
      i_rsparams-option = 'EQ'.
      i_rsparams-low = '90274010'.
      i_rsparams-high = space.
      APPEND i_rsparams.
      CLEAR : i_rsparams .
      i_rsparams-selname = 'R_OBDAT'.
      i_rsparams-kind = 'S'.
      i_rsparams-sign = 'I'.
      i_rsparams-option = 'BT'.
      i_rsparams-low = space .
      i_rsparams-high = space.
      APPEND i_rsparams.
      CLEAR : i_rsparams .
      i_rsparams-selname = 'P_DISVAR'.
      i_rsparams-kind = 'P'.
      i_rsparams-sign = 'I'.
      i_rsparams-option = 'EQ'.
      i_rsparams-low = '1SAP' .
      APPEND i_rsparams.
      CLEAR : i_rsparams .
      i_rsparams-selname = 'P_USEDB'.
      i_rsparams-kind = 'P'.
      i_rsparams-sign = 'I'.
      i_rsparams-option = 'EQ'.
      i_rsparams-low = SPACE.
      APPEND i_rsparams.
      w_varid-mandt = sy-mandt.
      w_varid-report = v_repid.
      w_varid-variant = v_variant.
      w_varid-flag1 = space.
      w_varid-flag2 = space.
      w_varid-transport = space.
      w_varid-environmnt = 'A'. "Variant for batch and online
      w_varid-protected = space.
      w_varid-secu = space.
      w_varid-version = '0'.
      w_varid-ename = sy-uname.
      w_varid-edat = sy-datum.
      w_varid-etime = sy-uzeit.
      w_varid-aename = space.
      w_varid-aedat = space.
      w_varid-aetime = space.
      w_varid-mlangu = sy-langu.
      i_varit-mandt = sy-mandt.
      i_varit-langu = sy-langu.
      i_varit-report = w_varid-report.
      i_varit-variant = w_varid-variant.
      i_varit-vtext = 'CO99-OUTPUT'.
      APPEND i_varit.
    ENDFORM. " POPULATE_VAR_TABLE
    *& Form CREATE_VARIANT
    text
    --> p1 text
    <-- p2 text
    FORM create_variant .
    data: h_rc like sy-subrc.
    *Check variant exists.
      CALL FUNCTION 'RS_VARIANT_EXISTS'
           EXPORTING
                report              = v_repid
                variant             = v_variant
           IMPORTING
                R_C                 = h_rc
             EXCEPTIONS
                not_authorized      = 01
                no_report           = 02
                report_not_existent = 03
                report_not_supplied = 04.
      IF h_rc = 0.
        CALL FUNCTION 'RS_CHANGE_CREATED_VARIANT'
             EXPORTING
                  curr_report               = v_repid
                  curr_variant              = v_variant
                  vari_desc                 = w_varid
             TABLES
                  vari_contents             = i_rsparams
                  vari_text                 = i_varit
             EXCEPTIONS
                  illegal_report_or_variant = 01
                  illegal_variantname       = 02
                  not_authorized            = 03
                  not_executed              = 04
                  report_not_existent       = 05
                  report_not_supplied       = 06
                  variant_doesnt_exist      = 07
                  variant_locked            = 08
                  selections_no_match       = 09.
        COMMIT WORK.
      ELSE.
        CALL FUNCTION 'RS_CREATE_VARIANT'
             EXPORTING
                  curr_report               = v_repid
                  curr_variant              = v_variant
                  vari_desc                 = w_varid
             TABLES
                  vari_contents             = i_rsparams
                  vari_text                 = i_varit
             EXCEPTIONS
                  illegal_report_or_variant = 1
                  illegal_variantname       = 2
                  not_authorized            = 3
                  not_executed              = 4
                  report_not_existent       = 5
                  report_not_supplied       = 6
                  variant_exists            = 7
                  variant_locked            = 8
                  OTHERS                    = 9.
        COMMIT WORK.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.
    ENDFORM. " CREATE_VARIANT
    *& Form submit_cji5
    text
    --> p1 text
    <-- p2 text
    FORM submit_cji5 .
      CALL FUNCTION 'SUBST_START_REPORT_IN_BATCH'
           EXPORTING
                iv_jobname                    = 'TEST_JOB'
                iv_repname                    = v_repid
                iv_varname                    = v_variant
                iv_authcknam                  = sy-uname
                iv_language                   = sy-langu
                iv_varianttext                = 'CO99-OUTPUT'
           TABLES
                tt_reportparam                = i_rsparams
           EXCEPTIONS
                variant_exist_check_failed    = 1
                variant_update_failed         = 2
                variant_update_not_authorized = 3
                variant_update_no_report      = 4
                variant_update_no_variant     = 5
                variant_update_variant_locked = 6
                variant_insert_failed         = 7
                variant_insert_not_authorized = 8
                variant_insert_no_report      = 9
                variant_insert_variant_exists = 10
                variant_insert_variant_locked = 11
                variant_write_failed          = 12
                no_batch_service              = 13
                no_server_list                = 14
                batch_scheduling_failed       = 15
                OTHERS                        = 16.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.
    Thanks
    Nava

  • Commitment Value after partial GR

    Hi All,
    Anybody have idea for below given scenario.
    Query on Commitment cost
    Eg: PO issued with cost of 1M USD.
           Based on current rate of 1.3, Commitment shows in local currency
    1.3M SGD
           6 months later, 80% of PO can be GR.
           80% * 1MUSD = 800K USD
           Based on exchange rate of 1.25 at that point in time, 800K * 1.25
    = 1M SGD
           Remaining commitment cost = 1.3M SGD - 1M SGD = 300K SGD.
           However, the actual remaining PO value in USD is only 200K USD.
           300K SGD vs 200K USD imply that the exchange rate becomes 1.5
    Question:
    1) Why is commitment calculated based on an arithmetic reduction in SGD
    equivalent?
    2) Can system take the remaining USD, convert it by the PO exchange rate
    and use that as the remaining commitment in SGD? ie 200K * 1.3 = 260K
    SGD
    Urs,
    RAJ

    Hi Raj,
         The system does not calculate on the basis of the PO value. But the Commitment values are updated on the basis of the quantity. Please check the cost of 80% of the received quantity and the price per unit and convert.
    Regards,
    Neeraja

  • Crystal reports- Calculation between two reports

    Hi Experts
    I have designed a sales and purchase transaction report using crystal reports and i have designed another report for accounting transactions like Excise Duty payable and receivables, Vat payable and receivables, Expenses(like EB, Maintenance) and so on. Finally I added accounting report as sub-report into First Report.
    My question is, is it possible to made some calculations between sub-report and main report.
    Hope some solutions from you.
    By
    Kala

    Hello,
    right upto the linking is good?
    Right now you have to create a formula (which you might have already done for "Total expenses", you just need to alternate it slightly.
    Example:
    On 2nd report (subreport) You might have a formula like given below.
    Instead of Numbervar CAvg, which is the last shown value in the below formula, you have to make it like Shared Numbervar CAvg.
    Whileprintingrecords;
    Numbervar TJs;
    Numbervar TotalJobs=0;
    Shared Numbervar CAvg;
    Shared Numbervar CAvg=0;
    TotalJobs := DistinctCount({lab_credits.credit_no},{lab_credits.reason_code}); 
    CAvg:= TotalJobs /{@WorkingDays};
    TJs:=TJs + CAvg;
    CAvg
    Do your calculation above.
    Now in the main report you will create another formula which will look like below.
    Whileprintingrecords;
    Shared Numbervar CAvg;
    Numbervar TAvg:=fieldname;
    Numbervar TotalBoth:= Shared Numbervar CAvg+ Numbervar TAvg;
    TotalBoth;
    You will have a reset formula which will be placed ontop of the report header , group header if you are using grouping like this
    Whileprintingrecords;
    Shared Numbervar CAvg:=0;
    SHared Numbervar TAvg:=0;
    bearing in mind that we do not have to declare CAvg field here as it is being shared.
    Hope this helps
    Regards
    Jehanzeb

  • Do not want Budget check & Commitment value for purchase Requisition

    Hi Experts,
    I hope you all are doing well.
    My client's requirement is that at the time of Creation of Purchase Requisition there should be no budget check against WBS element and also Commitment value should not be for Purchase Requisition.
    Please suggest.
    Thanks & Regards

    Hi Gokul,
    Thanks for ur quick reply.
    I have done changes in tolerence limit (activated it for PO only).
    Now i created 1 Project PR of more than value of budget (system didnt check the Budget against WBS) but when i am trying to create PO with reference to same PR, system is giving error of budget. That is OK for me.
    Now my requirement is to not take PR value as commitment in my reports, i want only PO value in Commitment column of repport.
    I have read all 3 notes suggested by you. Can u tell me whcih one should i implement to stop PR value as commitment in reports.
    Thanks & Regards

  • Mathematics calculation in Webi Report using "For Each"

    Hi All,
    I am using BOXI R3.0, I am stuck in webi calculation for one report report tab. I have 2 tab in one report, one is summary and other is Detail in same report. In Detail tab the data looks like as below:
    DataSet 1:
    DNo.-Date-Hours-Vol-Pri---Tot(Vol*Pri)
    10 -1/12- 01:00---10 ---10 ---100
    10 -1/12- 02:00---20 ---50 ---1000
    10 -1/12- 03:00---30 ---30 ---900
    Sum: 2000
    Now the above is my detail reprot which gave me data by hour, now in summary i removed the hour column then data looks like below:
    Dataset 2:
    DNo.-Date-Vol----Tot(Vol*Pri)
    10 -1/12- 60 -
    1800
    This is because "Vol" measure is sum in universe and Pri is Average.
    This gave me wrong data so How i calculate Tot for Sumarry tab such that it will give me below result.
    Dataset:
    DNo.-Date-Vol---Tot(Vol*Pri)
    10 -1/12- 60 ---2000
    Thanks for the help in advance.
    Thanks,
    Nimesh.

    Hi Nimesh,
    I think you need to wrap a sum around the function and use an input context.
    =(Sum([Pri] In ([DNo]; [Date]; [Year])))*[Vol]
    This will sum the average values down at the year level and multiply it by vol, even though year is not on the table.
    Let me know how you get on
    Regards
    Alan

  • How "Assigned" value calculated for WBS in CJ30?

    Dear all,
    I have got a problem with the Assigned value in CJ30. The problem is that the value in column "Assigned" of CJ30 disappeared after I settled the cost of the WBS to another WBS which has no budget control activated (no budget profile assigned). As I know, the Assigned value won't be changed if the WBS is settled to an object with no budget control, for example settle the WBS to a cost center, or a assets. In my case, although the settlment was done between two WBS, but I had removed the budget profile when created the receiver project, which means the receiver WBS has no budget control activated. However, after settlement, the assigned value of the sender WBS disappeared. But if I settle the cost to a cost center or assets, I can see the assigned value still shown on the sender WBS in CJ30.
    Can anybody here tell me why this happen? or is this a bug of SAP?
    Thank you very much in advance.
    Best regards,
    Brook

    I can reproduce your issue.  If you toggle open Audience P I think you will find the very last value for the last Category and the last Product_Group will be around 15% for Growth 2014 and around 23% for Growth 2015.  The chart series expression
    is choosing the last value for ReportItems!YoYGrowthPercentage as it doesn't know how to attribute that ReportItem to the Audience matrix.  If you want a chart to display only the percentage for Audience, I suggest that you have a separate data
    source with the values for GrowthPercentage for only the Audiences, and make that the data source for your chart. Also, I would make the growth figures in your matrix also a matrix by doing the percentage calculation directly in the table. You would pull in
    the value for this year and the value for last year into your data set, and then do the calculation within the report as follows:
    =SUM(Fields!Value.Value)/Sum(Fields!LastYearValue.Value)-1
    Create a second Column Group adjacent after, also by year.  Your query could look something like this, depending on how your tables are structured:
    SELECT a.Audience, a.Category, a.ProductGroup, a.Year, a.Value, b.Year as LastYear, ISNULL(b.Value,0) as LastYearValue
    FROM YoYGrowth a LEFT OUTER JOIN
    YoYGrowth b ON a.Audience = b.Audience and a.Category= b.Category and a.ProductGroup = b.ProductGroup
    AND a.Year-1 = b.Year
    Hope it helps.  Cheers,
    Martina White

  • Custom Report Not fetching values for parameter of report (Valueset not pop

    Hi,
    I am running custom report on Oracle application R12. This report parameters used standard value set for fetching purchase order number. The value set is not populating any values for the custom report. but for the standard report where this valuse set populating proper result.
    It's bit Supprising ...the same valuset populating values for standard reports but not for custom report developed by me.
    Value set query using table valueset and getting values from po_headers (View)
    Thanks

    Hi All,
    Luckily I have been able to rectify the problem !
    I tried retrieving the output using LISTCUBE to show the SID of the InfoObject  also for which I was unable to get the data. After the report successfully gave the output for those I/O, I checked again I could see the data in the I/O maintain master data !
    It worked like magic to me !
    But I could guess that since it is a virtual I/O therefore it is not able to retrieve the data from the table directly and is able to do that only after the SID of this I/O is retrieved.
    (If a characteristic does not have any master data, the values from the SID table are displayed for the "Values in Master Data Table" mode.)
    Closing the thread !
    Regards
    Shalabh

  • SSAS report action to pass multi-value list of dimention key values to a SSRS report parameter

    This was originally posted on StackOverflow and suggested I try here as well.
    I want to create a report action in an SSAS OLAP cube that generates a list of formatted values to pass into an SSRS report parameter that accepts a multi-valued parameter list.  This would be applied at the
    cell level in the SSAS action.  I have found a solution that gets me most of the way:
    How to Pass Multiple Values from an SSAS Report Drill Through Action to an SSRS Multi-Value Parameter, but not quite.  The action does appear in Excel and works
    if I run the action from a cell that is at or below the dimension attribute I am generating the list for, in this case,
    Account Key.
    Below is a link to a screen capture (unable to embed it due to lack of reputation) showing the action and dimension structure in Excel.  The action works as long as I run it at the
    Account Key level or below.  I want to be able to run it at higher levels, such as
    Account Major and still have it generate all then related Account Key values for the SSRS report parameter.  Running it at the higher
    Account Major level does not trigger the report to run.
    Excel Action Screen Shot:
    http://i.stack.imgur.com/QCGSp.png
    Below is the MDX I am using to generate the value for the report parameter:
    UrlEscapeFragment(
    GENERATE(
    DESCENDANTS(
    [Account].[Account Key].CurrentMember,
    [Account].[Account Key].[Account Key]
    [Account].[Account Key].CURRENTMEMBER.Name,
    "&rp:Account="
    I am hoping that I can somehow modify the MDX above to make it return all the
    Account Keys for any attribute of the Account dimension when ran from any measure cell, not just when ran at self and children of
    Account Key in the pivot table.
    Also, if it helps, I can execute the following MDX query on the cube and get the results I am looking for.
    WITH MEMBER [Measures].[Account Key List] as
    GENERATE(
    DESCENDANTS([Account].[Account].CurrentMember, [Account].[Account].[Account]),
    [Account].[Account].CURRENTMEMBER.NAME,
    "&rp:Account=")
    SELECT {[Measures].[Account Key List]} on 0,
    ([Account].[Account Company Number].[Account Company Number],[Account].[Account Major].[Account Major]
    ) on 1
    FROM [Company 10 Action Demo]
    Below are partial results:
    10.116&rp:Account=10.116.010
    10.117&rp:Account=10.117.010&rp:Account=10.117.020
    10.120&rp:Account=10.120.005&rp:Account=10.120.006&rp:Account=10.120.010&rp:Account=10.120.020&rp:Account=10.120.030&rp:Account=10.120.040&rp:Account=10.120.050&rp:Account=10.120.060&rp:Account=10.120.380&rp:Account=10.120.999
    10.123
    Questions
    Any ideas what I might need to do to get Account Key to be returned for any attribute of the
    Account dimension?
    Would I possibly have to alter my Account dimension in the cube to get this to work?
    Thanks in advance.
    Edit 1 - Adventure Works Cube Version
    I was unable to get the suggested answer with the "Exists" function to work.  To better demonstrate this issue, I have recreated it using the Adventure Works Cube.
    I will focus on the Customer dimension, specifically the Customer and
    Education attributes.  I created a report action called Test Report Action.  Below is the XML created for it in the cube.
    <Action xsi:type="ReportAction" dwd:design-time-name="f35ad5ee-5167-4fb8-a0e0-0a74cc6e81c6">
    <ID>Report Action 1</ID>
    <Name>Test Report Action</Name>
    <TargetType>Cells</TargetType>
    <Target></Target>
    <Type>Report</Type>
    <ReportServer>SQLSERVER</ReportServer>
    <Path>ReportServer?/Test Report</Path>
    <ReportParameters>
    <ReportParameter>
    <Name>Test Customer Existing</Name>
    <Value>UrlEscapeFragment(
    GENERATE(
    EXISTING DESCENDANTS(
    [Customer].[Customer].CurrentMember,
    [Customer].[Customer].[Customer]
    [Customer].[Customer].CURRENTMEMBER.Name,
    "&amp;rp:Customer="
    )</Value>
    </ReportParameter>
    </ReportParameters>
    <ReportFormatParameters>
    <ReportFormatParameter>
    <Name>rs:Command</Name>
    <Value>Render</Value>
    </ReportFormatParameter>
    <ReportFormatParameter>
    <Name>rs:Renderer</Name>
    <Value>HTML5</Value>
    </ReportFormatParameter>
    </ReportFormatParameters>
    </Action>
    Below are the steps to re-create the issue.
    Connect to the cube in Excel
    Add dimension Customer -> More Fields -> Customer
    Add measure Internet Sales -> Internet Sales Amount
    Right-click Internet Sales Amount cell, select "Additional Actions" -> "Test Report Action" and see customer values created for URL 
    When the action is ran at this point with Customer, I see the values created in the URL shown message box (since there is no SSRS report server at location specified).
    Now the part I'm unable to resolve
    Remove the Customer dimension and add Customer -> Demographic -> Education
    Right-click Internet Sales Amount cell, select "Additional Actions" -> "Test Report Action"
    Nothing happens. If I ran the action on the cell next to "Bachelors", I would want it to build up all the list of all the "Customers"  that make up the "Bachelors" in the
    Customer dimension as part of the report parameter.  If no attributes where used in the cube from the
    Customer dimension for that cell, then I would like it to return "All Customers", or something similar to show that all customers are included in the aggregations.
    I am not too MDX savvy, thus far.  I think I need to somehow join the
    Customers to Internet Sales Amount in the Generate function portion.  I have tried several different combinations of the
    Customer dimension and Internet Sales Amount, along with various functions to see if I could get this to work with no success.  I am hoping that someone more knowledgeable the me will have a solution.   If you need more details,
    please ask and I will provide them.

    Simon,
    Thanks for you help with this.  This morning I found a workaround.  Below describes what that is.
    What I ended up doing was getting a list of values from a degenerate dimension that I could use to pass to SSRS to get a list of transactions for a report.  Below is how I did this, in relation to the Adventure Works cube using the degenerate dimension
    Internet Order Details.
    WITH MEMBER [Measures].[Order Param List] AS
    GENERATE(
    EXISTS([Internet Sales Order Details].[Sales Order Number].[Sales Order Number].Members, ,
    "Internet Sales"),
    [Internet Sales Order Details].[Sales Order Number].CurrentMember.Name,
    "&rp:OrderNum=")
    SELECT {[Measures].[Order Param List], [Measures].[Internet Sales Amount]} ON 0
    ,([Date].[Calendar].[Date]) ON 1
    FROM [Adventure Works]
    This will get a list of Sales Order Number in a text string, separated by "&rp:OrderNum=" for each measure of
    Internet Sales. This would allow me to create an SSRS report to bring back detail information for each
    Sales Order Number. Below are some sample results.
    May 16, 2007 SO50493&rp:OrderNum=SO50494&rp:OrderNum=SO50495&rp:OrderNum=SO50496&rp:OrderNum=SO50497&rp:OrderNum=SO50498&rp:OrderNum=SO50499&rp:OrderNum=SO50500 $12,157.80
    May 17, 2007 SO50501&rp:OrderNum=SO50502&rp:OrderNum=SO50503&rp:OrderNum=SO50504&rp:OrderNum=SO50505&rp:OrderNum=SO50506&rp:OrderNum=SO50507&rp:OrderNum=SO50508 $13,231.62
    May 18, 2007 SO50509&rp:OrderNum=SO50510 $4,624.91
    With this, I can then create a Report Action in SSRS with a Parameter Value of
    UrlEscapeFragment(
    GENERATE(
    EXISTS([Internet Sales Order Details].[Sales Order Number].[Sales Order Number].Members, ,
    "Internet Sales"),
    [Internet Sales Order Details].[Sales Order Number].CurrentMember.Name,
    "&rp:OrderNum=")
    The way I was going about it before was flawed, as I was trying to get a list of the granular values from each dimension used to build the measure value and pass each one of those as separate parameters. I just needed to set something unique for each fact
    measure transaction that represents the value and uses that in a query parameter for the SSRS report.

Maybe you are looking for

  • Can I stop Windows 7 from warning about security on every linked PDF?

    I am working on a project for which I have created one central document (an index) and 120 linked documents. Each document, on every page, has links to the next alphabetical document and back to the central index. This project will be distributed on

  • Error when starting BPEL

    Hi, I've installed BPEL PM 10.2.0.2-oc4j version on my standalone test server(DB version-9.2.0.6). I've changed the data-sources.xml file as well as the startorabpel.bat files to reflect my db instead of the lite database.I DID NOT use IRCA to create

  • Creating T-Code in SE93

    Hai Friends, i have developed a report. it does not have any selection screen. it updates the z table whenever executed. for the first time the number will be executed from '5000000000' checks for the last number in the MSEG table and if it is 500000

  • Creating a Cube from an XML CLOB

    I'm trying to create a cube by calling dbms_aw_xml.execute, passing a CLOB. The CLOB has been populated by saving a cube XML template to a database table, then selecting it into a temporary CLOB. When I run dbms_aw_xml.execute, I get error messages s

  • Numbers by apple Is there any way to enter a date like Jan 17, 0791 BC into a spreadsheet

    A