TCD error in Secatt

Hello Gurus,
Below given is my code in Ecatt.
I want to give TCD in loop.But it is not allowing me .Can any one help me in this??
Its urgent
ABAP.
*DO COUNT TIMES.
*ABAP BLOCK TO GET THE NUMBER OF TEST CASES
*TOT - HOLDS TOTAL NUMBER OF RECORDS
*FILE- HOLDS FILE PATH OF TEST FILE
DATA:TOT TYPE I VALUE 0,
     FILE TYPE STRING.
*ITAB TO HOLD TEST DATA FROM FILE
DATA:BEGIN OF I_LOANFA OCCURS 0,
        PERNR LIKE PA0045-PERNR,
        BEGDA LIKE PA0045-BEGDA,
        ENDDA LIKE PA0045-ENDDA,
        EXTDL LIKE PA0045-EXTDL,
        DATBW LIKE PA0045-DATBW,
        DARBT LIKE PA0045-DARBT,
        TILBG LIKE PA0045-TILBG,
        TILBT LIKE PA0045-TILBT,
        ZAHLD LIKE PA0078-ZAHLD,
        ZAHLA LIKE PA0078-ZAHLA,
    BETRG LIKE PA0078-BETRG,
END OF I_LOANFA.
*WORK AREA TO HOLD I_LOANFA DATA
DATA:WA LIKE I_LOANFA.
V_FILE-PATH = 'C:\TEST.TXT'.
FILE = V_FILE-PATH.
*LOADING MASTER DATA FROM THE FILE
CALL FUNCTION 'GUI_UPLOAD'
   EXPORTING
     FILENAME                      = FILE
   FILETYPE                      = 'ASC'
    HAS_FIELD_SEPARATOR           = 'X'
   HEADER_LENGTH                 = 0
   READ_BY_LINE                  = 'X'
   DAT_MODE                      = ' '
   CODEPAGE                      = ' '
   IGNORE_CERR                   = ABAP_TRUE
   REPLACEMENT                   = '#'
   CHECK_BOM                     = ' '
   NO_AUTH_CHECK                 = ' '
IMPORTING
   FILELENGTH                    =
   HEADER                        =
   TABLES
     DATA_TAB                      = I_LOANFA
EXCEPTIONS
   FILE_OPEN_ERROR               = 1
   FILE_READ_ERROR               = 2
   NO_BATCH                      = 3
   GUI_REFUSE_FILETRANSFER       = 4
   INVALID_TYPE                  = 5
   NO_AUTHORITY                  = 6
   UNKNOWN_ERROR                 = 7
   BAD_DATA_FORMAT               = 8
   HEADER_NOT_ALLOWED            = 9
   SEPARATOR_NOT_ALLOWED         = 10
   HEADER_TOO_LONG               = 11
   UNKNOWN_DP_ERROR              = 12
   ACCESS_DENIED                 = 13
   DP_OUT_OF_MEMORY              = 14
   DISK_FULL                     = 15
   DP_TIMEOUT                    = 16
   OTHERS                        = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
BREAK-POINT.
*GETTING NUMBER OF RECORDS IN THE TABLE
DESCRIBE TABLE I_LOANFA LINES TOT.
*STORING NUMBER OF RECORDS IN LOCAL VARIABLE
COUNT = TOT.
*CLEARING INTERNAL TABLE
CLEAR I_LOANFA.
V_READINDX : holds index number to read the internal table
FILE: holds file path of test file
DATA : V_READINDX TYPE I.
DO COUNT TIMES.
V_READINDX = INT_LOC.
READ TABLE I_LOANFA INDEX V_READINDX INTO WA.
*Assigning Work Area Values To The Screen Field Values
V_PERNR = WA-PERNR.
V_BEGDA = WA-BEGDA.
V_ENDDA = WA-ENDDA.
V_EXTDL = WA-EXTDL.
V_DATBW = WA-DATBW.
V_DARBT = WA-DARBT.
V_TILBG = WA-TILBG.
V_TILBT = WA-TILBT.
V_ZAHLD = WA-ZAHLD.
V_ZAHLA = WA-ZAHLA.
V_BETRG = WA-BETRG.
TCD(PA30,PA30_1).
INT_LOC = INT_LOC + 1.
ENDDO.
ENDABAP.
Thanx,
Deepak

Hello Deepak
I am not a business analyst so I do not really know when the confirmation screen is displayed. However, given your description I assume it is shown after the last order item.
If this assumption is correct then a pseudo-coding would look like:
IF ( n < max. number of items ).
  TCD(VA02,VA02_1).
ELSE.
  TCD(VA02,VA02_2).
ENDIF.
In this case I would call a function module to retrieve the sales order items, determine the number of items and then loop over the items:
" Example: n = 4   => ld_max
  ld_count = ld_max - 1.
  ld_idx = 0.
  DO ( ld_count ).
    ld_idx = ld_idx + 1.
    ABAP.
      READ TABLE lt_items INTO ls_item INDEX ld_idx.
    ENDABAP.
    TCD(VA02,VA02_1).  " transaction without confirmation
  ENDDO.
    ABAP.
      READ TABLE lt_items INTO ls_item INDEX ld_max.
    ENDABAP. 
    TCD(VA02,VA02_2).  " transaction with confirmation
Please note that your TCD recording should handle a <b>single item only</b>. Therefore you somehow need to take care of the selected item number within the transaction.
Regards,
  Uwe

Similar Messages

  • Error in SECATT - ATT 377 Control data is obsolete, rerecord (&1&2&3)

    Hello,
    I get an error while running a TCD REC secatt, in the log of the test configuration , there are red errors "ATT 377 Control data is obsolete, rerecord (&1&2&3)", although the secatt was sucessfully done (meaning i should get green light...).
    I've implemented Note #965439, in order to solve this error.
    but the error still occurs.
    Any ideas...?

    thanks AP for your reply.
    I have deleted and  I have recreated the file with new recording but the error still ramains.
    Can anybody assist to solve the issue ?
    Thanks in advance.

  • Error in Secatt Script

    Hi Guys,
    I have been running secatt for user creation and adding one role through su01. Everything is fine until I define Variant in Test Configuration.  I guess I'm keep doing something that gives me an error when I execute the script.  I know its something related to variant.
    I keep getting this error:
    Version 1 External Variant SAVARIENT
    Message no. ECATT507
    Can anyone please tell me where am I doing wrong?
    Thanks a lot in advance
    Faisal

    >
    Faisal wrote:
    > Version 1 External Variant SAVARIENT
    I don't get exactly the same error on variants "Version 1 External Variant SAVARIENT" but there are a few things you can check in regards to variant errors.
    Run SECATT->Test Configuration and bring up your test configuration script.
    Click on Change
    Click on Variants Tab
    Verify that your file is correct
    Click on Execute
    Click on Shared Tab (Default Screen)
    Error Behavior select - S No Termination, Continue with next Script Command
    Debugging Mode select - I Ignore Breakpoints (Default for Collective Execution)
    Click on the Variant Tab
    Click on Change Path
    Verify your path for your source file under the following fields
    eCATT Objects
    Variants
    WebDynpro
    SAPGUI Command
    Then EXECUTE
    Good Luck!

  • SECATT not saving the screen for change of address in CAA2

    Dear Secatt Experts
    When recording the transaction CAA2 using TCD(Record) in SECATT, the
    screen for change of address  in the main screen of CAA2 is not getting
    saved. Therefore I am unable to run the script for change of address
    The address can be changed (Fix any address other than standard address)
    by using F4 function in the address field in the main screen.
    Please help
    Best Regards
    Venkat

    Hi Venkat,
    It should work fine with SAPGUI recording. So please try this.
    Hope it helps.
    Regards,
    Ananth.

  • Change log for system status of Building

    Dear Experts,
    Would like to inquire if there is a tcode that can be used to view logs for change in system status of building in RE-SD
    Thanks in advance.
    Kathy

    Hi Kathy,
                 when ever there is error we check using
    -> BPIA
    -> ECATT error log or BC set error log
    -> SECATT tcode can be use dfor the purpose
    With every Package there is a installation guide which has further information for the things about the package being used.
    Have a best day ahead.

  • How To Handle Error Message In TCD Recording?

    Hi All,
      I tried recording a transaction (my own transaction) by not enterring value in an obligatory field. the error message came. but when i executed the script, it showed an error. but actualy, the error message was expected right? how to handle this situation? i tried with tcd and sapgui recording. both gave almot the same result.
      i am including the script which i have written.
    MESSAGE ( MSG_1 ).
    *TCD ( ZCUST , ZCUST_1 , ECC ).
    SAPGUI ( SAP_1 , ECC ).
    ENDMESSAGE ( E_MSG_1 ).
    v_mno = &tfill.
    v_msg = E_MSG_1[v_mno]-msgtext.
    v_mtp = E_MSG_1[v_mno]-msgtyp.
    If Msg Type is E *** **** It Has To Be E ****
    IF ( v_mtp = 'E' and v_msg = 'Account no AC02 does not exist EXIT = X').
    logtext(0,'Passed').
    ELSE.
    log(v_mtp).
    log(v_msg).
    logtext(1,'Failed').
    ENDIF.
    End Of The Condition For Message Type E ******

    I have recording messages using the TCD command.
    My script (very simple):
    MESSAGE ( MSG_2 ).
    TCD ( ME21 , ME21_1 , R3 ).
    ENDMESSAGE ( E_MSG_2 ).
    In the MESSAGE command interface, I defined rules to allow several kind of messages.
    Execution: 3 mesages found:
          * transform PR into PO
           MESSAGE     MSG_2 [1,009 sec]
             RULES  MSG_2 = XML-DATA-01
            Message  MODE  EXIT  TYPE  ID    NR
            [1]      'A'         'I'   06    456
            [2]      'A'         'W'   'ME'  080
            [3]      'A'         'E'   'ZE'  029
             TCD    ME21                 [0,545 sec N] Target sys R3 -> ZDA010A219
            S06017 Standard PO created under the number 8201075606
               Tgt System Z_A219->R3->ZDA010A219 (ZDA 010 ... HP-UX ORACLE)
               CALL TRANSACTION ME21 ME21_1 XML-DATA-01
               03 MESSAGES FROM ME21 ME21_1 XML-DATA-01
               I  06 456 Release effected with release code 00001
               W  ME  080 Delivery date: next workday is 02.05.2007
               S  06 017 Standard PO created under the number 8201075606
           ENDMESSAGE  E_MSG_2 (&TFILL = 0)
    As you can see, 3 messages are found but the &TFILL variable is still 0.
    I guess (but cannot test yet) I would manage to record those messages using SAPGUI command.
    Is there anything wrong with my script?
    My SAP_BASIS component is in version 620. I'm not using the ultimate version of eCATT (no WEBDYNPRO command, etc.). Could it be an explanation?
    Thank you in advance,
    Olivier

  • ERROR WHILE UPLOADING EXECL FILE IN SECATT

    HI
    ALL
    I HAVE DONE RECORDING BY USING SECATT AND CREATED THE TEST CONFIGURATION FOR THE PLMD_AUDIT T-CODE AND FILLED THE TEMPLATE WHICH I HAVE DOWNLOADED FROM THE SCEATT BUT WHEN I EXECUTE I AM GETTING AN ERROR
    AS
    VARIANTS THAT MATCH SELECTION CANNOT BE FOUND
    ENTERNAL PATH:C\USER\RAMA\SAPWORKDIR
    EXTERNAL FILE:VAR_ECTC_ZAUDITLIST.TXT
    CAN ANY ONE HELP ME HOW TO OVER COME THIS ERROR
    REGARDS
    RAMANUJAM

    HI
    Jayashaker
    I have given the path right but i am not able to upload the file

  • 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

  • Error in TCD recording

    Dear Folks - I am getting an error when doing a TCD recording for IW21 trxn in the "Main/Fault Damage" screen filed "Fault Code" and the next field adjacent to it. As soon as I do an F4 (or even F1) I get the following error:
    SAPHTML_E_CALL_METHOD_FAILED: 桓睯慄慴("HTML000004.htm")
    Please assist.  Thanks.
    Pat

    >
    Pat Kail wrote:
    > Dear Folks - I am getting an error when doing a TCD recording for IW21 trxn in the "Main/Fault Damage" screen filed "Fault Code" and the next field adjacent to it. As soon as I do an F4 (or even F1) I get the following error:
    >
    > SAPHTML_E_CALL_METHOD_FAILED: 桓睯慄慴("HTML000004.htm")
    >
    > Please assist.  Thanks.
    > Pat
    Hi Pat,
    Please check are you getting this error when you do the same steps in the transaction manually.
    Else,
    1) You can record using SAPGUI recording.
    2) Try to directly input the value in the field(Identify the value manually);instead of using F4 and continue 
        recording using TCD.This remains robust.
    3)Make sure you are in latest patch.
    Hope this info helps.
    Regards,
    SSN.

  • SECATT script error / old SAPoffice data found

    Hello
    We are trying to run an secatt script to create 2500+ IDs. The script is erroring out because the IDs were previously in this system so the system wants to ask if we want to use the old SAPoffice data, however the script does not knwo how to deal with that so it errors out. usually you can just delete that record from your script and run again. However in this case all 2500+ have been in the system before so there is no way to get it to run. Has anyone found a fix for this? Is there a way to only delete the old SAPoffice data for these IDs?
    Thanks in advance!

    >
    Vince Vitale wrote:
    > Thanks
    >
    > Have you successful tried this before? Also if an one of the 2500+ were not created before I am going to get the error again but for the reverse reason.
    Vince,
    Kiran is correct, this can be achieve with SECATT.
    However, I would like to add some info that might be also helpful.
    Create and run the new script (Kiran's suggestion) that will address your first issue with the following execution options:
        a. S No Termination, Continue with next Script Command
        b. I Ignore Breakspoints (Default for Collective Execution)
    This will give you a log after the completion of the script.  The errors will be the users that were not    deleted previously and will be your source file for your existing SECATT script to add users.
    Run your original script with the new source file and you should be good.
    Good Luck!

  • Error in executing eCATT GUI Script

    Hi
    I am getting following error (in bold) while executing eCATT GUI Script. This happens only for GUI Scripts and not for TCD scripts. Please help me to solve this issue.
    <b>0000000195  Test Scrpt ZGUI_SCRIPT4 Version 1 - SECATT [Without Interruption]
    R01 800 SANDEEPK1 E 620 sapnw10 Windows NT MSSQL 26.05.2006 12:42:29
    ZGUI_SCRIPT4 [0,109 sec] Version 1 ZGUI_SCRIPT4
    Tgt System TEST_ECAT->ECATT_SAPNW10_800_E->T90CLNT090 (R01 800 ALEREMOTE E 620 sapnw10
    Windows NT MSSQL)
    Error in eCATT function SAPGUI
    Destination ECATT_SAPNW10_800_E RFC error
    service 'sapgw-1' unknown / CPI-C error CM_PRODUCT_SPECIFIC_ERROR.</b>
    Thanks in Advance.
    Regards,
    Sandeep K.

    Hi Sandeep,
        My self , Sreedhar D, working eCATT using SAPGUI recording.
        i think ur problem is resolved. Can u help for the below issue.
          Scenario:       
           And i working on testing server which does not have any trasaction, i have to record the transaction using RFC connection to different machine.
           I did all the that process and able to connect  remote machine.
          i started doing the recoding in SAPGUI after creation of sys. Data container by specifying RFC connection.
            I recorded the script, but when i try to execute the same this attached error r coming.
           But i recorded the same using TCD(Recorded) using remote connection and able to sucessfully execute.
           One more thing also, we used write the script for reading the test data from Excel and pass as parameters using TCD(Recording).
    Below is the error
         Target sys ECATT_SAPTD120_400_E_0002
         Destination ECATT_SAPTD120_400_E_0002 RFC Error
          Waiting for ur response. Thanks in Adavance.
    Sreedhar d

  • BestPractices Error - Set Decimal Notation and Date Format

    Hello everyone,
    first of all, I don't know, if this is the right forum for my question, but I hope so
    We're trying to implement the Best Practices Scenarios to a new SAP ERP System.
    We did the steps of the following url, where everything worked fine: http://help.sap.com/bp_dm603/DM_DE/html/index_DE.htm
    Then we integrated Best Practices 603V8 via Solution Builder (TA: /n/SMB/BBI). But now, when we switch to Implementation Assistant and try to activate Scenario DE_109 --> 100(DE) --> Folder USERSETTINGS, we receive the following error in report /SMB99/SU3_O009_B32: Set Decimal Notation and Date Format.
    So we called transaction SU3 and changed Decimal Notation and Date Format, but the error still exists.
    Anybody knows what to do?
    Thanks for your help!
    Best regards
    Patrick
    PS: We executed Testscript /SMB99/SU3_C009_B32 via TA SECATT and there is the error:
    TCD SU3 0,292 sec N Maintain Users Own Data

    Hi,
    Follow below link to verify whatever you have done is correct:
    http://help.sap.com/bp_bblibrary/600/Documentation/B32_BB_ConfigGuide_EN_MX.doc.
    Thanks
    Sunny

  • I am getting errors in ECATT

    Hi,
    I have prepared a Test case through SECATT transaction.  I am able upload the record into SAP through eCATT.  But I need to give the values for each and every record.  If I'll not give any value for a non mondatory field also, it is giving me the error message.
    Could anybody help me regarding this.
    Thanks,
    bsv.

    Hi bbsv,
    Extended Computer Aided Test Tool (eCATT) to create and execute functional tests for software. The primary aim is the automatic testing of SAP business processes. Each test generates a detailed log that documents the test process and results.
    Features
    You can:
    · Test transactions and reports
    · Call BAPIs and function modules
    · Test remote systems
    · Check authorizations (user profiles)
    · Test database updates
    · Test the effects of changes to customizing tables
    · Test the effect of changes to customizing settings
    · Check system messages
    Constraints
    eCATT runs in a system based on SAP Web Application Server 6.20 or higher. However, you can use this system to test systems with Release 4.6C or higher.
    check these link,
    eCATT- An Introduction
    /people/sumeet.kaul/blog/2005/07/26/ecatt-an-introduction
    Creating Test Scripts
    /people/sumeet.kaul/blog/2005/08/10/ecatt-creating-test-scripts
    eCATT Logs
    /people/sapna.modi/blog/2006/04/18/ecatt-logs-part-vi
    eCATT Scripts Creation – TCD Mode
    /people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation-150-tcd-mode-part-ii
    Creation of Test Data Container
    /people/sumeet.kaul/blog/2005/08/24/ecatt-creation-of-test-data-container
    eCATT Scripts Creation - SAPGUI Mode
    /people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation--sapgui-mode-part-iii
    Integrating ECATT & MERCURY QTP Part -1
    /people/community.user/blog/2007/01/02/integrating-ecatt-mercury-qtp-part-1
    Using eCatt to Test Web Dynpro ABAP
    /people/thomas.jung/blog/2006/03/21/using-ecatt-to-test-web-dynpro-abap
    and
    -command reference
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/3c333b40389c46e10000000a114084/content.htm
    /people/sapna.modi/blog/2006/04/10/ecatt--an-introduction-part-i
    http://prasadbabu.blogspot.com
    https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=test_tool_integration_for_sap_e-catt.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/1b/e81c3b84e65e7be10000000a11402f/frameset.htm
    http://www.erpgenie.com/ecatt/index.htm
    kindly reward if found helpful.
    cheers,
    Hema.

  • Error During ECATT test script creation

    Hi,
    I am creating test script using SECATT t.cde. I select traget system and click on Pattern Button and provide input as follow.
    Group : UI Control
    Command : TCD (Record)
    Transaction : MM02
    When I click continue button, I am getting error "Transaction MM02 could not be found in Target System".
    I had check my RFC Configuration, its working properly.
    Please help me to solve this issue.
    Regards,
    Nisit

    Not sure what exactly you're asking, but here is a "how-to" article on eCATT creation:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50bec015-14f1-2910-6080-9874b3499052

  • Ecatt error during IP04 run

    Dear All,
    I am finding one error in running the Esecatt
    I have created template for creating Maintenance item for t code Ip04 ,By Secatt
    I have created template as per std procedure in secatt
    Like first creation of test script then creating test configuration
    after creating the template we have entered the data
    Now following error is giving while creating the secatt
    Error in ecatt command TCD IP04
    EIP328 Enter an order type
    but we have already entered the order type as GPM (Generated prevetivte maint order type)
    what could be the reason
    Regards
    chand

    Dear all
    It was an Data error
    thanks
    chand

Maybe you are looking for