How to set pre conditions to set the run mode to skip or normal?

Could you please let me know how can I set a precondition based on a local variable so when the variable is 1 I can skip a test or when it is zero I programatically set the run mode to normal.
Thanks

I have a case where I use the Pre-Condition to skip some steps (subsequence call) for a specific test) if that test has run successfully already.
  This is handled in a 'SequenceFilePostStep", thus the "RunState.Caller....".
The Precondition is set to 'False' so it won't run.
'Set the Precondition on the next step to "False 'Remove" (The remove is to indicate that it will be removed later so it's not saved in the sequence file.)
Locals.sPreviousPrecondition1 =RunState.Caller.Sequence.Main[RunState.Caller.RunState.NextStepIndex].Precondition,
RunState.Caller.Sequence.Main[RunState.Caller.RunState.NextStepIndex].Precondition ="False 'Remove"& Locals.sPreviousPrecondition1
The "False 'Remove" needs to be removed later, or it will be saved in the file and remain.  This is accomplished later with:
'Need to copy the contents to a Local variable, manipulate it to remove the "False 'Remove" string then re-assign back into the Precondtion
Locals.sPreviousPrecondition1 = RunState.Caller.Sequence.Main[RunState.Caller.RunState.PreviousStepIndex].Precondition,
Locals.sPreviousPrecondition1 = SearchAndReplace(Locals.sPreviousPrecondition1,"False 'Remove","",0),
RunState.Caller.Sequence.Main[RunState.Caller.RunState.PreviousStepIndex].Precondition =Locals.sPreviousPrecondition1
Mike

Similar Messages

  • I'm new to Photoshop Elements and just getting started.  While in the organizer I have one group of photos up to learn with and now it says Edit in Progress with a padlock icon.  How can I remove this so that the photos will be restored to normal?

    I'm new to Photoshop Elements and just getting started.  While in the organizer I have one group of photos up to learn with and now it says Edit in Progress with a padlock icon.  How can I remove this so that the photos will be restored to normal?

    Go back to the editor and close the photo there.

  • How to put ipod 3rd generation on the disk mode manually?

    how to put ipod 3rd generation on the disk mode manually?

    I am having this problem as well. I've tried dozens of times at this point. I can produce the apple icon but when I release and press play+select it just reverts back to the red x. The red x is the whole reason I'm trying to get this into disk mode. I need to reset it but I can't until it is in disk mode. I've tried the flat surface, one finger etc etc but disk mode still eludes me. Any other thoughts?

  • HT1212 How do I perform step 5 in the Recovery Mode when an iPad minnie has been disabled for having more than the allowable entry attemps?

    How do I perform step 5 in the Recovery Mode when an iPad minnie has been disabled for having more than the allowable entry attemps ?

    FORCE IPAD INTO RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.
    3. Repeat the process if necessary.

  • How to Activate a Condition Type in the Tax OCde for A/P  -- Very Urgent

    Hi  Peers
    I'm creating a new Tax Code in T.Code FTXP, while creating, One Condition Type is Deactivated, say JM01, How to activate that condition Type. I know how to activate the Condition Type in A/R side but I want to know it in A/P side.  Plz help. Its very urgent. 
    Regards
    Rajaram

    Hi Rajaram,
    U pls Check ur configuration. First u check the calculation procedure (F.A- Tax on sales & purchase-Basic setting-Check calculation procedure _ Define procedure) In the procedure field u  check JM01 is activated or deactivated otherwise u created in condition Type.
    I think its usefull otherwise u let me know
    Thanks
    R.Manigandan

  • How to maintain price condition record for the following senario

    Hi Gurus,
    I have a scenario where storage charges can apply either per cbm or per sq.mt or  per day.
    for a single customer.
    Another situation --- Handling in Palletized charges per cbm or per pallet for a single customer
    can somebody help me on this.
    Thanks,
    RR

    Hi,
    Scenario 1:
    Go to VK11 tcode and Enter your KAD1 COndition Type.
    Now maintain the Condition Record for your Customer.
    Scenario 2:
    Go to VK11 tcode and Enter your KP00 COndition Type.
    Now maintain the Condition Record for your Customer.
    Note for Scnario 2: Please make sure for KP00, the field Plus/minus in Condition Type setting should be "A"  i.e the Surcharge. It is because the same condition Type can be used for Discount as well as for Surcharge.
    The condition Type setting for KP00 can be done by going to V/06 tcode
    Regards

  • How to specify a different directory for the Run-Time Engine?

    With LV 7.1 it's become even more difficult to create installation sets in third-party tools without having to include the full run-time engine separately.
    If you use any of the advanced analysis VIs you have to install the run-time engine (no use in including files in the same directory as the built application) and if you do and you use the old serial VIs you get a problem because the application will load the run-time from the main run-time installation and then look for serpdrv in that directory, not in the application folder...
    So - being forced to use the installer builder in the application builder and include the run-time engine in the installation kit I wonder whether it is possible to specify where the run-time should be installed?
    By default it will go in a directory called National Instruments in the program files folder, however that is not ideal due to the fact that the users have no relation to the fact that our application needs something from NI...and may end up deleting the directory ("National Instruments? - what do I need that for...let me delete it...). We would like to be able to specify that the run-time is installed silently in a directory named with our company name instead.
    MTO

    When you create the stand alone, in options you can actually set the temp directory and default directory. You can change it there OR in goto options and check for libraries/directories. You can change it there too.
    Kudos always welcome for helpful posts

  • How can i get my iphone, from the disable mode

    how can i get my iphone 3gs, out of the disable mode?

    If your phone is disabled because you forgot your passcode, restore the phone on the last computer it was synced with. If you do not have access to the last computer it was synced with, you will have to force it into recovery mode & restore as a new device.  See http://support.apple.com/kb/HT1212.

  • Is there a limit to how many songs you can have on the offline mode?

    I am trying to get all my albums to sync with my phone and be available offline but It keeps on saying that I have selected too many tracks for the offline mode. Is there a limit to how many songs you can have?Thanks :)

    Spotify applies a limit of 3,333 tracks but everything is dependent on your phones on-board memory
    as Spotify actually copies the tracks to it so you don't need internet connection.
    My Galaxy S2 has 11 odd GB and I filled it with 1800 tracks (albeit some were 20 - 30 mins).
    Also check if you use on-board memory for photos etc. 'cos Spotify will use a lot of it.
    I have asked them to look at this and maybe give warnings about Spotify's memory usage rather
    than the number of tracks.
     

  • How to set up condition to find the Plant that produces max. pounds

    Hi Experts,
    I have the following requirement and tried creating a condition with characteristic assignment on Plant. But I am not getting the desired result.
    Plant with max. pounds is what I need.
    Any help is much appreciated.
    Thank you!
    Please read The SCN Rules of Engagement
    Message was edited by: Pravender Kumar

    Hi Suman,
    I brought Plant into rows and created condition with characteristic assignment on Material only. This time the condition brought back only one material 000000000000009892 for Plant 6326 in the above example. I also got a warning message saying 'Applied condition does not return a unique result'
    I am beginning to wonder whether it is even possible to achieve this at query level.
    Thanks!

  • How to maintain 2 condition record for the same message type

    Hi,
    My requirement is that I have got a PO output type NEU.Now when i release the PO 2 mesages  should get outputed.
    1) A print should go to the Printer ie:Option1 Print output
    2) A PDF should go to the vendor ie:Option 5 External send
    I have completed the config part but I am having a problem while maintaing the condition record for simultaneous output of message 1 & 5.
    In MN04 i tried to maintain 1 & 5 but it doesn't allow me to do so?Why
    How do I output  2 messages while releasing the PO
    KN

    Please check this answered link:
    Re: Two PO Outputs.
    Re: Emailing PO to Vendor, copy to buyer as well
    Edited by: Afshad Irani on Jun 16, 2010 12:05 PM

  • How to create pre-defined folder in the document sharing iView in a room?

    Hi everyone,
    As title, I would like to know how to create some pre-defined folder(s) in the document sharing iView in a collaboration room?
    Hope you someone can help me~~
    Thanks and best regards,
    Marcus

    Try it like this:
    Help with collaboration rooms templates
    and here are soem of those docs:
    http://media.sdn.sap.com/public/KMKeywords/Collaboration-Room.html
    Regards,
    Darin

  • How to deterine the running mode?

    Within the enhancement SAPMF02D (has a function exit), I need to know which mode the current program is running in, such as in Display mode (Display Customer) or in Change mode (Change Customer).
    What's the best way to do it?
    Thank you very much!!!

    Hi Yun,
    This code will help you in identifying if customer is currently opened in edit or change mode. Hope you can use this logic in building your code.
    REPORT  ZSA_3                   .
    tables: SEQG3, kna1.
    data i_enq like SEQG3 occurs 0 with header line.
    CALL FUNCTION 'ENQUEUE_READ'
    EXPORTING
       GCLIENT                     = SY-MANDT
       GNAME                       = 'KNA1'
      GARG                        = ' '
       GUNAME                      = SY-UNAME
      LOCAL                       = ' '
    IMPORTING
      NUMBER                      =
      SUBRC                       =
      TABLES
        ENQ                         = i_enq
    EXCEPTIONS
       COMMUNICATION_FAILURE       = 1
       SYSTEM_FAILURE              = 2
       OTHERS                      = 3
    if not i_enq-GARG is initial.
    write: 'Customer',i_enq-GARG+3(10),  'is currently opened in edit mode'.
    else.
      Write 'No customer is currently opened in display mode'.
    endif.
    plz award some points if find it useful.
    Thanks & Regards,
    Sandeep Arora

  • Pre condition functions export

    I have another question.
    I have tried to export pre conditions but have not succeed yet in exporting the Pre Condition functions.
    The  jcs_describe.describe doesn't work with the following types 'PRE_CONDITION', 'PRECONDITION', 'FUNCTION', etc.
    Since it is possible to export the object on the RWE, with right-click / export, we guess that it is somehow possible with PL SQL functions.
    Can someone give me some clues about that ?
    Thanks again for your help,
    Regards,
    Yi Jiang

    Hi,
    Preconditions are not described like chains, scripts etc. They are regular functions in the database, which can be described using standard database functions.
    As an example (in the Redwood Shell):
    set serveroutput on
    spool [youroutputfile].sql
    declare
      c clob;
    begin
      c:= dbms_metadata.get_ddl ( 'FUNCTION', '[functionname]', '[functionowner]' );
      dbms_output.put_line ( c );
    end;
    spool off
    set serveroutput off
    This will give you the definition of your precondition function in a file (of course you need to replace the texts between \[\] with proper values applying to your environment.
    You can put this in a single script, let's call it desc_function.sql and pass the owner and functionname as parameters. From the Redwood Shell, the call would look like this:
    @desc_function [owner] [functionname]
    The file desc_function.sql would contain the following text:
    set serveroutput on
    spool &1._&2..sql
    declare
      c clob;
    begin
      c:= dbms_metadata.get_ddl ( 'FUNCTION', '&2', '&1' );
      dbms_output.put_line ( c );
    end;
    spool off
    set serveroutput off
    Hope this helps you out.
    Kind regards,
    Anton Goselink

  • Why do text variables using Running Header character style translate forced returns as a word space in the running head on the first page but close up the space on subsequent pages?

    In an InDesign document that requires 3 different Chapter head paragraph styles (to cope with differrent length headings) I've set up the running heads on the master page with a text variable using the Running header (character style) option. The character style I've assigned to this is an empty character style that is applied to all 3 chapter head paragraph styles.
    Some chapter heads require a forced line break, so that the line breaks are aethesically pleasing. On the first page the text variable translates this forced line break as a word space in the running head, but on subsequent pages it ignores the forced line break. This means that if you have a word space before the forced line break, on the first page you get a double word space and on subsequent pages the running head sets correctly with a single word space. But if you remove the word space before the forced line break in the chapter head text, the first running head sets correctly with forced line break interpreted as a single word space, but on subsequest pages the space is closed up.
    This only seems to be a problem when the character style option is used for header text variables. If a paragraph style is used the forrced line break is interpreted as a a single word space in all instances, both on the foirst page and subsequent pages.
    This would appear to be a bug in how text variables are applied when using the Running header (character style) option. I can't see any other reason why the text variable would beheave differently on the first page and on subsequent pages. There is only one master page, so it isn't a case of their being an error between a main master page and a chapter opener master page.
    Does anyone have any solutionss, or know if this problem has been fixed in subsequent releases of InDesign (I'm using CS6 ID version 8.0)
    Thanks

    Ask in the ID forum...
    Mylenium

Maybe you are looking for

  • Use of KEY-OTHERS trigger

    Hi, I have a form that has numerous triggers defined at the form level. The form has a block that appears in a dialog window. The block should only have a small subset of triggers that are defined at the form level. I went ahead and created the key t

  • Complex flow in PI

    hello, i want send a very important question to very expert in PI BPM. I created a interface using Async-Sync bridge. On details: i have a JDBC (Async) -> PI -> JDBC (Sync) -> PI -> RFC (Async) Everything ok but... I would like use RFC in Sync mode i

  • Adobe_plugin.exe

    There is a lot written about "adobe_plugin.exe" as not being an Adobe program, but rather a thread.  It appears that it affects many users of Windows operating systems, but not everyone of them.  Why not ?  My questions are: What program constantly a

  • How to get app I bought on iPad also on iPhone

    how to get app I bought on iPad also on iPhone

  • Monitors supported by 3rd gen iPad

    I want to use an hdmi cable to connect iPad 3 to my monitor, but on the Samsung I get a "not supported" message when i plug in, can anyone tell me what monitors are supported by the new iPad please? Cheers