ECATT Doubts

>> I have query regarding the SAPGUI recording pattern of eCATT. I could trap the messages of type 'E' ie. error and made my script to run in success mode.
But here if any message type other than 'E'(Error) occurs then SAPGUI recording will fail to handle this.
Specially when the info message or Warning message comes on enter key of any screen, which should ideally take to next screen as expected by recording, the script fails due to info or warning message. This won't be trapped also as one can specify only ONE message type in <Command Interface>. So how to overcome such situation.
>> There are optional screens which don't come in normal execution but are recorded only due to possible scenarios. Is there is any way of making the SAPGUI recording screens optional to make the execution flow independent of any fixed scenarios.
>> Again, is it possible to speed up the SAPGUI by changing the default time which the system takes, while running SAPGUI recording, for each step. (eg. enter key is automatically pressed after the customer number on screen, then next screen and so on. The time taken for pressing the enter key is default by system)
SAPGUI Patch level 44
Release 6.20
Thanks & Regards.

Hello
Is your problem solved ?
My view on your queries is
1. RE the message trap :-
   I could able to trap messages of type w-warning and S-success. all you need to parameterise it.
2. Regarding the screen mismatch:-
  Certain screen mismatches could be overcome by using the RESCON Cmd.
  Certain screen mismactches that happens due to scenario could be overcome by recordin al possible scenarios and use if else condition to call that corresponding recorded script by REF cmd.
Thanks
Tharani

Similar Messages

  • Ecatt: how to test the creation of a purchase requisistion (ME51N)

    Hello ecatt-experts,
    I have some questions concerning the creation of a purchase requisition with ecatt:
    - is it possible to use TCD recording instead of sapgui recording for ME51N ?
    (as far as I've seen it's not possible with TCD as I didn't get back the field-values)
    - Is it possible to record the creation of a PR with 1 item and to write a script which can be used for the creation of a PR with n items ?
    For this I would need to cread GUIElement- Parameters dynamically.
    Or is the only solution to this problem to register a sapgui with n items and to define n parameters ?
    regards,
    monika

    HI Monika,
    It is difficult to use TCD for creating a Purchase Requisition (I am not telling you that it is impossible, you can do it, but its really hard to manipulate screen elements and to pass values to them).
    One thumb rule is to use SAPGUI for all Enjoy transactions(ME21N, ME51N, MIGO....)
    Answer to your second question is YES. You can use the single recording for N number of items without creating multiple parameters.
    You have to create a parameter with the parameter reference as the table/structure mentioned in the transaction grid(Press F1 on the TA screen and then go to technical help and copy the table/structure name and paste it in the parameter reference area of the eCATT parameter ending with [] like <b><I_MARA>  <Description> <MARA[]></b> ).
    Then create another local parameter of type numeric(may be V_COUNT )
    In the eCATT, use a GETLENGTH (I_MARA, V_COUNT).
    Then loop the grid values like
    DO (V_COUNT).
    SAPGUI RECORDING <b>ONLY</b> FOR THE ITEMS..
    Here map the values with the values of the St. Parameter
    like I_MARA[&LPC]-MATNR.
    ENDDO.
    This way, you can pass multiple values to the grid to the parameter I_MARA in the runtime and also use a single line recording for passing multiple values.
    This thread might help you in a way.
    Re: Secatt doubt
    Hope the solution helps.
    Best regards,
    Harsha
    PS: Reward points accordingly for all responding.

  • Ecatt

    Moved to correct forum by moderator.  Please use a meaningful subject in future.
    Dear all,
    I am doing Ecatt through SAP GUI Recording.  Transaction is customized . I selected one value process to the transaction in first screen. At end of this recording we will get Sales order number. but here we are not giving any inputs values but we will get output. After finishing this recording again, how can i check it. Because no inputs values here.
    Edited by: Matt on Nov 7, 2008 8:17 AM

    Hi,
    Check this link fully.
    Re: Doubts in ECATT
    ECATT Tutorial
    http://help.sap.com/saphelp_nw04/helpdata/en/20/e81c3b84e65e7be10000000a11402f/frameset.htm
    Kindly reward points by clicking the star on the left of reply,if you find this as useful.

  • ECATT and RFC

    Hi All,
    I'm very interested in the creation and execution of ECATT scripts from outside of SAP by the use of RFCs or similar means.  I have been scouting the repository and the SDN forums and have come across the RFM ECATT_EXECUTE which may a way of executing a stored ECATT script.  Is there any way to create/edit these scripts via some other function module?  The SETRM function group seems to hold a lot of RFCs that look promising but I was hoping someone could confirm whether I'm on the right track or not.  Any other information or pointers in the right direction would be greatly appreciated.
    Thanks,
    Tim.

    Hello Timothy
    I have been using eCATT for quite some time yet I have not yet tried to start them externally. However, looking at the interface of function module <b>ECATT_EXECUTE</b> I would confirm that this is indeed the function module to start eCATT scripts via RFC.
    The function modules of function group <b>SETRM</b> may lead you into a wrong direction because I believe that these function modules are only used if you record or execute an eCATT script on a remote system using the logical systems of a system container.
    While I do see the reasons for executing eCATT scripts from outside (for example integration with testing tools like those from Mercury/HP) I doubt whether it makes sense to create eCATT scripts from outside as well.
    Regards
      Uwe

  • Document eCATTs

    Who have you document eCATTs ?
    please, send to me.
    Thanh you very much!

    document on ecatt with a sample code
    In this article first I will introduce some of the basic concepts regarding eCATT[14]  and then we will see how to develop a test script to upload a test data file with a practical example.
    So in precise in this article you will see what eCATT is, how we can use it; how we can load a test data from a file in 4.7X and it end with an example.
    After reading this article you will have a clear idea about eCATT tool. And you will be able to write a test script in which test data can be loaded from a file.
    This article is divided into following sections,
    What is eCATT?
    How to load test data from a file in 4.7X with an example?
    What is eCATT?
    eCATT stands for extended Computer Aided Test Tool (eCATT) which is built is testing tool to test SAP system. By using testing tool we can test the entire business process, and we can also use this tool with a third party testing tool (I am not covering this topic). Execution of every test script ends with a log, which explains the results of the test script.
    By using eCATT we can do following operations,
    ·        Test transactions, reports, and scenarios
    ·        Call BAPIs and function modules
    ·        Test remote systems
    ·        Check authorizations (user profiles)
    ·        Test updates (database, applications, GUI)
    ·        Test the effect of changes to customizing settings
    ·        Check system messages
    For more information go to: eCATT::Extended Computer Aided Test Tool (sdn.com)
    Here I am discussing fundamentals about eCATT in detail. You can find very good documentation in sdn.com.
    To develop a test script in eCATT we need to follow the following steps,
    1. Creating Test Scripts.
    2. Creating Test Data Containers[16] .
    3. Understanding System Data Containers[17] .
    4. Executing Test Configurations.
    There is a very good web blog on eCATT in sdn.com which explains eCATT with necessary screen shots. To read document click here Blog on eCATT in sdn.com
    Loading test data from a file in 4.7X with example:
    We can load test data from file using the ABAP…ENDABAP statements in eCATT.
    In this article I have given an example on transaction code MM01 with sample code.
    To upload the test data file follow the steps given,
    Record the transaction
    Open eCATT tool. This can be done using ‘SECATT’ tcode.
    Give the script name and version number example ‘ZTS_MM01’.
    Version number can be used to maintain different program constructs under same program name. And choose create  button.
    Give description and component name as ‘BC-TWB-TST-ECA’.
    Select editor tab panel. Then click on ‘pattern’    button. Or go to Edit->Pattern or Press Ctrl+F6. This opens a ‘insert statement’ dialog box.
    In that command dropdown box choose TDC (Record) option. Then press enter.
    Enter the transaction name as ‘mm01’ then MM01_1 interface automatically created. Then press enter.
    Then ‘Create Material: Initial screen’ will appear. Enter the necessary fields.
    And be careful while recording, if not recording may fail. Note that while recording no error messages should pop up. If they happen restart the recording process. Here in this example I have considered a simple recording process. You can do any complex recording. If you have any doubts do feel free to mail me. I will reply to you.
    After completing the recording process recording ended dialog will appear.
    Choose ‘Yes’.
    Then a TCD statement will appear in the editor area.
    With this we have finished recording
    Now let us see the variable declaration, assignment and programming part.
    After developing as number of scripts I found one simple method to develop these test scripts. If you feel comfortable with this method you can also use it.
    First note down the all screen fields in which you are entering values during recording process. Then create local variables in eCATT with the same name as the screen field technical name. (This method makes assignment easier).
    Example:
    In MM01 (material master) I have entered values for material, industry sector and material type. And their respective technical screen field values are,
    RMMG1-MATNR
    RMMG1-MBRSH
    RMMG1-MTART
    To find out technical value of the screen field select the field press F1, then clicks on technical information button.
    And now create the local variable as
    V_MATNR,
    V_MBRSH,
    V_MTART,
    To create local variables first click  button, and then to create new variable click  button. And enter the variable name as (V_MATNR), Visibility of parameter as ‘V’ and finally parameter reference (name of the actual parameter). After declaring all the parameter it will look like this,
    After declaring the local variables we need to assign them to screen field values.
    To do that again press  or double click on MM01_1 in TCD (MM01, MM01_1) statement. This will take you to the command interface which look like,
    To assign the screen field values double click on the ‘FIELD’.
    Then replace the screen VALIN[112]  values with the local variable names. After changing the values the interface look like this,
    Repeat the above step with all the screen field values. With this we have finished the process of declaring and assigning variables.
    Now we will see how to program and run the script successfully.
    To write the program we need to follow two steps. They are,
    Get the number (count) of records in file.
    Loop through count number of times and load the data from the file pass to TCD through local variables of eCATT.
    Let us see how to handle the things,
    By using ABAP…ENDABAP statements we can do that.
    Before we start writing the program we need to declare some local variables (to run he example program given) which help us to store values between two ABAP blocks.
    Because in eCATT each ABAP…ENDABAP block creates different internal function module with different contexts. So we need to declare some intermediate variables they are,
    COUNT[113] : Holds the number of records.
    FILE_V[114] : Holds file path of the test data file.
    INT_LOC[115] : Index to read next from the file.
    I am giving sample code to get the number of records from file in eCATT. Use this code and try for MM01 for Basic view. It will work fine.
    This is very simple ABAP code. For understanding purpose necessary comments are provided.
    Step 1:
    First ABAP…ENDABAP block, to get the number of records from the file and store the value in the COUNT local variable.
    ABAP BLOCK TO GET THE NUMBER OF TEST CASES
    ABAP.[116]
    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_MARA [117] OCCURS 0,
             V_MATNR LIKE RMMG1-MATNR, " Material Number
             V_MBRSH LIKE RMMG1-MBRSH, " Industry Sector
             V_MTART LIKE RMMG1-MTART, " Material Type
    *        Basic View
             V_MAKTX LIKE MAKT-MAKTX, " Material Description
             V_MEINS LIKE MARA-MEINS, " Basic Unit of Measure
           END OF I_MARA.
    * TO OPEN FILE DIALOG FOR TEST DATA FILE
    CALL FUNCTION 'F4_FILENAME[118] '
      EXPORTING
        PROGRAM_NAME  = SYST-CPROG
        DYNPRO_NUMBER = SYST-DYNNR
        FIELD_NAME    = 'FILE'
      IMPORTING
        FILE_NAME     = FILE_V-PATH.
    FILE = FILE_V-PATH.
    * LOADING DATA FROM THE FILE
    CALL FUNCTION 'GUI_UPLOAD[119] '
      EXPORTING
        FILENAME            = FILE
        HAS_FIELD_SEPARATOR = 'X'
      TABLES
        DATA_TAB            = I_MARA.
    * GETTING NUMBER OF RECORDS IN THE TABLE
    DESCRIBE TABLE  I_MARA LINES TOT.
    * STORING NUMBER OF RECORDS IN LOCAL VARIABLE
    COUNT = TOT.[120]
    * CLEARING INTERNAL TABLE
    CLEAR I_MARA.
    ENDABAP.
    Step 2:
    Looping through the records count number of times and reading from the internal table and passing them to the screen field values.
    This sample code explains how to read, and pass values to the screen.
    LOOPING THROUGH (COUNT) NUMBER OF RECORDS
    DO (COUNT[121] ).
    ABAP.
    V_READINDX : holds index number to read the internal table
    FILE: holds file path of test file
    DATA : V_READINDX TYPE I,
           FILE TYPE STRING,
           INDX TYPE I VALUE 0.
    * ITAB TO HOLD TEST DATA FROM FILE
    DATA : BEGIN OF I_MARA OCCURS 0,
             V_MATNR LIKE RMMG1-MATNR, " Material Number
             V_MBRSH LIKE RMMG1-MBRSH, " Industry Sector
             V_MTART LIKE RMMG1-MTART, " Material Type
             V_MAKTX LIKE MAKT-MAKTX, " Material Description
             V_MEINS LIKE MARA-MEINS, " Basic Unit of Measure
           END OF I_MARA.
    * WORKAREA TO HOLD THE I_MARA DATA
    DATA : WA LIKE I_MARA.
    FILE = FILE_V-PATH.
    * LOADING MASTER DATA FROM THE FILE
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME            = FILE
        HAS_FIELD_SEPARATOR = 'X'
      TABLES
        DATA_TAB            = I_MARA.
    * INT_LOC : is a local variable hold the current index to read I_MARA
      V_READINDX = INT_LOC.
    *  READING I_MARA UGING ITS INDEX
      READ TABLE I_MARA INDEX V_READINDX INTO WA.
    * assigning work area values to the screen field values
             V_MATNR = WA-V_MATNR. " Material Number
             V_MBRSH = WA-V_MBRSH. " Industry Sector
             V_MTART = WA-V_MTART. " Material Type
             V_MAKTX = WA-V_MAKTX. " Material Description
             V_MEINS = WA-V_MEINS. " Basic Unit of Measure
    ENDABAP.
    * TCD Transaction /////////////////////
    TCD ( MM01 , MM01_1 ).[122]
    * move index position by one
      INT_LOC = INT_LOC + 1.
    ENDDO.
    With this we have finished programming. Finally we need to prepare the test data file and execute the program either in Foreground or Background mode.
    Please note that data in test file should resemble the order of the elements in the internal table. Other wise it won’t work.
    To execute the given test script, follow the steps, copy the code given and declare the necessary variables.
    here are some links
    http://www.sapdevelopment.co.uk/testing/ecatt.htm
    http://www.sapdevelopment.co.uk/testing/ecatt_qas.pdf
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 22, 2008 3:00 PM

  • Doubt in fbl1n transaction

    hi i have a doubt....
    in fbl1n transaction, there are open items and cleared items.
    in it the cleared items  for certain document types such as invoice etc is not present in the open item table (bsik)
    however the cleared items for document types such as general  voucher its present in the open items table (bsik)
    is this possible as all cleared item entries shld b present in the open item table with an indicator set for cleared or not...
    plz exlain!

    Hi
    There are 2 tables(open and Closed Items)  in FI for Account Payables and Account Receivables and GL accounts
    1.Account payables: BSIK is Open Items and BSAK is Closed items
    2.Account Receivables; BSID and BSAD for OPEN and closed items
    3/GL accounts :  BSIS and BSAS  for Open and Closed Items
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to load Test data from a Text file in ECATT

    Hi,
    I have created a test configuration with a test script, system data container, and test data container.
    I have done the recording of a transaction and created the script. Parameterization is done for the script and have imported those parameters from script in to the data container.
    I am trying to load a the data from a text file on the local work-station. The data is not being read.
    Please explain this in detail (step by step) as I am very new to ECATT.
    I am trying this on SAP ECC 6.0 IDES server.
    Thanks in Advance
    Vikas Patil

    Please explain this in detail (step by step) as I am very new to ECATT.
    Thanks in Advance
    Vikas Patil

  • Doubt in creation of a new object

    Hi All,
                 I have one doubt in creation of a new object.If a new object is to be created and it is not a subtype
    of any existing object, then what should we enter in the Program field for creating the object?
    I hope I am clear with my question.
    Thanks in Advance,
    Saket.

    Hi Saket,
    Following will be required for created a custom business object.
    1. Object Type - ZTEST (Internal Techincal Key)
    2. Object Name - ZTESTNAME (Technical Key Name)
    3. Name - TEST (Name of BO, it is used while selecting the object type)
    4. Description - (Short Description of BO)
    5. Program - ZTESTPROGRAM (ABAP program in which the methods of the object type are implemented)
    6. Application - A or B.. etc (Area to which your BO is related)
    Please remember that you can learn these basic things by giving F1 help on those fields and in HELP.SAP.COM.
    Regards,
    Gautham Paspala

  • Doubt in sender mail adapter

    Hi Everyone,
    Can we read and validate the attachment of the mail.If so how to do it.
    Thanks in advance,
    Sakthi

    Hi Sakthi,
       Please refere the below links:
      http://help.sap.com/saphelp_nw2004s/helpdata/en/ad/bf93409c663228e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/0d/52b240ac052817e10000000a1550b0/frameset.htm
    Let me know if you have any doubts regarding this.
    Thanks,
    sekhar.

  • Unable to capture screen fields in eCATT

    Problem description 1 : Unable to capture screen fields in eCATT
    Recording using SAP GUI Method.
    Problem description 2 :Unable to capture Tab controls while recording
    in eCATT using SAP GUI Method.
    Thaks for any suggestion you could provide me and once again for your courtesy attention.
    Regards,
    Eric Monteiro

    Hi Phani,
    Please try below code:
    *data declaration for reading values given by user in the selection screen field.
      DATA: BEGIN OF i_tab OCCURS 0.
              INCLUDE STRUCTURE rsselread.
      DATA: END OF i_tab.
      MOVE: 'LOGSYS' TO i_tab-name,
            'P' TO i_tab-kind. u201CP For parameter
      APPEND i_tab.
      MOVE: 'GP_SIMVE' TO i_tab-name,
            'P' TO i_tab-kind. u201CCheck if field is Parameter
      APPEND i_tab.
    *move program name and screen number into local variable.
      l_prog = sy-repid. u201C(Try by directly passing program name also)
      l_dynnr = sy-dynnr. u201C(Try by directly passing Screen number also)
    *calling function module to get the value given by user.
      CALL FUNCTION 'RS_SELECTIONSCREEN_READ'
        EXPORTING
          program     = l_prog
          dynnr       = l_dynnr
        TABLES
          fieldvalues = i_tab.
    Hope this should slove your issue.
    Thanks & Regards,
    Gaurav.

  • RFC connection error in recording eCATT from Solman

    Hello,
    I am trying to record eCATT from Solution Manager into our DEV box. I have set-up the RFC connection and tested them.
    When trying to recording I got the following message:
    "RFC error ThControl: illegal sap_dext call !!!/ connection"
    Any suggestion?
    Thank you.

    Hi
    Did you ever find any solution for this, as I am receiving same error even though seems that all settings are in place?
    Thanks!

  • PI' RFC  Connection pool  doubt.

    Hi PI exports:
    i have a doubt about  pi' RFC  Connection pool ,pi RFC receive channel can set the conn pool size ,but when start the rfc receiver channel ,is there always only one Connection  pool ,or there is only one Connection  pool  instance?
      thinks
    Edited by: kevin liang on Oct 19, 2009 6:45 AM

    Hi,
      Connection poolins size means how many number of connection you want to make open to send data to ECC, We can define maximum number of connection in Receiver RFC Adapter,Go to additional parameters section and define Max Number of connection give the number there,thats it.Internally it works as Connection poolin mechanism.
    Regards,
    Raj

  • ECATT abends during recording when lead selection is set to 0 on web dynpro

    We have a web dynpro application that works ok when running by itself.   When we tried to record ECATT testing on it, it abended after we click on a selection from a list of values.    The error on the browser indicated an error on the "lead select".   After reviewing the dump, we found that it abends on an exception when the lead selection on the ALV is not set.   When we changed our code to set the lead selection to 1, the ECATT recording worked.
    We have a requirement to set the lead selection of ALV to 0 so we need to change back our code.   We just did the setting to 1 just to get ECATT recording to work for now.    Does anybody know why ECATT requires this?   Is there a support packs that fixes this?
    Here is a snippet from ST22 for more details on this:
    Runtime Errors         UNCAUGHT_EXCEPTION
    Exception              CX_WD_CONTEXT
    Date and Time          2007/02/07 14:50:06
    Short text
    An exception occurred that was not caught.
    What happened?
    The exception 'CX_WD_CONTEXT' was raised, but it was not caught anywhere along
    the call hierarchy.
    Since exceptions represent error situations and this error was not
    adequately responded to, the running ABAP program
    'CL_WDR_CONTEXT_NODE===========CP' has to be
    terminated.
    What can you do?
    Note down which actions and inputs caused the error.
    To process the problem further, contact you SAP system
    administrator.
    Using Transaction ST22 for ABAP Dump Analysis, you can look
    at and manage termination messages, and you can also
    keep them for a long time.
    Error analysis
    An exception occurred which is explained in detail below.
    The exception, which is assigned to class 'CX_WD_CONTEXT', was not caught and
    therefore caused a runtime error.
    The reason for the exception is:
    The lead selection has not been set. VIEW_TABLE
    How to correct the error
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "UNCAUGHT_EXCEPTION" "CX_WD_CONTEXT"
    "CL_WDR_CONTEXT_NODE===========CP" or "CL_WDR_CONTEXT_NODE===========CM00V"
    "_RAISE_ELEMENT_NOT_FOUND"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
    To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
    Display the system log by calling transaction SM21.
    Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
    In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    System environment
    SAP-Release 700
    Application server... "torsapd01"
    Network address...... "10.2.75.183"
    Operating system..... "Windows NT"
    Release.............. "5.2"
    Hardware type........ "4x AMD64 Level"
    Character length.... 8 Bits
    Pointer length....... 64 Bits
    Work process number.. 0
    Shortdump setting.... "full"
    Database server... "TORSAPD01"
    Database type..... "MSSQL"
    Database name..... "PR3"
    Database user ID.. "dbo"
    Char.set.... "English_United State"
    SAP kernel....... 700
    created (date)... "Aug 28 2006 22:20:27"
    create on........ "NT 5.2 3790 Service Pack 1 x86 MS VC++ 14.00"
    Database version. "SQL_Server_8.00 "
    Patch level. 75
    Patch text.. " "
    Database............. "MSSQL 7.00.699 or higher, MSSQL 8.00.194"
    SAP database version. 700
    Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2"
    Memory consumption
    Roll.... 16128
    EM...... 16759616
    Heap.... 0
    Page.... 0
    MM Used. 12713776
    MM Free. 4042608
    User and Transaction
    Client.............. 200
    User................ "SIC0010"
    Language Key........ "E"
    Transaction......... " "
    Program............. "CL_WDR_CONTEXT_NODE===========CP"
    Screen.............. "SAPMHTTP 0010"
    Screen Line......... 2
    Information on Caller ofr "HTTP" Connection:
    Plug-in Type.......... "HTTP"
    Caller IP............. "10.49.77.47"
    Caller Port........... 8000
    Universal Resource Id. "/sap/bc/webdynpro/sap/zpr3_base_price/"
    Information on where terminated
    Termination occurred in the ABAP program "CL_WDR_CONTEXT_NODE===========CP" -
    in "_RAISE_ELEMENT_NOT_FOUND".
    The main program was "SAPMHTTP ".
    In the source code you have the termination point in line 11
    of the (Include) program "CL_WDR_CONTEXT_NODE===========CM00V".
    Source Code Extract
    Line
    SourceCde
    1
    method RAISEELEMENT_NOT_FOUND.
    2
    data: l_count type I,
    3
    l_node_name type string.
    4
    5
    l_node_name = if_wd_context_node~get_path( ).
    6
    7
    l_count = if_wd_context_node~get_element_count( ).
    8
    if l_count = 0.
    9
    raise exception type cx_wd_context exporting textid = cx_wd_context=>NODE_EMPTY node_nam
    10
    elseif element_index = if_wd_context_node=>use_lead_selection.
    >>>>>
    raise exception type cx_wd_context exporting textid = cx_wd_context=>NO_LEAD_SELECTION n
    12
    else.
    13
    raise exception type cx_wd_context exporting textid = cx_wd_context=>ELEMENT_NOT_FOUND n
    14
    endif.
    15
    endmethod.
    Contents of system fields
    Name
    Val.
    SY-SUBRC
    0
    SY-INDEX
    1
    SY-TABIX
    0
    SY-DBCNT
    2
    SY-FDPOS
    0
    SY-LSIND
    0
    SY-PAGNO
    0
    SY-LINNO
    1
    SY-COLNO
    1
    SY-PFKEY
    SY-UCOMM
    SY-TITLE
    HTTP Control
    SY-MSGTY
    E
    SY-MSGID
    TD
    SY-MSGNO
    600
    SY-MSGV1
    000003587101
    SY-MSGV2
    0001
    SY-MSGV3
    EN
    SY-MSGV4
    SY-MODNO
    0
    SY-DATUM
    20070207
    SY-UZEIT
    145005
    SY-XPROG
    SAPCNVE
    SY-XFORM
    CONVERSION_EXIT

    Hi Eugene,
    i suggest you raise an SMP ticket for these.
    Looks like a bug at first glance.
    regards
    Phil

  • Small Doubt Regarding SY-MANDT

    Hi All,
         SELECT changenr FROM cdhdr CLIENT SPECIFIED INTO CORRESPONDING FIELDS OF TABLE it_cdhdr
                                             WHERE mandant = syst-mandt
                                             AND   objectclas = 'MATERIAL'
                                             AND   objectid   = wa_matl-matnr
                                             AND   tcode      = 'MM02'.
         I have written the select stament as shown above.
         In this i have a doubt like adding a field sy-mandt  in the where condition will increase the Efficiency of program or not.
    regards,
    raghu.

    Hi..
    No doubt the efficency would be affected but from business point of view there will many  things that need to be checked as in:
    If you are viewing data from CDHDR and CDPOS which is client specific then you are not viewing complete data.
    These tables give us and document changes made to a particular object in SAP but if anything is cross client like company code(lets assume) then changes to it wont be visible in all the clients..
    so there can be some key information you can miss out while working on some of the objects.
    else in this case its good to make query cross client.
    regards
    vishal

  • Doubts with control break statements on internal table loops (AT/ENDAT)

    Hi, i've had a couple of doubts for a long while which I hope someone can clarify today:
    1) I know how to use the AT statements, however, i'm not sure I get correctly what this part of help regarding this commands means:
    <i>"The control level structure with internal tables is static. It corresponds exactly to the sequence of columns in the internal table (from left to right). In this context, the criteria according to which you sort the internal table are unimportant."</i>
    I've always sorted the internal table before the control break and it works that way. For example:
    SORT ITAB BY EBELN EBELP.
    LOOP AT ITAB.
      AT NEW EBELN.
    *   Code for the order header
      ENDAT.
    ENDLOOP.
    If I <b>don't</b> sort the internal table, it doesn't work! (i get dupplicated processing). In the example, if i have more than one register with the same EBELN and they're not consecutive, the header gets processed twice. I really don't get that part of the help text.
    2) I know this: <i>"At the start of a new control level (i.e. immediately after AT), the following occurs in the output area of the current LOOP statement:
    All character type fields (on the right) are filled with "*" after the current control level key.
    All other fields (on the right) are set to their initial values after the current control level key."</i>
    My doubt is: WHY is that this way? Because sometimes (most times) I need those fields INSIDE the statement! So when that happened i've solved it in one of three ways:
    LOOP AT ITAB INTO WA_ITAB.
      WA_ITAB_AUX = WA_ITAB.
      AT NEW FIELD.
        WA_ITAB = WA_ITAB_AUX.
    *   ...Rest of the code for the first register
      ENDAT.
    ENDLOOP.
    LOOP AT ITAB INTO WA_ITAB.
      AT NEW FIELD.
        READ TABLE ITAB INDEX SY-TABIX INTO WA_ITAB.
    *   ...Rest of the code for the first register
      ENDAT.
    ENDLOOP.
    * (Without AT)
    LOOP AT ITAB INTO WA_ITAB.
      IF WA_ITAB-FIELD <> FIELD_AUX.
        FIELD_AUX = WA_ITAB_FIELD.
    *   ...Rest of the code for the first register
      ENDIF.
    ENDLOOP.
    Is there any problem with this way of coding? Can be done better?
    Thank you very much in advance.

    Hi..,
    1)
    See if u sort the table on a field on which u r using AT ENDAT .. then all the records which are having the same value for that field will form a group or those reocrds will be at one place.. so when u sort the table for all the records  AT ENDAT  will get executed onli once..
    If u dont sort this table on this field then all these records will be at different places and in between there may be records with different value for this field.. so this AT ENDAT will get executed for each record !!
    2)
    No u cannot use the Right hand fields of the field in the table .. Because these AT events work as Group based operations... So till that field on which AT ENDAT is working it breaks that record into two groups.. One is the left hand fields including that field.. and right hand fields as another group.. and makes the right hand group as stars ****.  Thats y u can observe that even any one field in the left hand group changes the AT ENDAT will get executed  !!!!
    Hope u understood !!!
    regards,
    sai ramesh

Maybe you are looking for

  • ISE Best Practice for Purging Endpoints

    Maybe I haven't looked long enough or deep enough through the documents and guides, but I am wondering if there is a best practice for purging endpoints in general. For my guest endpoints, I have it set to purge those endpoints every 3 days. When i l

  • Accelerators in JPopupMenu

    it is possible to add key-accelerators in the menuitems, these items get printed inside the menuitem (e.g. "Alt+2"). they work in a menubar, but they don't work in a popupmenu. why? i need accelerators from a popupmenu!

  • SMSY t.code in Solution Manager 3.2

    I want the steps for using SMSY t.code. In detail i want to configure the SLD using SMSY. URGENT Satinder Lamba

  • ICal will not let me import backed up "icbu" Data

    I recently downgraded from iCal Beta as I was unhappy with the push function between my iPad and what was updated via a web browser. In the process, I made a back up for the iCal as icbu file (following file-export-export). After downgrading it to no

  • Create Web Form data records in Oracle CRM OnDemand

    Hello, One of our customers has a requirement to capture leads through a Web based HTML form. This captured data (First Name, Last Name, email Id) should then create a corresponding Opportunity record in Oracle's CRM OnDemand. From what I know, CRM O