Query on Coded UI maps namespace

Hi,
I have query on CodedUI's UIMap namespace
Lets say I have project "CodedUITestProject4". I am adding one UIMap into it. Bydefault namespace of this UIMap becomes "
"CodedUITestProject4.UIMap2Classes"
My question is this namespace correct? See the below mentioned partial class.
Partial class code is as below
namespace
 CodedUITestProject4.UIMap2Classes
using System;
using System.Collections.Generic;
using System.CodeDom.Compiler;
using Microsoft.VisualStudio.TestTools.UITest.Extension;
using Microsoft.VisualStudio.TestTools.UITesting;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Keyboard = Microsoft.VisualStudio.TestTools.UITesting.Keyboard;
using Mouse = Microsoft.VisualStudio.TestTools.UITesting.Mouse;
using MouseButtons = System.Windows.Forms.MouseButtons;
using System.Drawing;
using System.Windows.Input;
using System.Text.RegularExpressions;
public partial class UIMap2
I have resharper tool installed. It shows suggestion that namespace should be "CodedUITestProject4"
So what should be the correct namespace? I am going with default namespace created by CodedUI, when I add that new UIMap. Still my project compiles and automated script works fine.

Hi User232482,
Based on your issue, I have been reproduced your issue in my side. I know that when we added multiple UIMap in one coded UI test project like the following screen shot.
And then I open this UIMap.Designer.cs and UIMap.cs file, I found that it is default that the UIMap1 namespace is the namespace CodedUITestDataDrive.UIMapClasses.
In addition, I found that if we changed this UIMap1 namespace CodedUITestDataDrive.UIMapClasses to the CodedUITestDataDrive, it could not work.
So I think that it is not possible to change the namespace CodedUITestDataDrive.UIMapClasses to the CodedUITestDataDrive namespace in coded UI test.
However, I know that if we want to make the UIMap1 run in the coded UI test method, you will need to instantiate the UIMap1 object in the CodedUITest.cs file like the following code.
Adding the namespace CodedUITestDataDrive.UIMapClasses in the CodedUITest.cs file.
using CodedUITestDataDrive.UIMapClasses;
public UIMap1 UIMap1
get
if ((this.map1 == null))
this.map1 = new UIMap1();
return this.map1;
 private UIMap1 map1;
[TestMethod]
 public void CodedUITestMethod()
        this.UIMap1.RecordedMethod1();
Hope it help you!
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • XSLT Mapping: Namespace for prefix 'ns0' has not been declared

    Hello, I am working on a synchronous SOAP call and having some trouble with the response message. The web service has its own namespace and I am trying to convert this to my custom data type in PI. PI wants the message to be in format of having ns0 prefix and namespace like we have defined (http://foo for example).
    I have an XSLT mapping (see below) which works fine with my test response payload (pulled from SXMB_MONI source) on this online XSLT test site:
    http://www.freeformatter.com/xsl-transformer.html
    However when I import this archive to PI and test with operation mapping it always says "Namespace for prefix 'ns0' has not been declared."
    This is very confusing because when I test it online, I see both prefix and namespace declaration perfectly. Is there a way to see the results in the PI test tool? After this XSLT java error it doesn't give me the output even in Trace Level All mode.
    Please advise on this issue or if you know an easier way (such as altering my datatype/message type to match the inbound SOAP message). I tried working with the 3rd party WSDL but the response message types show a different root level node than what PI is receiving so I gave up to make my own matching datatype. I just have to solve this last inbound namespace issue and should be finished.
    FYI I have refreshed all PI caches and activated all objects.
    Thanks for your ideas!
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ns0="http://foo"
      <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
      <xsl:template match="@* | node()">
        <xsl:copy>
          <xsl:apply-templates select="@* | node()"/>
        </xsl:copy>
      </xsl:template>
      <xsl:template match="/*">
        <xsl:element name="ns0:{local-name()}">
          <xsl:apply-templates select="@* | node()" />
        </xsl:element>
      </xsl:template>
      <xsl:template match="/">
        <xsl:element name="{local-name()}">
          <xsl:apply-templates select="@* | node()" />
        </xsl:element>
      </xsl:template>
    </xsl:stylesheet>

    Some additional info, here is an example payload which goes through the XSLT mapping perfectly, but in PI I get the error about missing ns0 declaration.
    XML input:
    <bar xmlns='http://irrelevantnamespace'
    xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'
    xmlns:xsd='http://www.w3.org/2001/XMLSchema'
    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
    <foo/>
    </bar>
    XSLT mapped output using test tool and XSL above:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:bar xmlns:ns0="http://foo">
       <foo />
    </ns0:bar>

  • XSLT mapping: namespace

    Hi,
    I have a problem with my XSLT mapping... My scenario is <b>file to IDoc</b> (Orders05) and I use xsd schemes as external definitions.
    When I test my mapping in the Interface mapping I don't get any values in the target IDoc. I think it's a problem with the namespaces but I'm not sure though...
    Is this the correct way of filling up a field ?
    <DATUM><xsl:value-of select="Document/Order/OrderHeader/Dates/RequestedDeliveryDate"/></DATUM>
    Could anyone give me a <b>simple example</b> of xslt mapping, so I can match with my mapping ?
    Source interface: MI_Orders
    Target interface: ORDERS.ORDERS05
    Source msg: Document
    Target msg: ORDERS.ORDERS05
    XML Document source message:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Document xmlns:ns0="http://www.certione.com/RFOrder/Schema">
       <SenderID/>
       <ReceiverID/>
       <DocumentDate/>
       <DocumentNumber/>
       <TestIndicator/>
       <Version/>
       <Order/>
    </ns0:Document>
    Thx in advance!
    Wouter.
    Message was edited by: Wouter Dhaenens

    Hi,
    thx for your answers but I didn't make it to solve my problem yet...
    My external definition generates the source xml input data:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Document xmlns:ns0="http://www.certione.com/RFOrder/Schema">
       <SenderID/>
       <ReceiverID/>
       <DocumentDate/>
       <DocumentNumber/>
       <TestIndicator/>
       <Version/>
       <Order/>
    </ns0:Document>
    I want to generate a ORDERS05 IDoc... is it necessary to map the EDI_DC40 instance with all the fields as described in OSS note 728792 in my XSLT mapping?
    <?xml version="1.0" encoding="UTF-8"?>
    <ORDERS05 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:Documents and SettingsdevadmMy DocumentsAltova ProjectsUntitled1.xsd">
         <IDOC BEGIN="1">
              <EDI_DC40 SEGMENT="1">
    When I try to test I get the error "XML not well formed", the problem is that my example source document has the root node <Document> and the external definition generates a <ns0:Document> as root node...
    Begin of my XSLT mapping:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <!-- <xsl:decimal-format name="point" decimal-separator="."/> -->
         <!-- <xsl:output encoding="ISO-8859-1"/> -->
         <xsl:output encoding="UTF-8"/>
         <xsl:strip-space elements="*"/>
         <!-- Root -->
         <xsl:template match="/"/>
         <!-- <ORDERS05 xmlns:ns="http://certipost.be/xi/XI/Orders"> -->
         <!-- ================================================================= -->
         <!-- Segment Document -->
         <!-- ================================================================= -->
         <xsl:template match="Document">
              <xsl:element name="ORDERS05">
                   <xsl:element name="IDOC">
                        <xsl:apply-templates select="Order"/>
                   </xsl:element>
              </xsl:element>
         </xsl:template>
    Does anybody have a solution for this annoying problem ? :s
    Thx in advance,
    Wouter.

  • Query Error in Message Mapping

    Hi everyone
    I am working on a BPM, that BPM has a  Message Mapping that makes a Query to a DB.
    When I send a message with multiple details its working in the following way:
    1.- If the first detail makes a query of a catalogue that exists on the DB, and the second detail makes a query to a cataloge that does not exists on the DB it finishes with error.
    2.- If the first detail has the query of an unexisting catalogue on the DB, and the second detail has the query that exists on the DB it finishes correctly.
    Can someone give me some light on whats happenning here?
    Thanks in advanced

    Ended message

  • Java mapping & namespace issue

    Hello,
    I am doing a java mapping from a flat file to an IDOC. After the document is mapped succesfully I call an RFC via the Adapter. When monitoring the adapter I get the error:
    com.sap.aii.af.rfc.RfcAdapterException: failed to read funtionname from XML document: missing namespace declara
    so I added the namespace reference to my java mapping to look like this :
    <ns0:IDOC_INBOUND_ASYNCHRONOUS xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
    But when I test my java mapping in the builder (interface mapping) the namespace xmlns="urn:sap-com:document:sap:rfc:functions" is added to my above ns0:IDOC_INBOUND_ASYNCHRONOUS tag. The consequence is that while mapping in the integration engine the "ns0" prefix is then removed and I get the error:
    Delivery of the message to the application using connection AFW failed, due to: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was.
    Any help or sample code resolving the namespace issue is welcome.
    Frank

    Hi Frank,
    I am getting the same error message. You fixed yours. Can you help me with mine. The error message is
      " Delivery of the message to the application using connection AFW failed, due to: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was ."
    I am trying to send data to SAP SRM4.0 from SAP R/3 using SAP XI. XI content is delivered by SAP.
    The message is sent from R/3 to XI successfully and the XML monitor does not show any errors in XI . But the messages does not show up in SRM.
    Thanks
    Kishore.

  • Query Regarding Multi-Message Mapping in Interface Mapping.

    Hi All,
    I've a query that can we use Multi-Message Mapping in Interface Mapping if:
    One mapping structure is simple one-2-one mapping and
    Second mapping is calling a stored procedure.
    Please give me some links if the answer is YES.
    Thanks in Advance.
    Regards,
    Sreedhar.
    Edited by: Sreedhar Av on Oct 12, 2009 1:26 PM

    Hi,
    Your question not clear buddy..what i understood is..
    If you want execute multiple message mappings in Interface mapping we can ,just add two mapping programs in interface mapping.first mapping program output is input to the second mapping program.
    If first mapping program is very simple,if you want to execute stored procedure in second level mapping write used defned fun ction to conect to data base or create JDMC receiver communication channel ,cal the communictaion channel in udf.write stored procedure in UDF.
    SEARCH for more info in sdn how to perform DBLOOKUPS.
    regards,
    Raj

  • SQL Query of an OWB map (row based)

    If I trace a session, execute an OWB map (row based), will the trace file contain the actual SQL query ?
    The problem with me is that when I am executing this row -based OWB map, it is throwing me an error CursorFetchMapTerminationRTV20007 BUT ( plus taking a long time) when I am taking out the intermediate SQL insert query,it is working fine ( and also within a very short period of time)
    Execution status = COMPLETE
    message text = ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    message text = CursorFetchMapTerminationRTV20007
    No. task errors = 0
    No. task warnings = 2
    No. errors = 1
    Since this OWB map (Truncate Insert)  is row based hence I cannot cannot get the back end query from the OWB generated pl/sql package so wondering if I trace the session, check the trace file, may be I will able to see the exact SQL query generated. But wanted to confirm the same.

    Yes, the actual SQL run in the session will be in the trace file.

  • Mapping namespace to generated package name (clientgen)

    Hello,
    We have a need to map the namespace of the generated bean artifacts from clientgen to a different package name. This could be done prior to weblogic 10 with the typePackageName attribute of clientgen but this is no longer supported in weblogic 10. Is there another way to do this? Note we cannot change the namespace of the webservice wsdl we are generating the client for.
    Thank you!
    Julia Allen

    Use the <binding> child element to specify one of the following:
    * For JAX-WS, one or more customization files that specify one or more of the following:
    o JAX-WS and JAXB custom binding declarations. For more information, see “Customizing XML Schema-to-Java Mapping Using Binding Declarations” in Getting Started With WebLogic Web Services Using JAX-WS.
    o SOAP handler files. For more information, see “Creating and Using SOAP Message Handlers” in Programming Advance Features of WebLogic Web Services Using JAX-WS.
    * For JAX-RPC, one or more XMLBeans configuration files, which by convention end in .xsdconfig. Use this element if your Web Service uses Apache XMLBeans data types as parameters or return values.
    The <binding> element is similar to the standard Ant <Fileset> element and has all the same attributes. See the Apache Ant documentation on the Fileset element for the full list of attributes you can specify.
    Note:      The <binding> element replaces the <xsdConfig> element, which is deprecated as of version 10.0 of WebLogic Server.
    See here for detail.

  • Using SQL as query type from the mapping workbench

    Hi
    We are upgrading a project from toplink 2.x to 9.03. The old used the java builder syntax for the finders, this is not supported anymore in 9.03. Therefore we need to convert these finders to either EBQL or SQL.
    As our developers here mostly know standard SQL we'll like to use this. But in the toplink doc's we cant find any good examples how to use this. All the examples are also only with EBQL.
    The questions is mostly how do you define the bind parameters in the SQL query string in the workbench.
    select * from user where user.username = ?
    select * from user where user.username = ?1
    select * from user where user.username = #param1
    select * from user where user.username = #param1#
    select * from user where user.username = #1
    select * from user where user.username = #1#
    Any help?
    /Denver

    What do you mean by "The old used the java builder syntax for the finders, this is not supported anymore in 9.03"?
    TopLink still absolutely supports the Java builder syntax! In 9.03 we added Mapping Workbench support but just for EJBQL and SQL for that release -- you can still use the expression builder in code! In the upcoming 9.04 I've seen that you can use the builder syntax in the mapping workbench too!
    - Don

  • Query FI - coding for including fields from doc and clearing doc

    Hi!
    I am a functional FI consultant and need to create a query (SQ01) with information from the payment document and the invoice which was cleared by the payment. I need to know which coding to use to include two fields from the invoice document in the query.
    Thank you
    Claudia

    Hi,
    Try something like this. I could not try it in my system, if there are some error let me know.
    FIELD-SYMBOLS
         : <SOURCE_PACKAGE> LIKE LINE OF SOURCE_PACKAGE.
    LOOP AT SOURCE_PACKAGE ASSIGNING <SOURCE_PACKAGE>.
    LOOP AT it_docu_condition into wa_docu_condition
                   where Order = <SOURCE_PACKAGE>-Order  and
                            item   = <SOURCE_PACKAGE>-item.
    CASE wa_docu_condition-condition_type.
    when u2019bonusu2019.
    <SOURCE_PACKAGE>-bonus = wa_docu_condition-condition_value.
    when u2019skontou2019.
    <SOURCE_PACKAGE>-skonto = wa_docu_condition-condition_value.
    when u2019taxu2019.
    <SOURCE_PACKAGE>-tax = wa_docu_condition-condition_value.
    ENDCASE.
    ENDLOOP.
    Regards

  • Execute query only once in mapping

    Hi All,
    I hav a scenario where I hav to Query a DB using all the child nodes. the source structure is as follows:
    <root>
         <employee>     -
    0..unbounded
              <empNo>
              <emdpName>
         </employee>
    </root>
    I hav to retrieve all the empNo and frame a query and shud execute the query only once and hav to retrieve the results and store it in a HashMap so that, i can map it to the target structure.
    I had followed JAVIER PORRAS blog. but it seems to be not the executed one. Can any one suggest me how to do it. Any help wud b appreciated.
    Thnx in Adv
    Anil

    Hi,
    My requirement is something like this.
    Source : External System
    Target : BW
    Source Structure:
    <Root>
         <Emp>
              <Col1>
              <Name>
         </Emp>
         <Emp>
              <Col1>
              <Name>
         </Emp>
         <Emp>
              <Col1>
              <Name>
         </Emp>
         <Emp>
              <Col1>
              <Name>
         </Emp>
    </Root>
    I'm getting Data from External System in which a column (Col1) has to be replaced by some other column (Col2)
    which exists in the DB. Col2 can b accessed using a query (select col1, col2 from myTable where col1 = x1 or x2 or x3 etc..). The values of X1, X2, X3 etc hav to be filled using the
    Col1 values of each segment of the <Emp> in the source structure. The condition here is that, i shud execute the query only once for all the values of col1 to prevent the bottleneck.when i get the result, i hav to store it in a hashmap and use the result to map it to the target structure element by element.
    This is my require ment. seems to b exactly the blog of JAVIER PORRAS. but the blog doesn't seem to b the executed one.Any help in resolving this.
    Thnx
    Anil

  • Need a query to find Grops mapped on Folders

    Hi ,
    I need a query builder query to find out the list  of folder and mapped groups to those folder.
    Would you please let me know if that is possible I triead but no luck .
    Regards,
    Neo

    Hi,
    This query sound goods but I get error 
    Select SI_NAME, SI_KIND From CI_APPOBJECTS, CI_INFOOBJECTS
    Where PARENTS("SI_NAME='Myfolder'",'CHILDREN(''SI_NAME=''UserGroup''')")
    Please let me know if I am giong in right direction becuse I never used Parents and child concept bit confused.
    All I need is when I put in my folder name it has to show me all the groups mapped to it.
    If this query gives  the result , it will be the great logic I would say
    Thanks a ot.
    Neo A

  • Problem querying Excel XML Sheet file (namespace)

    Hi,
    I have an Excel (2003) file saved as XML Spreadsheet that I would like to be able to query in the database (10gR2) using extract/extractvalue. Somehow the namespace definition of this file is preventing me from reading the values from the file. The extract/extractvalue function returns empty (NULL) values. Can somebody help me with an example how to query individual nodes from this file?
    Here is the query/XML:
    WITH x AS
         (SELECT HTTPURITYPE ('http://www.dataliberation.nl/newnxl/docs/F2083/xmltestsheet.xml').getxml () xmldoc
          FROM   dual)
    select  extract(xmldoc,'/Workbook/DocumentProperties','xmlns="urn:schemas-microsoft-com:office:office"') doc_properties
    ,       extractValue(xmldoc, '/Workbook/DocumentProperties/Author')      author
    from   xThanx in advance,
    Christian

    here the readable XML:
    SELECT XMLTYPE
    <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:x="urn:schemas-microsoft-com:office:excel"
    xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:html="http://www.w3.org/TR/REC-html40">
    <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
      <Author>Christian Rokitta</Author>
      <LastAuthor>Christian Rokitta</LastAuthor>
      <Created>2009-07-10T14:05:54Z</Created>
      <Company>Scamander Solutions</Company>
      <Version>11.9999</Version>
    </DocumentProperties>
    <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
      <WindowHeight>12525</WindowHeight>
      <WindowWidth>19995</WindowWidth>
      <WindowTopX>480</WindowTopX>
      <WindowTopY>120</WindowTopY>
      <ProtectStructure>False</ProtectStructure>
      <ProtectWindows>False</ProtectWindows>
    </ExcelWorkbook>
    <Styles>
      <Style ss:ID="Default" ss:Name="Normal">
       <Alignment ss:Vertical="Bottom"/>
       <Borders/>
       <Font/>
       <Interior/>
       <NumberFormat/>
       <Protection/>
      </Style>
    </Styles>
    <Worksheet ss:Name="Sheet1">
      <Table ss:ExpandedColumnCount="2" ss:ExpandedRowCount="2" x:FullColumns="1"
       x:FullRows="1">
       <Row>
        <Cell><Data ss:Type="String">a1</Data></Cell>
        <Cell><Data ss:Type="String">b1</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">a2</Data></Cell>
        <Cell><Data ss:Type="String">b2</Data></Cell>
       </Row>
      </Table>
      <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
       <Selected/>
       <ProtectObjects>False</ProtectObjects>
       <ProtectScenarios>False</ProtectScenarios>
      </WorksheetOptions>
    </Worksheet>
    <Worksheet ss:Name="Sheet2">
      <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
       <ProtectObjects>False</ProtectObjects>
       <ProtectScenarios>False</ProtectScenarios>
      </WorksheetOptions>
    </Worksheet>
    <Worksheet ss:Name="Sheet3">
      <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
       <ProtectObjects>False</ProtectObjects>
       <ProtectScenarios>False</ProtectScenarios>
      </WorksheetOptions>
    </Worksheet>
    </Workbook>
    FROM   dual

  • Query Many to Many Mapping

    Thanks for looking at my question.
    How do I write a query to find values in a many to many relationship?
    My tables are normalized similarly to this:
    http://download.oracle.com/docs/cd/B25221_05/web.1013/b13593/relmapun008.htm#CHDFDIHC
    How can i write a query for 'Jane Smith' that would return all of the projects ('Java Developer', 'Magazine') he is working on? Or, vise versa a query for a project that would return all of the employees mapped to it by the relationship table?
    Edited by: 869021 on Jun 28, 2011 4:00 PM

    Thanks for the reply. I think it is a little beyond me. I am four weeks into a beginning Data modeling class. I will definitely come back and look at it again later.
    I came up with this solution. Just nesting selects until I can query across the relationships.
    DROP TABLE Stock;
    DROP TABLE Model;
    DROP TABLE Dealer;
    CREATE TABLE Dealer(
         DealerID               NUMBER,
         DealerName          VARCHAR2(20),
         CONSTRAINT pk_Dealership PRIMARY KEY (DealerID)
    CREATE TABLE Model(
         ModelNumber     NUMBER,
         ModelName          VARCHAR2(20),
         CONSTRAINT pk_Model PRIMARY KEY (ModelNumber)
    CREATE TABLE Stock(
         StockKey               NUMBER,
         ModelNumber     NUMBER,
         DealerID               NUMBER,
         CONSTRAINT pk_Stock PRIMARY KEY (StockKey),
         CONSTRAINT fk_ModelNumber FOREIGN KEY (ModelNumber) REFERENCES Model (ModelNumber),
         CONSTRAINT fk_DealerID FOREIGN KEY (DealerID) REFERENCES Dealer (DealerID)
    INSERT INTO Dealer VALUES(1, 'Midnight Movers');
    INSERT INTO Dealer VALUES(2, 'Bubbas Imports');
    INSERT INTO Dealer VALUES(3, 'Import Motors');
    INSERT INTO Model VALUES(1, 'Buick Skylark');
    INSERT INTO Model VALUES(2, 'H2 Hummer');
    INSERT INTO Model VALUES(3, 'Chevy Suburban');
    INSERT INTO Model VALUES(4, 'BMW Z3');
    INSERT INTO Model VALUES(5, 'BMW 328i');
    INSERT INTO Model VALUES(6, 'Jeep Wrangler');
    INSERT INTO Model VALUES(7, 'Ford Focus');
    INSERT INTO Model VALUES(8, 'Range Rover');
    INSERT INTO Model VALUES(9, 'Toyota Supera');
    INSERT INTO Model VALUES(10, 'Ferrari Testarosa');
    INSERT INTO Model VALUES(11, 'Jaguar X12');
    INSERT INTO Model VALUES(12, 'Ford Fairmont');
    INSERT INTO Stock VALUES(1, 1, 1);
    INSERT INTO Stock VALUES(2, 2, 1);
    INSERT INTO Stock VALUES(3, 3, 1);
    INSERT INTO Stock VALUES(4, 4, 1);
    INSERT INTO Stock VALUES(5, 5, 1);
    INSERT INTO Stock VALUES(6, 6, 1);
    INSERT INTO Stock VALUES(7, 1, 2);
    INSERT INTO Stock VALUES(8, 2, 2);
    INSERT INTO Stock VALUES(9, 1, 2);
    INSERT INTO Stock VALUES(10, 4, 2);
    INSERT INTO Stock VALUES(11, 5, 2);
    INSERT INTO Stock VALUES(12, 6, 2);
    INSERT INTO Stock VALUES(13, 7, 3);
    INSERT INTO Stock VALUES(14, 8, 3);
    INSERT INTO Stock VALUES(15, 9, 3);
    INSERT INTO Stock VALUES(16, 10, 3);
    INSERT INTO Stock VALUES(17, 11, 3);
    INSERT INTO Stock VALUES(18, 12, 3);
    --find all stock at Import Motors
    SELECT * FROM Model
    WHERE ModelNumber IN
         (SELECT DISTINCT Stock.ModelNumber
         FROM Stock WHERE Stock.DealerID = (
              SELECT Dealer.DealerID
              FROM Dealer WHERE Dealer.DealerName = 'Import Motors'
    --find all dealers with BMW Z3
    SELECT * FROM Dealer
    WHERE DealerID IN
         (SELECT DISTINCT Stock.DealerID
         FROM Stock WHERE Stock.ModelNumber = (
              SELECT Model.ModelNumber
              FROM Model WHERE Model.ModelName = 'BMW Z3'
         );

  • Followed all guideline still ABAP Query won't save: foreign namespaces msg

    Hi Experts,
    I was testing for the first time how to create APAB Query and followed a step by step in a link to complete it. Saving is now a problem i have followed every instruction I can get online but still I am getting the message that
    u201CTest objects cannot be created in foreign namespacesu201D
    I have done everything suggested in the following SAP message:
    u201CProcedure:
    Assign the object to a package whose name begins with /GRC/.
    If you want to create the object as a test object, you can also assign it to a local package (begins with $) or a test package (begins with T).u201D
    Any more help here? This is a test on an IDES system.
    Thanks

    Hi,
    Are you trying to name your SAP query /GRC/... That namespace is reserved to SAP. You should use name starting with Z, which is reserved to customers, and save it to $TMP package.
    Sandra

Maybe you are looking for