Summarizing variables field with calculations

I have three fields which I need to summarize, as a group summary, then a grand total. The first field, Total_STD_Labor_Cost, is in a sub-report, which is a calculation and stored in a "Receipts" variable field. I then multiply Receipts*STDCost=Total_STD_Labor_Cost. This results, I can pass to the main report, but can not summarize it, regardless where it is placed in the main report, report footer or any group footer. The second and third fields are in the main report and are calculated using the "Receipts" variable field and cost fields.  I can not summarize these two field either, I suspect because they include the "Receipts" variable field is why I am not getting any results. Running totals do not seem to work or apply here. So I am looking to either capture the sums of the fields by group and again in the grand total. Using the insert summary feature does not give the sum option.
Any thoughts would be truly appreciated.
eadeane7

OK, I created the part variables, reset, calc and display.(3 sets for three  different totals. Using an example from Spiceworks.com. 
Formula structure
-the first formula for calculation should be written as such;
whileprintingrecords;
shared numbervar InsSum;
InsSum:= InsSum + [formula to be totaled]
this formula should be placed in the same section as the field to be summarized.
-the second formula for reset should be written;
whileprintingrecords;
shared numbervar InsSum;
InsSum:=0
this formula should be placed in the section proceding the section containing the field to be summarized.
-the third display formula should be written;
whileprintingrecords;
shared numbervar InsSum;
InsSum
and this formula should be placed where you were wanting the summary to appear.
So in my crystal report there are three groups.  Group footer #1 has a subreport in to pull the product line name in.
Within that group I need to total std labor cost, lowlevel laborcost and highlevel labor cost.
Group #2 is by bomitem, which is a part number
Group #3 is for linenumber which refers to a subreport that has no bearing on the totals
I am trying to achieve. 
Using the first set of fields, PlineTotalSTDLabCost_Calc, PlineTotalSTDLabCost_Display and PlineTotalSTDLabCost_Reset,, where should
These fields be place to return the results I am looking for base on what I have explained.
Formula for PlineTotalSTDLabCost_Calc:
Whileprintingrecords;
Shared Numbervar PlineLaborStd;
PlineLaborStd:= PlineLaborStd + ({@Total_std_Lab_cost}
Formula for PlineTotalSTDLabCost_Display:
Whileprintingrecords;
Shared Numbervar PlineLaborStd;
PlineLaborStd
Formula for PlineTotalSTDLabcost_Reset:
Whileprintingrecords;
Shared Numbervar PlineLaborStd;
PlineLaborStd:=0
  Base on what I have explained and the screenshots, where should these field be placed in order to get totals by product line (Group #1) and grand totals in the report footer?

Similar Messages

  • Trouble with calculating fields. Can't select (check) fields. Also can't figure out what's wrong with a division field (percent) that I created. Keep getting the pop up that format of the field doesn't allow blah blah blah... Help!

    Trouble with calculating fields. Can't select (check) fields. Also can't figure out what's wrong with a division field (percent) that I created. Keep getting the pop up that format of the field doesn't allow blah blah blah... Help!

    1. Use the mouse to select the field and then press the space bar.
    2. A null string is the same as zero. What is the result for division by zero?

  • Query linked to field with shift+F2 does not retuen 'Arrows'

    Hi
    I have a query that, when run from query manager and variable is input with [%0] does return results including the orange arrow to directly jump to the documents - perfect.
    If I link the query to a field in production order to be called by Shift + F2 and replace variable input with $[OWOR.DocNum], it returns the list correctly, but there are no arrows.
    What do I have to change to get the arrows?
    Thanks
    Franz

    Dear Mr Leu,
    I came up with a query, not sure this is correct for you but I hope it helps. I assumed you want to know what it the result from this calculation:
    sum(t2.onhand - t0.plannedqty + t1.quantity) as 'what is left'
    select distinct (t0.linenum), t3.status, t3.docnum, t0.itemcode, t0.plannedqty as 'production',
    t1.shipdate, t1.quantity as 'sales order',
    t2.onhand as 'onhand', sum(t2.onhand - t0.plannedqty + t1.quantity) as 'what is left'
    from wor1 t0 inner join por1 t1 on t0.itemcode = t1.itemcode
    inner join oitw t2 on t0.itemcode = t2.itemcode
    inner join owor t3 on t0.docentry = t3.docentry
    where
    t1.linestatus = 'o' and
    t3.status <> 'l'
    group by
    t0.linenum, t3.status, t3.docnum, t0.itemcode, t1.shipdate,
    t0.plannedqty, t2.onhand, t1.quantity 
    let me know if it helps you.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • Variable Substitution with tag attribute

    Hi,
    is possible to use variable substitution with tag attribute? as follow:
    <root directory="xxx"  filename="yyy">
       <....
    </root>
    using variable substitution for directory : root,1,directory,1
                                                               root,1,filename,1

    Hi,
    I solved my problem using Dynamic Configuration to set the FileName and Directory fields in Adapter Specific Configuration. To use Variable Substitution only accept element in XML.
    Thanks for all.

  • Opening Stock and Closing Stock fields and Calculation

    Hi,
    My report requirement is to display the material, opening stock for the lower date, closing stock for the higher date and the in between all stock operations..how to fetch the opening stock and closing stock for a particular material ???.. what are the tables and fields for calculating them??..
    Thanks,
    Sri

    this is the code i wrote..
    I had selected the data for the date entered and the previous date(l_date) also..
    previous date for the opening stock.
    now i am getting only receipts and issues correctly.. opening stock and the remaining
    balance fields are not coming properly..please help me..
    here rmenge for receipts,imenge for issues.
    REPORT  ZSTOCK no standard page heading line-size 180.
    types: begin of ty_date,
           budat type budat,
           end of ty_date,
           begin of ty_mard,
            matnr type matnr,
            lgort type lgort_d,
            labst type labst,
            UMLME TYPE UMLMD,
            INSME TYPE INSME,
            EINME TYPE EINME,
            SPEME TYPE SPEME,
            RETME TYPE RETME,
           end of ty_mard,
           begin of ty_makt,
            matnr type matnr,
            maktx type maktx,
           end of ty_makt,
           begin of ty_mbew,
           matnr type matnr,
           bwkey type bwkey,
           lbkum type lbkum,
           salk3 type salk3,
           end of ty_mbew,
           begin of ty_mkpfmseg,
            mblnr type mblnr,
            budat type budat,
            bwart type bwart,
            matnr type matnr,
            lgort type lgort_d,
            shkzg type shkzg,
            dmbtr type dmbtr,
            menge type mseg-menge,
           end of ty_mkpfmseg,
           begin of ty_opstock,
           matnr type matnr,
           rdmbtr type dmbtr,
           idmbtr type dmbtr,
           bdmbtr type dmbtr,
           bmenge type menge_d,
           end of ty_opstock,
           begin of ty_output,
            mblnr type mblnr,
            budat type budat,
            matnr type matnr,
            maktx type maktx,
            bwart type bwart,
            lgort type lgort_d,
            shkzg type shkzg,
            rmenge type mseg-menge,
            rdmbtr type dmbtr,
            imenge type mseg-menge,
            idmbtr type dmbtr,
            dmbtr type dmbtr,
            bdmbtr type dmbtr,
            bmenge type menge_d,
           end of ty_output.
    data: t_date type standard table of ty_date initial size 0,
          t_mard type standard table of ty_mard initial size 0,
          t_makt type standard table of ty_makt initial size 0,
          t_mkpfmseg type standard table of ty_mkpfmseg initial size 0,
          t_opstock type standard table of ty_opstock initial size 0,
          t_out type standard table of ty_output initial size 0,
          w_date type ty_date,
          w_mard type ty_mard,
          w_makt type ty_makt,
          w_mkpfmseg type ty_mkpfmseg,
          w_opstock type ty_opstock,
          w_out type ty_output,
          g_matnr type mara-matnr,
          g_lgort type t001l-lgort.
    selection-screen begin of block b1 with frame.
    parameters:p_werks type t001l-werks obligatory memory id pw.
    select-options:s_lgort for g_lgort no-extension no intervals.
    select-options: s_matnr for g_matnr.
    parameters:p_date type mkpf-budat obligatory.
    selection-screen end of block b1.
    at selection-screen.
    perform sub_validate_date.
    start-of-selection.
    data: l_date type sy-datum,
          l_row type i.
    refresh t_date.
    select budat from mkpf into table t_date.
    sort t_date.
    delete adjacent duplicates from t_date.
    clear w_date.
    read table t_date into w_date with key budat = p_date.
    l_row = sy-tabix.
    l_row = l_row - 1.
    clear w_date.
    read table t_date into w_date index l_row.
    l_date = w_date-budat.
    select    k~mblnr
              k~budat
              s~bwart
              s~matnr
              s~lgort
              s~shkzg
              s~dmbtr
              s~menge
              into table t_mkpfmseg
              from mkpf as k inner join mseg as s
              on kmblnr = smblnr and
                 kmjahr = smjahr
              where k~budat between l_date and p_date and
                    s~matnr in s_matnr and
                    s~werks = p_werks and
                    s~lgort in s_lgort.
    if t_mkpfmseg is not initial.
    sort t_mkpfmseg by budat ascending
                       matnr ascending.
    select     matnr
               lgort
               labst
               umlme
               insme
               einme
               speme
               retme
               from mard
               into table t_mard
               for all entries in t_mkpfmseg
               where matnr = t_mkpfmseg-matnr and
                     werks = p_werks and
                     lgort in s_lgort.
    select    matnr
              maktx
              from makt
              into table t_makt
              for all entries in t_mkpfmseg
              where matnr = t_mkpfmseg-matnr.
    endif.
    loop at t_mkpfmseg into w_mkpfmseg where budat = l_date.
       loop at t_mard into w_mard where matnr = w_mkpfmseg-matnr.
          w_opstock-matnr = w_mkpfmseg-matnr.
          if w_mkpfmseg-shkzg = 'S'.             " Receive
               w_opstock-rdmbtr = w_mkpfmseg-dmbtr.
               w_opstock-bmenge = w_mard-labst + w_mard-insme + w_mard-speme
                                    + w_mard-einme +               w_mard-retme
                                    - w_mkpfmseg-menge.
          elseif w_mkpfmseg-shkzg = 'H'.         " Issue
               w_opstock-idmbtr = w_mkpfmseg-dmbtr.
               w_opstock-bmenge = w_out-bmenge + w_mkpfmseg-menge.
          endif.
              w_opstock-bdmbtr = w_out-rdmbtr - w_out-idmbtr.
                   append w_opstock to t_opstock.
                  clear w_opstock.
       endloop.
    endloop.
    loop at t_mkpfmseg into w_mkpfmseg where budat = p_date.
       loop at t_mard into w_mard where matnr = w_mkpfmseg-matnr.
         clear w_makt.
         read table t_makt into w_makt with key matnr = w_mkpfmseg-matnr.
         if sy-subrc = 0.
          w_out-budat = w_mkpfmseg-budat.
          w_out-matnr = w_mard-matnr.
          w_out-maktx = w_makt-maktx.
          w_out-lgort = w_mard-lgort.
          w_out-mblnr = w_mkpfmseg-mblnr.
          w_out-bwart = w_mkpfmseg-bwart.
          w_out-shkzg = w_mkpfmseg-shkzg.
            if w_mkpfmseg-shkzg = 'S'.             " Receive
               w_out-rmenge = w_mkpfmseg-menge.
               w_out-rdmbtr = w_mkpfmseg-dmbtr.
               w_out-imenge = 0.
               w_out-bmenge = w_mard-labst + w_mard-insme + w_mard-speme
                                    + w_mard-einme + w_mard-retme
                                    - w_mkpfmseg-menge.
            elseif w_mkpfmseg-shkzg = 'H'.         " Issue
               w_out-imenge = w_mkpfmseg-menge.
               w_out-idmbtr = w_mkpfmseg-dmbtr.
               w_out-rmenge = 0.
               w_out-bmenge = w_out-bmenge + w_mkpfmseg-menge.
            endif.
               w_out-bdmbtr = w_out-rdmbtr - w_out-idmbtr.
                   append w_out to t_out.
                  clear w_out.
    endif.
       endloop.
    endloop.
    write: / 'Material' , 12 'Description' ,40 'Location', 50 'Opening stock',70 'MvT',
              83 'Receipts' , 102 'Issues', 118 'Amount',135 'Balance Quan', 155 'Balance Amount'.
    loop at t_out into w_out.
       write: / w_out-matnr, 12 w_out-maktx, 40 w_out-lgort.
       clear w_opstock.
       read table t_opstock into w_opstock with key matnr = w_out-matnr.
       if sy-subrc = 0.
         write: 45 w_out-bmenge.
        endif.
       write: 70 w_out-bwart,75 w_out-rmenge,92  w_out-imenge,
             110 w_out-bdmbtr, 130 w_out-bmenge, 150 w_out-bdmbtr.
    endloop.
    *&      Form  SUB_VALIDATE_DATE
    FORM SUB_VALIDATE_DATE.
        select budat
               from mkpf
               into table t_date
               where budat = p_date.
        if t_date is initial.
           message e001(zks) with 'select another date range'.
        endif.
    ENDFORM.                    " SUB_VALIDATE_DATE
    Edited by: Sri on Feb 18, 2009 8:31 AM

  • Error while deleting loc - Object variable or With block variable not set

    I could not delete some of the existing locations in the HyperionFDM and it results in the error Object variable or With block variable not set.
    I verified that the Server has the apps and subfolder which is needed for this application \\servername\data\app1\Inbox etc.
    Any pointers will be really useful. Thanks !
    - Ap

    Hi,
    There can be several reasons for it, for now I would suggest you:
    This error generally comes because:
    Cause
    The user that logs on workbench does not have write access to the Financial Data Quality Management application shared folder.
    Solution
    Log onto the machine where the Financial Data Quality Management application files are located. You can locate this path by performing the following:
    a) At the FDM Login page choose <Add Application> and login
    b) Highlight the FDM Application in question and click the "Modify" button
    c) The application path field displays the location of the application folder
    2. Go the shared folder, right click and go to Properties -> Sharing -> Permissions and add the user to the Share Permissions and grant "Change" at a minimum.
    Please check and let me know
    I would suggest you to post FDM related posts in Financial Data Management
    J

  • Adding fields with data type "TIMS" to the BP transaction

    hi all,
      This  is Anil regarding the addition of fields to the BP transaction.
    here my problem is for BP transaction I could not find any BADI or screen exit  to add the fields. Even EEWB tool does not allow us to cretate the fields with data type "TIMS". so could you please suggest any other way to add these fields to BP?
    when I enter the values to the time fields in BP transaction, they must reflect in
    BUT000 table also?
    Regards,
    Anil .

    In the physical layer, Column Properties change the data type to int.
    If still problem exists, In the Business Model, write a case statement like
    case when column1=1 then 1 end
    and apply count aggregation on the new calculated column,add the column to presentation table, use that new calculated column for report.
    - Madan

  • How to populate a hidden form field with a value passed from another page

    I'm using PHP/MySQL and DW CS4.
    I am trying to obtain the external key for a table, and include it as a hidden field in a form for a second table.
    The user selects a "need" from a list and is taken to a new page which displays the need selected in the prior page and a form the user can fill out with details of his offer, there should also be a hidden field in this form that contains the index to the needs table, this hidden field holds the external key. Most of the code is working, except for populating the hidden field with the external key. I have proven(by printing it to the screen) that I have obtained the external key and stored it in a variable ($saveNeedId) . What I'm unable to do is assign this variable to the hidden field in the form I'm about to store in a table. Sometimes I get zero and sometimes I get the index to the first need in the table. This ought to be simple but I can't get it to work, I must be missing something obvious - still very new to PHP.
    Here's the code that sets up the variable and prints it to the screen for test purposes
          $saveNeedId = "-1";
              if (isset($_GET['needId'])) {
                $saveNeedId = $_GET['needId'];
                print $saveNeedId;
    Here's the code that sets up the hidden fields in the form, the one I'm trying to set up is the first one, needId
         <input type="hidden" name="needId" value="<?php echo $row_rsNeedsUnmet['needId']; ?>" />
         <input type="hidden" name="offerId" value="" />
         <input type="hidden" name="MM_insert" value="form1" />
    The page where the user sees the list of needs is here www.hollisterairshow.com/weneed.php
    I'd really appreciate sone help with this, I've tried all combinations of double quotes, percent signs and nothing works...sigh.
    Tony

    Here's the code that sets up the variable and prints it to the screen for test purposes
          $saveNeedId = "-1";
              if (isset($_GET['needId'])) {
                $saveNeedId = $_GET['needId'];
                print $saveNeedId;
    Here's the code that sets up the hidden fields in the form, the one I'm trying to set up is the first one, needId
         <input type="hidden" name="needId" value="<?php echo $row_rsNeedsUnmet['needId']; ?>" />
         <input type="hidden" name="offerId" value="" />
         <input type="hidden" name="MM_insert" value="form1" />
    <input type="hidden" name="needId" value="<?php echo $_GET['needId']; ?>" />
    I looked at your page. It looks like you figured it out.

  • Query reg Variable Substitution with enhanced interface mapping

    Hi All,
      The scenario is IDoc to file using enhanced interface determination (message split based on some conditions) and the output file name should be based on a field value in the  IDoc. So, I've tried using Variable Substitution Option in the receiver file adapter. But it's failing with the error 'com.sap.aii.adapter.file.varsubst.VariableDataSourceException'. 
    My question is does Variable Substitution works with Enhanced Interface Determination? Bcoz the outcome of interface determination is a main and sub payload.
    IDoc Payload
    <?xml version="1.0" encoding="utf-8" ?><HR_HRMD_A07><IDOC BEGIN="Constant"><E1PLOGI SEGMENT="Constant">
    <E1PITYP SEGMENT="1"><E1P0000 SEGMENT="1"><ENDDA>99991231</ENDDA></E1P0000></E1PITYP></E1PITYP></E1PLOGI></IDOC></HR_HRMD_A07>
    Variable Substitution XPATH, which I've mentioned is payload:HR_HRMD_A07,1,IDOC,1,E1PLOGI,1,E1PITYP,1,E1P0000,1,ENDDA,1
    Thanks in advance.
    Regards,
    Joe.

    Hi,
    It was the problem with the capital letters for the variable field. We changed it to small letters, then the issue is resolved.
    Thanks,
    Joe.

  • Using variables in a calculation function in Diadem script

    Hey guys,
    I'm new to working with Diadem Scripts.  I have tried the two different ways below to make the values of a channel equal to the results of a formula containing created variables.  I can do it if the formula contains values in place of the variables using the calculator method.  I would appreciate any guidance on how to correct the syntax in the below scripts.
    Option Explicit 'Forces the explicit declaration of all the variables in a script.
    dim a, b, c
    a = Data.Root.ChannelGroups(2).Channels("rop regression formula").Properties("ResultNonLinearFitCoef1").Value
    b = Data.Root.ChannelGroups(2).Channels("rop regression formula").Properties("ResultNonLinearFitCoef2").Value
    c = Data.Root.ChannelGroups(2).Channels("rop regression formula").Properties("ResultNonLinearFitCoef3").Value
    Ch ("[2]/ROP (ft/hr)") = a + b* Ch("[2]/Backhead Pressure (psi)") + c* Ch("[2]/Backhead Pressure (psi)")^2
    Or
    Option Explicit 'Forces the explicit declaration of all the variables in a script.
    dim a, b, c
    a = Data.Root.ChannelGroups(2).Channels("rop regression formula").Properties("ResultNonLinearFitCoef1").Value
    b = Data.Root.ChannelGroups(2).Channels("rop regression formula").Properties("ResultNonLinearFitCoef2").Value
    c = Data.Root.ChannelGroups(2).Channels("rop regression formula").Properties("ResultNonLinearFitCoef3").Value
    call ChnCalculate("Ch(""[2]/ROP (ft/hr)"")="&a+&b"*Ch(""[2]/Backhead Pressure (psi)"")+"&c"*Ch(""[2]/Backhead Pressure (psi)"")^2")

    I think you need to use channel name strings of the format "Group Name/Channel Name" in your ChnCalculate function.  I usually use a formula, a symbol array, and a value array to get this done:
    Dim a, b ,c, sFormula, aSymbols, aValues
    Redim aSymbols(6), aValues(6)
    aSymbols(0) = "a"
    aSymbols(1) = "b"
    aSymbols(2) = "c"
    aSymbols(3) = "A"
    aSymbols(4) = "B"
    aValues(0) = Data.Root.ChannelGroups(2).Channels("rop regression formula").Properties("ResultNonLinearFitCoef1").Va
    lue
    aValues(1) = Data.Root.ChannelGroups(2).Channels("rop regression formula").Properties("ResultNonLinearFitCoef2").Value
    aValues(2) = Data.Root.ChannelGroups(2).Channels("rop regression formula").Properties("ResultNonLinearFitCoef3").Value
    aValues(3) = Data.Root.ChannelGroiups(2).Channels("ROP (ft/hr)").GetReference('ref type')
    aValues(4) = Data.Root.ChannelGroiups(2).Channels("Backhead Pressure (psi)").GetReference('ref type')
    sFormula = "Ch(A) = a + b*Ch(B) + c*(Ch(B))^2"
    Call ChnCalculate(sFormula,aSymbols,aValues)
    CLAD

  • Message Mapping, filling field with 0 (zeros) on left

    I need to fill a field with values that has variable lenght adding 0 (zeros) on the left, how can I do it ?
    I'm using the LENGHT in message mapping, with value returned by LENGHT I use FIXVALUES to map the quantity of 0 (zeros) that I need to add in the field.
    Somebody can help me with this problem ?
    Thank's.

    Hi Regis,
    You can use the Arithmetic:FormatNum built-in function for this.
    If you want to left-pad the number with zeros so that the length is always 10, then specify 10 zeros for the format, 0000000000.
    This function takes formats based on java.text.DecimalFormat so you can see all of the possibilities at:
    java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html
    Thanks,
    Jesse

  • Getting error "Object variable or with block variable not set" when trying to open a FR report in studio

    Problem Description
    We are on FR 11.1.2.2.305 installed on AIX. a user is getting this error: "Object variable or with block variable not set" when trying to open a FR report from FR studio client installed on windows xp . Initialy, we thought it may be a FR client installion issue. We uninstalled and cleaned up registry and did a fresh installation of the client but the issue still persists. The FR server and the client are on the same version.
    The user is a LDAP user who is facing the issue. We have confirmed with other users and they dont have any issue accessing FR report from their own client but when they try to connect from the users machine who is having issues, the others users also see the above error. All the users are ldap users and all belong to same shared services groups so the provisiong is the same.
    Any input will be appreciated.
    Thanks

    OK, in this case of one single computer, please make sure that settings as per below KB document as in place and then validate the issue:
    Internet Explorer (IE7, IE8, IE9 and IE10) Recommended Settings for Oracle Hyperion Products (Doc ID 820892.1)
    The information in this document applies to the following Enterprise Performance Management products:
        Calculation Manager
        Data Relationship Management (DRM)
        Enterprise Performance Management Architect (EPMA)
        EPM Workspace
        Essbase Administration Services (EAS)
        Financial Data Quality Management (FDM)
        Financial Management (HFM)
        Financial Reporting
        Foundation Services
        Interactive Reporting
        Planning
        Shared Services
        Web Analysis
    Thanks!

  • Modify Application: Error Message:: Object Variable or With Block variable

    Hi Experts,
    We just installed 5.1 on our server and once the application is installed.
    When I try to modify the aplication I get this error at the end
    This is step what the modify app does:
    Check environment information
    Drop Fact table index.
    Modify fact table.
    Update application information.
    Set Fact table index.
    Create stored procedures and comment table.
    Increase application version and make legal consolidation table.
    Make OLAP database and Journal/Audit reports. / Validate dimension formulas.
    Error Message:: Object Variable or With Block variable
    Any one has any any answer ? I will appreciate your help on this.
    Thanks

    Please check if Reporting Services is working properly.
    Just open IE and type http://nameofserver/reports
    If you receive any error then you have to fix that error verifying configuration of RS.
    If RS is working make sure you add the right information into Server Manager Server Option for RS and Report Server virtual directory.
    Also please check the tblappsetinfo to have all the fields completed (regarding servers).
    Regards
    Sorin Radulescu

  • Problem in picking the system variable value in Calculation Script

    Hi All,
    We are using a Calculation Script to perform data export. And the target location where to crete the exported output file is given to the environment system variable.
    Now I am using this system variable in the calculation script as below:
    //ESS_LOCALE English_UnitedStates.Latin1@Binary
    SET DATAEXPORTOPTIONS
    DataExportLevel "ALL";
    DataExportOverwriteFile ON;
    Fix ( &CurrMiles, &CurrProj, &CurrVer,"No Project","No Version")
    DATAEXPORT "File" " " $DEXPORTPATH;
    ENDFIX
    Here "DEXPORTPATH" is the system variable
    I am creating this system variable from the batch script and the system variable value varies at the runtime.
    This calculation script works fine for first time and it picks the correct value from the system variable.
    But the problem occurs from next execution of calc script. Even if i update the system variable with other value, it picks only the last execution system variable value and it performs execution.
    Eg: Suppose for first execution system variable value is "D:\Bkup\PMV.txt"
    The calc script works fine with this.
    For next execution, system variable value is changed to "D:\Time\temp.txt"
    Now the calc script picks the system variable value as "D:\Bkup\PMV.txt"
    and performs execution which is wrong.
    Please help me on this issue how to handle system variables in calc scripts.
    Thanks in advance
    Regards
    Swathi

    811829 wrote:
    Hi All,
    We are using a Calculation Script to perform data export. And the target location where to crete the exported output file is given to the environment system variable.
    Now I am using this system variable in the calculation script as below:
    //ESS_LOCALE English_UnitedStates.Latin1@Binary
    SET DATAEXPORTOPTIONS
    DataExportLevel "ALL";
    DataExportOverwriteFile ON;
    Fix ( &CurrMiles, &CurrProj, &CurrVer,"No Project","No Version")
    DATAEXPORT "File" " " $DEXPORTPATH;
    ENDFIX
    Here "DEXPORTPATH" is the system variable
    I am creating this system variable from the batch script and the system variable value varies at the runtime.
    This calculation script works fine for first time and it picks the correct value from the system variable.
    But the problem occurs from next execution of calc script. Even if i update the system variable with other value, it picks only the last execution system variable value and it performs execution.
    Eg: Suppose for first execution system variable value is "D:\Bkup\PMV.txt"
    The calc script works fine with this.
    For next execution, system variable value is changed to "D:\Time\temp.txt"
    Now the calc script picks the system variable value as "D:\Bkup\PMV.txt"
    and performs execution which is wrong.
    Please help me on this issue how to handle system variables in calc scripts.
    Thanks in advance
    Regards
    SwathiAs of my knowledge system variables will not update immediately...you need to log off the session after changing the value.
    Update the system variable..
    Log off from the session..
    And Re-login with the same username ....and check...
    Regards,
    Prabhas

  • What is the "variable" field in the timer.swf widget for?

    I have captivate 7, and would like to know what the variable field is for in the timer widget and how to use it...
    Thank you!

    Hi Lilybiri,
    I am playing with $$cpInfoElapsedTimeMS$$....
    I have an action attached to a button in my project that assigns my variable $$TimeSoFar$$ with $$cpInfoElapsedTimeMS$$.  That is all this action does.  I also have a text caption that includes $$TimeSoFar$$ on the same slide.  When I enter the slide  $$TimeSoFar$$ in the text caption is 0, as that is the original value I set to the variable.  This makes sense. When I trigger the for the first time with the button, I receive a negative number in my text caption as the value for $$TimeSoFar$$.  When I trigger that action a second time, it seems to be correct ans is the correct value of $$TimeSoFar$$ . It is also correct everytime after that.
    Any idea why this is happening?
    Thank you !
    Ryan

Maybe you are looking for

  • How to cram two bytes into a short?

    Hi all, I have some byte[] data that I am receiving, and I need to put two bytes into one short (or int, or whatever), as the byte[] will form a two bytes-per-pixel image. I've been working with 8-bit data (this is 12-bits, NOT packed), which is much

  • View attached files for Sales Order in Approbation.

    Hi, I have attached a file in a Sales Order. My Sales Order then goes to approbation. Can my approbator open the attached file WITHOUT having to open the Sales Order. Thank you !

  • DVD-Rom Access

    I understand how to create a DVD-Rom section on a DVD. Is it possible to then link to the folder contents via a menu item on the DVD? I have a folder with several PDF files in it on the DVD-Rom section of the DVD and I would like to put a menu link t

  • Bios Password BLocked

    When I try to log in bios as Administrator I getting the error message "System Disabled Key: 57811531" Can someone help me? This question was solved. View Solution.

  • Where is the OSX Mountain Lion download for 19.99?

    Looking for the download from apple store for $19.99 Mac OS X v 10.7 lion? should have been in as of Juky1, 2012?