ECATT 620 using structure variable in test script

Hi All,
I hope is threre anyone to help me in my problem.
I use SAPGUI(Record) to record entries in Transaction ME21N to create Purchase Order. I use the SECATT transaction. I create complete recording for all ALV GRID rows. and i create a structure varible of type MEPO1211 for material data for each row.
i put the data on the structure variable but when i user that varible as a parameter ref. it show me error that <structure name>-<field name> do not exist.
How is posible to load data using structure.  and how i create varients for the structure variables.

OK.... some progress to report.
I was setting memberName onmouseover-- which is also the
trigger for the tooltip-- thusly:
<p><em onmouseover="memberName='John Doe'"
id="trigger">John Doe</em></p>
It seems that the variable is being set, but too late, as the
trigger has already caused the div... id="tooltip"> to be
evaluated with "memberName" not equal to any of the names in the
dataset. I tried using a function call to set "memberName" and
tried putting the onmouseover in the <p> tag and leaving the
trigger id in the <em> tag. but neither of those appear to
change the outcome. "memberName" still appears to be set to the
value I initialized it to up the the <head> section at the
time the tooltip <div> is evaluated. Although it is set
correctly if I check it's value using Firebug after I have
mouse-overed it.
Incidentally, using a Firebug breakpoint just before the
<div spry:when...> and checking the value of memberName was
how I discovered that "memberName" still seemed to have a value of
"initialized" which is what I set it to up in the <head>
section.
Having written all of this, I am wondering though, shouldn't
the value of "memberName" be equal to "John Doe" the second time I
mouseover it? Or, if there are more than one trigger "names" on the
page, shouldn't "memberName" be equal to the name of the previous
trigger that I moused-over? And with memberName having a legitimate
value at that point, shouldn't the tooltip now show the correct
display information rather than just that little few pixel square
box that I am getting when I mouse-over the trigger name?
Clearly there is something that I just am not understanding.
Janet

Similar Messages

  • Using c++ variable in apple script

    Hi all,
    I am just calling the apple script from my indesign plugin.
    I need to pass the c++ variable to apple script for opening a file
    This in my apple Script which i have embedded in c++ code
    tell application "TextEdit"
    activate
    open "Users:User1:Library:Preferences:Adobe Indesign:Version 5.0:MathEQ.txt"
    end tell
    The filepath "Users:User1:Library:Preferences:Adobe Indesign:Version 5.0:MathEQ.txt" is stored in the C++ variable char* textFileName.
    I need to use the variable textFileName in apple script which has the path.
    How to go about it?
    Thanks
    Sakthi

    I have a similar problem trying to get data from any field into an AppleScript variable.
    Something like *set phoneNumber to cell "Phone Number" of current record* works fine if you are using the script from a layout that has this field on it.
    But I have a lot of fields on different layouts and I want to have access to all fields in the table, no matter what layout they are on, or what layout is currently active.
    And I want to do this without having to specify on what layout each field is located.
    In the past (FileMaker 6) I used something like *set phoneNumber to (cell "Phone Number" of current record of database 1)* but this is no longer working in FileMaker 9.
    So I was thinking to use something like *set phoneNumber to cell "Phone Number" of current record of table "Table Name"* but that doesn't seem to work.
    The only thing that seems to work is *set phoneNumber to cell "Phone Number" of current record of layout "Layout Name"* but as I said, I don't want to specify the layout for each field.
    Any ideas anyone?
    Message was edited by: khasmir

  • Using context variable in formcalc scripting language.

    Hi all,
             I wanted to know if it is possible to use context variables in formcalc. I wanted to use those variables in "if else" condition in formcalc scripting language. Please post the sample code also as i am new to adobe forms.
    Regards,
    Vinod

    Hi ,
    Each variable define in the context can be used on the layout of the form and/or in script linked to fields.
    This can be done in formcalc or in javascript language , without any problem . You have only to acess the correct variable in the script.
    For getting variable in a script you must define the complete name of the variable, example "Myform.Header.Data.Myvariable" get access to variable MyVariable define in the context under nodes Header/Data .
    Hope it's help you
    regards.

  • Using tcm to load test scripts into mtm, but action fails.

    Hi,
    I am trying to load test scripts into mtm but action fails saying : "The work item cannot be saved because at least one field contains a value that is not allowed."
    My guess is that this issue is due to the parameters/attributes we give to a test case([testmethod], [description()], etc.). I am unable to find what all parameters/attributes that can be given to a test case.
    Please help me with this issue.
    Regards,
    Payal Prajapati
    Payal Prajapati.

    Hi,
    I use VS 2012.
    One of my test method code is:
    /// <summary>
            /// Test Scenario to validate auto escalation of chat if within some time analyst does not respond to user.
            /// </summary>
            [TestMethod]
            [Description("Validating scenario, Auto-Escalation of chats to other Analyst.")]
    [Priority(2)]
            [TestCategory("Acceptance")]
    public void ValidatingAutoEscalationOfChatsToOtherAnalyst()
                User alice = new User(User1);
                alice.SubmitChatInfo();
                Analyst admin = new Analyst(Analyst_Admin);
                admin.Login();
                Analyst analysttier1 = new Analyst(Analyst_Tier1);
                admin.SelectQueues(Tier1Queue);
                admin.MakeAvailable();
                alice.USendMessage("I have a problem.");
                admin.AnalystWaitForAutoEscalation(25000);
                string Message1 = alice.GetAnalystName();
                analysttier1.Login();
                analysttier1.SelectQueues(Tier1Queue);
                analysttier1.MakeAvailable();
                alice.USendMessage("I have a problem.");
                string Message2 = alice.GetAnalystName();
                analysttier1.ASendMessage("hello, i'm here to help.");
                SprtTestContext.sprtTestContext.WriteLine("Earlier agent was: '" + Message1 + "' and present agent is: '" + Message2 + "'.");
                Assert.AreNotEqual<string>(Message1, Message2, "=> Issue in auto escalation.");
                analysttier1.WrapChatClose(4, "fixed", "comments");     }
    Payal Prajapati.

  • Using JSP variable inside Java Script's alert function.

    Hi Gurus,
    We are trying to use alert function with one of the string variables populated inside JSP code, but its not working.
    Here is the code snippet, please advice.
         <%
         oracle.apps.qot.util.RequestCtx.log("qotcustom.jsp",AOLMessageManager.getMessageSt(QotUtil.QOT_APPS_CODE, "XDPYY_DISC"));
         %>
         var alert_text="<%=AOLMessageManager.getMessageSt(QotUtil.QOT_APPS_CODE, "XDPYY_DISC")%>";
         alert(alert_text);
         Here in the first line we are using API to get text message defined in database, the line is getting executed properly and we could see output text message in debug log file, after this in the 4th line, we are assiging this string output of API to java script variable alert_text and further using alert function with the variable alert_text as argument. But alert function is failing, no errors are thown in debug log file.
    Please advice whether we are doing any thing wrong.
    Thanks in advance.

    What pgeuens means is that you can't mix javascript and jsp/java code in this way.
    ALL of the jsp/java code gets executed at the server end.
    This produces an HTML page (with embedded javascript) which gets sent to the client.
    The client then runs javascript code in response to events (onLoad, onClick, onChange etc etc)
    So in this case, the jsp:forward will always be executed, because as far as the server is concerned, the javascript is just template text.
    If you WANT to do a conditional forwarding on the server side you do it in java ie (horribly using scriptlet)
    <%
    if (testCondition){
    %>
      <jsp:forward>
    %<
    %>Or if you want to test what the client has entered client side, all you can do is submit the form, or navigate to a URL
    <script>
    function test()
    if(document.f.htemp.value=="true")
    alert("jus");
    else
    var s=document.f.htemp.value;
    alert(s);
    document.f1.action="success.jsp";
    document.f.submit();
    </script>You cannot run JSP code based on your javascript code.
    Java. Javascript. Not the same thing.
    Hope this helps,
    evnafets

  • In eCATT, How to mention the values as  input parameter during test script

    Hi,
    1. I am just learning eCATT tool. I created a Test Script by recording my transaction. But if i want to execute the recorded transaction with different data then how to store the values.
    2. How to execute my Test Script created in one client to another client of same server. is it just by mentioning the target system or do we have to do anything in anothere client.
    Lakshmi

    Hi
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0e0ebec-c9da-2910-689e-b1a22a621c7f
    Manoj Shakya.

  • Can we use Substitution variables in MAXL?

    Hi,
    Can we use substitution variables in MAXL script?
    I have to run this MAXL command for clearing a slice of ASO cube on V11.1.1.3.
    alter database Apname.DBname clear data in region 'CrossJoin({[2009]},{[Dec]})';
    I am planning to use Current_year & Current_month variables instead of hardcoding 2009 & Dec as I have to use this everymonth to clear the current months data.
    If it is allowed, what is the syntax?
    Is there any alternative apart from substitution variables?
    Appreciate your thoughts.
    Thanks,
    -Ethan.

    You would just use ampersand and the variable name instead of the hard coding e.g. &yearVar &periodVar.
    Not tried it on aso clears but in theory it should work as ...'CrossJoin({&yearVar},{&periodVar})';
    just change yearVar and periodVar for your substitution variable names.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Using mercury test scripts in eCATT

    Can anyone tell me if its possible to use the test case built in Mercury QTP be used as eCATT test case to run the test. If thats possible wats the way to use them. All along i hav been using Mercury to Test Sap application now i need to build the test scripts in eCATT for the same. Can i make use of the test scripts built in mercury
    is it possible to use the test scripts built in the older version say 6.2 of mercury used in 4.6C or 4.7 os SAP eCATT
    can i atleat get the scripts into CATT and then migrate it to eCATT.

    Hello,
    Please post your question in the WAS forum.
    SAP NetWeaver Application Server
    thx,
    E.T.

  • How to use the RFC SDK as part of a QTP test script

    Hi there,
    after having recorded some business transactions, I want to insert some checks into the QTP test script: an easy example would be an existence check in a database table. Instead of recording a SE16 or SE16N, I would find the approach much more elegant and much more efficient to use a (VB-)programmed RFC call for this purpose.
    Unfortunately, I didn't find a way to address an RFC using the actual connection that QTP is working on. Creating a new connection would probably be possible but is not what I want.
    Any idea how I could proceed? Does anybody else have experiences in this area?
    I think this issue is not restricted to QTP but shared by any tool working on top of the SAP GUI Scripting API.
    Thanks and regards
    - Rüdiger
    Edited by: Rüdiger Plantiko on Nov 21, 2008 4:24 PM

    bigbrain28 wrote:
    > Thank You, cfsearching! I don't quite understand 100%
    how it works
    As all three of us indicated you use array notation for this
    type of
    requirement. In ColdFusion you can use array notation or dot
    notation
    to access structure data. Almost all data in ColdFusion is
    now some
    type of structure.
    I.E. #Form['myField']# is the same as #Form.myField#.
    The advantage is that with array notation you can do things
    you can not
    do with dot notation. You can reference elements that have
    keys that
    are illegal variable names such as one with a space.
    I.E. #url['my field'] is allowed, #url.my field# would fail
    or course.
    And you can concatenate the key string as we did with your
    example.
    I.E. #Form['aString' & aVariable]#
    There are many powerful things one can do with this
    knowledge. One can
    access record sets with array notations. This can allow for
    very
    sophisticated parsing of a record set.
    I.E. #myQuery['column'][row]#
    You can dynamical call a variable. Thus creating dynamic code
    that does
    not even need to know what variables exist until run time.
    I.E. #variables[anyName]#
    This just scratches the surface.

  • Using a variable in Spry conditional tests included in a Spry Tooltip

    I have the following code:
    <div spry:region="company" id="tooltip">
    <div spry:repeat="company" spry:choose="spry:choose">
    <div spry:when="'{name}'==memberName">
    <table>
    <tr>
    <td
    align="center"><h2>{name}</h2></td>
    </tr>
    <tr>
    <td align="center"><img src="{headshot}"
    alt="{name}" width="227" height="350" /></td>
    </tr>
    <tr>
    <td align="center">{description}</td>
    </tr>
    </table>
    </div>
    </div>
    </div>
    <script type="text/javascript">
    var tooltip_trigger_one = new
    Spry.Widget.Tooltip("tooltip","#trigger", {showDelay: 200,
    hideDelay: 200, offsetX: 250, offsetY: 200} );
    </script>
    where the variable "memberName" is set elsewhere to a value
    that matches one of the occurrences in the column "name" in the
    dataset "company". I can see, using debugging tools, that the
    variable is being set correctly. But.... when the tooltip is
    triggered, only a small few-pixel square box opens up.
    If, instead of using the variable "memberName" in:
    <div spry:when="'{name}'==memberName">
    I use a string, as in
    <div spry:when="'{name}'=='John Doe'">
    then the code works correctly and I get a large tootlip
    showing me the correct information for that member of the company.
    I have tried different tests (spry:if and spry:test for
    instance), tried various combinations of quotes and parenthesis and
    tried placing the code at various places both inside and outside of
    the <body> -- but always get the same results.
    Is it not possible to test against a variable or am I doing
    something else incorrectly?
    Thanks,
    Janet

    OK.... some progress to report.
    I was setting memberName onmouseover-- which is also the
    trigger for the tooltip-- thusly:
    <p><em onmouseover="memberName='John Doe'"
    id="trigger">John Doe</em></p>
    It seems that the variable is being set, but too late, as the
    trigger has already caused the div... id="tooltip"> to be
    evaluated with "memberName" not equal to any of the names in the
    dataset. I tried using a function call to set "memberName" and
    tried putting the onmouseover in the <p> tag and leaving the
    trigger id in the <em> tag. but neither of those appear to
    change the outcome. "memberName" still appears to be set to the
    value I initialized it to up the the <head> section at the
    time the tooltip <div> is evaluated. Although it is set
    correctly if I check it's value using Firebug after I have
    mouse-overed it.
    Incidentally, using a Firebug breakpoint just before the
    <div spry:when...> and checking the value of memberName was
    how I discovered that "memberName" still seemed to have a value of
    "initialized" which is what I set it to up in the <head>
    section.
    Having written all of this, I am wondering though, shouldn't
    the value of "memberName" be equal to "John Doe" the second time I
    mouseover it? Or, if there are more than one trigger "names" on the
    page, shouldn't "memberName" be equal to the name of the previous
    trigger that I moused-over? And with memberName having a legitimate
    value at that point, shouldn't the tooltip now show the correct
    display information rather than just that little few pixel square
    box that I am getting when I mouse-over the trigger name?
    Clearly there is something that I just am not understanding.
    Janet

  • Importing internal table data from FM to eCATT test script

    Hi all,
    I am working on Workflow project where by i need to post invoices related to purchase orders sent as scanned imaages. Incase all the data in the incoming invoice(scanned) is correct then i am using BAPI_INCOMING_INVOICE_CREATE to post the invoice.
    But when the data is wrong, i need to give the user MIRO transaction pre-populated with the invoice details so that he manually corrects them(after verification) and posts the invoice.
    I understand MIRO is an ENJOY transaction hence BDC doesn't work properly(i have tried with all kinds of options on recording and the problem comes incase of multiple POs) hence i choose to use eCATT.
    The recording worksfine but my real problem is the PO data (multiple PO details for same invoice) is in table form. In all my previous objects related to eCATT we used to upload the file, hence no problem of importing tables.
    But now as i'll call this test script from a function module which has all the POs in the form of internal table, i need to import this into my test script.
    Please any body tell me how to proceed in this case or please suggest me a better a way to record the MIRO.
    Thank you,
    Lakshmi Narayana.S

    Hello Raj,
    First of all thank you for your inputs.
    Yes, I know about Parking an invoice. even i am using it in some scenarios.
    If everything on the invoice matches with the values in SAP then i am posting it using BAPI invoice_create also.
    But for some scenarios like if the PO on the invoice doesnot match with actual PO then i need to create a work item in the Accounts Payable user's inbox and he will change invoice data manually (after getting confirmation and correction) and post it using MIRO.
    Here i need to pre-populate the MIRO with the invoice data so that he can correct and post it.
    Hence i was trying to write a BDC and as MIRO is an Enjoy transaction i thought writing a BDC is not a good idea (i tried writing BDC but had problems) hence i am using eCATT.
    Hope i am clear about my problem. Any inputs to solve this are welcome.
    Thanks,
    Lakshmi Narayana.S

  • Using variables in WLST Script ant task

    I have multiple scipts that are run using ant tasks, however, I do not want to have to enter the password every time one of these scripts is executed. Instead I would like to use the following ant task to store the password in a variable/property:
    <target name="getPassword" >
         <echo message="Domain: ${domain}" />
    <echo message="Username: system" />
    <input message="Please enter password:" addproperty="password" />
    </target>
    I would then like to use that variable/property everytime a script is executed like this:
         <target name="deploy4x">
              <echo message="***** Copying 4X.ear *****" />
              <copy file="${build.path}\jar\4X.ear" todir="${apps.dir}" preservelastmodified="true"/>     
              <echo message="***** Updating 4X.ear on ${domain} *****"/>
              <wlst debug="true" fileName="Deploy4X.py" executeScriptBeforeFile="true" failonerror="true" >
                   <script>
                        connect('system','%s' % ${password},'%s' % $url)
                   </script>
              </wlst>
         </target>
    However, the script blows up every time I try to run it b/c of the connect() line. I have also tried connect('system','%s' % password, '%s' % url).
    Has anyone else successfully used variables in an Ant WLST Script task?
    Thanks.

    Hi,
    when I use *XDIM_MEMBERSET ACCOUNT AS %TEST% = BAS(REVENUE) - it work fine.
    BUT ! after my first commit, it seems like the variable value is lost. And the *Xdim_memberset takes all.....
    Fortunately enough, *select still contains the variable value after *commit.
    Thanks,
    Joergen
    *Correction !
    It actually works, it still contains the variable value after commit !!
    Edited by: Jørgen Dalby Andersen on Dec 30, 2011 1:33 PM

  • Use Variables created in script block outside of script block

    hello
    I have a code like:
    $command= { param($p1,$p2) if (Test-Path "D:\$p1") {
    $s=$p1+ "_" +$p2 } }
    Invoke-Command -session $sesion -ScriptBlock $command -ArgumentList 1,2here session is already created with remote server. Invoke-Command runs that script block on a remote server.Now I want to use that variable $s after invoke-command like $command= { param($p1,$p2) if (Test-Path "D:\$p1") { $s=$p1+ "_" +$p2 } }
    Invoke-Command -session $sesion -ScriptBlock $command -ArgumentList 1,2write-host $sif ($s -eq "ZTE_3G") {Write-host True} else {write host false}But here value of variable $s comes as null.Could you please help me how can i use value of that vairable?

    You need to return $s in your scriptblock and then save the output of Invoke-Command to a variable in order to test.
    Something like this may work:
    $command= {
    param($p1,$p2)
    if (Test-Path "D:\$p1") {
    $s=$p1+ "_" +$p2
    $s
    $s = Invoke-Command -session $sesion -ScriptBlock $command -ArgumentList 1,2
    write-host $s
    If ($s -eq "ZTE_3G") {
    $True
    } else {
    $False
    Boe Prox
    Blog |
    Twitter
    PoshWSUS |
    PoshPAIG | PoshChat |
    PoshEventUI | PoshRSJob
    PowerShell Deep Dives Book

  • Using SQLCMD variables in SQL Server Unit Test Project

    Is it possible to use SQLCMD variables in my SQL Server Unit Test Project? In my test initialize script I'd like to set a database name variable, something like this:
    :SETVAR MyDatabase "mydatabase"
    SELECT * FROM [$(MyDatabase)].[mytable]
    but I get syntax errors when I run the test. Any suggestions how I can get this to work.
    Result Message: Initialization method
    myTest.TestInitialize threw exception. System.Data.SqlClient.SqlException: System.Data.SqlClient.SqlException:
    Incorrect syntax near ':'..

    Hi Kevin,
    What is the error?
    This should work only thing i could see is no scheme specified.
    SQL Server uses dbo as default schema.
    In your case:
    :SETVAR MyDatabase "mydatabase"
    SELECT * FROM [$(MyDatabase)].dbo.[mytable]
    Also check your instance collation if its Case sensitive then specify database and table name as exact case.
    Example:
    :SETVAR MyDatabase "[mydatabase]"
    :setvar schemavar "[dbo]"
    :setvar tablevar "[mytable]"
    SELECT * FROM $(MyDatabase).$(schemavar).$(tablevar)

  • 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

Maybe you are looking for

  • Checking texts with multiple phones on an account

    I'm on my wifes account and was wondering how I can login to verizon and check my texts?  It will only show the texts from the primary number on the account.

  • Dell 3400mp powers on and off....

    Projector turns off after 15 or so seconds of startup.  The projector lamp turns on and the dell logo displays for 15 or so seconds and roughly 1 second before it turns off, it projects a dialog box. It will shut off much faster if I press the menu b

  • Help me with my iphone, please!

    When I try update my app on AppStore, appears me "there is a billing issue with your previous account". When I try change my card's information, appear "For help please contact support itunes". What can i do?

  • I am trying to open sertain books but it asks for a vendor id, when I type it in it tells me it is incorrect

    I have authorized my new computer with my adobe id.  I still can't open certain books, when I try it asks me for a vendor id.  I have contacted my vendor and they say it is the same as my adobe id.  But when I enter it the program say that it is inco

  • How can I upgrade from iweb 2.0.4 to 3.0?

    I'de been having problems to publish via ftp...wondering if an upgrade could make this easier..in this version I cannot put my server optionns and there is no more mobile me... I tried four times to upload, no publishing at all