Parameter default value different for clients...

I have problem how to set that in client 010 the flag default 'X' will be automaticaly set, and for all other clients this parameter is without flag default ' '.
Current situation:
PARAMETERS: p_test TYPE xfeld AS CHECKBOX DEFAULT 'X' MODIF ID GVA.
i tried to enter
IF sy-mandt = '010'.
PARAMETERS: p_test TYPE xfeld AS CHECKBOX DEFAULT 'X' MODIF ID GVA.
ELSE.
PARAMETERS: p_test TYPE xfeld AS CHECKBOX DEFAULT ' ' MODIF ID GVA.
ENDIF.
this is not working, the msg is Parameter "P_ALV" has already been defined. .
Can you please help?
BR
Saso

Hello
If you bear in mind P_TEST (instead of P_ALV - already been defined ) then try this:
PARAMETERS: p_test TYPE xfeld AS CHECKBOX MODIF ID GVA.
INITIALIZATION.
IF sy-mandt = '010'.
  p_test = 'X'.
ELSE.
  p_test = ' '.
ENDIF.

Similar Messages

  • Parameter default value issue

    Hi, I am using SQL Server 2008 R2 database & SSDT (Visual Studio 2012) to develop reports. I am trying to modify an existing report after the upgrade and something seems not right especially with report parameter default values. I am using the expression
    below and for the default value its always returning the false part. When I put this expression in a textbox to test results it works as expected. Thanks in advance.
    =IIf(Parameters!Area.Value = "Test Area", "1", "2")
    Ione

    Hi Lone,
    Per my understanding you are experiencing the issue that the report parameter’s default values not work, the default values for this parameter is using the expression based on another parameter, but now it not always display the correct value, right?
    I have tested on my local environment and can reproduce the issue, the issue can be caused by you have not specified available values for this parameter base on their parent parameter(Area), so the parameters will not refresh when the value of the first
    parameter has changed. In Reporting Services, if we want to create cascading parameters, we should specify both available values and defaults values for child parameters.
    Please specify the Available values as below, using both the expression in the Label and Value:
    =IIf(Parameters!Area.Value = "Test Area", "1", "2")
    You also use an alternative method to create this parameter without using the expression:
    Create an Dataset using below query to get the Parameter(“1”,”2”):
    select distinct (CASE WHEN (@Area) =' Test Area' THEN '1' ELSE '2' END) AS  FieldName  from TableName.
    In  the Second Param(Param2) In both the “Available Values” and “Default Values” select the “Get values from a query”.
    For more information about how to create cascading parameters, please see MSDN document which tell us how to do it steps by steps.
    http://msdn.microsoft.com/en-us/library/aa337498(v=sql.105).aspx.
    If your problem still exists, please feel free to ask.
    Regards
    Vicky Liu

  • How to set a default value of " " for a VARCHAR2 in ER diagram?

    Hi,
    I am trying to set the default value of a VARCHAR2 attribute to " " (space) in an ER diagram. But it just thinks I don't want anything for the default value. If I specify CHR(32) will it work? or is there another way? Will I have to wait until I get into the server model to do this, if so how do I do it there?
    thx
    adam

    Are you sure you want the default to be a space, not a NULL? VARCHAR2 fields want to trim spaces from the right, which makes them NULL if they started as all spaces. You can force them to accept spaces, but it is an unnatural condition. Even the VARCHAR2 columns that I use as surrogates for booleans I set as 'Y' for true and 'N' for false, or 'T' for true and 'F' for false. Occasionally, it will be 'X' for selected and NULL for not selected, but the NULLs tend to cause trouble so I avoid them.
    Okay, let's assume that you have a good reason to default to a space. Use ' ', including the single quotes. When you transform to a Table Definition, change the Default Value Type for the column to a Database Function Call. You can't do that in the logical (Entity/Attribute) design, only in the physical (Table/Column). That will make sure that the Server generator will leave it the way you wrote it.

  • No Default Value Maintained for Operation

    Hi Experts,
    System is showing an error when we are trying to create the process order, hence we are unable to create the process order.
    When we save the process order, system is showing below error:
    " No Default Value Maintained for Op.generation for order type xxxx (mat XXXXXXXXXXXXXXXXXX)"
    We have searched the existing threads, as per them we have checked all the check points like Master recipe, Production version Validity, Control keys, all are available with available validity dates.
    Once Master recipe is there, still system is looking for the default value for operation, this is something which is confusing us.
    Can you please guide us to resolve this issue.
    Thanks in advance.

    Hi Raj
    For some reason your master recipe is not being selected. Generally, this is caused by status, validity, production version or customizing.
    If you have created the recipe with a change number, check if a released is assigned.
    Also, since you mentioned that you already checked averything, you may try to create a new master recipe.
    BR
    Caetano

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

  • Programatically modifying Parameter Default Values in CR10 rpts

    If this isn't the correct forum for this, then I apologize.  Here is the situation:
    Our company uses Microsoft Dynamics SL version 7.0 (formerly Solomon), which leverages a "runtime" version of Crystal Reports 10 for some custom reports (simply named "Crystal Reports 10 for Solomon").  These reports are stored as .rpt files but are opened from within Dynamics.  About 15 of these reports have a "client" parameter and I am having to manually refresh the list of default values once a month because new clients are always getting added to the system.  As you can imagine, this is a pain.
    My goal is to write a simple console app that can programatically refresh the default values.  I would then schedule it to run nightly.
    I've downloaded the CrystalReports files for VS2010 (from http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp) and I almost got it working, but I noticed a problem.  If I save the file using the ReportDocument.SaveAs() method, it seems to save the rpt as a newer version of CrystalReports.  When I open the report with "Crystal Reports 10 for Solomon", I get a message that says "This report was created with a version of Crystal Reports for Solomon which is later than the version you are running.  Some features used in the report may not be supported."
    Is there any way to save it in the native version of the original rpt?  Is there an older version of Visual Studio (such as 2005?) or an older SDK that could be used to save the report as CR10?
            static void Main(string[] args)
                ReportDocument rpt = new ReportDocument();
                rpt.Load(@"P:\Usr_Rpts\08CARDC - pgaule.rpt");
                //open the report
                Console.WriteLine(rpt.ParameterFields["ClientName"].DefaultValues.Count.ToString());
                rpt.ParameterFields["ClientName"].DefaultValues.Clear();
                Console.WriteLine(rpt.ParameterFields["ClientName"].DefaultValues.Count.ToString());
                rpt.SaveAs(@"P:\Usr_Rpts\08CARDC - pgaule.rpt", ReportFileFormat.VSNetFileFormat);
                rpt.Close();

    Hello,
    The short answer is that there's no way to "save down" your reports to the CR10 version without using CR10 (or CR 10 runtimes). The bundled versions of CR that ship with earlier versions of Visual Studio are built on the same CR10 code stream, but they're still not the same version. The warning message would not be eliminated by using an older version of Visual Studio.
    The only way to eliminate the warning message would be to create an application that was created with the stand alone version of CR10. I expect it would be very difficult to find a copy of CR10 Developer edition. CR10 reached End of Life for patch support in January, 2007.
    The warning message you're seeing when you open the updated report is just saying that you're opening a "newer" report with "older" runtime files. You're not really adding any new functionality to the RPT files so the warning can be ignored. If you were trying to use a dynamic cascading parameter (new functionality) this would not work correctly in your Solomon v10 application.
    Even though you can ignore the warning message there's no way to suppress it that I'm aware of.
    Sincerely,
    Dan Kelleher

  • Report Parameter Default Value at runtime

    Post Author: DMiller
    CA Forum: .NET
    Hi,
    I need to be able to create new parameters at runtime and have been somewhat successful in this endeavor. I have one remaining issue that I am hoping that somebody can help me with. Let me explain.
    When you create a parameter from within the Crystal XI designer, you are able to specify a number of default values that will display as a list box at runtime. Eg. ParameterName is MaritalStatus and default values are ("Married", "Single", "Divorced" etc). There is also the ability to specify the Default Value in the Value Options area of the screen. This value could be set to any one of the default values above - let's say that I set it to "Single". By setting the Default Value, this causes the Parameter Fields screen, at runtime, to "Select" the specific default value set above - in this case "Single", instead of showing "..." as the parameter value.
    The default value setting in the Value Options is beneficial when you have reports that are usually run with certain parameter values and only occasionally these need to change. Instead of having to specify every parameter value, the user only has to set the ones that have not been defaulted or they want to change.
    So, I have been successful in creating the parameters at runtime and successfully running the report. I have been unsuccessful in setting the "Default Value" as seen in the Value Options area. I have tried a number of properties on the report parameter object and have not found anything to set this.
    Does anybody know how to set the "Default Value" as seen in the Value Options area in the designer at runtime?
    Thanks for any help.

    Post Author: JerryB
    CA Forum: .NET
    You have described my scnario to a tee.  Did you ever figure out how to get the single default value that is available in the "value options" area when working within the Crystal Reports development environment.  I am using VB.Net and have a nice report menu form and viewer but recently a user ask me to set the default value in one of my combo boxes and I have been unsuccessful in finding the correct property to use.

  • Ssrs parameter default value not showing ,when available values is binded to query dataset

    I have developed a report using sql server data tools for vsiual studio2012 ,i have defined few parameters ,on one of the parameter when available values is binded to a dataset query, the report default value is  not showing in report preview .
    Many Thanks
    Chandra

    Hi Chandra,
    According to your description, you have set the default value for a parameter, but it's not displayed when initially running the report. Right?
    In this scenario, since you have set the available values bind to query, so your default values should be within these available values. If these default values are not within the available values, the default values will be not displayed. So please check
    the default values.
    Reference:
    Add, Change, or Delete Default Values for a Report Parameter (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Dynamic parameter default values

    Hello guy,
    i'm having a little problem, i hope someone in here can help me. So, here is my situation:
    I'm building a windows forms application in C# to display some reports. As i want to redesign all the controls, i made my own prompt to fill in the parameters. This works really fine, except one thing:
    Whenever a parameter has default-values (so just a list of values is allowed), I switch from a textbox to a dropdown-menu filled with the default values.
    No problems with static parameters, but i can't find a way to access the default values from dynamic parameters (values are retrieved from SQL-Server). The default prompt from the report-viewer can do it right, so i hope  you can hep me with my following question:
    Is there a way to obtain these values? Or at least the SQL-statement that is used to get them?
    thanks
    using:
    Visual Studio 2010 v10.0.30319.1
    Crystal Reports runtime engine .NET 4, v13.0.1.220
    Crystal Reports for Visual Studio v13.0.1.220
    Edited by: Peter Wurstberg on Oct 12, 2011 1:15 PM

    I don't think the CR or Enterprise .NET SDK has any public APIs to retrieve default dynamic prompt values for crystal report parameter. With Java SDK there are no direct methods as well, however you can tap the HttpResponse object to read the prompt values that are sent to your viewer by the server as the viewer displays them and prompts you to select parameter value, however this method is not officially supported. With .NET SDK I am not sure if it is even possible. You have to use the standard viewer to see those values and let the viewer prompt with them, ratherthan your own controls.
    Hope that helps.
    Aasavari

  • Parameter default value doesn't work in Discoverer Desktop 4i

    Hello,
    I have a parameter called 'Organization' in discoverer report.
    I want to set its default value to one organization from the list of values. I edited the parameter
    and selected that value from the list in the Default value field. But,when I run
    the report, it shows the recently used value for that parameter,
    instead of showing the default value.
    I have the same problem with all parametrs in workbooks in Discoverer.
    I am using Discoverer Desktop 4i (4.1.41.05.00).
    Is there anything i can do to make Discoverer show me the default value for the parameter every time i run the workbook?
    Thanks in advance!

    Thanks Rod!
    Unfortunately it seams that seting that p[reference doesn't work for my version of Discoverer.
    That option is introduced with version 4.1.43 and we are using version 4.1.41.05.
    I suppose i can't solve that problem on another way in this version of Discoverer Desktop..?
    Best regards!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Ssrs 2008 want parameter default values to display

    In an ssrs 2008 report, I want to add a parameter called Processed and have default values set so the
    user does not have to select the parameters. The problem is the default parameters are not preselected
    when the report is executed.
    The following is the query for the dataset that is used for the parameter called Processed. This
    is used under available values.
    select DISTINCT IsNull(Processed,'') as Processed,
    CASE IsNull(Processed,'')
      WHEN 0 then 'Non Processed'
      WHEN 1 then 'Processed'
      END AS label
    FROM [Items]
    where Processed in (0,1)
    order by label
    The default values are set to 0 and 1.
    The column called Processed as defined as 'bit'.
    Thus can you tell me what you think could be wrong? Do I need to specify the bit values as
    something else? If so, how should I refer to the values for bit?

    Hi wendy,
    According to your description, this issue can be caused by the values returned by the query. We can try to execute the query in Query Designer to check which values will be returned. Maybe it only returns one value (0 or 1). Then the available values for
    the Processed parameter have only one value. So the default values will not be preselected when the report is initially run.
    Besides, we can also try to use the same query as the default values for the parameter to check the issue again.
    Hope this helps.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Default values set  for Tax data in material master

    Hi
    Can anyone tell me how to set default values for  TAx dat in sales view  while creating material master.
    so that it automatically take  values while creating material master.
    Regards
    Vijay Shukla

    Mary and Vijay,
    I probably understood your question wrong.
    I was somehow assuming you were referring to classification data.. Sorry abt that.
    The tax data gets populated automatically while creating the material master.
    Th key lies in configuration..  You would have to use Tcodes OVK1, OVK4 to define the material and the tax categories by country
    The tax data is populated by the assignment that you make in OVX6.. I believe.. assigning plants t Sales org. Th country code defined in the plant OX10 is used to determine the tax data and once you customize this part.. You should start seeing the tax data populate when you use that sales org while creating MM
    Hope this answers your query.
    Edited by: Pavan Kumar on May 2, 2008 8:10 AM

  • Picking up default value 140000 for Recon account in FD02

    Hello Experts,
    I am an Abaper posting this query because FICO consultant is facing an issue on FD02 with Recon account
    To the company code CAP1 there are 2 Recon account configured 1) 20000 2) 50000.
    Now when we change the customer on FD02 or XD02 it displays a default value on Recon account field ie 140000.
    The reason why i have posted this query is because the FICO consultant says that it an issue with Abap
    and I dont think so could you please give me some insight on the same.
    What I think is this could be because some customization problem.
    Regards,
    Ranjith N

    hi,
    I did as you said.
    Yes a badi was implemented in which the recon account was set default..
    i changed it..
    is ter any way to deactivate a badi as we do it for user exits.
    Regards,
    Ranjith N

  • Default Values option for entire page

    Is there a way to set the entire page to use the default values for the entire page. I know you can set it per variable, and I have quite a rythyme so I can do it fairly quickly but with multiple pages with 100 or so values it gets tiring. I have tried setting it under the Page Settings Manager by setting "usedefaultValueParameters" to True for the page. It seems to ignore this though, it is still sending the parameters.
    I couldn't find any other option, and I do need to still send them on some of the pages within the script, I just don't want to overwrite the same page when I pull it up in future pages after filling it with a databank file.
    Just wondering if there is a better solution or if I need to get back to my F4-Tab-Tab-Tab-Space-Enter-Down-Repeat.

    Thanks for the reply, the only navigation I have done on those pages was clicking cancel on the bottom to go back to the search screen, but it is not working. I guess it is back to setting each field up to use defaults. Unfortunate.
    Does it have to be recorded with that setting?
    Message was edited by: jmelling

  • Inspection Type - Default Values - Inspection for HU

    Hi Gurus:
    In SPRO >QM > QI > Insp. Lot Creation > Define Default Values for Inspection Type
    I am trying to check the Inspection for HU box under the Inspection Lot Creation section.  It checks fine, but when I save, the check disappears.  I have others where I have set this, so I am unsure why it is not letting me.  There is no error message appearing...Only the check disappears upon Save.
    Thanks for your help in advance.
    Nic

    Hi
    U r right. This is Happening to the Insp types 05 and 08 as per the coding written in the standard Program. It is checking the Insp lot origin in the table V_TQ33 and clearing the Tick for the Inspection for HU field if the insp lot origin is 05 and 08 while saving.
    Regards
    Brahmaji

Maybe you are looking for