ECATT: Command to execute a set of statements in an infinite loop

Hi all,
Is there any command in eCATT that executes a set of statements for an infinite number of times.
I checked and could find commands like DO....ENDDO where the max count for DO is 9999.
Let me know if there is any possibilty of executing this in eCATT
Regards,
Sushitha
Edited by: Sushitha BV on Sep 24, 2010 12:04 PM

Hi,
Yes. it is possible to execute commands in Loop in ecatt.
In the command editor, write your block of code within ABAP..ENDABAP
ABAP.
Do 10 Times.
TCD(some recording)
ENDDO.
ENDABAP.
Thanks
Seema

Similar Messages

  • ActionEvent/Setting gui text in an infinite loop

    Hi,
    I have set up a gui that contains ~ 100 JTextFields and one JTextButton
    Pressing the JTextButton on the gui triggers an action event that
    1.     establishes a socket connection w/ a server
    2.     reads input from the server in an infinite loop
    3.     should use the server data to dynamically setText in the various JTextFields found on the gui.
    for example, during one iteration of the infinite loop, the data may set the text of JTextField #1 to ?foo? and in a later iteration of the loop, the new data from the input stream may set the text of the same field to something else (e.g. ?bar?). Thus, the gui should show a dynamically changing collection of TextFields after the user presses the JTextButton.
    Problem: because of the infinite loop, NONE of the fields is ever updated (see pseudocode below). If I remove the infinite loop and simply have 1 iteration of the block of code within the actionPerformed method, the gui updates properly.
    How might I alter the code to a) maintain the server connection, b) continuously read from the input stream and c) have a dynamic update of the textfields w/in the gui?
    I've tried adding "this.paint(this.getGraphics());" within the infinite loop and it sort of works, but the updates to the gui are FAR SLOWER than the data that are streaming in from the server.
    Thanks for any help!
    The code looks something like this
    Public class abc extends JFrame
    Public abc()
         {initialize components}
    instantiate all textfields & button
    create various arrays
    public void initialize components
         (set up gui using gridbaglayout
         add actionListener to button)
    private actionperformed
    (establish socket connection w/ server
         read data from server in an infinite loop
         parse data and use information to setText on the gui)
    public static void main(blah blah)
         show abc();

    have the reading loop in a different class which will have its own Thread running aside from the main program's thread. This way your application will do both at once :)

  • MDM Database command execution error. A SQL statement failed to execute

    Hi,
    When we tried to execute an MDM Java query modify/create, we get the following dump.
    Is this anything to do with the parameters that we pass or is it something to do with the database ?
    We have checked the code and we do not find anything wrong with the code at all.
    We are using Java API 5.5.63.73 and calling MDM API's using WebDynpro for Java.
    I have noticed this issue has been raised here as well :
    Database command execution error. (While mounting a repository)
    com.sap.mdm.commands.CommandException:
    com.sap.mdm.internal.protocol.manual.ServerException: Database command execution error. A SQL
    statement failed to execute. The actual error may have been written to a log file. at
    com.sap.mdm.data.commands.ModifyRecordCommand.execute(ModifyRecordCommand.java:163) at
    Regards,
    Subramanian V.
    Edited by: Subramanian Venkateswaran on Dec 10, 2008 8:11 PM

    Hi Subramanian  ,
    The error looks more like a problem with the data base or MDM system rather than the java code.
    Which is the underlying database you are using with MDM? As some users have faced some difficulties when working with the DB2 Data base,If this is the data base you too are working upon then may be the issue could be similar,if possible try using the Oracle or SQL data base as these databse show more compatibility than a DB2 when working with MDM .
    Also check the MDM users autorization and authentication to modifyor create recordrs in MDM.try given the user the ADMIN rights,and tehn try and see if teh user is able to modify/Create the mdm records.
    Lastly you can check the database instance and listener configuration correctly.try restarting the Database service form the system if possible.
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • Command the execute sql query and does not clean up data in Table

    Hi Team
    I have an SP, which writes source and target data to Temp Tables and runs except query to get mismatch details
    I am using Exec command to execute source query that writes data to Temp Table, once I execute query using Exec, data is written and immediately #temp table is cleaned, now I cannot use #temp table for comparition.
    Is there any way to execute sql query in SP without using EXEC and will hold the data in temp table.

    You need to create temp table before EXEC statement and rewrite your dynamic query also as below
    declare @source_Sql nvarchar(1000)
    ,@target_Sql nvarchar(1000)
    create table #TempTable1 (name nvarchar(10))
    create table #TempTable2 (name nvarchar(10))
    set @source_Sql = 'INSERT INTO #TempTable1 SELECT [Name] from Employee'
    set @target_Sql = 'INSERT INTO #TempTable2 SELECT [Name] from Employee2'
    EXEC (@source_Sql)   
    EXEC (@target_Sql)             
    select * from #TempTable1 
     Except 
    select * from #TempTable2

  • Understanding Message EndMessage ecatt command.

    Hello Gurus,
    Could someone please explain how we can use Message EndMessage command. I have gone through the ecatt command reference on help.sap but I am unable to follow it.
    I am using a TCD command which runs a program and within that program it calls and executes different methods and function modules. If the program executes sucessfully then it updates some tables and if does not run sucessfully then it shows corresponding message. So all that I want to do is check for those messages based on return type and display the same message in ecatt log when program does not run sucessfully and the next steps should not be run.
    Your help in this regard is highly appreciated.
    Regards,
    GS.

    Hello Ajay,
    I have tried using this command however I am not getting the desired output. I dont know whether I am doing it correctly or not. So I will explain it to you and please let me know if I am doing it the right way:
    MESSAGE ( MSG_1 ).
    TCD ( SE38 , SE38_3 ).
    ENDMESSAGE ( E_MSG_1 )
    Within the program I have different methods and function modules. for all of them return_type, return_id and return_no are the same only msgv1 to msgv4 are different. I am hoping return_type, return_id and return_no are same as msg_type, msg_id and msg_no. So in Message command Interface i am passing return_type, return_id and return_no into msg_type, msg_id and msg_no and setting mode as E.
    When i run the script i get error "specify a program name". So i am not sure I am doing the right way.
    Also i would like to know how to get the message that is there in msgv1 to msgv4 in log. That is I am looking to print the message in log for the message I get during pgm execution.
    Thanks for your attention.
    Regards,
    GS
    Hi GS,
                   According to me the problem doesn't lie in MSG and END MSG block rather the problem should be in your recording ( SE38 --> ABAP Editor) itself. The program name to the initial screen to be passed(along with other parameters) while playback or during execution of eCATT so i think that the program name isn't passed or this field is either not parameterized or not handled in a right way. Please check whether you have parameterized the right field or check your Dynpros(or check TCD interface again)
    If you still get problem after you have checked the interface then please let us know.
    Thanks and Kind Regards
    Mohan Kumar K

  • AAA authorization fails, but still command is executed...

    Hi everyone,
    i've implemented authorization and it basically works. The user can only use a limited set of commands (show int status, conf t, interface ethernet, interface gigabitethernet, interface fastethernet, shut, no shut).
    Now I try to configure a loopback or Vlan interface, which should not be allowed.
    COMMANDS IMPLEMENTED:
    aaa authorization config-commands
    aaa authorization commands 0 vty group tacacs+ none
    aaa authorization commands 1 vty group tacacs+ none
    aaa authorization commands 15 vty group tacacs+ none
    line vty 0 15
    authorization commands 0 vty
    authorization commands 1 vty
    authorization commands 15 vty
    COMMAND AND OUTPUT FROM TESTING:
    SWITCH(config)#int vlan 2
    Command authorization failed.
    DEBUG AAA AUTHORIZATION:
    SWITCH#
    Dec  7 14:31:50: AAA: parse name=tty1 idb type=-1 tty=-1
    Dec  7 14:31:50: AAA: name=tty1 flags=0x11 type=5 shelf=0 slot=0 adapter=0 port=1 channel=0
    Dec  7 14:31:50: AAA/MEMORY: create_user (0x46603F4) user='USER1' ruser='SWITCH' ds0=0 port=
    'tty1' rem_addr='10.10.255.249' authen_type=ASCII service=NONE priv=15 initial_task_id='0', vrf= (id=0)
    Dec  7 14:31:50: tty1 AAA/AUTHOR/CMD (60725991): Port='tty1' list='SCAS' service=CMD
    Dec  7 14:31:50: AAA/AUTHOR/CMD: tty1 (60725991) user='USER1'
    Dec  7 14:31:50: tty1 AAA/AUTHOR/CMD (60725991): send AV service=shell
    Dec  7 14:31:50: tty1 AAA/AUTHOR/CMD (60725991): send AV cmd=interface
    Dec  7 14:31:50: tty1 AAA/AUTHOR/CMD (60725991): send AV cmd-arg=Vlan
    Dec  7 14:31:50: tty1 AAA/AUTHOR/CMD (60725991): send AV cmd-arg=2
    Dec  7 14:31:50: tty1 AAA/AUTHOR/CMD (60725991): send AV cmd-arg=<cr>
    Dec  7 14:31:50: tty1 AAA/AUTHOR/CMD (60725991): found list "SCAS"
    Dec  7 14:31:50: tty1 AAA/AUTHOR/CMD (60725991): Method=tacacs+ (tacacs+)
    Dec  7 14:31:50: AAA/AUTHOR/TAC+: (60725991): user=USER1
    Dec  7 14:31:50: AAA/AUTHOR/TAC+: (60725991): send AV service=shell
    Dec  7 14:31:50: AAA/AUTHOR/TAC+: (60725991): send AV cmd=interface
    Dec  7 14:31:50: AAA/AUTHOR/TAC+: (60725991): send AV cmd-arg=Vlan
    Dec  7 14:31:50: AAA/AUTHOR/TAC+: (60725991): send AV cmd-arg=2
    Dec  7 14:31:50: AAA/AUTHOR/TAC+: (60725991): send AV cmd-arg=<cr>
    Dec  7 14:31:50: AAA/AUTHOR (60725991): Post authorization status = FAIL
    Dec  7 14:31:50: AAA/MEMORY: free_user (0x46603F4) user='USER1' ruser='SWITCH' port='tty1' r
    em_addr='10.10.255.249' authen_type=ASCII service=NONE priv=15
    As you can see the reply from the Tacacs is a "FAIL", but still the command is executed.
    RESULT:
    SWITCH#sh run int vlan 2
    Building configuration...
    Current configuration : 38 bytes
    interface Vlan2
    no ip address
    end
    QUESTION:
    I don't understand what the problem is...Since I get a FAIL from the Tacacs Server I assume that the configuration on that side is fine.
    But why would the switch ignore a FAIL and still execute the command? Same problem exists with the Loopback-Interface.
    Is this me not understandig the basic concept of AAA or is this some other problem?
    The Switch is a Cisco WS-C3750-24TS (running c3750-ipbasek9-mz.122-50.SE2.bin).
    The Tacacs runs Cisco Secure ACS4.2.0.124
    Thanks,
    Tom

    Hi Tom,
    this is CSCtd49491 : TACACS+ command authorization for interface configuration fails .
    The bug is currently in a Closed state, meaning that the "Bug report is valid, but a conscious decision has been made not to fix it at all or in all releases."
    As far as I can tell, the impact is rather limited since the interface that gets created will have no effect unless the vlan exists, and even then the effect is minimal since it cannot be configured.
    You may want to open a TAC case or work with your account team to get the bug re-opened if this is still a concern though.
    hth
    Herbert

  • Executing a runtime.exec statement from an ejb

    Hi all,
    relativly new to j2ee. I need to use the runtime.exec command to uncompress a set of files from an ejb.
    So far, ive tried that and even the most basic commands like
    /usr/bin/ll *
    and i don't get any response back other than: exit value = 2
    when executing:
    Runtime runtime = Runtime.getRuntime();
    // Process proc = runtime.exec("/usr/bin/uncompress "+this.localFileStore+"*.Z");
    Process proc = runtime.exec("/usr/bin/ll * ");
    // put a BufferedReader on the ls output
    InputStream inputstream = proc.getInputStream();
    InputStreamReader inputstreamreader = new InputStreamReader(inputstream);
    BufferedReader bufferedreader = new BufferedReader(inputstreamreader);
    // read the ls output
    String line;
    while ((line = bufferedreader.readLine()) != null) {
    System.out.println(line);
    // check for ls failure
    try {
    if (proc.waitFor() != 0) {
    System.err.println("exit value = " + proc.exitValue());
    catch (InterruptedException e) {
    System.err.println(e);
    No output from the buffered reader. Any one have any ideas as to why i cannot execute any runtime commands? This is also related to the thread i created where i'm looking for a java library for uncompressing a unix compressed file (unix compress = *.z and not zip or gz files). I think my only two options are to either use the runtime to uncompress these files or.. use some java library to uncompress these files. Let me know if anyone can offer any hints/helpfull comments/libs
    Thanks a bunch

    I might be wrong on this one, but I believe using Runtime.exec() would generally be frowned upon when invoked from an EJB. The reason? EJB implies a remote call. Can you guarantee that a given native process or service will be available on all possible remote nodes that the EJB might be deployed on? Maybe. Can it actually be achieved? Yes. Is it in the spirit of EJB? Probably not.
    - Saish

  • Error in eCATT command TCD SU01

    Dear All,
    I am getting an error while working with eCATT in one of our test servers.
    I am getting some errors while executing the Test Script (for creating multiple users).
    Error Messages -
    Error in eCATT command TCD SU01
    No batch input data for screen SAPLSUU5 0050
    I have done all the pre-requisites needed for eCATT script enabling.
    Please suggest as soon as possible.
    Points will be definitely rewarded.
    It's very very urgent.
    Thanks & Regards,
    Sameer

    Hello Sameer
    Screen '0050' of function group SUU5 is the SU01 initial screen for user maintenance where you enter the user name.
    If you get a batch-input error there are several possible explanations:
    1. You want to create a <u>new </u>user but the eCATT data do not have a username
    2. You want to create a <u>new </u>user but a user with the username does already exist
    3. You want to <u>change </u>an existing user but the eCATT data do not have a username
    4. You want to <u>change </u>an existing user but the user was locked by somebody else.
    Conclusion: If you are very confident about the quality of your testscript then you have to search the error in your eCATT data.
    Before executing command TCD 'SU01' do you check whether a user with the username of the eCATT data does exist or not? Obviously you need two different testscripts for this two scenarios.
    There might also be a server specific reason. For example, if your suspicious test server is a <i>daughter system of the CUA</i> then you are no longer allowed to create users locally on this system.
    Regards
      Uwe

  • PS not letting me edit some random commands before executing them...

    PS not letting me edit some random commands before executing them, including Duplicate, Fill, Print Preview, Stroke...possibly others I haven't discovered.  When I click the dropdown choice, an edit window used to let me tailor pixel widths, color, etc. (I know, [it's what] 'edit' means). Now, the little eyedropper icon replaces my cursor, all top menus are grey except 'View' and 'Window', I get that awful 'doont!' sound, and my only option is to just hit 'Enter' and it executes the command with whatever preferences I last set before this problem, usually of no present use to me. I have relaunched PS, restarted the computer with no other tasks and relaunched, and impotently shaken my fist at the screen to no avail. Please help me, and if you'd be so kind, just email me the answer 'proteus19m (at) yahoo (dot) com'. Thank you very much.

    Try resetting your preferences.  Start PS and hold down crtl alt shift keys (cmd option shirft on mac) immediately.  If fast enough you will get a reset window.

  • Linux Template Deployment - When is custom command list executed?

    I have a Linux template that I deploy from, but would like to start taking advantage of the "command" functionality of the template to execute a script as the last step, after VMM has deployed the image, set the hostname, and so forth.
    Is that when these commands are executed, as the very last step?

    Yes - the RunOnce commands run at the end of specialization (after networking and machine configuration are set, but before the final shutdown/reboot). A few things to keep in mind:
    1) The commands are run via "exec" and not via a shell. In order to use functions of the shell interpreter, it's best to define the commands with: /bin/sh -c "<your command>".  This allows you to use shell command conventions,
    but also means you need to be mindful to escape any double quotes.
    2) The commands have a default timeout of 5 minutes each, you can override this by setting an integer value (representing seconds) in the file: /opt/microsoft/scvmmguestagent/etc/commandtimeout.
    3) The entire VM specialization process, including RunOnce commands, is subject to the default 30 minute timeout. if you exceed this timeout, the VM deployment will show as failed, though it should actually complete the command execution before shutting
    down.
    4) If you want to work with scripts or package installations, one good approach is to post the content on an internal web server and use wgets in the commands to download the material before executing. This prevents you from having to preload the VHD with
    your scripts and packages.
    -Kris
    www.operatingquadrant.com

  • Using a Variable in SSIS - Error - "Command text was not set for the command object.".

    Hi All,
    I am using a OLE DB Source in my dataflow component and want to select SQL Query from the master table  I have created variables v_Archivequery
    String packageLevel (to store the query).
    <Variable Name="V_Archivequery" DataType="String">
         SELECT a.*, b.BBxKey as Archive_BBxKey, b.RowChecksum as Archive_RowChecksum
         FROM dbo.ImportBBxFbcci a LEFT OUTER JOIN Archive.dbo.ArchiveBBxFbcci b
         ON (SUBSTRING(a.Col001,1,4) + SUBSTRING(a.Col002,1,10)) = b.BBxKey
         Where (b.LatestVersion = 1 OR b.LatestVersion IS NULL)
        </Variable>
    I am assigning this query to the v_Archivequery variable, "SELECT a.*, b.BBxKey as Archive_BBxKey, b.RowChecksum as Archive_RowChecksum
    FROM dbo.ImportBBxFbcci a LEFT OUTER JOIN Archive.dbo.ArchiveBBxFbcci b
     ON (SUBSTRING(a.Col001,1,4) + SUBSTRING(a.Col002,1,10)) = b.BBxKey
    Where (b.LatestVersion = 1 OR b.LatestVersion IS NULL)"
    Now in the OLE Db source, I have selected as Sql Command from Variable, and I am getting the variable, v_Archivequery .
    But when I am generating the package and when running I am getting bewlo errror
     Error at Data Flow Task [OLE DB Source [1]]: An OLE DB error has occurred. Error code: 0x80040E0C.
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80040E0C  Description: "Command text was not set for the command object.".
    Can Someone guide me whr am going wrong?
    Please let me know where am going wrong?
    Thanks in advance.
    Thankx & regards, Vipin jha MCP

    What happens if you hit Preview button in OLE DB Source Editor? Also you can use the same query by selecting SQL Command option and test.
    Could you try set the Delay Validation = True at Package and re-run ?
    If set the query in variable expression (not in value), then Set Evaluate As Expression = True.
    -Vaibhav Chaudhari

  • Hi, i have tryed to install os x leopard, (its a old imac) , disk utility is greyed out , my install dvd cant find any hdd to install on , my only way to format and configure is through terminal but dont know what commands to execute

    hi, i have tryed to install os x leopard, (its a old imac) , disk utility is greyed out , my install dvd cant find any hdd to install on , my only way to format and configure is through terminal but dont know what commands to execute...
    i tryed diffrent commands such as diskutil eraseDisk JHFS+ Disk1
    diskutil list , wont show up my harddrive , i now its functionally cause it shows up in disk utility with name and i can get info about it , but everything is greyed out can only switch between "erase , partition , recover , Raid ,....
    when i click the apple in the top left corner the whole menu is greyed out... what to do ?  help me please
    Sincerly AppleNoob92
    p.s i have no experience in apple imac's at all never used before, but im kinda windows nerd so computers i understand but this imac make my insane, cant seem to find any solutions anywhere on the WWW....

    Your HD may be crashed, so you probably should use the oringinal install discs to run Apple Hardware Test in extended mode. If error codes appear this confirms a hardware failure. In addition you cannnot repair the HD using Disk Utility from the startup disk, you have to use the origninal Install discs that shipped with the computer or the most up-to-date version of OS X on a disc that you have.

  • How to set the state of browser frame?

    hello all,
    can u suggest some way to set the state of applet broser from minimized to maximized.
    the class name for browser window is shown as
    "com.ms.applet.BrowserAppletFrame."
    i can type cast the browser frame reference to Frame class, but the method setState(Frame.NORMAL) is not working as this method is not available in micorsoft implementation of java.awt.Frame class.
    i would like to maximize the brower programatically..
    thanks in advance...
    regards
    Sojan

    Hi,
    Did you find a solution for this problem? I am trying to do the same thing. Thanks.
    J

  • How Do You Set the State Of a Custom Compent's Child Custom Compent?

    I'm starting to build very complex interface 'widgets' built by taking simple custom compents and creating more complex custom compents from these compents and then again grouping those to create custom components. However, I'm starting to lose access in Catalyst to set these sub custom compents. It maybe just a noob issue.
    Am I looking at this wrong?
    Should I not be nesting compents?
    Other wise how do I access these?
    I haven't jumped into the code part of FLEX yet but I figured it would be very OOP like, so... (psuedo code)
    myParentCustomComponent.my1stChild.state = myChildsStateOn;
    //( myChildsStateOn, myChildsStateOff, myChildsStateNotVisited )
    myParentCustomComponent.my2ndChild.state = myChildsStateOn;
    //( myChildsStateOn, myChildsStateOff, myChildsStateNotVisited )
    I hope I can set this in Catalyst so that I don't have to do a shallow and very wide state setup like ... (psuedo code)
    myCustomCompent.state = my1stChildIsOn;
    myCustomCompent.state = my1stChildIsOff;
    myCustomCompent.state = my1stChildIsNotVisited;
    myCustomCompent.state = my2ndChildIsOn;
    myCustomCompent.state = my2ndChildIsOff;
    myCustomCompent.state = my2ndChildIsNotVisted;
    PLEASE ADVISE, thank you.
    Best Regards,
    -Truce

    Hi Truce,
         Thank you for your feedback. You have run into a current limitation with the "play transition to state" interaction and the "Set Component State" action in the timeline. Currently the UI that allows you to pick a state only "sees" components that are direct children of your current context. The state picker doesn't allow picking states of components that are more deeply nested.
    We are aware of this issue and how it impacts user's ability to author more complex projects, so we are looking at ways to allow users to pick states deeper within the hierachy when creating interactions.
    One work around that works in *some* cases is to set the state of sub components in a parent component using the PI rather than using interactions.
    If you have a structure like this
    Application
        WidgetA (with state1 and state2)
              WidgetB (with state1 and state2)
              WidgetC (with state1 and state2)
    You can record what state WidgetB and WidgetC are in for each state of WidgetA. To do this double-click WidgetA, select WidgetB and change the current state in the properties editor for WidgetB. That state will be remember for each state of Widget A. Then when you have an interaction at the application level that changes the state of WidgetA, then WidgetB will change state as well. This works well if WidgetB is in the same state for each state of WidgetA. If you want to change WidgetB and WidgetC states directly from the Application level, there isn't currently a way to do this.
    - Ty

  • NEWBIE: Submit Page to set session state

    I have a form that displays various items to include Popup LOVs (dynamic; based on session variables). If the user displays a page, the session state is not yet set so the Popup LOVs don't function correctly (until the user presses the Apply Changes button to submit the page). Can I automatically submit the page or set session state for those items used in the LOVs on page load? Note that I'm not too familiar with the use of javascript. I'm using Application Express version 2.0

    Yes, I discovered that! Thanks for responding, though. I basically run a process (PL/SQL) under page rendering section that looks like:
    begin
    htmldb_util.set_session_state('P10_MACHINE_TYPE','&P10_MACHINE_TYPE.');
    end;
    Thanks!

Maybe you are looking for

  • Unable to Check In Publishing Page

    I am running into an issue with a custom page layout that I have created.  On this page layout I have a publishing html field, publishing image field, and a publishing summary links field.  The problem is when I check-in the publishing page as a draf

  • Presentation Variable Date Format

    Hi all trying to format a presentation variable in a Narrative view , Is there a way that this can be done using javascript or html that i can paste into narrative view. i want something like "the date being used is @{indate} for month end" Also date

  • Using distinct on several columns

    Dear all; I am have a query of the following form select distinct id, zoneid, close_date from table_one which gave a different result from the same query with a different form select distinct close_date, id, zoneid from table_one Hence, I would like

  • How to cancel sending text message

    How can I cancel sending a text message?

  • Disable Group Tree in ActiveX Viewer

    Post Author: gouldjw CA Forum: Administration When displaying reports from Crystal Report Server, I need to set a global setting to disable the group tree.  This used to be a simple checkbox in Crystal Enterprise, but I can't find the setting in XI R