PASS VALUES TO FORMULAS

hi all
Anyone knows how to pass values to a formula in a report.
I mean i do not neet to pass value to a record selection formula .
I need to pass to a formula!
With java and CR4E exists any interface that does this?
please help it's really urgent!

See my comment on your post in another forum:
http://diamond.businessobjects.com/node/4228
-MJ

Similar Messages

  • Passing values to formula

    Hi All,
            Is there any function module to create and read formula?Here I need to calculate the price for purchased material.i am using  formula to calculate price.Each tax code having its won formula.
          I would like to store these formula in z-table and use it in my program.So there is no need to change my program when changes occurs.My Question is how to read this field value as formula?.........for reference refer the table tc25.
    example: (pb00+jin2) / menge.
    pb00 - base value,
    jin2- service tax,
    menge -quantity.
    How should i pass the value to pb00,jin2 and menge.
    Let me know if there is any doughts in my questions. It will be geartful if u share ur ideas with me pl.
    Thanks in Advance!!!

    Hi Karthik,
            Thanks for ur reply....Actualy that is one option....I found some FM module to create and execute formulas....but i am not able create fromula using this......can u pl tel me whether thse FM will be useful for my requirement.did u seen tc25 table?There thay are maintaining some formulas right?Thats y i prefered formula option.
    CHECK_FORMULA    
    EVAL_FORMULA     
    FORMULA_CHECK    
    FORMULA_EVALUATION
    FIMA_FORMULA_CREATE.

  • Pass values to formula with cr4e

    Post Author: gionnyDeep
    CA Forum: JAVA
    I need urgently to find a way for passing a value to formula runtime using cr 4 eclipse.
    Hope this is implemented in some way.

    Post Author: Jason
    CA Forum: Formula
    OK here is what I have:
    First Field:Dim strReqClass as stringif  {#GroupWeight} > 30 and val({vocDangerousGoods.Code}) > 2 then     strReqClass = "Class: " & {vocDangerousGoods.Class}    formula = strReqClassend if
    Second Field:Dim strReqClass as Stringformula = strReqClass
    If I understand what you said in your replay, then the second field should display the result of the first. However, it doesn't. I'm pretty new to this but to me the way we have declared the variables are private to that field. Is there a way to declare a global variable? If so, how?
    Thanks for your help.

  • Pass values to formulas runtime using cr4e

    I need urgently to find a way for passing a value to formula runtime using cr 4 eclipse.
    Hope this is implemented in some way.

    <p>You should be able to use the FormulaField&#39;s setText() method to pass a formula (which evaluates to some value) at runtime.  Take a look at the <a href="http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/JRC_SDK/jrc_java_api_doc/doc/jrcsdk_java_apiRef/index.html" target="_blank">JRC API Reference</a> on the DevLibrary for details.</p><p>-MJ</p>

  • Passing value to formula field in CR XI from vb6

    currently using vb6 and testing CR XI.  Attempting to pass a value to a formula field in a CR XI report and getting the an "invalid use of property"  How do you pass a value from code in vb6 to the formula in the report?
    current code is as follows:
    Set app = New craxdrt.Application
    Set cr = app.OpenReport("test.rpt")
    Dim crystalFormFieldDefns As craxdrt.FormulaFieldDefinitions
    Dim crystalFormFieldDefn As craxdrt.FormulaFieldDefinition
    Set crystalFormFieldDefns = cr.FormulaFields
    Set crystalFormFieldDefns.Item(0).FormulaFieldName = ("{@InvList}")
    crystalFormFieldDefn.Text = Chr$(34) & selFormula & Chr$(34)
    crvInvoice.ReportSource = cr
    crvInvoice.ViewReport

    Hi, Gerry;
    I think the logic is off a bit.
    Instead of:
    Set crystalFormFieldDefns.Item(0).FormulaFieldName = ("{@InvList}")
    Try:
    For Each crystalFormFieldDefn In crystalFormFieldDefns
    If crystalFormFieldDefns.Name = "{@InvList}" Then
    crystalFormFieldDefn.Text = Chr$(34) & selFormula & Chr$(34)
    Regards,
    Jonathan

  • Passing value to paramater field in the crystal report

    Hai,
    I have done the following thing.
    1. Created SBO screen using screen painter.
    2. Added one text box, button in the screen painter.
    3. Created one Windows screen and attached Crystal report viewer.
    4. As soon as the button clicked in the SBO screen i am able to open the crystal report.
    But now i need values which i have typed in the text box should be passed to the crystal report. how this can be done . I have attached the code please let me know where is the error. I have also created paramater filed in the crystal report name "From_dt".
    As soon as the screen opened from SBO. It is asking for discreate value. But i have already passed the value from the SBO. I need to pass the value dyanamical from SBO screen.
              Dim oRpt As New Myreport
                            Dim myTable As CrystalDecisions.CrystalReports.Engine.Table
                            Dim oLI As New CrystalDecisions.Shared.TableLogOnInfo
                            For Each myTable In oRpt.Database.Tables
                                oLI = myTable.LogOnInfo
                                oLI.ConnectionInfo.Password = "sapb1@sql"
                                oLI.ConnectionInfo.UserID = "sa"
                                myTable.ApplyLogOnInfo(oLI)
                            Next
                            Dim Crviewer As New Frm_rptwaste
                            Crviewer.CrystalReportViewer1.ReportSource = oRpt
                            Dim ParameterField1 As New CrystalDecisions.Shared.ParameterField
                            Dim ParamterFields As New CrystalDecisions.Shared.ParameterFields
                            Dim ParamterDescreteValue1 As New CrystalDecisions.Shared.ParameterDiscreteValue
                            ParameterField1.ParameterFieldName = "From_dt"
                            ParamterDescreteValue1.Value = txtcode.Value
                            ParameterField1.CurrentValues.Add(ParamterDescreteValue1)
                            ParamterFields.Add(ParameterField1)
                            Crviewer.CrystalReportViewer1.ParameterFieldInfo = ParamterFields
                            Crviewer.CrystalReportViewer1.RefreshReport()
                            Crviewer.ShowDialog()

    Hi Suresh,
        Instead of Parameter, you try Formula field and assign desired value to formula.
    HTH
    B Ravi Shankar

  • Passing values from main report to sub-reports

    - How do we pass values from main report to sub-report?

    Look at this link which shows how to pass values from a subreport to a main report.
    http://www.datamanagementgroup.com/resources/trainerstalk/trainerstalk_howto_share_subreport_data_with_main_report.asp
    You can use the same method to pass values from main report to a subreport.
    1) Create a formula @mainFormula in the main report, as given in item 1 of link.
    2) Place this formulla in a suppressed report footer section above the target subreport.
    3) In the subreport, create a formula @subFormula that declares the same variable name, as given in item 3 of link.
    4) Place @subFormula column in the subreport where you want to display it.

  • Background Job pass value

    Hi, I am calling a Background job in my program. I am using JOB_OPEN, JOB_SUBMIT and JOB_CLOSE FM to start a job. My need is to pass a value to the job program(job program doesnt have any selection screen values). Is their any way without creating variants each time to pass value to it.
    Please advice.....

    Hello,
    You can first use  JOB_OPEN which returns job number. Then build ranges or parameters to use SUBMIT to call the program.
    Eg: SUBMIT RM06BB20 AND RETURN
          WITH S_EKGRP IN R_EKGRP
          WITH S_EKORG IN R_EKORG
          WITH S_FLIEF IN R_FLIEF
          WITH S_KONNR IN R_KONNR
          USER sy-uname VIA JOB w_jobname
          NUMBER w_job_number.
    Now use JOB_CLOSE.
    Thanks,
    Venu

  • Passing values between adf application and web services

    hi i have a situation where i have jsff page which got username,surname,lastname,email i what to pass this value to my webservices how can i do that. this is how i create my webservicesright click viewControler->web services->web services Data Control
    i what to pass the value to webservices workflow i already have a screen in my workflow now i what to pass the adf application values to that webservices am in jdeveloper 11.1.1.6.0
    i try this
    <af:inputText simple="true"
                            required="#{bindings.Username.hints.mandatory}"
                            columns="#{bindings.Username.hints.displayWidth}"
                            maximumLength="#{bindings.Username.hints.precision}"
                            shortDesc="#{bindings.Username.hints.tooltip}" id="it1"
                            value="#{bindings.Username.inputValue}">
                <f:validator binding="#{bindings.Username.validator}"/>
                <af:setPropertyListener from="#{bindings.Username.inputValue}"
                                        to="#{bindings.start_user_details}"
                                        type="action"/>
              </af:inputText>

    i make my webservices to pass values
    <af:inputText simple="true"
                            required="#{bindings.Username.hints.mandatory}"
                            columns="#{bindings.Username.hints.displayWidth}"
                            maximumLength="#{bindings.Username.hints.precision}"
                            shortDesc="#{bindings.Username.hints.tooltip}" id="it1"
                            value="#{bindings.Username.inputValue}">
                <f:validator binding="#{bindings.Username.validator}"/>
                <af:setPropertyListener from="#{bindings.Username.inputValue}"
                                        to="#{bindings.approveUser_username}"
                                        type="action"/>
              </af:inputText>
    but am geting error reference approveUser_username not found

  • Passing values from a FORM to another FORM

    Hi,
    I have to pass values from FORM "A" to FORM "B". What is the best way to do this?\
    Can I use a GLOBAL variable?
    Thanks,
    Marc.

    I think he meant the global namespace.
    You set a :global_your_name_here to a value and that value is available in your entire application. See the help file section on the global namespace for more information.
    Forms parameters are parameters that you form picks up from the outside when it starts. The calling entity must supply them in the URL or they will be set to null. You set them up in the object navigator in the Parameters node.

  • Script fails when passing values from pl/sql to unix variable

    Script fails when passing values from pl/sql to unix variable
    Dear All,
    I am Automating STATSPACK reporting by modifying the sprepins.sql script.
    Using DBMS_JOB I take the snap of the database and at the end of the day the cron job creates the statspack report and emails it to me.
    I am storing the snapshot ids in the database and when running the report picking up the recent ids(begin snap and end snap).
    From the sprepins.sql script
    variable bid number;
    variable eid number;
    begin
    select begin_snap into :bid from db_snap;
    select end_snap into :eid from db_snap;
    end;
    This fails with the following error:
    DB Name DB Id Instance Inst Num Release Cluster Host
    RDMDEVL 3576140228 RDMDEVL 1 9.2.0.4.0 NO ibm-rdm
    :ela := ;
    ERROR at line 4:
    ORA-06550: line 4, column 17:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    &lt;a string literal with character set specification&gt;
    &lt;a number&gt; &lt;a single-quoted SQL string&gt; pipe
    The symbol "null" was substituted for ";" to continue.
    ORA-06550: line 6, column 16:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev su
    But when I change the select statements below the report runs successfully.
    variable bid number;
    variable eid number;
    begin
    select '46' into :bid from db_snap;
    select '47' into :eid from db_snap;
    end;
    Even changing the select statements to:
    select TO_CHAR(begin_snap) into :bid from db_snap;
    select TO_CHAR(end_snap) into :eid from db_snap;
    Does not help.
    Please Help.
    TIA,
    Nischal

    Hi,
    could it be the begin_ and end_ Colums of your query?
    Seems SQL*PLUS hs parsing problems?
    try to fetch another column from that table
    and see if the error raises again.
    Karl

  • Passing values from javascript in pop up window to parent jsp

    Hi
    I am trying to pass values from a pop up window to the main window that popped this child window , with the idea to have the parent window refresh itself with value from pop up window.But the values are not going through.I do a request on the hidden variable but when the parent
    jsp refreshes , the variable is still null...
    The following is the code i have .
    Parent jsp:a.jsp
    <form name='summary'>
    <input type=hidden name=customerid value="">
    <input type="button" class="textButton" name="action" value="customerlist" onClick="javascript:openWin('b.jsp','800','350')">
    <script>
    function openWin(loc, w, h) {
    var newWin = window.openloc,"HTML",'dependent=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + w + ',height=' + h);
    newWin.window.focus();
    </SCRIPT>
    <%
    String optionVal = request.getParameter("customerid");%>
    var user = "<%= optionVal%>";
    </form>
    child jsp- b.jsp (pop up window)
    <script>
    function closer(){
    var val = document.formname.id.selected.value;
    window.opener.document.summary.customerid.value = val;
    window.opener.location.reload();
    </script>
    <form name = formname>
    <input type="text" name="id" value = ''>
    <input type="button" class="textButton" value="select"
    onClick="closer();window.close();">
    </form>
    Any ideas on what i am missing
    Thanks
    Arn

    use window.opener.document.forms[0].filedname.value = 'value u need to set'

  • Passing Value from Crystal Report (special function) to Business View parameter

    Friends,
                 Í have a scenario where i need to pass value from Crystal Report to a Business view's parameter.
    Eg : CurrentCEUsername (func in crystal report)-- gives login user  which i should pass to parameter in a Business view (used in the same report).
    Will be able to explain more if required.
    Thanks in Advance,
    Bharath

    I guess you got the picture wrong.  User_id is not a report_level parameter .
    In Data Foundation, below query is used..
    select Acc_Number, Account_Group,User_id  from Accounts where user_id={?User_id}
    where in {?User_id}  is the BV parameter...
    The Filter was a solution. But it takes long time to Query all the data from DB and then filter at BV level.
    How do i pass the CurrentCEUsername to {?User_id}
    Value should ve CurrentCEusername always. so that query will be
    select Acc_Number, Account_Group,User_id  from Accounts where user_id=CurrentCEusername
    It will restrict the data pulled from DB to BV .. right?

  • How to avoid popup & pass value dynamically in 'F4IF_FIELD_VALUE_REQUEST' ?

    Hello Experts,
    I am trying to test usage of f4 help function module.
    We want to dynamically pass values from remote machines into the given input parameters of a Given Search help and receive the output into a table (no dialogs required .. so no pop ups )
    I wrote a test program to just test if we can really do that at runtime ?
    This program pops up the window of search help First I want to surpress that window and Second I have no clue
    ( How to pass the input parameters as value eg. 20 to a given field as we pass manually )
    Can some one suggest something here ?
    REPORT  ZTEST_F4_TEST.
    data lt_return TYPE TABLE OF DDSHRETVAL.
    data ls_return TYPE DDSHRETVAL.
    data lt_return_ddic TYPE TABLE OF zDDSHRETVAL.
    data ls_return_ddic TYPE zDDSHRETVAL.
    PARAMETERS ptable type tabname.
    PARAMETERS pfield type fieldname.
    PARAMETERS pshelp type SHLPNAMe.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
      EXPORTING
        tabname                   = ptable
        fieldname                 = pfield
        SEARCHHELP                = pshelp
    *   SHLPPARAM                 = ' '
    *   DYNPPROG                  = ' '
    *   DYNPNR                    = ' '
    *   DYNPROFIELD               = ' '
    *   STEPL                     = 0
    *    VALUE                     = ' '
        MULTIPLE_CHOICE           = 'X'
        DISPLAY                   = 'F'
        SUPPRESS_RECORDLIST       = 'X'
    *   CALLBACK_PROGRAM          = ' '
    *   CALLBACK_FORM             = ' '
    *   SELECTION_SCREEN          = ' '
    * IMPORTING
    *   USER_RESET                =
    TABLES
       RETURN_TAB                = lt_return
    * EXCEPTIONS
    *   FIELD_NOT_FOUND           = 1
    *   NO_HELP_FOR_FIELD         = 2
    *   INCONSISTENT_HELP         = 3
    *   NO_VALUES_FOUND           = 4
    *   OTHERS                    = 5
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    data lv_count type i.
    delete lt_return where fieldname <> pfield.
    sort lt_return by fieldval.
    delete ADJACENT DUPLICATES FROM lt_return COMPARING fieldval.

    Hello Sim,
    We will be exposing the Input parameters and Output lists of the SAP Search helps (simple search helps only) as input output of a Webservice.
    So I need to understand how can we exploit the SAP Search Helps ?
    What function modules can take these inputs as structures  and can provide the output in form of a table ?
    Regards,
    Ravi

  • Pass value

    Hi,
    I want to pass value of kromosom which is an int array to myValue which is int. How to cast the kromosom?
    myValue = kromosom;

    I want to pass value of kromosom which is an int
    array to myValue which is int. How to cast the
    kromosom?Just out of curiosity. How did you expect that to be possible? You have an array of many ints and now you want to squeeze all of them into just one int?
    Or do you want to read one int from the array and assign it to an int variable? This is how you read the first one,
    myValue = kromosom[0];

Maybe you are looking for