Set parameters values depending on other parameters

Is it possible in the Bex to have a parameter to be used to load data from another infoprovider (then the one of the actual query) in order to populate a select-option in the query ?
- a Customer exit variable seems to be able to only change its own values. It have no access to the other variable and parameters ?
- Replacement path seems to only be based on kind of "hard coded and unchangeable" selections.
So how to do that ?
I also think to use RRI by doing a 1st query but I wonder if all the result of the 1st query (lets say all the orders numbers) could be transfered into the orders select-option of a 2nd query ?

Hi Siegfried
>But you can create a variable with replacement path and
>assign a query (with selections) to it in order to populate
>the select list for your query by another query.
Yes but could I have control on the selections of the replacement path query and fill them in real time ?
I mean could my main query (the user lauching it) cascade its selection to the replacement path query ?
For example :
Let say that I want only orders that have a particular texts in description. The description lines are not in my main query infoprovider.
So could I have a parameter, let say "description contains word:" which could be transfered to the replacement path query in charge of selecting all the orders with the word in text ?
From what I understand atm of the replacement query the selections seems to be "statics".

Similar Messages

  • How to set column value dependend on other column value?

    I have a view that selects values from 2 tables with some simple additional joins. Now, i would like to add a column (boolean/bit or varchar2) that represents a flag and is dependen on the value of another column, e.g.
    ID | Value | Flag
    1 | 4711 | 1
    2 | null | 0
    So, the flag should be set to 1 if column 'Value' is not null and to 0 if column 'Value' is null. (In another case, i would like to test for specific values, not just null). How can i do this in ORACEL SQL?

    This statement will update two flag columns. FLAG1 is set to one or zero depending on whether COL1 is null. FLAG2 is set to one of a range of values depending on whether COL1 is a specific value; the default value is ZERO.
    UPDATE your_table
    SET    flag1 = nvl2(col1, 1, 0)
           , flag2 = decode(col1, 5677, 1, 2212, 2, 6276, 3, null, 4, 0)
    /Cheers, APC

  • Payroll: One Element Input Value dependent on Other Input Value

    Hi Guys
    Can we defined an input value in an element that is dependent on other input value. e.g. say when I am creating an entry to make accrual adjustments, converting 100 Annual Hours to 20 sick hours, I want users to enter 100 and 20 should be reflected automatically.
    Is this possible.

    I'm afraid you need a customization for this. I guess a forms personalization will not help you out. Or you enter it via an SIT (with the behavior stated), and you route that data to the element entry (via a user hook).

  • Setting default value to af:inputdate in  jsf page.

    Is there a way to set the input date in  a form to some default value initially.
    I am finding no way to do this. If I set the value from a backing bean function it does not show the date picker next to input date and new values cannot be entered. Ideally, if i set some default  value initially i still should be able to change it to any date i want by using date picker next to input date.
    There is no other property like "Default Value" on input date component.
    Any suggestions ?
    using jdev 11.1.2.3

    User, you should be able to set the value your date field it's bound to. This value will then show up as default value in the ui.
    Don't try to use the component itself to set the value.
    Timo

  • Using SEARCH HELP exit in dependency of other parameters from my dynpro.

    Hello experts,
    how can I access the values of input fields (parameters or select-options) from my dynpro?
    I need to build a F4-help in dependencie of another field on the screen with help of the F4 - exit. I think this should be possible.
    If I do test the search help with SE11 it works fine. All parameters from screen are given in SHLP_TAB[1]-INTERFACE (the parameter of my f4-help-exit)
    The short example explains the problem more detailed.
    REPORT  test_dynpro_events_ck.
    PARAMETERS ea1 TYPE my_char_10_ck DEFAULT 'here I push F4' MATCHCODE OBJECT MY_F4_HELP_CK.
    PARAMETERS ea2 TYPE my_char_10_ck DEFAULT 'this is the value I need to generate the F4 help of field ea1'.
    MY_F4_HELP_CK:
    import: EA1 and EA2
    export EA1
    Many Thanks
    Christian

    Thank you so far.
    But how are these parameters passed to the search help without using global set/get parameters or DYNPRO_READ_VALUE? Why can I put these parameters to my search help as input parameters ... seems to be useless if I use search help on Selection-Dynpros?
    Is there not a better way to deal with search-helps which are dependent from other input fields? Btw. I need the value without passing PAI and PBO.
    In my Example:
    doing some text inputs in field EA2 -> hit search help on EA1 -> need a selection dialog in dependency of the input in EA2. This can not be that complicated?
    Many thanks
    Christian

  • How to set default values on the screen painter parameters?

    Hello ABAP Gurus,
    I would just want to ask how to set default values on the screen painter parameters.
    Thank you for your replies.

    Hi,
    To set default values for screen painter parameters initialize the field names with default values in the PBO module....
    say u have the field name as f_field1....
    in the PBO of that screen initialize it....
    f_field1 = '100'  "here 100 is the default value.
    <b>reward points if useful.</b>
    regards,
    Vinod Samuel.

  • Setting multi-value parameters using ReportExecutionService

    Does anyone know how to set multi-value parameters using ReportExecutionService in C#?
    If I have
    rsExec = new ReportExecutionService2005.ReportExecutionService();
    ReportExecutionService2005.ParameterValue[] parameters = new ReportExecutionService2005.ParameterValue[2];
    parameters[0] = new ReportExecutionService2005.ParameterValue();
    parameters[0].Label = "Report_Begin_Date";
    parameters[0].Name = "Report_Begin_Date";
    parameters[0].Value = "4/15/2007";
    parameters[1] = new ReportExecutionService2005.ParameterValue();
    parameters[1].Label = "SalesID";
    parameters[1].Name = "SalesID";
    parameters[1].Value = ???  //Here, this parameter should accept multiple values like 200, 201, 202, etc.
    rsExec.SetExecutionParameters(parameters, "en-us");
    How would I set the SalesID to take multiple values?

    hi
    how to set dynamic parameters values.
    please help me.
    reportexe.
    ParameterValue[] parameters =
    new reportexe.ParameterValue[5];
    if (_parameters.Length > 0)
    parameters[0] =
    new reportexe.ParameterValue();
    parameters[0].Label =
    "mgrid";
    parameters[0].Name =
    "mgrid";
    parameters[0].Value =
    "[DMMGR001MT].[MGR ID].&[10]";
    parameters[1] =
    new reportexe.ParameterValue();
    parameters[1].Label =
    "locid";
    parameters[1].Name =
    "locid";
    parameters[1].Value =
    "[DMDPT001MT].[DPT ID].&[700]";
    //[DMDPT001MT].[DPT ID].&[700] 
    parameters[2] =
    new reportexe.ParameterValue();
    parameters[2].Label =
    "usrid";
    parameters[2].Name =
    "usrid";
    parameters[2].Value =
    "[FILLED BY USER].[USER ID].&[yshah]";
    //[FILLED BY USER].[USER ID].&[yshah] 
    parameters[3] =
    new reportexe.ParameterValue();
    parameters[3].Label =
    "fromdate";
    parameters[3].Name =
    "fromdate";
    parameters[3].Value =
    "[FIRST DOSE DATE].[Date Key].&[20100101]";
    //[FIRST DOSE DATE].[Date Key].&[20100101] 
    parameters[4] =
    new reportexe.ParameterValue();
    parameters[4].Label =
    "todate";
    parameters[4].Name =
    "todate";
    parameters[4].Value =
    "[FIRST DOSE DATE].[Date Key].&[20100131]";
    // [FIRST DOSE DATE].[Date Key].&[20100131]
    this is my code.
    indu

  • How to make a value set dpepenedent on other value set's values

    Hi,
    I want to have two parameters on my report in oracle apps. I made one Value set which is 'Table' in Validation Type, now I want the other value set dependent on this previous value set's values, Is there a way to make it possible.
    Regards,
    Nidhi...

    Nidhi,
    There is no relation to OAF for your issue. I will suggest to put your query in proper forum. Try http://forums.oracle.com/forums/forum.jspa?forumID=40
    --Shiv                                                                                                                                                                                                                                                                                                                                                       

  • How to set parameters in CR4E

    Hi,
    Need:
    To generate PDF reports from standalone java program using CR4E runtime engine. Reports will be designed using CR4E. The java program will use CR4E engine APIs to open the report and populate date in it from database.
    Scenario:
    I have created a report and mapped the report fields from SQL file (similar to using it as SQL command). I have also created 2 parameters and also included in the SQL file.
    Problem:
    1) These parameters don't prompt when run within CR4E designer & i see no way to set these values to work in preview mode and it appears as a blank page. Bcos of above reason, my java application when executed also gnerates blank report as the parameters are not set. How to resolve this?
    2) Then i tried using record filters to map the SQL file field name to parameter name in the report. Now, when previewed the prompts for parameters appeared and the report was displayed as expected. But, when the java application gave 'FormulaException: Field name not known' error (with mention to SQL field names used in filter). I am not using any formula in my report so this error is bcos of using record filter. How to resolve this error?
    Finally, i need a design & runtime solution to execute my reports with parameters.
    TIA,
    M.Ravi

    Ravi,
    Have you tried searching through the rest of the threads in this forum, I am sure all your questions have
    been asked and answered before.
    As to your last comment, I personally try steer away from people demanding help so maybe not
    putting such comments in the forums would help get people to reply to you. Sometimes the people who
    know the answers are busy doing other things for a day or two, so sometimes you need to be patient.
    Just a thought.

  • Set parameters for dynamic selection report

    Hi all,
    Please find below code.. parameters KS7 and KS8 are on static slection parameter and GJR, VPE, BPE are on dynamic selection parameters for transaction KSB2. But, when I run program, values are passing to parameters KS7 and KS8 but not to GJR, VPE, BPE.
            set parameter id 'KS7' field co_podat-low.      "from date
            set parameter id 'KS8' field co_podat-high.     "to date
            set parameter id 'GJR' field P_RYEAR.
            set parameter id 'VPE' field SO_PERIO-LOW.
            set parameter id 'BPE' field SO_PERIO-HIGH.
                 submit rkaep000
                 with p_tcode = 'KSB2'            "non display param
                 with p_kokrs = p_kokrs           "non display param
                 with kostl = it_outputsum-profctr
                 with kstar = it_outputsum-acct
                 with p_disvar = '1SAP'           "non display param
                and return.
    What would be reason?
    Thanks
    Shashi.

    at the time of you code being executed the fields may not be available (Defined)..
    You can put a breakpoint on the same & check the RC (Sy-Subrc) for the SET PARAMETER statement
    Regards,
    Gaurav

  • CachedRowSetXImpl doesn't set parameters

    Hi guys.
    I'm using Studio Creator and getting crazy about the couple CachedRowSetXImpl and CachedRowSetDataProvider. I've set the command in the project time with one parameter. In the run time I try to set the value into the command and then refresh the data provider. But It doesn't work:
    getGlb_usuariosRowSet().setString(1, (String)getTxtUsuario().getText());
    getGlb_usuariosDataProvider().refresh();
    After this, if I try to see getGlb_usuariosRowSet().getCommand() it returns the original query with the ? parameters without changing.
    Thank you

    After a long time of work trying to find a solution in the internet, I've discovered what's going wrong with my code. I was attempting to send a Stored Procedure against MySQL through CachedRowSetXImpl's command. This class doesn't support Stored Procedures at all.
    Thks anyway.

  • Setting Application Set Parameters For Variable

    Hi Guys,
    When I've read the BPC help about "Setting application set parameters" and the statement likes this : 
    Allows you to define a custom email message that is sent when a work status code is changed. The message is applicable to all applications in the application set. You can customize the message using the following variables:
    %USER% - name of user who changed the status
    %ED% - Entity dimension
    %EM% - Entity member
    %CD% - Category dimension
    %CM% - Category member
    %TD% - Time dimension
    %TM% - Time member
    %STA% - Work status
    %OWNER% - Entity owner
    %TIME% - time of change
    For example, you can enter "This is to inform you that %USER% has updated the work status for %EM%, %CM%, %TM% on %TIME%". The message can be up to 255 characters, and there is no need for quotes or brackets around parameters.
    The Questions:
    When I put the "%ED" into the textfield "APPROVALSTATUSMSG", after that I try to send email from BPF and the "%ED" still same into the email message. But it should describe the value of variable.
    Could you help me how to view the value of variable ?
    Thanks,

    If I look at the available parameters in the helpfile 2 things are strange in my opinion:
    1)the parameter is called approvalstatusmsg, approval status was the V4 naming convention of the function, right now it is called workstatus, so it might be a V4 function. Never used it myself but maybe it is something not correctly migrated to v5.
    2) Even if it is working in V5, which I don't know for sure, then it is strange that you only have variables for Categroy, time and entity, since you can setup the workstatus for more then these 3 dimensions in V5 which you would also like to have in a case you set it up for more then 3 dimensions. For example for if you want to use Category,time,Entity & Product dimension in the workstatus, you would also like to inform the people which product is updated, since only just category,time and entity won't say that much.
    So I think you best check with support if this function is still usable in V5 or if it is an old function from V4. and if it is working in V5, how do you get the right parameters in the variables when you setup workstatus for other dimensions then just Category/time/Entity.
    I would like to know the results!
    Joost

  • Set Parameters in sub reports - can't know which parameter is in sub report

    Hi,
    I am trying to set parameters in reports that some time build from sub reports, the only input that I got is the parameters name(key) and there values.
    What I need is a way to retrieve the parameters from report and set them by the parameter name(key) with it's value.(when I am handle the case of parameter in sub report)
    and hope it's work!!
    any idea how to do this?
    My code is below, and I am using CR/VS2008.
    Thanks,
    Amos
    public class reportGenerator
        public reportGenerator(string reportTemplate, string reportResults, ListDictionary parameters)
            //Instantiate variables
            ReportDocument reportDocument = new ReportDocument();
            reportDocument.Load(reportTemplate);
            // Database Access
            ConnectionInfo connectionInfo = new ConnectionInfo();
            connectionInfo.ServerName = "ServerName";
            connectionInfo.DatabaseName = "DBName";
            connectionInfo.UserID = "UserId";
            connectionInfo.Password = "UserPassword";
            connectionInfo.IntegratedSecurity = false;
            SetDBLogonForReport(connectionInfo, reportDocument);
            reportDocument.SetDatabaseLogon("UserId", "UserPassword", "ServerName", "DBName", false);
            double Num = 0;
            bool isNum = false;
            ParameterDiscreteValue paramValue;
            foreach (System.Collections.DictionaryEntry param in parameters)
                isNum = double.TryParse((string)param.Value, out Num);
                if (isNum)
                    paramValue = new ParameterDiscreteValue();
                    paramValue.Value = Convert.ToDecimal(param.Value);
                    reportDocument.SetParameterValue((string)param.Key, paramValue.Value);
                else
                    reportDocument.SetParameterValue((string)param.Key, param.Value);
            reportDocument.SaveAs(reportResults, true);
        private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
            Tables tables = reportDocument.Database.Tables;
            foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
                TableLogOnInfo tableLogonInfo = table.LogOnInfo;
                tableLogonInfo.ConnectionInfo = connectionInfo;
                table.ApplyLogOnInfo(tableLogonInfo);

    You should review the SDK guide online because it answers all your questions.
    The [SetParameterValue |http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_net_doc/doc/crsdk_net_doc/html/crlrfCrystalDecisionsCrystalReportsEngineReportDocumentSetParameterValueTopic2.htm]method is overloaded 3 times. One of the overloads takes the name of the parameter, its value, and the name of the subreport it is in.
    public virtual void SetParameterValue(   string name,    object value,    string subreport);
    [Reading and Setting Discrete Parameters|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_net_doc/doc/crsdk_net_doc/html/crtsktutorialsrdparametersdiscreteintro.htm]

  • Help setting Parameters using JDBC and Bind Variables for Oracle List

    I fully understand the concept of using Bind Variables when using JDBC to avoid hard parses everytime my SQL statement is executed when only a certain value changes. For example, perhaps I have the following statement:
    PreparedStatement ps = con.prepareStatement("select salary from employees where employee_id = ?");
    I would then set the value of the question mark (the first and in this case only parameter) using:
    ps.getStmt().setString(1,empId1);
    That is assuming I have the variable empId1 populated with what I want. Anyway, my question has to do with Oracle lists. In other words, if I am just executing the statement against the db, it might look like:
    select salary from employees where employee_id in ('123','456','789');
    I still want to use bind variables and I can do it in JDBC with something like:
    select salary from employees where employee_id in ('123','456','789');
    ps.getStmt().setString(1,empId1);
    ps.getStmt().setString(2,empId2);
    ps.getStmt().setString(3,empId3);
    BUT, what if I just want to construct my list of ids upfront as a string and do something like:
    select salary from employees where employee_id in (?)
    ps.getStmt().setString(1,listOfEmpIds);where listOfEmpIds would look something like '123','456','789'.
    That's what I want to do but it doesn't work. It would be treating the list as a single parameter as opposed to lots of individual parameters. Can someone please tell me the syntax for this if it is possible? I have tried where XX in (?) and where XX in ? (and the string I substitute has the parenthesis in it), but neither work.
    Thank you for your help.

    I always build the list myself.
    You could, however, pass the list as a varchar to a stored proc and then have the stored proc parse (or dynamically execute) using it.
    The second method might even be faster although I would suspect that is only going to be the case if the list is very large. Or it might not.

  • Newbie (!) - created a report; have to set parameters to print? How to print it all, please?

    Hi,
    I confess I'm a newbie. I've created my first table and a report based on that table. When I try to print the report, I get a dialogue box asking for the parameters for certain fields. How do I indicate "print all"? Can I save this setting, to
    print all of this document, every time? Do I have to input the parameters for each field, each time I print the document?
    I see the value of setting parameters, but don't need to filter this report.
    Thanks so very much!  Endless gratitude!

    That would explain it.  Because the report no longer recognizes the references it contains to the div_cde column, it treats it as a parameter.  Hence the prompt.  You can change the report design so that every reference to div_cde becomes
    one to div.  This could be in a number of places such as the ControlSource property of a control in the form, or the name of a column (field) by which the report is grouped or ordered, so an easier solution might be to change the table design, renaming
    the div column back to div_cde.  The report should then work without amendment.
    Ken Sheridan, Stafford, England

Maybe you are looking for

  • Pulling Data Containing HTML TAGS

    We have a DB application that allows users to freely enter data. Our problem is that if a users enters HTML tags as their data and submits it to our DB, we are able to encode the response and store the data in it's original context (a requirement). N

  • Wrong default house bank when paying USD invoice

    vendor ETF does not hav a house bank assigned.  Therefore, when you create a payment proposal the payment should default to the following:- HSB21 - EUR (if the invoice is in Eur) HSB22 - GBP (if the invoice is in GBP) HSB23 - USD (if the invoice is i

  • Urgent Not able to find BO - ZRSP1001

    hello all, I want to create material master managment workflow for that I am using business object BUS1001006. Now i found a workflow template in which there is a task no. 89900096 which is standrad task , it has got a method called FORMEDIT from thi

  • Why do I keep getting an error message everytime I try to burn a cd

    Please help, for days now I have not been able to burn a CD. Everytime I try to burn a disc, I keep getting the message "The attempt to burn a CD failed.The burn failed because of a medium write error". Is anyone else having the same problems if so a

  • PLANNING BOOK SNP

    DEAR ALL, I AM NEW TO SAP APO. HOW TO CREATE COPY OF SNP STANDARD PLANNING BOOKS ( WITH REFERANCE TO SNP94(1) AND SNP94(2). WHEN I "CREATE" MY OWN PLANNING BOOKS WITH REF TO SNP94(1) and SNP94(2).IT IS NOT COPIED SAME AS "9ASNP94" WITH REFERANCE TO S