Use control flow statement to evalute signals

Hi,
I have a number of steps in my sequence file such that when TS runs it looked like this:
SignalA >20       pass
Signal B <= 30   pass
Now I wish to use some control flow statements like While and If loops so that I could create steps like this:
While ( SignalA > 20)
Problem is there are no "SignalA" in the TS expressions.  I tried putting together an expression like RunState.Sequence.?? (some unique id of the step)Result.step = "failed".  But the While loop can't seem to evaluate to True
Any suggestion would be appreciated.
Thanks!
ph2

Hey ph2,
I'm not sure what your goal is with this but there is probably a better way to accomplish what you want.
Where is SignalA coming from?  A VI?  A dll?  Do you only have to acquire it once or do you need to get it every iteration of the loop?  Is the step that acquires it inside the While statement or is it an asynchronous thread?  Why not just store it to a Local or FileGlobal and then access that.  It would be easier.
BTW- If SignalA > 20 step is a Numeric Limit then you can access it by using Step.Result.Numeric. 
Let me know exactly what your goal here is and I could possibly help you find a better solution.
Cheers,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~

Similar Messages

  • What happen if i use controll break statement in between select & endselect

    Hi all,
    what happen if i use controll break statement in between select & endselect ?
    Thanks in Advance
    KR

    Hi for reference u can go through this code example
    data:
      fs_tab like sflight.
      data:
       t_tab like standard table of fs_tab.
       select * from sflight into table t_tab.
       loop at t_tab into fs_tab.
         write: / fs_tab-carrid.
       endloop.
       refresh t_tab.
       clear fs_tab.
       select * from sflight into fs_tab.
         at new fs_tab-carrid.
           append fs_tab to t_tab.
         endat.
       endselect.

  • How can I use control break statement in my requirement

    Hi ABAPers,
    In my requirement, I have 4 fields in sorted internal table, (audat, prdha, ipnum, netwr). In that i need to do summation of netwr field falling under same prdha(BU) for the same month
    internal table fields :
    audat  prdha  ipnum  netwr
    02      abc     1      100
    02      abc     2      200
    02      xyz     3      300
    03      abc     4      100
    03      xyz     5      300
    03      xyz     6      200
    i need output like this:
    audat  prdha  ipnum  netwr
    02      abc     1,2      300
    02      xyz     3         300
    03      abc     4         100
    03      xyz     5,6      500
    Can anyone suggest me logic for this by using control break statements
    Thanks in advance,
    Ankita
    Moderator Message: Duplciate Post.
    Edited by: kishan P on Apr 14, 2011 3:03 PM

    Hi ABAPers,
    In my requirement, I have 4 fields in sorted internal table, (audat, prdha, ipnum, netwr). In that i need to do summation of netwr field falling under same prdha(BU) for the same month
    internal table fields :
    audat  prdha  ipnum  netwr
    02      abc     1      100
    02      abc     2      200
    02      xyz     3      300
    03      abc     4      100
    03      xyz     5      300
    03      xyz     6      200
    i need output like this:
    audat  prdha  ipnum  netwr
    02      abc     1,2      300
    02      xyz     3         300
    03      abc     4         100
    03      xyz     5,6      500
    Can anyone suggest me logic for this by using control break statements
    Thanks in advance,
    Ankita
    Moderator Message: Duplciate Post.
    Edited by: kishan P on Apr 14, 2011 3:03 PM

  • Better control flow?

    Actually this is a general question I've been wondering for a while...
    As the title states, I'm looking for a better control flow statement for what I planned.
    I have 4 variables that determine types of pipe in a program in my main class. There are 6 possible pipe types.
    For example Type 1 would have plastic grade = 5-7, color = 2, inner reinforcement = yes etc.
    My main method determines which type the client chose, (if it matched one of the types or not so if all 4 were true then it matches x type.)
    It's going to get really ugly if I use ifs and I don't think using a case statement would work.
    Any suggestions in what I can use?

    Unless you're just referring to getting user input and using it to look up a pipe >type?That would be what I'm doing, if I could figure out how to get the input variables from my applet class to the class that sorts out which pipe they picked.
    Except the variables had to be defined within a method so the try catch statments could be added to them to catch the nfe as most of them are converted from String to int.
    Let me suggest you to use nested switch case to solve the problemHmm, ok, I'll look into that. Would nested ifs suffice?
    Message was edited by:
    Yuriy_Ivanov

  • In alv report can i use control break events? if no .whay?

    Hi all,
    in alv report can i use control break events? if no .whay?

    hi,
    you can use control break statements in ALV report.
    for example: if one PO is having more than one line item, that time you need to display PO only once.

  • Bounded-Task-Flow Page Fragment Control Flow Help

    jDeveloper: 11.1.1.0.2
    I am having an issue trying to figure out the correct way to use control flow cases between a bounded-task-flow with page fragments and an unbounded-task-flow page. We have taken the approach in our application to have a few shell / container pages to host bounded-task-flows made up of page fragments to facilitate re-usability and to speed up development. There are 4 or 5 shell pages on the applications unbounded-task-flow. As of now, we have about 20 page fragments that are implemented as bounded-task-flows. These fragments don't do much now, meaning there is only a single fragment in each bounded-task-flow. The issue I am having is trying to invoke a control flow navigation action from one of the fragments to load a different shell page.
    For Example, shellPage1.jspx contains fragment-flow-1 as a region. In my adfc-config.xml I have shellPage1.jspx and shellPage2.jspx, with control flow cases "toShell1" and "toShell2" respectively connecting the two pages. I have a link's action bound to the "toShell2" within the fragment that makes up fragment-flow-1. When the application is run, shellPage1.jspx and its fragment are displayed. But clicking on the link in the fragment ("toShell2") does absolutely nothing. It does not navigate me to the shellPage2.jspx as expected. What am I doing wrong here or do not understand?
    If the fragment is included as a JSP include, and not a bounded task flow include, everything works as expected. This is not desirable as we then need to copy the fragment's pageDef into the shellPage's pageDef to get the DataControls to function.
    If the faces-config.xml is used instead, and a JSF navigation case is used, it will also work as expected. This is not desirable because we really don't want to be mixing adcf-config and faces-config.
    So I am really stumped here.... Thanks in advance!

    Hi there:
    In your case, the adfc-config.xml has the control flow case between shell pages. And the task-flow-N.xml or your-task-flow.xml for each page fragment by default doesn't inherit control flow case from their containing shell page. In your case, in the page fragment task-flow.xml, you should add a "Parent Action" to flow to shell page2 for example. The outcome of "Parent Action" would be "toShell2" if calling from ShellPage1 page fragment.
    Is this 'Correct' or 'Helpful' for you? Please mark it as so if it does.
    Good luck,
    Alex

  • Control break statements in smart forms

    Hi,
    Can we use control break statements(at new,at end of) in smart forms?
    if no why?
    if yes, how?
    Regards,
    Sonika

    you can use control block statements in smartforms by using the SORT events.
    In TABLES go to to the SORT section.Here you can give the field by which you want the table to be sorted.There are two radio buttons available for sort : SORT BEGIN and SORT end.
    On selecting any one sort event are generated automatically and event nodes are created in smartforms.Inside these event nodes you can add text nodes or code nodes and write your code.
    SORT BEGIN works like AT NEW
    SORT END works like AT END OF.

  • Control Break Statements in HR-ABAP

    Hi Guru's
    I'm new to hr-abap i would like some guidance, can we use control break statements in abap-hr.
    Thanks & Regards
    Raj.

    Hi Raj,
    You mean AT .. ENDAT statements inside loops right?
    Yes, they are definitely used in HR-ABAP.
    REPORT ZTRIAL.
    INFOTYPES: 0022.
    GET PERNR.
    LOOP AT P0022.
    AT FIRST.
    WRITE: 'First record'.
    ENDAT.
    AT NEW SLART.
    WRITE: 'School type changed'.
    ENDAT.
    ENDLOOP.
    Regards,
    Dilek

  • Bdc on vk11 using control break events

    hi
    have any one done bdc for vk11 using control break events.my flat file is
    ZTAX     X     IN     1000     1200     2000     A0
    ZTAX     X     IN     1000     1210     3000     A1
    ZTAX     X     US     7676     01     4000     L3
    ZTAX     X     US     7676     02     5000     s1
    i need the logic for this any sample code will be useful

    hi, check the sample code using Control break statements.
      LOOP AT IT_MAIN.
    WRITE : IT_MAIN.
    C_TABIX = SY-TABIX.
    <b>AT NEW LIFNR_001.</b>
    READ TABLE IT_MAIN INDEX C_TABIX.
    REFRESH IT_BDC.
    perform bdc_dynpro      using 'SAPMM06E' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RM06E-BSTNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'EKKO-LIFNR'
                                  IT_MAIN-LIFNR_001.
    perform bdc_field       using 'RM06E-BSART'
                                  IT_MAIN-BSART_002.
    perform bdc_field       using 'RM06E-BEDAT'
                                  IT_MAIN-BEDAT_003.
    perform bdc_field       using 'EKKO-EKORG'
                                  IT_MAIN-EKORG_004.
    perform bdc_field       using 'EKKO-EKGRP'
                                  IT_MAIN-EKGRP_005.
    perform bdc_field       using 'RM06E-LPEIN'
                                  IT_MAIN-LPEIN_006.
    perform bdc_field       using 'RM06E-WERKS'
                                  IT_MAIN-WERKS_007.
    MOVE 1 TO CNT.
    <b>ENDAT.</b>
    perform bdc_dynpro      using 'SAPMM06E' '0120'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'EKPO-TXZ01(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    CONCATENATE 'EKPO-EMATN(' CNT ')' INTO FLD.
    perform bdc_field       using FLD IT_MAIN-EMATN_01_008.
    CONCATENATE 'EKPO-TXZ01(' CNT ')' INTO FLD.
    perform bdc_field       using FLD IT_MAIN-TXZ01_01_009.
    CONCATENATE 'EKPO-MENGE(' CNT ')' INTO FLD.
    perform bdc_field       using FLD IT_MAIN-MENGE_01_010.
    perform bdc_dynpro      using 'SAPMM06E' '0120'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RM06E-EBELP'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    CNT = CNT + 1.
           IF CNT = 6.
            CNT = 1.
            PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                                  '=P+'.
           ENDIF.
    <b>AT END OF LIFNR_001.</b>
    READ TABLE IT_MAIN INDEX C_TABIX.
    RECORD = IT_MAIN.
    perform bdc_dynpro      using 'SAPLSPO1' '0100'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=YES'.
    CALL TRANSACTION 'ME21' USING IT_BDC MODE 'A' MESSAGES INTO IT_MESSAGES.
      clear: cnt, C_tabix .
    <b>ENDAT.</b>
    ENDLOOP.

  • Control flow case to return from any page to start page!

    I need to use a Image Link at Master Page for go to "Start page". but when i use control flow case don't work.
    How can i assign a control flow case in a master page?
    My djeveloper version is 11.1.2.3

    You have to define what you mean by master page and start page. Are both pages are on the same talk flow?
    What do you mean by 'the navigation doesn't work'? Do you get an error?
    Normally you implement a wild card navigation which points to the start page. This navigation you use as target for the image link.
    Please post the code of your image link.
    Timo

  • Configuring cash flow statement

    Dear ALL:
                         We never used cash flow statement functionailty offered by SAP in our organization. Now management requires us to configure cash flow statement. Cash flow statements are avaiable in our SAP but perhaps they are not mapped thats why they do not produce any result. Can anyone refer me to exact OSS note for configuring Cash flow statements or if experts could guide me a stepwise approach to mapp cash flow statement in system. I will be very thankful tofor support.
    Regards

    With due respect is there no one at SDN forum to answer my query.
    Regards

  • Control flow

    I still have a problem dealing with control flow statements, e.g. if(current != null)
    What does that mean?

    I still have a problem dealing with control flow
    statements, e.g. if(current != null)
    What does that mean?This tutorial might help you:
    http://java.sun.com/docs/books/tutorial/java/nutsandbolts/flow.html
    Sorry, Sun still didn't get the url tags fixed.

  • Use exception to control flow?

    I use validateExcelFile(File excelFile) to validate whether a file has valid excel format,
    when file is in invalid format, I have two options:
    1) return the error message in validate method:
    public String validateExcelFile(File excelFile) {
    String errorMsg = "";
    if(errorMsg.length == 0) {
    return null;
    } else {
    return errorMsg;
    Or
    2)Throw out a exception containing errorMsg
    public void validateExcelFile(File excelFile)
    throws InvalidExcelFormatException {
    String errorMsg = "";
    if(errorMsg.length != 0) {
    throw new InvalidExcelFormatException(errorMsg);
    The context in which the validate method is invoked needs to delete any invalid excel file according to the validate result, option 2 has the good that if there is another validate method and it also throws out the same exception when a file is invalid then I can place the two method in one
    try{
    validateMethod1( excelFile );
    validateMethod2( excelFile );
    } catch (InvalidFormatException ex) {  // deletes invalid file } statement, it is more clear than to check every method's returned error message, but I doubt whether it is good practice to control flow with exception instead of
    flow statements like if.
    Thanks.
    StuartS
    Edited by: StuartS on Oct 24, 2007 8:35 PM

    TimSparq wrote:
    You are correct, it is best practice not to controll flow with exceptions.
    Perhaps your validate message could just return a boolean and you can do something like:
    if (!validateExcelFile(file)) {
    // delete file
    Yeah, I was thinking of it more from a security validation standpoint, but if you simply want to accomplish an action as the result of a bad format, then you're definitely better off having a boolean function.

  • Cash flow Statement via Direct method using BW

    Hi Gurus,
    I have an requirement to prepare Cash flow statement via direct method using BW. Can anyone advice or point me to the steps need to be done in order to achieve this
    Thank you
    BR

    Hi,
    It depends on your format of cash flow. You have to obtain a cash flow format and work accordingly to include the relevant GL accounts. I have given a sample format.
    Operating Profit before Depreciation
    Add (Less): Decrease / (Increase) in Working Capital
    (Increase) / Decrease in Debtors
    (Increase) / Decrease in Inventory
    (Increase) / Decrease in Loans & Advances
    Increase / (Decrease) in Creditors & Provisions
    Less: (Capital Expenditure)
    Net Cash generated from operations
    Add: Opening Balance of Cash & Cash Equivalents
    Less: Closing Balance of Cash & Cash Equivalents
    Net  Cash Outflow
    Thanks
    Aravind

  • R12 EBS: Cash Flow Statement using FSG

    Hi,
    I am looking for white papers/guidance for building Cash Flow Statement using FSG. I want to develop the Cash Flow statement using Indirect method.
    http://www.accountingtools.com/cash-flows-indirect-method
    Any help is highly appreciated.
    Thanks,

    The trick is you should be able to trace cash items.
    For the Depreciation and Amortization you can use the depreciation expense a/c and amortization a/c.
    Provision for losses --  Provision for doubtful debt a/c
    Increase/decrease in AP,AR and Inventories-  You can use PTD balance
    Creating Financial Statement Generator Reports (Doc ID 176371.1)
    How to Make FSGs Function/Work (Doc ID 160445.1)

Maybe you are looking for

  • 2 accts(2 libraries), 1 mac via airport-please help

    Hi, I just picked up the 5th gen airport extreme; managed to set it up and link an external HDD on my admin account and worked fine but I ran into some issues when I switched over to my girlfriend side.  The hdd does not mount like a regular hard dis

  • I have created a newsletter in indesign cs4 how can I set zooms for each article for the user

    I have created a e-newsletter in Indesign. I have successfuly saved it as a SWF then as a PDF from acrobat. The problem is that when the user zooms in the resolution is not good. How can I let the user zoom in to read each article. Would I create but

  • Help Needed with using Japanese and Chinese characters in SQL Server

    Hi, In my application I have to deal with storing chinese, japanese and English characters in the database which will come from a JSP ... Please help me in knowing how to do this... Thanks Rhea

  • Importing word - not responding

    I've been trying to import a Word 2003 document into version x5 but I keep getting a message that says "Microsoft Word seems not to be responding. Would you like to continue waiting for a response?" I've tried starting a new project and importing the

  • IBook G4 with lid closed

    I have an iBook G4 with external keyboard and mouse. The help screen says if I put the iBook to sleep and close the lid, I can hit any key and my external Monitor will wake-up. Unfortunately it wakes up for just a second and goes right beack to sleep