Report parameter default value do not default correctly

Hello Experts, I have a cascading parameters in my report.
The first parameter called "Project" will allow to select a single Project Name from the list and based on the Project Name, the second parameters which is a "Date" parameter will give out list Months and Year in the Format 'Nov-14'. 
For this Second parameter I defaulted the parameter to show First Month in the retrieved list of Months. But the problem is it will display the default Date correctly only certain times (there is a refresh problem). If i select a different project and it
has a month that was retrieved in the first project it will still show the that Month but not the actual default month (Start Month) for that particular Project.
Example: If I select Brisk from Project parameter, It will give me 18 months of Dates in the Date parameter. In that 18 month range first month is Sep-13 it will default to Sep-13 correctly. Then if I select a different project like "Creek" (example)
as Project , the Date parameter retrieves some dates corresponding to Creek Project and in the retrieved months if  Date parameter has Sep-13 it will still show Sep-13 even though the
Start Date for Creek project is Jun-12.
1. Project Brisk: Defaulted correctly to Sep-13
2. Creek Project : Should default to Jul-12 but still shows Sep-13
Just for default value I created a separate dataset and used it to populate the default value and the SQL I used just for default value is as below:
SELECT DISTINCT TRUNC(DATE_KY, 'MM') AS DEFUALT_DATE
FROM            DATE_D D
WHERE        (DATE_KY = ADD_MONTHS(:PROJECT_DT, - 6))
Date parameter datatype is Date/Time,
Available Values Tab: label field is a String but the Value field and the default field (Default Values tab) are Dates 
Thanks in advance

Thanks Vicky for reply.
Yes you are right but I did not use First function as the query above retrieves only one date.
I used your suggestion but it did not fix it.
In this report I have three parameters.
1. Project Code (Visible)
SELECT DISTINCT PROJECT_CODE
FROM      DIM.PROJECT     
ORDER BY PROJECT_CODE
2. Project Date (Invisible)
SELECT
MAX(CASENA.MILESTONE
WHEN'ABCD'THENTRUNC(PROJECT_DATE,'MM')ELSENULLEND)PROJECT_DATE
FROM
DIM.PROJECTNA
WHERE(NA.PROJECT_CODE
=:PROJECT_CODE
or'ALL'=:PROJECT_CODE)
3. Start Date (Visible):
Available Values Query:
SELECT DISTINCT
--DER_DATE is "Value Field"
TRUNC(D.DATE_KY, 'MM') DER_DATE 
--Display_date is "Label Field"
, TO_CHAR(D.DATE_KY, 'Mon-YY')   Display_Date
FROM DATE_D D
WHERE DATE_KY BETWEEN ADD_MONTHS(:PROJECT_DATE, -6)  AND ADD_MONTHS(:PROJECT_DATE, 6)
ORDER BY 1
Default Values Query:
SELECT DISTINCT TRUNC(DATE_KY, 'MM') AS DEFUALT_DATE
FROM            DATE_D D
WHERE        (DATE_KY = ADD_MONTHS(:PROJECT_DATE, - 6))
When you select a Project from "Project Code", it will give a "Project Date" and based on the "Project Date" it will give a date range in "Start Date". That is why I am using "Project Date" parameter in my
query. I even tried using Project code as you suggested but I still got the same result.
Thanks a lot for your reply.

Similar Messages

  • BEx Variable default value does not pass thru to Webi report

    Hi,
    It appears that the integration between BEx and BOBJ Webi does not support default values when the webi report is scheduled.  This means that if Webi/Infoview is the delivery method, than clients require 2 reports.  1 for adhoc and 1 for scheduling.  Is there another way around this so 2 reports are not required?  See SAP Knowledge Base Article  https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3030303136363534393826
    Regards,
    Dae Jin

    Hi,
    Yes it is not supported. you can achieve by writing customer exit for this.
    in istep 2,
    check whether the variable value is intial.
    if intial
    pass default value
    if not intial (else)
    dont do any change, just pass the user input to restriction.
    -Sriram

  • Default Value is not getting displayed in SUN ONE Ldap

    Hello,
    I have created an attribute in slapd.user_at.conf and it is associated in slapd.user_oc.conf.
    The attribute default value is given through SUN ONE Console. But, In our application the default value is not getting displayed.
    We need the default value to run our applicatin. Can anyone help me for this issue
    Regards,
    K. Senthil Kumar

    Hi anandkumar,
    I belive this issue can be resolved by changing the  Query proprties for the perticular field.
    Kindly check the Field proerties in query designer and ensure that Text is enabled ather than Key.
    __Field property check up:__Go to query designer->click onn the field-> Right hand side in properties click on display tab-> select Text in drop down menu of Display as tab.
    FURTHER CHECK UP: check the master data avaiulability for the perticular info object, if masterdata is not available, do the text data for txt data availability in report level.
    Hope this helps you!!
    Best Regards,
    Maruthi

  • Why the default value is not the Oracle recommended?

    Why the default value is not the Oracle recommended?
    In Oracle 10g, the default alocated unit of Oracle ASM is 1MB. But the Oracle ducumentation states that "To ensure a higher probability of one
    logical I/O resulting in no more than one physical I/O, the minimum stripe depth should be at least twice the Oracle block size". ---See Performance Tuniing Guide (10g10.2 Page8-3.
    It's inconsistent. What is right way?

    >
    Why the default value is not the Oracle recommended?
    In Oracle 10g, the default alocated unit of Oracle ASM is 1MB. But the Oracle ducumentation states that "To ensure a higher probability of one
    logical I/O resulting in no more than one physical I/O, the minimum stripe depth should be at least twice the Oracle block size". ---See Performance Tuniing Guide (10g10.2 Page8-3.
    It's inconsistent. What is right way?
    The default database blocksize of 10g is 8k.
    >
    8 * 128 = 1024
    128 >= 2
    At least twice the size does not mean exactly the doubled size.
    There is no contradiction between the documentation and your observation in this case.
    Kind regards
    Uwe
    http://uhesse.wordpress.com

  • Enterprise Project Fields Default values do not Register on PDP Pages for mandatory fields

    Is it normal for "mandatory" eneterprise project field to come up as blank in a PDP page, when I have defined it to default value to a specific value in a list?
    I've inserted such fields using the project field web part within the PWA Category.  They display with the red astericks at the end of their name, but the field is blank.  The default value does not appear in the field.  However, if I select
    the button next to their name and display the the list, the default value is shown in bold as if it is the one selected.  I
    I am not using any workflows in the EPT that is responsible for displaying such pages.  Aslo, this is not a problem when the fields are not set to mandatory; they display the default value.
    the problem with this is that you have to manually select the default (or some value form the list) in order to check in the project. 
    Would you agree that this is a bug in 2010?
    /Spiro Theopoulos

    I tried anothe approach using javascript. I documented
    here...
    Juan Pablo.
    surpoint.blogspot.com
    jpussacq.me
    @jpussacq

  • Default value to notes tab in opportunity

    Hi:
      How to populate the default value to Notes (long text) in opportunity screen(Notes Tab). Any help is appreciating.
    Many Thanks
    Selvam

    Hi Selvam,
    you've marked your question as solved. Please share your solution so you can help others.
    Regards
    Gregor

  • Profile parameter icm/host_name_full is not set correctly

    Hi All,
    I am  working on Solution Manager 4.0. When I execute TCODE "SOLUTION_MANAGER", it gives the following error:
    Profile parameter icm/host_name_full is not set correctly (see long text)
    When I click on "Long Text", it gives me the following message widow:
    Message Number: SOL_GRAPHIC002
    Diagnosis
    The graphic cannot be displayed, since the profile parameter icm/host_name_full is not set correctly.
    Procedure
    Set the profile parameter icm/host_name_full correctly.
    For more information, see SAP Notes 434918 and 677118.
    I have referred to both the notes above. In note# 434918, it says that I need latest kernel patch (which is 150).Also the icm/host_name_full parameter parameter was not there in Solution Manager, so I created in the following manner:
    Parameter Name =icm/host_name_full
    Parameter Value=smgdcs1s.example.com
    But however, the error continues to be the same.
    Kindly help me asap.
    Thanks in advance.
    Regards,
    Faisal

    Hi Markus,
    Earlier the profile was activated and server was also restarted. However, it was not efffective.
    Now once again i have activated the profile and restared the server. Now I am able to see the profile and it value in
    RZ10
    RZ11
    Thanks a alot for your valuable inputs
    Thanks and Regards,
    Faisal

  • Discount Value - 0RPA_REA Not Populating Correctly in Multiprovider ZXX_XX01

    Hi Gurus,
    Discount Value - 0RPA_REA Not Populating Correctly in Multiprovider ZXX_XX01,
    As you aware discount value (0RPA_REA) has Positive values correspond to a reduced sales value. Negative values correspond to a markup on the sales value.
    Item discounts are already taken into account in the sales value. Discounts at POS transaction level (header discounts) are only taken into account at the point of processing.
      This key figure is supplied by the Data Sources 0RT_PA_TRAN_CONTROL and 0RT_PA_TRAN_TOTALS and is filled by PIPE field REDUCTIONAMOUNT.
    Can some one let me know how to achieve the correct discount type from POSDM?
    Thanks and Regards,
    Ramesh D

    Hi Ramesh,
              As Vikrant mentioned the discount values are shown against record qualifier 1101 in 2 instances in your snapshot.Please check the receipt/MON0 and compare the discount values.
    Alternately pick anyother transaction which has maximum no of discounts and compare in RSA7.
    You may also Import/Export this transaction and verify in any other environment(DEV/TEST) etc to see the results are matching.If not matching, then possibly,some of the config TRs may be missing in PROD.
    Hope it helps.
    Best Regards,
    Aram.

  • Import parameter to method does not default when executed

    Hi Everybody...i have a method with import parameter IV_DATE type SY-DATUM default SY-DATUM.
    When i execute the method the system date does not default...the IV_DATE field is blank(Spaces). Is there anybody that can help. This is very strange.
    Thanks in advance.

    Hi,
    I created  a custom class and used date as exporting parameter
    I am able to get the date value. Please see screen shot for reference.
    Regards,
    Rafi

  • PROMPT WITH DEFAULT VALUES DOES NOT DISPLAY VALUES THE FIRST TIME

    Hi,
    With one of our scorecard reports, when you select a division, the leader role/leader prompt picklist values do not get populated the first time. Because this is only happening in reports we have written in house, we do not see this happening to the reports that are installed as default.
    Is there any workaround known for this error.
    Thanks and Regards

    Hey can somebody please let me know how to go about this isssue ..
    Thanks

  • SUN ONE Ldap - Default value is not getting displayed

    Hello,
    I have created an attribute in slapd.user_at.conf and it is associated in slapd.user_oc.conf.
    The default value for the attribute has been given in the SUN ONE Ldap. But it is not getting displayed in our application.
    Can any one help me in this for this issue.
    Regards,
    K. Senthil Kumar

    I assume that you are referring to a brand new field on the second step that was not on the form of the first step. If this is the case, then you should put the field in a hidden block of the first steps form. Default values and Auto-population from shells/single record BPs only occur of the create step, even if they are not used on that step. As long as you put them on the create step (even in a hidden block) they should initialize.

  • SQL Loader- Default value is not inserted in table by direct method

    Hi All,
    I am trying to load data from a file to a table by SQL Loader. There is a particular date column which I am not loading from the File but have used a Default constraint to put SYSDATE in it. When I am using direct method load then it is not inserting nothin in this column but in conventional method it is inserting SYSDATE. But I want to do the load by direct method. Can anybody provide me a solution as how to load default value in direct method?
    Thanks & regards.
    Sudipta

    For this special case, you can specify:
    column_name SYSDATE
    in your SQL*Loader control file.

  • Selecting an lov parameter value sometimes not passed correctly

    When selecting a value from an LOV parameter, sometimes the parameter value doesn't seem to get passed correctly to the data template query.
    For example, let's say I have the following LOV parameter called "risk":
    Some Risk
    New Risk
    Other Risk
    Last Risk
    When I select "Some Risk", I would get correct results and when viewing the "Data" xml, I can see the parameter with the right value:
    <RISK>Some Risk</RISK>
    But when I select "New Risk" the results are incorrect and the xml shows:
    <RISK />
    as if the value was not passed as the bind parameter value for the dataset query.
    Any idea what I'm doing wrong? Is this a BIP bug or is there a workaround?

    Hi, thanks for the reply.
    The LOV is of "SQL Query" type (not fixed data) and the values were retrieved from the database.
    Supposing this was the sql query for my "risk" parameter LOV:
    select dimvaltl.GENERIC_VAL_NAME
    from GENERIC_VAL_TL dimvaltl,
    GENERIC_TL dimtl
    where dimtl.GENERIC_NAME = 'Risk'
    and dimvaltl.GENERIC_ID = dimtl.GENERIC_ID
    order by dimvaltl.GENERIC_VAL_NAME
    And supposing this was the sql query in the data template dataset:
    select pdimv.ID
    from GENERIC_V pdimv
    where pdimv.NAME = 'Risk'
    and pdimv.VALUE in (:risk)))
    If risk is empty, obviously the query would not work. I noticed the xml generated sometimes show the selected parameter value and sometimes don't, as if BIP is not passing it to the dataset query as bind parameter value.
    Incidentally I have other lov parameters that works fine, the only difference I can think of is that for this LOV query I am doing a join instead of a simple select statement from one table.

  • Location(Plant) value  does not default in standalone scenario

    Hi,
    We are  running on SRM 5.0(SP11) Standalone scenario.When creating a shopping cart thorugh the link "DESCRIBE REQUIREMENT" i.e. Text based shopping cart,the default  value for the field LOCATION does not appear.Also in the dropwdon list,I can see all the local plants defined but when I select one,the value disappears i.e the Location field does  not  get  populated!
    Has anyone come across similar problem?If so ,please advise.
    All inputs will be highly appreciated.
    regards,
    SRM tech

    Hi Manish,
    Thanks for the prompt reply.
    I have defined  locations in the extended attribute section of the Org strcutre and also marked  as default.
    The user can  also set his default plant by going in 'Settings' when user is logged into web end of SRM.
    Basically the problem has 2 sides:
    1.No default value comes for the LOCATION field.
    2.Although I can see the F4 list ,but when i select an entry for the LOCATION,the value doesnt get populated.
    BR,
    SRm tech.

  • Select-options How to assign  Default value as "Not equal to something"

    My req. is to asssign default value for a select-option as <> "DS1" . I am able to give default value as DS1 But dont know how to give "<> DS1" . Please help me
    Thanking u in advance ..

    INITIALIZATION.
    s_lifnr-low = '0001'.
    s_lifnr-high = '0002'.
    s_LIFNR-sign = 'I'.
    s_lifnr-option = 'NE'.
    append s_lifnr.
    Regards,
    Subramanian V.
    P.S. - Raja, still mode = BSP ??? :-P
    Message was edited by: Subramanian Venkateswaran

Maybe you are looking for

  • T.code

    i want to know is there any t.code where we can see the current stock of the company for make to order.

  • Sisenthil  for u plz help me in ???????

    dear i read ur discussion about printing table now i also want to use smartjprint i download the three jar files common,smartjprint,smartjswing and added into my class path. i develop an java files and save in the same directory where the jar files a

  • Changes not reflected in portal after successful import

    Hello, I am having trouble with some transports in NWDI. I made some changes to the ESS Address Details dynpro and tested them in the development portal. I then imported them into CONS and the import ran successfully. However I cannot see the changes

  • Can't hide video tracks

    Probably a newbie thing, but while I can toggle the eyeball that's supposed to hide/unhide video tracks, and it did just that when I began working with it, it no longer hides them. There seem to be other problems as well. Any ideas?

  • Mac corrupts file names on Windows network

    I am using my MacBook with Tiger on a Windows peer-to-peer network. Works fine, except occasionally files names that I access on one of the Windows machines will become confused. It's occurrence seems random to me; I think it only happens when I save