Test for System File and Delete System File

I have about 300 different tests that I run using TestStand, each with a somewhat unique report output filename:
  Example:  0-RMC 80 Timer_Interface_MaxValue_Report.html
The filename includes the
    Number of Errors
    Product Name
    Build Revision
      and a unique test name.
I would like to add a step to an existing initialization routine to test for an existing report file name and if it exists, bypass the test sequence.
The question is, how do I run a system command within TestStand to test for a file, for example:
  If (SystemCommand(dir Locals.ReportPath\0-RMC 80 Timer_Interface_MaxValue*.html) then
    Don't run this test...
Similarly, I also need to know how to delete a file from within TestStand.
    SystemCommand(Del 9999*.*)
Mike

You can use the FindFile method in the TS API:
FindFile Method
Syntax
Engine.FindFile ( fileToFind, absolutePath, userCancelled, promptOption = FindFile_PromptHonorUserPreference, srchListOption = FindFile_AddDirToSrchList_Ask, isCommand = False, [currentSequenceFile])
The function itself returns a boolean which indicates if the file exists or not. 
Then just use a Call Executable step to run command line string to delete the file.
Hope this helps!
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~

Similar Messages

  • [svn:bz-trunk] 7494: Add testcaseses for http put and delete methods.

    Revision: 7494
    Author:   [email protected]
    Date:     2009-06-02 13:13:33 -0700 (Tue, 02 Jun 2009)
    Log Message:
    Add testcaseses for http put and delete methods. Proxy should return endpoint's content instead of empty body
    Added Paths:
        blazeds/trunk/qa/apps/qa-regress/remote/testMethods.jsp
        blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/proxyService/httpservice/bugs/Pu tAndDeleteMethodTests.mxml

    found it - here: http://discussions.apple.com/thread.jspa?threadID=2323131&tstart=30
    I set the Realm to Location instead of Folder. Now I'm prompted for my credentials at the /svn/ URL.

  • [svn:osmf:] 13640: First checkin of unit tests for FLV tags and their parser

    Revision: 13640
    Revision: 13640
    Author:   [email protected]
    Date:     2010-01-19 15:07:11 -0800 (Tue, 19 Jan 2010)
    Log Message:
    First checkin of unit tests for FLV tags and their parser
    Modified Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as
    Added Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/flv/
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/flv/FLVTestHelper.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/flv/TestFLVHeader.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/flv/TestFLVTagAudio.as
    Property Changed:
        osmf/trunk/framework/OSMFTest/org/osmf/

    Thanks for posting this!
    I would only mention that your definition is incomplete for this -
    Contextual selector A type of Style Sheet Selector that
    and that it's most often referred to now as a Descendent selector, not a contextual selector.  It's basically the same as the Compound selector that you have already defined....

  • Function Module for blocking, unblocking and deleting assets

    Hi,
    Are there function modules available for blocking,unblocking and deleting assets in SAP.
    Can I user 'BAPI_FIXEDASSET_CHANGE' for the same?
    Thanks in adavnce,
    Laxman

    Hey,
    I tried by putting the values of company code,asset number,subnumber, transaction type as 'A' and passing the value of INLA-XSPEB as 'X' in FM ASSET_MASTERRECORD_MAINTENANCE to block the asset but it is not working. I am trying many other things. Can you suggest what are the mandatory fields that need to be passed for the asset to be blocked.
    As there are lot of parameters in this FM, I am little confused. Is there a proper documentation available somewhere to understand the flow.
    Thanks in advance for the help.
    Laxman Pai.

  • [svn] 4534: Add configuration tests for flexclient, destination and services

    Revision: 4534
    Author: [email protected]
    Date: 2009-01-14 16:02:42 -0800 (Wed, 14 Jan 2009)
    Log Message:
    Add configuration tests for flexclient, destination and services
    checkintests: passed
    Added Paths:
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/DuplicateIdTest/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/DuplicateIdTest/erro r.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/DuplicateIdTest/serv ices-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/IncorrectRootElement Test/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/IncorrectRootElement Test/dest-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/IncorrectRootElement Test/error.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/IncorrectRootElement Test/services-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/InvalidAdapterRefTes t/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/InvalidAdapterRefTes t/error.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/InvalidAdapterRefTes t/services-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/InvalidChannelTest/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/InvalidChannelTest/e rror.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/InvalidChannelTest/s ervices-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/InvalidIdTest/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/InvalidIdTest/error. txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/InvalidIdTest/servic es-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NoAdapterTest/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NoAdapterTest/error. txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NoAdapterTest/servic es-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NonExistentAdapterTe st/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NonExistentAdapterTe st/error.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NonExistentAdapterTe st/services-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NonExistentChannelAt trTest/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NonExistentChannelAt trTest/error.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NonExistentChannelAt trTest/services-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NonExistentChannelTe st/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NonExistentChannelTe st/error.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NonExistentChannelTe st/services-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/factories/InvalidIdTest/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/factories/InvalidIdTest/error.tx t
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/factories/InvalidIdTest/services -config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/flexclient/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/flexclient/InvalidTimeOutTest/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/flexclient/InvalidTimeOutTest/er ror.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/flexclient/InvalidTimeOutTest/se rvices-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/flexclient/NegativeTimeOutTest/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/flexclient/NegativeTimeOutTest/e rror.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/flexclient/NegativeTimeOutTest/s ervices-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/services/InvalidDefSecConstraint Test/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/services/InvalidDefSecConstraint Test/error.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/services/InvalidDefSecConstraint Test/services-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/services/InvalidIncludeTest/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/services/InvalidIncludeTest/erro r.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/services/InvalidIncludeTest/serv ices-config.xml

    Revision: 4534
    Author: [email protected]
    Date: 2009-01-14 16:02:42 -0800 (Wed, 14 Jan 2009)
    Log Message:
    Add configuration tests for flexclient, destination and services
    checkintests: passed
    Added Paths:
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/DuplicateIdTest/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/DuplicateIdTest/erro r.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/DuplicateIdTest/serv ices-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/IncorrectRootElement Test/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/IncorrectRootElement Test/dest-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/IncorrectRootElement Test/error.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/IncorrectRootElement Test/services-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/InvalidAdapterRefTes t/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/InvalidAdapterRefTes t/error.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/InvalidAdapterRefTes t/services-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/InvalidChannelTest/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/InvalidChannelTest/e rror.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/InvalidChannelTest/s ervices-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/InvalidIdTest/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/InvalidIdTest/error. txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/InvalidIdTest/servic es-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NoAdapterTest/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NoAdapterTest/error. txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NoAdapterTest/servic es-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NonExistentAdapterTe st/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NonExistentAdapterTe st/error.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NonExistentAdapterTe st/services-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NonExistentChannelAt trTest/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NonExistentChannelAt trTest/error.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NonExistentChannelAt trTest/services-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NonExistentChannelTe st/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NonExistentChannelTe st/error.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/NonExistentChannelTe st/services-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/factories/InvalidIdTest/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/factories/InvalidIdTest/error.tx t
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/factories/InvalidIdTest/services -config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/flexclient/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/flexclient/InvalidTimeOutTest/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/flexclient/InvalidTimeOutTest/er ror.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/flexclient/InvalidTimeOutTest/se rvices-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/flexclient/NegativeTimeOutTest/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/flexclient/NegativeTimeOutTest/e rror.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/flexclient/NegativeTimeOutTest/s ervices-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/services/InvalidDefSecConstraint Test/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/services/InvalidDefSecConstraint Test/error.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/services/InvalidDefSecConstraint Test/services-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/services/InvalidIncludeTest/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/services/InvalidIncludeTest/erro r.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/services/InvalidIncludeTest/serv ices-config.xml

  • RFC enabled function module for insert update and delete in a Ztable..

    friends..
    Is there any standatd RFC enabled function module to insert , update and delete data in a custom database-table (Ztable)? if not how can we create it? plz give me the details steps..
    what are the import, export parameters and how to develop and process it.. (for example: suppose fields in the table is Emp_Id, Name, Address)
    Thanks and Regards

    Hi,
    Try this code.
    REPORT ZMMC071Z_RMV.
    TYPE-POOLS : ABAP.
    FIELD-SYMBOLS: <DYN_TABLE> TYPE STANDARD TABLE,
                   <DYN_WA>,
                   <DYN_FIELD>,
                   <LV_CONDI>.
    DATA: DY_TABLE TYPE REF TO DATA,
    DY_LINE TYPE REF TO DATA,
    XFC TYPE LVC_S_FCAT,
    IFC TYPE LVC_T_FCAT.
    SELECTION-SCREEN BEGIN OF BLOCK F1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_TABLE  LIKE DD02L-TABNAME OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK F1.
    Evento: At Selection Screen                                          *
    START-OF-SELECTION.
      PERFORM GET_STRUCTURE.
      PERFORM CREATE_DYNAMIC_ITAB.
      PERFORM GET_DATA.
    END-OF-SELECTION.
    *& Form get_structure
    text
    FORM GET_STRUCTURE.
      DATA : IDETAILS TYPE ABAP_COMPDESCR_TAB,
      XDETAILS TYPE ABAP_COMPDESCR.
      DATA : REF_TABLE_DES TYPE REF TO CL_ABAP_STRUCTDESCR.
      DATA VL_LENGHT(30).
    Get the structure of the table.
      REF_TABLE_DES ?=
      CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME( P_TABLE ).
      IDETAILS[] = REF_TABLE_DES->COMPONENTS[].
      LOOP AT IDETAILS INTO XDETAILS.
        CLEAR XFC.
        XFC-FIELDNAME = XDETAILS-NAME .
        XFC-DATATYPE = XDETAILS-TYPE_KIND.
        XFC-INTTYPE = XDETAILS-TYPE_KIND.
        XFC-INTLEN = XDETAILS-LENGTH.
        XFC-DECIMALS = XDETAILS-DECIMALS.
        APPEND XFC TO IFC.
      ENDLOOP.
    ENDFORM. "get_structure
    *& Form create_dynamic_itab
    text
    FORM CREATE_DYNAMIC_ITAB.
    Create dynamic internal table and assign to FS
      CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
        EXPORTING
          IT_FIELDCATALOG = IFC
        IMPORTING
          EP_TABLE        = DY_TABLE.
      ASSIGN DY_TABLE->* TO <DYN_TABLE>.
    Create dynamic work area and assign to FS
      CREATE DATA DY_LINE LIKE LINE OF <DYN_TABLE>.
      ASSIGN DY_LINE->* TO <DYN_WA>.
    ENDFORM. "create_dynamic_itab
    *&      Form  get_data
          text
    -->  p1        text
    <--  p2        text
    FORM GET_DATA .
    *Get data from p_table into internal table <DYN_TABLE>
      SELECT * INTO TABLE <DYN_TABLE>
          FROM (P_TABLE)
    Here you can implemente function DELETE, INSERT.
    ENDFORM.                    " De_para

  • Cursor problem ! (equivalents for insert, update and delete)

    Hi,
    I am having following three sql statements. I am using Oracle 8i.
    ====================================================================================================================
    Statement1 : Insert
    Insert Into DBSchema.DstTableName( dstCol1, dstColP, dstColKey, dstCol2, dstCol3, dstCol4, dstCol5, dstCol6 )
    ( SELECT DbSchema.Seq.nextval, srColP, srColKey, srCol1, srCol2, nvl(srCol3,0), nvl(srCol4,0), SYSDATE
    From
    SrcTableName SRC
    Where
    srcColP IS NOT NULL AND
    NOT EXISTS
    (SELECT 1
    From
    DBSchema.DstTableName Dst
    Where
    SRC.srcColP = DST.dstColP AND SRC.srcColKey = DST.dstColKey )
    ====================================================================================================================
    Statement2 : Update
    Update DBSchema.DstTableName dst
    SET ( dstCol1,dstCol2,dstCol3,dstCol4, dstCol5)
    =
    ( SELECT srCol1, srCol2, nvl(srCol3,0), nvl(srCol4,0), SYSDATE
    From
    SrcTableName src
    Where
    src.srcColP = dst.dstColP AND SRC.srcColKey = DST.dstColKey
    WHERE EXISTS (
    SELECT
    1
    From
    SrcTableName SRC
    Where
    SRC.srcColP = DST.dstColP AND SRC.srcColKey = DST.dstColKey ) ;
    ====================================================================================================================
    Statement3 : Delete
    Delete
    FROM DBSchema.DstTableName DST
    Where Exists (
    SELECT
    1
    From
    SrcTableName SRC
    Where
    src.srcColP = dst.dstColP )
    AND NOT EXISTS
    SELECT
    1
    From
    SrcTableName SRC
    Where
    src.srcColP = dst.dstColP AND SRC.srcColKey = DST.dstColKey ) ;
    ====================================================================================================================
    For the above three statement I have written the following cursor.
    Equivalent Cursor:
    PROCEDURE DEMOPROC
    is
    loop_Count integer := 0;
    insert_Count integer := 0;
    CURSOR c1
    IS
    SELECT src.srcCol1,
    src.srcCol2,
    src.srcCol3,
    src.srcCol4,
    src.srcCol5,
    src.srcCol6,
    src.srcCol7,
    src.srcCol8,
    src.srcCol9,
    src.srcColKey,
    src.srcColP
    FROM
    SrcTableName SRC
    Where src.srcColP IS NOT NULL
    AND NOT EXISTS
    (SELECT 1
    From
    DBSchema.DstTableName Dst
    Where
    src.srcColP = DST.dstColP AND src.srcColKey = DST.dstColKey )
    BEGIN
    FOR r1 in c1 LOOP
    Insert Into DBSchema.DstTableName( dstCol1, dstColP, dstColKey, dstCol2, dstCol3, dstCol4, dstCol5, dstCol6 )
    values(DBSchema.Seq.nextval, r1.srcColP, r1.srcColKey, r1.srcCol1, r1.srcCol2, nvl(r1.srcCol3,0), nvl(r1.srcCol4,0), SYSDATE);
    Update DBSchema.DstTableName dst
    SET dst.dstCol1=r1.srcCol1 , dst.dstCol2=r1.srcCol2,
    dst.dstCol3=nvl(r1.srcCol3,0),
    dst.dstCol4=nvl(r1.srcCol4,0),
    dst.dstCol5=SYSDATE
    Where
    r1.srcColP = dst.dstColP
    AND
    r1.srcColKey = DST.dstColKey ;
    Delete
    FROM DBSchema.DstTableName DST
    Where
    r1.srcColP = dst.dstColP ;
    insert_Count := insert_Count + 1 ;
    /* commit on a pre-defined interval */
    if loop_Count > 999
    then begin
    commit;
    loop_Count := 0;
    end;
    else loop_Count := loop_Count + 1;
    end if;
    end loop;
    /* once the loop ends, commit and display the total number of records inserted */
    commit;
    dbms_output.put_line('total rows processed: '||TO_CHAR(insert_Count)); /*display insert count*/
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('Error '||TO_CHAR(SQLCODE)||': '||SQLERRM);
    END;
    ====================================================================================================================
    I am not sure whether this cursor is right or not, have to verify it.
    In delete and insert statements there is same where not exist clause in the original statement so I included that in my cursor declaration but not sure whether update will work with that or not.
    I have to use the three statements mentioned above for few source and destination tables and each are having many rows. How do i tune it ?
    What else can be done to improve the performance with the the three statements mentioned above.
    Any help will be highly appreciated.
    Thanks !
    Regards,

    You wont any anything extra by creating mulitple threads of the same question. Instead of this just provide the full information wht have been asked so that someone here can helpo you. If you keep doing like this then you will put yourself in our's negative list and that's not good for you.
    Daljit Singh

  • When is there going to be a select all/delete all option in email? I need to search for certain emails and delet them from my phone but not my email program (Outlook)

    when will there be a select all/delete all option in Emails? I have a large number of emails that come to my phone which i dont want to delete from my outlook mail account (On my PC). However, i want to be able to search, select all and delete these emails from my phone? I do not use ICloud either as it causes issues with my calendars at work.
    These features should be a standard as there are plenty of other users out there that are trying to do the same thing and as yet there has been no progress? The email on the iphone is one of the biggest downfalls of the phone, blackberry and android handle them much better, but i dont have an option with my phone at work. Please help??

    No one here would have any idea when or if such a feature would be introduced until and unless Apple announces it.

  • Using stored procedures for insert, update and delete

    Hello all;
    We have a question from our customer (who is the DBA), who has not in the past used TopLink, about whether it makes sense to tie TopLink into existing stored procedures to save and retrieve informations.
    Is it possible?
    Is there any circumstance under which it is a good idea?
    Thanks

    In TopLink any operation for which TopLink generates SQL, can be replaced by custom SQL, or a stored procedure call.
    Custom SQL or stored procedures can be used for each of the descriptor's CRUD operations, but also for mapping queries and named queries. The Mapping Workbench only supports defining custom SQL for the descriptor CRUD operations and named queries, so many of the stored procedures call from the descriptor and mappings will need to be done through amendment methods.
    Whether it makes sense or not depends on the application and the company and their requirements. It will add significant overhead to the development process to have to define and maintain all of the stored procedures, and the stored procedure calls in the descriptors. You may wish develop your application using TopLink generated SQL, and once you have the model and queries stabilized then switch to using stored procedures.
    Whether it is a good idea depends on the application and the company and their requirements. Stored procedures may give the DBA more freedom to change the data-model once in production, and may allow for adding database-level security checks. In general using stored procedures will not improve performance if the procedures contain the same SQL that would have be executed anyway, but they may allow for the DBA to tune the SQL better.

  • Is there a way to test for network connectivity (and a way to simulate it)

    Is there a way to test for network connectivity, which API to look into? Also, is there a way to test that code in the simulator, that is, to turn off the network in the simulator.
    Thanks

    A peek in the docs would help- there is a TON of information there.
    You might also try the Reachability sample app for ideas:
    http://developer.apple.com/iphone/library/samplecode/Reachability/index.html

  • Automatic tests for "smart forms" and SAPScript

    Hi there,
    we have some really horrible SAPScript and SmartForms here, mixing up presentation with business logic and database table selects in the layout (!).
    We want to refactor these objects. We have some test data at hand to continouously reproduce the form. And we have some expectations on the output document. The result could be saved as a PDF document and then scanned by an appropriate tool?
    Other approaches?
    Any experiences out there?
    How to write Unit Tests? Is this possible at all? Or is integration test the only option?
    Regards,
    Rüdiger

    Hello Naimash,
    thank you for the answer. I didn't know this menu path. There is a function module SSFDISPLAY_OTF_LIST underlying this menu path.  I will check out wether this module can be called in the background. It can be combined with the usual conversion of ABAP lists to plain text (as used in "System->List->Save to file"). Finally, regular expressions or a common diff tool can be used to check the expectations. All this could equally well be performed in an ABAP program.
    Since all the texts of the smartform appears in the result document, this permits to check at least all the form content. Layout and images get lost. But this could be verified after the redesign in the integration test phase. For the refactoring process, verification of the text content for various processes will be sufficient.
    Thanks and regards,
    Rüdiger

  • Error in the ECC 6 for the addition and deletion of zeros

    Hi,
    iam working in ECC 6 at the client palce.
    Requirementis to add zeros and remove zeros for the LIFNR. Both CONVERSION_EXIT_ALPHA_INPUT & CONVERSION_EXIT_ALPHA_OUTPUT while executing showing the information popup as Error generating the test frame. I tested both the function modules in the production system also. The same error is showing.
    Please, suggest the soluiton.
    Regards
    Ramana Murthy

    Hi Ramana,
    What is the error exactly ?
    anyway, for removing the zero you can use this statement :
    example :
    l_lifnr = '0000012345'.
    shift l_lifnr left deleting leading '0'.
    after above statement : l_lifnr = '12345'.
    Hope this help.
    best regards,
    yudie

  • Script for handling triggers and delete statements

    Hello,
    currently I'm facing a problem which I don't know how to deal with.
    We need a script which deletes/disables two triggers first, then delete some data and afterwards create/enable the triggers again.
    I didn't find a proper hint how to cover this with dbmcli, probably we have to use a "higher" language..?!?!
    Is it possible at all to provide "dbmcli -i" with a file including sql statements like the example afterwards ?
    Is it possible to disable/enable triggers or do I have to delete and create them ?
    e.g.:
    disable/drop trigger trig_a
    disable/drop trigger trig_b
    delete from a where....
    delete from b where...
    enable/create trigger trig_a...
    enable/create trigger trig_b...
    used maxDB version is 7.5.0.38
    any hint appreciated....GERD.....

    Hi Gerd,
    please be aware that DBMCLI is a DBMServer client, not a SQL client (although it can tunnel some sql through the DBMServer).
    Better use SQLCLI for things like that.
    And. no, you cannot switch triggers on and off - just drop and recreate them.
    But you may specify the IGNORE TRIGGER keyword for the delete statements.
    That way you can leave the triggers just as they are.
    p.s.
    Any reason to stay on super old 7.5 ?
    regards,
    Lars

  • Brarchive option for two copies and deletion if at least one copy

    Good morning,
    We are currently archiving our Oracle archive redos on tapes with legato/networker.
    When these files are backed up, we delete them from disk.
    Our current options are: brarchive -sd -c -f 1
    What we would like to do is to store two copies (one with networker and one on a nfs mounted partition or copied with rsync).
    In order to avoid filling the disk, we would like to delete the archive on disk if at least (1 or 2 but not 0) one copy has been successful.
    Which options should I provide to brarchive to do so?
    Thanks in advance for your answers.

    Hi,
    What i would like is that files are deleted even if there is a single copy.
    then,,Your current BRARCHIVE operation is already running with -sd option, which will fulfill your requirement. Upon completion of single file, it will delete it from the disk.
    with this option, the BRARCHIVE run for a single Offline Redo log file will be as followed:
    BR0010I BRARCHIVE function ID: svd
    BR0048I Archive function: save_delete
    BR0011I 43 offline redo log files found for processing, total size 4039.460 MB
    BR0111I Files will be compressed
    BR0198I Profiles saved successfully
    BR0201I Compressing I:\oracle\D78\oraarch\D78ARCH1_25079_647284503.DBF
    BR0203I to G:\redobkp\D78ARCH1_25079_647284503.DBF.Z ...
    #ARCHIVE.. I:\oracle\D78\oraarch\D78ARCH1_25079_647284503.DBF
    #SAVED.... G:\redobkp\D78ARCH1_25079_647284503.DBF.Z  #1/1  3.3367:1  29509288
    BR0280I BRARCHIVE time stamp: 2010-02-23 06.49.31
    BR0015I Offline redo log file I:\oracle\D78\oraarch\D78ARCH1_25079_647284503.DBF deleted
    BR0280I BRARCHIVE time stamp: 2010-02-23 06.49.31
    BR0014I 1 of 43 offline redo log files processed - 93.901 MB of 4039.460 MB done
    Regards
    Bhavik G. Shroff

  • Help: API for purging expired and deleted items

    Hi gurus
    Is there an API available for purging deleted and expired items? The customer wants to be able to have date controlled deletion of items and the only way I see this happening is to set up a database job (hopefully) calling the purge API - if it exists...
    TIA
    Claus

    Anja,
    You can take a look at the portlet called document management (for 3.0.8) in portals.us.oracle.com. It can do purge expired/deleted items.
    pin
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    Hi,
    is there a way to purge expired or deleted items programmatically? Can we schedule a job which does the purging in a certain intervall? We don't want the admin person go into portal and manually do the system purge.
    Any thoughts?
    Thanks,
    Anja<HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • Album Art Question

    I have a 60gb iPod with Video with 8,000 songs imported from WMP. Album Art shows up on some files only at random, and for some songs within the same album. I have iTunes set to show Album Art. How do I fix this? Thanks

  • Extra GB in Blu-Ray project?

    I have Encore CS5, and am trying to create a Blu-Ray disc. I used Sorenson Squeeze to produce a 22GB mpeg, but once I import it into Encore (non-transcoding), it says my project is oversized at 27GB. My menus, assets, and audio track add up to less t

  • Time-Profile-Level Error on Activation

    Hello, I am in the process of creating an S&OP Model and so far created the following. 1...Master Data & Attributes 2...TimeProfile with 2 Levels(Daily and Weekly) 3..Planning Area with Storage Time Profile Level as 'Daily' 4...Two Planning levels at

  • Difference between slice and tile Artix 7

    Hello, here I attached a pic of a part of my FPGA (Artix 7 ac701). From this pic I can understand that there are 10 slices, where each of these is recognized by XY coordinates. A tile is a division that includes sites, wires and PIPs. My question is:

  • Run a database procedure every 15 minutes?

    Hi. I have the following procedure: call_queue_cleanup;I'm hoping someone could share some code that would allow me to run this procedure automatically from the database every 15 minutes? Any help with this code would be greatly appreciated.