Calculating expressions with values obtained in a step

How to aquire a value from a step, calculate the value with an expression and use the new calculated value to compare another value aquired in another step

Hi,
There are a few steps included in implementing your issue.
1) Return a value from a code module as an output or a return value (depending on what adapter you are using) and store this in a local variable.
2) Run your calculation on the variable in either the Post Expression of the previous step or in a separate Statement step and store this in another local variable.
3) Call another code module to return the second value and store this in a local variable.
4) Call another code module to compare the two locals variables or use a statement step to compare them.
Hope this helps you in your applications.
Thanks,
Caroline
Natioanl Instruments
Thanks,
Caroline Tipton
Data Management Product Manager
National Instruments

Similar Messages

  • How to have logical expression with value '*' not wildcard '*'

    Hi ,
        I have requirement where i have to filter records based on a field with value  EQ '' but strangely it is taking wildcard '' in the production system. In the Dev system it is taken as exact value '' but behaves as a wild card in prod system. Please advice a sure shot change which will work in both the environment as i am on a strict deadline for this. Will a usage of CONSTANT work ? Constant : val   type c value "".
    Regards
    Tashi

    Hi,
    Check the bellow code which will help you in using wild card in searcg help.
    DATA: ls_selopt         TYPE ddshselopt,                                  
            ls_t006a          LIKE t006a.                                        
    TYPES:lv_range          TYPE char45.
    CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'
          EXPORTING
            parameter         = lc_old_mat
          IMPORTING
            value             = lv_dummy
          TABLES
            shlp_tab          = shlp_tab
            record_tab        = record_tab
            selopt_tab        = lt_sel_opt
          CHANGING
            shlp              = shlp
            callcontrol       = callcontrol
          EXCEPTIONS
            parameter_unknown = 1
            OTHERS            = 2.
        IF sy-subrc <> 0.
          EXIT.
        ELSEIF NOT lv_dummy IS INITIAL.
          lv_old_filled = 'X'.
        real backend system ?
          MOVE 'I'          TO ls_old_mat_ranges-sign.
          MOVE 'EQ'         TO ls_old_mat_ranges-option.
          MOVE lv_dummy(10) TO ls_old_mat_ranges-low.
          APPEND ls_old_mat_ranges TO lt_old_mat_ranges.
        ELSEIF NOT lt_sel_opt[] IS INITIAL.
          lv_old_filled = 'X'.
          LOOP AT lt_sel_opt INTO ls_sel_opt.
          no select in case of 'all systems'
            IF ls_sel_opt-low EQ '*'.
              DELETE lt_sel_opt.
            ELSE.
            wildcards
              MOVE-CORRESPONDING ls_sel_opt TO ls_old_mat_ranges.
              APPEND ls_old_mat_ranges TO lt_old_mat_ranges.
            ENDIF.
          ENDLOOP.
        ENDIF.
    Regards,
    Goutam Kolluru.

  • Printing Oracle Reports with values obtained from file using IO

    Hi All,
    We have decided to change the report writer tool from Brio SQR to Oracle Reports 6i. The design using Brio SQR was such that we used to populate all the values to be printed in a text file and then we use to populate the values in the BRIO reports using this file as an input.
    We don't want to make many changes to the design at this stage. Can anybody suggest how can we use the text file as input to populate the different fields in the Oracle Reports.
    Thanks in advance.
    Regards,
    Milind

    Hi Miliand
    Text Datasoucre is a Reports 9i feature. You can get the information on the feature overview at
    http://otn.oracle.com/products/reports/content.html.
    You will find the complete 9I Reports reference manuals on OTN soon
    Thanks
    The Oracle Reports Team

  • I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me

    I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me

    Here's a quick example I threw together that generates a sort-of-bell-curve shaped data distribution, then performs the binning and plotting.
    -Kevin P.
    Message Edited by Kevin Price on 12-01-2006 02:42 PM
    Attachments:
    Binning example.vi ‏51 KB
    Binning example.png ‏12 KB

  • Exclude records with value 0 for calculated KF

    Hi, experts,
    How do I Exclude records with value 0 for calculated KF without using condition?  I'm using version 7
    Appreciate any help you can provide.
    Thank You!
    Alina

    Hi,
    We didn't understood ur requirement well.
    1) Lets say, you have 3 KF. and you are doing CKF1 and you don't want to show the records with Zero, In that case you can go with Zero Record Supression.
    2) If you want to try to delete only KF/CKF where there is zero, it won't work as others may have values in them and you may miss the whole record set in the report
    3) If the zero result is part of calculation, then please go ahead as explained above.
    Please explain clearly if this is what you have or is it different ?
    Regards,
    -S-

  • Overwrite the system calculated VAT - Condition Value with Inbound VAT Amou

    Hello experts:
    We have a following requirement in my customer for Inbound VAT Processing.
    We want to overwrite the system calculated VAT - Condition Value with Inbound VAT Amount
    Details :
    Aggregated sales Idoc ( WPUUMS01) is used here for posting the daily sale.
    Inbound pricing procedure is ZPOS00 ( copy of POS000)
    VAT is maintained with condition Type ZMWS. Using Tax Codes
    When idoc get posted system calculates the ZMWS and working fine.
    However we would like to overwrite this condition value with inbound condition value (from segment 5 of WPUUMS)
    Example :
    For Article A : inbound aggregated sales Amount= 100 INR and ZMWS is 10%( VAT code B1)
    Then system will calculate 90 INR revenue and 10 INR as VAT
    However due to rounding in POS system we may get from POS the VAT Amount =9.99 for example.
    Tisak wants to overwrite the condition value 10 INR with 9.99 INR.
    I will appreciate if anybody can suggest some approach or share experience if came across the same scenario (Tax condition type).
    Thanks and regards,

    Hi,
    Either you can use rounding in POS such that it round up for 9.99 to 10.
    And then in SAP pricing procedure you can use alternate calculation type as 16 or 17 (17 should be used with decimal point assigned to currency for rounding like 2 decimal for INR).
    doing this will also round the figure from 9.99 to 10 is SAP.
    Hope this solves your query.
    Regards,
    Ashutosh

  • Insert values - with a trick! (multi-step sequences?)

    I have a table with 4 columns which I need to populate with values. The values respect a repeating pattern which is different from one column to the next.
    Column 1: has values starting with 1 and ending with 10, repeating 16200 times. That's easy to code, by creating a sequence and using it:
    CREATE SEQUENCE "UNITEST"."SEQPLOCATION" MINVALUE 1 MAXVALUE 10 INCREMENT BY 1 START WITH 11 CACHE 9 NOORDER CYCLE ;
    Column 2 is a bit trickier. First value is 1 and it's increased by 1 every time Column 1 values change back to 1, until Column 2 values reach 100, then it goes back to 1 and so on and so forth.
    Column 3 adds to complexity. Starts with 1 and repeats that value until Column 2 values reset back to 1. When that happens, value for that row changes to 2 and so on until it reaches 27. Then it goes back to 1.
    Column 4 starts as well with 1 as first value and keeps it until Column 3 value resets from 27 to 1. When that happens, column 4 value for that row becomes 2 and so on until it reaches 6.
    In total, we have 10*100*27*6 = 162000 rows.
    Structure is below:
    C1 C2 C3 C4 ROWNUM
    1 1 1 1 1
    2 1 1 1 2
    10 1 1 1 10
    1 2 1 1 11
    10 100 1 1 1000
    1 1 2 1 1001
    10 100 27 1 27000
    1 1 1 2 27001
    10 100 27 6 162000
    Is there a way to automatically insert all these value respecting those constraints into the table? I do have the values in an XLS (very simple to add them there) but I'd like to free myself from imports and have everything in the DB.
    Thank you in advance for the responses!

    Interesting point.
    I have re-checked the generated values and indeed they don't really work as designed (in case of the MODEL solution).
    Here's an example code I used for testing (note I added column pid for sanity check and reversed column order, because that's how I need them displayed):
    create table unitest
    (pid number, pg number, pc number, ps number, pp number);
    insert into unitest
    (select pid, c4, c3, c2, c1 from dual
    model
    dimension by (1 n)
    measures(1 pid, 1 c1, 1 c2, 1 c3, 1 c4)
    rules (
    pid[for n from 1 to 162000 increment 1]=cv(n),
    c1[for n from 1 to 162000 increment 1]=mod(cv(n)-1,10)+1,
    c2[n] order by n=case
    when c2[cv(n)-1]=100 then 1
    when c1[cv(n)]=1 and c1[cv(n)-1]!=1 then nvl(c2[cv(n)-1] + 1, 1)
    else nvl(c2[cv(n)-1], 1)end,
    c3[n] order by n=case when c3[cv(n)-1]=27 then 1
    when c2[cv(n)]=1 and c2[cv(n)]!=1 then nvl(c3[cv(n)-1]+1,1)
    else nvl(c3[cv(n)-1], 1)end,
    c4[n] order by n=case when c4[cv(n)-1]=6 then 1
    when c3[cv(n)-1]=27 then nvl(c4[cv(n)-1]+1, 1)else nvl(c4[cv(n)-1], 1)end));Checking transition from 100 to 1:
    select * from unitest where pid between 990 and 1010;Results:
    990     1     1     99     10
    991     1     1     100     1
    992     1     1     1     2
    993     1     1     1     3
    994     1     1     1     4
    995     1     1     1     5
    996     1     1     1     6
    997     1     1     1     7
    998     1     1     1     8
    999     1     1     1     9
    1000     1     1     1     10
    1001     1     1     2     1
    1002     1     1     2     2
    1003     1     1     2     3
    1004     1     1     2     4
    1005     1     1     2     5
    1006     1     1     2     6
    1007     1     1     2     7
    1008     1     1     2     8
    1009     1     1     2     9
    1010     1     1     2     10Now... for pid 990 to 1010 I see fourth column values as being 1,1,1...1 and instead they should have been 100, 100....100 - because 100 still needs to be there for all values in the 5th column.
    My table should contain these values for pid between 990 and 1010:
    990     1     1     99     10
    991     1     1     100     1
    992     1     1     100     2
    993     1     1     100     3
    994     1     1     100     4
    995     1     1     100     5
    996     1     1     100     6
    997     1     1     100     7
    998     1     1     100     8
    999     1     1     100     9
    1000     1     1     100     10
    1001     1     2     1     1
    1002     1     2     1     2
    1003     1     2     1     3
    1004     1     2     1     4
    1005     1     2     1     5
    1006     1     2     1     6
    1007     1     2     1     7
    1008     1     2     1     8
    1009     1     2     1     9I hope this clarifies my need. I am looking at the model code you provided and trying to make some changes to address my need but I'm a newbie and it might take a while :)

  • I can, I can't get my address book to snyc with my ipad2.  I'm using Outlook express 2004.  I followe the steps in itunes, but still no contacts.  Any suggestions?

    Can't get my address book to sync to IPAD2.  Using Outlook Express 2004.  I followed the steps in Itunes, but still not contacts.  Any suggestions?

    Mine is doing the exact same thing, and nobody on any of these threads has had any luck fixing it yet, so far as I can tell. iSync is worthless since it simply won't see the ipod and basically is not used at all now as .mac is done through its own preference window. What did work for me, and was quite easily done, was to just open your ipod through the finder and delete the vcard data in the contacts folder. Export your contacts from address book as a vcard to that contacts folder on your ipod, and it all works fine.
    Still won't sync...but at least this only takes a minute to do. I'd like to actually fix it though.

  • Calculated view with input parameters

    Hello there.
    I've created a calculated view with input parameters, which I am going to call  it  'VIEW_A'.
    This view has been working just fine.
    But now I have to create another calculated view and import the last one(VIEW_A) in a projection.
    But I got a error when trying to see the data content. 
    It says :
    Error: SAP DBTech JDBC: [2048]: column store error: search table error:  [6968] Evaluator: syntax error in expression string;expected TK_ID,parsing '"DT_DOC_MES_ANO" >= [here]and "DT_DOC_MES_ANO" <='
    At the 'Problems' panel it says the all the input parameters are unmapped.
    What Am I doing wrong?  Sorry but I am kind new at SAP world.

    http://scn.sap.com/message/15489475Hello Tiago,
    Could you please let me know if you're able to resolve your issue, I'm getting the similar error when I'm passing alpha numeric values as parameter via my SP.
    Thanks for your help in advance!
    Regards,
    Sathish

  • Excise duty calculation on Assessable value in PO

    Dear Team,
    We are facing critical issue in Excise Duty calculation, Excise is calculating on basic price for our normal procurement and we are selling the same at MRP cost... Now the issue is Excise Duty has to be calculated on Assessable value (65% on MRP value) instead of basic price in PO.
    Example:
    Basic Price - 100
    MRP - 300
    Assessable value - 195
    Excise Duty - 24.10 (195*12.36%)
    Regards,
    Sai

    Hi Sai,
    Sorry for the late reply. I think you are close to the solution. You should not change the Procedure too much.
    MRP and Abatement condition types should be kept independent of calculations in the procedure. It is only for changing the base price already got for BED(JMOP) making use of the routine. If that is the case you will get base price (BASB) added to Excise duties which are modified for calculation of VAT.
    For Eg:
    10 BASB
    30 ZMRP(Independent condition type used to store MRP value)
    40 ZABA(Independent condition typeused to store Abatement %)
    70 JMOP   From 10(Routine XXX which will change the base value for calculating JMOP with a formula MRP*Abatement %)
    270 ZVAT(As usual will calculate from BASB+Excise duties)
    Hope this is the way you have done this. Steps 30, and 40 should not come in any "From -to"steps.
    This is working well with one of our clients.
    Regards
    Binoy

  • Editing a calculated expression.

    Hi All,
    I have requirement of editing a calculated expression, is it possible to do so in MDM?
    If possible please let me know.
    Regards,
    Pramod

    Hi Pramos,
    My requirement is I want some fields to be dafulted with values when i am creating or importing a
    record & i should be able to change atleast one time if required.
    In my View, you can use the Assignments for this requirement. You will have to include the assigment in a workflow and then run the workflow for the import of records. SO as soon as the records are imported, the default value for the field for which you have written the assigment will be achieved.
    You can't use Calculated Expressions for this requirement, as you will not be able to change its value later on.But with Assignemnt, you will be able to make changes to the defualted value
    While Importing, you can then defualt some fields with some values.
    Just use this field property: For that field, You can make the field property as Writable Once as" YES"/"NO".in console.
    This property will allow you to make changes to that field if it is NO and will not allow you to make changes if its YES.
    So if you want to use it, put Writeable Once as "NO" for that field.
    Hope it helps.
    Thanks and Regards
    Nitin Jain
    Edited by: Nitin Jain on Aug 5, 2008 6:46 AM

  • Hierarchy on HANA Calculation View with Optional Input Parameters Fails

    Hi,
    Has anyone succeeded in building a hierarchy on top of a calculation view with optional input parameters, where an input parameter is not filled?
    The original requirement came from the wish to create a parent child hierarchy on a calculation view that was copied into the customer space from a HANA Live Financial Statement query view, but I have found the following when creating a simple level hierarchy on a calculation view that consumes one table. The Calculation View has one Input Parameter where the 'mandatory' box is unchecked.
    Calculation view reads ECC table FAGLFLEXT
    Simple level based hierarchy on fields PRCTR, RACCT and SEGMENT
    Input parameter is used as a filter for PRCTR with logic ("EMPTY" = '$$P_PROFITCTR$$' or "PRCTR" = '$$P_PROFITCTR$$')
    When I run the view I see the following behaviour in HANA Studio and Analysis for Excel
    Before building the hierarchy I could run the view with or without the Input Parameter
    After building the hierarchy I can run the view with the Input Parameter filled, but it fails when the Input Parameter is not filled.
    Error message is "error: search table error:  [2426] missing placeholder; missing value for mandatory parameter P_PROFITCTR"
    P_PROFITCTR is not a mandatory parameter, but the selection for the hierarchy view thinks it should be. I don't find any notes around this issue, so I don't think it's version related, however the version I have used for this test is 1.00.70.
    It's a shame we can't currently build the hierarchy as the parent child relationship is provided in HANA Live view NewGLFinancialStatementQuery.
    Thanks,
    Ken

    Hi Ken,
    We have been facing similar issue. We have even tried to set default value and as optional parameter. View still fails to create hierarchy (we are not using HANA live). As mentioned on page 97 of HANA modelling guide input parameter is mandatory from engine point of view. Hierarchy is generated as column view during the initial activation of calculation view and therefore expect a value by caller.
    This seems to be a product error. Some one from HANA development team should explain this issue in detail. I would expect someone like Thomas Jung reply to us.
    At the moment, we cant use input parameter for date prompt which gives us calendar popup feature for date selection. Hierarchies just don't work with input parameter. We are missing something.
    Regards
    Angad

  • Can no longer connect to Airport Express with upgrade to iTunes 10.1

    Since I upgraded to iTunes 10.1 I can no longer connect to my Airport Express (unknown error-15000). Another computer on my betwork running an older version of iTunes still works on the Airport Express.
    Any ideas? I have tried to uninstall and reinstall airport express with no success.

    Rather than disabling the firewall, try making sure you've got exceptions in it for BonJour. Although the following document is about a different error message, the instructions in there are worth trying. (At step 7, make sure there's an exception for BonJour as well.)
    [iTunes for Windows: Bonjour alert due to firewall, security, or proxy software|http://support.apple.com/kb/TS3448]

  • Credit memo with value date

    Hello Gurus,
        for field " Credit memo with value date" in billing document,  field VALDT (fixed value date) in the credit memo request is filled with the payment deadline baseline date of the base billing document. where is that payment deadline baseline date of the base billing document ?
    Many thanks,
    Frank Zhang

    Hi
       That pament date is the date of line item comes due for payment. Billing date+Pament terms= Due date.
    This field is helpful for the following scenario,
    You have sent an invoice on 01.08.08 and the pament due date is one month. Due on 01.09.08. This is calculated from the pament term. Now the customer rejected some ofthe material and sending you back as sales returns. Now you are creating a credit note on 04.08.08 and post it to accounting. If the due date of the original invoice is not taken for consdered then you are paying the customer who has not yet pay you for the original invoice.To avoid this, the pament due date is taken from the original invoice if you mark VALDT field.

  • Airport Express with printer & hard drive with Time Machine

    I have a MacBook that I'd like to backup its data. Concerned about the following (in level of concern from highest to lowest): theft, crash, fire.
    I currently have an Airport Express with a Brother printer attached to it that my PC and MacBook print to.
    I am really in a dilemma as to what to do. I was looking into Carbonite to get an offsite backup location of my data. (I figured offsite would cover all concerns of losing data due to theft, fire, or just a crash) However, Carbonite does not hold onto data you delete (ie, my photos and videos will fill up my hard drive eventually and I'd like to just archive them in one central spot when I am done accessing them on a regular basis-- ie delete them off my MacBook hard drive). That is like $55/year to do Carbonite... but, the only thing that will help me with over a hard drive in my house is a fire (and theft if a burglar were to find where my backup drive was in the house).-- Of course, I'd probably want a different location for my hard drive for that reason -- so, I'd have to buy another airport or just a time machine that has the wifi built in.
    I've read lots of issues with the Western Digital trying to download programs onto your computer... I have one for my PC that I backed up photos manually and it did try to install programs when I attached it to my PC... not so much my Mac when I took some photos off it. I looked into getting another portable hard drive at Costco for my Mac, but realized that it would require reformatting to use on my Mac (as it was built for a PC).... something I wasn't sure if I was computer-savvy enough to do or if I did do it, would I end up with issues later on?
    Anyhow... in the end, what do you all do to backup your data, especially photos and videos? Do you have smaller hard drives that you back up to and then when full move them to an offsite location? Can you have more than one "hard drive" backing up..... I was thinking it would be nice to have one larger hard drive that would potentially hold all my photos and videos so I can access anytime, but then have smaller drives of the same data that I can take to a safe deposit box and use as my super secure backup (no fire, no theft, no crash).
    btw, When doing time machine, does it keep all the metadata with each photo?
    Burning CD's is time consuming.... and, I have heard there are different qualities of disks out there... archival v. not... how long do the archival last v. the non-archival... or is that more of an issue for future generations not being able to access our photos?

    You need to remember that the Time Capsule is both a wireless router and a hard drive all in one enclosure. If you don't need a wireless router, around $150 of the $300 for a Time Capsule is going to be in the router portion of the device.
    The nice thing about the Time Capsule is that it is a network drive. All Macs running Leopard or Snow Leopard will be able to back up automatically to a single device. The first generation of Time Capsules about two years ago had some power supply problems that affected some users. Apple announced a program for these users to replace their Time Capsules.
    So, it depends on your requirements. If you are looking for a new, dual band wireless router and want to backup your Macs running Leopard or Snow Leopard automatically using ethernet or wireless, the Time Capsule is a logical choice.
    If you don't need a new router, then you'll need to look at a separate hard drive that will be attached directly to the computer using the USB or FireWire port. If you have two Macs, you'll have to get two hard drives if you want to do Time Machine backups correctly.
    Most hard drives can be reformatted to work with Mac if you don't mind a few extra steps and Disk Utility (Macintosh HD > Applications > Utilities > Disk Utility) does not look too complicated for you.
    Message was edited by: Bob Timmons

Maybe you are looking for

  • Skge_sign_fr could not be located in the dynamic link library orageneric11.

    Hi Guyz, I am using Oracle 11.1.0 on Windows 2003 R2 Server, there was no problem. I tried to install Oracle 10g Grid Control and after that tried to configure Oracle Gateway 11g on the same Oracle_home. But unfortunately both installations were fail

  • JDBC URL to connect to Standby Database

    Could somebody please post the details of configuring a JDBC String in an app server (JBOSS) to connect to Standby database.

  • Input ready query performance

    Hi Experts, We are working on input ready queries. But the input ready reports are taking lot of time around 10 to 15 mins to display the results and hence the planning functions like save are also taking lot of time. We can't use the OLAP cache as t

  • Client Security Fails af System Crash

    Hey Today when I started my T60 i had a crash in Windows Startup and had to restart manually. Ever since my Client Security have been acting wierd. First it told me than my Windows password had been changed, and i should type it to check. I typed my

  • Can't even load software  help needed!

    Just got a 5G 30Gb video iPod - only problem is that I can't even get the software to load onto my laptop - it appears to load, but when I look for it, it simply doesnt exist. Anyone any ideas please?