Fuba or Class to access the variants of a test data container in ABAP

Hi there,
I think, that I might remember, that there was once a piece of code (Function call or static class method) that allowed one to access the variants in a testdata container within ABAP.
Anybody ever heard of this before?
Thank you & cheers,
Gregor

You can use class "cl_apl_ecatt_tdc_api" for reading test data.

Similar Messages

  • JNI classes to access the Security Filter features of the C API

    Looking for help with managing security filters using the JAPI. Has anyone developed JNI classes to access the Security Filter features of the C API? If so, would you be willing to share your experience and/or code? Time is of the ssence. Thanks in advance for any help.-- Posted for Martin [email protected]@pacbell.net

    Are you talking about the Requirements Gateway?  It is a separate product from NI that will do what you are looking for.  I haven't used it so I am not sure of the API chain to make it work.  Take a look and see if that is what you were thinking of.
    Hope that this helps,
    Bob Young
    Sorry, I just re-read your original post and see that you are looking to also use the Requirements Gateway, so you obviously know about it.  I don't know what the API changes were that made it work so I am not going to be much help.
    Sorry about posting before getting the correct information from the original.
    Bob Young
    Message Edited by Bob Y. on 08-24-2006 04:54 PM
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Server 2012 R2 SMB - The process cannot access the file '\\server\share\test.txt' because it is being used by another process.

    Hi,
    We are having issues with Server 2012 R2 SMB shares.
    We try to write some changes to a file, but we first create a temporary backup in case the write fails. After the backup is created we write the changes to the file and then we get an error:
    The process cannot access the file '\\server\share\test.txt' because it is being used by another process.
    It looks like the backup process keeps the original file in use.
    The problem doesn't always occur the first time, but almost everytime after 2 or 3 changes. I have provided some code below to reproduce the problem, you can run this in a loop to reproduce.
    The problem is that once the error arises, the file remains 'in use' for a while, so you cannot retry but have to wait at least several minutes. 
    I've already used Process Explorer to analyze, but there are no open file handles. 
    To reproduce the problem: create two Server 2012 R2 machines and run the below code from one server accessing an SMB share on the other server.
    Below is the code I use for testing, if you reproduce the scenario, I'm sure you get the same error.
    We are not looking for an alternative way to solve this, but wonder if this is a bug that needs to be reported?
    Anybody seen this behavior before or know what's causing it?
    The code:
    string file =
    @"\\server\share\test.txt";
    if (File.Exists(file))
    File.Copy(file, file +
    ".bak", true);
    File.WriteAllText(file,
    "Testje",
    Encoding.UTF8);
    The error:
     System.IO.IOException: The process cannot access the file '\\server\share\test.txt' because it is being used by another process.

    Hi,
    There is someone else having the same issue with yours. You could try code in the article below:
    “The process cannot access the file because it is being used by another process”
    http://blogs.msdn.com/b/shawncao/archive/2010/06/04/the-process-cannot-access-the-file-because-it-is-being-used-by-another-process.aspx
    If you wonder the root cause of the issue, the .NET Framework Class Libraries forum can help.
    Best Regards,
    Mandy 
    If you have any feedback on our support, please click
    here .
    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.

  • Sample report for filling the database table with test data .

    Hi ,
    Can anyone provide me sample report for filling the database table with test data ?
    Thanks ,
    Abhi.

    hi
    the code
    data : itab type table of Z6731_DEPTDETAIL,
           wa type Z6731_DEPTDETAIL.
    wa-DEPT_ID = 'z897hkjh'.
    wa-DESCRIPTION = 'computer'.
    append wa to itab.
    wa-DEPT_ID = 'z897hkjhd'.
    wa-DESCRIPTION = 'computer'.
    append wa to itab.
    loop at itab into wa.
    insert z6731_DEPTDETAIL from wa.
    endloop.
    rewards if helpful

  • Delegate class to access non-public methods during testing?

    In the following video, towards the end, someone asked that FlexUnit assumes functions and methods are to be public when tested.
    http://tv.adobe.com/watch/max-2008-develop/testing-your-flex-applications-by-michael-labri ola/
    The speaker replied (@ 52:25),  to use Delegate classes, which are linked in when being tested. 
    Can someone show me an example of this?  Thanks.

    Mike, thanks for the reply!
    As I am new to unit testing, things are still solidifying.  I do understand that Unit Testing, “tests the smallest functional unit of code”, which are methods and functions.  However, I incorrectly assumed that *every* method needed to be tested *directly*.   Hence, I thought all methods would have to be public.  So that would have blown encapsulation out of the water.  Now I understand from your reply, that private methods get tested indirectly from public methods.  And that seems more ideal.
    Thanks again.

  • How do I use multiple classes to access the same object?

    This should be staightforward. I have and object and I have multiple GUIs which operate on the same object. Do all the classes creating the GUIs need to be inner classes of the data class? I hope this question makes sense.
    Thanks,
    Mike

    public final class SingletonClass {
    private static SingletonClass instance;
    private int lastIndex = 10;
    public final static SingletonClass getInstance()
    if (instance == null) instance = new SingletoClass();
    return instance;
    public int getLastIndex() {
    return lastIndex;
    }1) This won't work since one could create a new SingletonClass. You need to add a private constructor. Also, because the constructor is private the class doesn't have to be final.
    2) Your design isn't thread-safe. You need to synchronize the access to the shared variable instance.
    public class SingletonClass {
        private static SingletonClass instance;
        private static Object mutex = new Object( );
        private int lastIndex = 10;
        private SingletonClass() { }
        public static SingletonClass getInstance() {
            synchronized (mutex) {
                if (instance == null) {
                    instance = new SingletonClass();
            return instance;
        public int getLastIndex() {
            return lastIndex;
    }if you are going to create an instance of SingletonClass anyway then I suggest you do it when the class is loaded. This way you don't need synchronization.
    public class SingletonClass {
        private static SingletonClass instance=new SingletonClass();
        private int lastIndex = 10;
        private SingletonClass() { }
        public static SingletonClass getInstance() {
            return instance;
        public int getLastIndex() {
            return lastIndex;
    }If you don't really need an object, then you could just make getLastIndex() and lastIndex static and not use the singleton pattern at all.
    public class SingletonClass {
        private static int lastIndex = 10;
        private SingletonClass() { }
        public static int getLastIndex() {
            return lastIndex;
    }- Marcus

  • Java class that accesses the operating systems shell?

    i have been told by my boss to find a class that will allow him to send and recieve information to the operating systems shell, as in dos, if i do not find the solution i am to be fired, please help me....im jp...but for real help me out

    i have been told by my boss to find a class that will
    allow him to send and recieve information to the
    operating systems shell, as in dos, if i do not find
    the solution i am to be fired, please help me....im
    jp...but for real help me outIt doesn't seem that you have put yourself in a very good situation if you are about to be fired.
    At any rate I think you want to use the Process class. Look at the API documentations for java.lang.Runtime and java.lang.Process. Using Process you can launch other programs (like system ones that run in the console) and you can read and write to the process using the input and ooutput streams of the process.
    If you have more questions pleas be sure to post your formatted code so that we can be of more assistance.
    Good luck to you and have a happy day.

  • How to access the parent class variable or object in java

    Hi Gurus,
    I encounter an issue when try to refer to parent class variable or object instance in java.
    The issue is when the child class reside in different location from the parent class as shown below.
    - ClassA and ClassB are reside in xxx.oracle.apps.inv.mo.server;
    - Derived is reside in xxx.oracle.apps.inv.mo.server.test;
    Let say ClassA and ClassB are the base / seeded class and can not be modified. How can i refer to the variable or object instance of ClassA and ClassB inside Derived class.
    package xxx.oracle.apps.inv.mo.server;
    public class ClassA {
        public int i=10;
    package xxx.oracle.apps.inv.mo.server;
    public class ClassB extends ClassA{
        int i=20;   
    package xxx.oracle.apps.inv.mo.server.test;
    import xxx.oracle.apps.inv.mo.server.ClassA;
    import xxx.oracle.apps.inv.mo.server.ClassB;
    public class Derived extends ClassB {
        int i=30;
        public Derived() {
           System.out.println(this.i);                  // this will print 30
           System.out.println(((ClassB)this).i);  // error, but this will print 20 if Derived class located in the same location as ClassB
           System.out.println(((ClassA)this).i);  // error, but this will print 20 if Derived class located in the same location as ClassA
        public static void main(String[] args) { 
            Derived d = new Derived(); 
    Many thanks in advance,
    Fendy

    Hi ,
    You cannot  access the controller attribute instead create an instance of the controller class and access the attribute in the set method
    OR create a static method X in the controller class and store the value in that method. and you can access the attribute by 
    Call method class=>X
    OR if the attribute is static you can access by classname=>attribute.
    Regards,
    Gangadhar.S
    Edited by: gangadhar rao on Mar 10, 2011 6:56 AM

  • How do I access the EC Embedded Controller firmware level with wmi win32?

    Hi
    I have used the Win32 classes to access the Bios level, model, serial and asset number
    The only data I cannot find is the EC firmware level
    I cannot find it in any of the WIN32 classes
    WIN32_BIOS
    WIN32_BASEBOARD etc
    Does anyone know if this accessible through the WIN32 classes?

    Maybe this is what you mean. I just copied the code out of WMI Code Creator. Although I downloaded an MS Word document from this link
    SMBIOS Support in Windows which has information that you may want to read. The first image below is a table from the document. 2nd image and 3rd image are WMI Code Creator launched Console which is displaying info you may want. I don't know what EC firmware
    level is.
    Imports System
    Imports System.Management
    Imports System.Windows.Forms
    Namespace WMISample
    Public Class MyWMIQuery
    Public Overloads Shared Function Main() As Integer
    Try
    Dim searcher As New ManagementObjectSearcher( _
    "root\WMI", _
    "SELECT * FROM MS_SystemInformation")
    For Each queryObj As ManagementObject in searcher.Get()
    Console.WriteLine("-----------------------------------")
    Console.WriteLine("MS_SystemInformation instance")
    Console.WriteLine("-----------------------------------")
    Console.WriteLine("Active: {0}", queryObj("Active"))
    Console.WriteLine("BaseBoardManufacturer: {0}", queryObj("BaseBoardManufacturer"))
    Console.WriteLine("BaseBoardProduct: {0}", queryObj("BaseBoardProduct"))
    Console.WriteLine("BaseBoardVersion: {0}", queryObj("BaseBoardVersion"))
    Console.WriteLine("BiosMajorRelease: {0}", queryObj("BiosMajorRelease"))
    Console.WriteLine("BiosMinorRelease: {0}", queryObj("BiosMinorRelease"))
    Console.WriteLine("BIOSReleaseDate: {0}", queryObj("BIOSReleaseDate"))
    Console.WriteLine("BIOSVendor: {0}", queryObj("BIOSVendor"))
    Console.WriteLine("BIOSVersion: {0}", queryObj("BIOSVersion"))
    Console.WriteLine("ECFirmwareMajorRelease: {0}", queryObj("ECFirmwareMajorRelease"))
    Console.WriteLine("ECFirmwareMinorRelease: {0}", queryObj("ECFirmwareMinorRelease"))
    Console.WriteLine("InstanceName: {0}", queryObj("InstanceName"))
    Console.WriteLine("SystemFamily: {0}", queryObj("SystemFamily"))
    Console.WriteLine("SystemManufacturer: {0}", queryObj("SystemManufacturer"))
    Console.WriteLine("SystemProductName: {0}", queryObj("SystemProductName"))
    Console.WriteLine("SystemSKU: {0}", queryObj("SystemSKU"))
    Console.WriteLine("SystemVersion: {0}", queryObj("SystemVersion"))
    Next
    Catch err As ManagementException
    MessageBox.Show("An error occurred while querying for WMI data: " & err.Message)
    End Try
    End Function
    End Class
    End Namespace
    La vida loca

  • From which table could i get all the Variants of a specific ABAP program?

    Hi,
    From which table could i get all the Variants name which belong to a specific ABAP program?
    Thanks.

    Hi,
    Check the table starting with TVAR*.
    Regards,
    Atish

  • From which table could i get all the Variants of a ABAP program?

    Hi,
    From which table could i get all the Variants name which belong to a specific ABAP program?
    Thanks.

    Hi Hoo,
    You can get the variants of a ABAB Program from table <b>VARID</b>. Give the report name to the VARID-REPORT field and you will the list of variants for this report under field VARID-VARIANT and VARID-ENAME is the user who created the variant.
    Otherwise, You can use the function module RM_GET_VARIANTS_4_REPORT_USER to get the variants of a report
    Thanks,
    Vinay

  • Can not access the Instance Data of a Singleton class from MBean

    I am working against the deadline and i am sweating now. From past few days i have been working on a problem and now its the time to shout out.
    I have an application (let's call it "APP") and i have a "PerformanceStatistics" MBean written for APP. I also have a Singleton Data class (let's call it "SDATA") which provides some data for the MBean to access and calculate some application runtime stuff. Thus during the application startup and then in the application lifecysle, i will be adding data to the SDATA instance.So, this SDATA instance always has the data.
    Now, the problem is that i am not able to access any of the data or data structures from the PerformanceStatistics MBean. if i check the data structures when i am adding the data, all the structures contains data. But when i call this singleton instance from the MBean, am kind of having the empty data.
    Can anyone explain or have hints on what's happening ? Any help will be appreciated.
    I tried all sorts of DATA class being final and all methods being synchronized, static, ect.,, just to make sure. But no luck till now.
    Another unfortunate thing is that, i some times get different "ServicePerformanceData " instances (i.e. when i print the ServicePerformanceData.getInstance() they are different at different times). Not sure whats happening. I am running this application in WebLogic server and using the JConsole.
    Please see the detailed problem at @ http://stackoverflow.com/questions/1151117/can-not-access-the-instance-data-of-a-singleton-class-from-mbean
    I see related problems but no real solutions. Appreciate if anyone can throw in ideas.
    http://www.velocityreviews.com/forums/t135852-rmi-singletons-and-multiple-classloaders-in-weblogic.html
    http://www.theserverside.com/discussions/thread.tss?thread_id=12194
    http://www.jguru.com/faq/view.jsp?EID=1051835
    Thanks,
    Krishna

    I am working against the deadline and i am sweating now. From past few days i have been working on a problem and now its the time to shout out.
    I have an application (let's call it "APP") and i have a "PerformanceStatistics" MBean written for APP. I also have a Singleton Data class (let's call it "SDATA") which provides some data for the MBean to access and calculate some application runtime stuff. Thus during the application startup and then in the application lifecysle, i will be adding data to the SDATA instance.So, this SDATA instance always has the data.
    Now, the problem is that i am not able to access any of the data or data structures from the PerformanceStatistics MBean. if i check the data structures when i am adding the data, all the structures contains data. But when i call this singleton instance from the MBean, am kind of having the empty data.
    Can anyone explain or have hints on what's happening ? Any help will be appreciated.
    I tried all sorts of DATA class being final and all methods being synchronized, static, ect.,, just to make sure. But no luck till now.
    Another unfortunate thing is that, i some times get different "ServicePerformanceData " instances (i.e. when i print the ServicePerformanceData.getInstance() they are different at different times). Not sure whats happening. I am running this application in WebLogic server and using the JConsole.
    Please see the detailed problem at @ http://stackoverflow.com/questions/1151117/can-not-access-the-instance-data-of-a-singleton-class-from-mbean
    I see related problems but no real solutions. Appreciate if anyone can throw in ideas.
    http://www.velocityreviews.com/forums/t135852-rmi-singletons-and-multiple-classloaders-in-weblogic.html
    http://www.theserverside.com/discussions/thread.tss?thread_id=12194
    http://www.jguru.com/faq/view.jsp?EID=1051835
    Thanks,
    Krishna

  • Accessing the same object from multiple classes.

    For the life of me I can't workout how I can access things from classes that haven't created them.
    I don't want to have to use "new" multiple times in seperate classes as that would erase manipulated values.
    I want to be able to access and manipulate an array of objects from multiple classes without resetting the array object values. How do I create a new object then be able to use it from all classes rather than re-creating it?
    Also I need my GUI to recognize the changes my buttons are making to data and reload itself so they show up.
    All help is good help!
    regards,
    Luke Grainger

    As long as you have a headquarters it shouldn't be to painfull. You simply keep a refrence to your ShipDataBase and Arsenal and all your irrellevant stuff in Headquarters. So the start of your Headquarters class would look something like:
    public class Headquarters{
      public Arsenal arsenal;
      public ShipDatabase db;
    //constructor
      public Headquarters(){
        arsenal = new Arsenal(this, ....);
        db = new ShipDatabase(...);
    //The Arsenal class:
    public class Arsenal{
      public Headquarter hq;
      public Arsenal(Headquarter hq, ....){
        this.hq = hq;
        .Then in your ShipDatabase you should, as good programing goes, keep the arraylist as a private class variable, and then make simple public methods to access it. Methods like getShipList(), addToShipList(Ship ship)....
    So when you want to add a ship from arsenal you write:
    hq.db.addToShipList(ship);
    .Or you could of course use a more direct refrence:
    ShipDatabase db = hq.db;
    or even
    ShipList = hq.db.getShipList();
    but this requires that the shiplist in the DB is kept public....
    Hope it was comprehensive enough, and that I answered what you where wondering.
    Sjur
    PS: Initialise the array is what you do right here:
    //constructor
    shipList = new Ship[6];
    shipList[0] = new Ship("Sentry", 15, 10, "Scout");
    " " " "etc
    shipList[5] = new Ship("Sentry", 15, 10, "Scout");PPS: To make code snippets etc. more readable please read this article:
    http://forum.java.sun.com/faq.jsp#messageformat

  • I can't download movies.  I'm taking a cinema class where the professor provides a link to to a movie to be watched.  I am unable to access the link on my mac pro.  is there an app or software download that will allow me to do this?

    I can't download movies.  I'm taking a cinema class where I am required to watch movies.  My professor provides the link on an electronic blackboard for the movies.  I can't access the link on my mac pro notebook.  Is there an app or software download that can help with this?  I can access the link fine on a pc.

    The "right click" is a function of the OS and those keyboard commands do not work on the iPad at all with the built in virtual keyboard. I don't use an external keyboard - so I cannot attest to the possibility of that working - but there are no keyboard shortcuts with the iPad keyboard.

  • How can I access the oracle/sql server jdbc driver class files from my cust

    I have a war file in which I have custom DataSource i.e mypackage.Datasource class. Its basically the need of my application. In this class we connect to datasource and link some of our programming artifacts .
    I have deployed the oracle jdbc driver and deploy my application as ear with datasources.xml in the meta inf file. Inspite of that my code fails to load the jdbc driver classes.
    Here is the extract of the code :
            Class.forName("oracle.jdbc.OracleDriver").newInstance();
             String url = "jdbc:oracle:thin:@dataserver:1521:orcl";
            Connection conn = DriverManager.getConnection(url, "weblims3", "labware");
            if(conn != null){
              out.println("the connection to the database have been achieved");
            out.println("conn object achived= " + conn);
    Class.forname fails in this case. I can see the ojdbc5.jar the driver jar in usr\sap\CE1\J00\j2ee\cluster\bin\ext\ojdbc5  . I even put the ojdbc.jar in web-inf/lib and application lib but does not help at all. Hope I have explained my problem clearly.
    I deployed the jdbc driver in the name of ojdbc5 .
    I am stuck here. It will be great help if anyone can help me in this. Thanks in advance.

    Bent,
    You can access the database from your Java portlet, just like from any other Java/JSP environment. Yes, you can use JDBC, as well as BC4J.
    The Discussion Forum portlet was built using BC4J, take a look at it's source to see how it was done.
    Also, check out Re: BC4J Java portlet anyone?, it contains a lot of useful information too.
    Peter

Maybe you are looking for

  • My account keeps resetting and my music is deleting itself from my library. Help!

    Every time I log into my account it starts everything the way it had at the start of the last thing, I'll open up an application like Firefox and it'll ask if I want to open it like when you have just downloaded it from the internet. All my settings

  • How to Activate Windows 8.1 Enterprise with Windows 8 Enterprise MAK?

    I bumped into this problem when being assigned to deal with the activation of Windows 8.1 Enterprise. There are around 6 notebooks in my team, and they seldom connect to corporation network so are essentially isolated from our KMS server. Therefore w

  • I moved to a new computer and need to transfer my settings

    How do I transfer all of my settings with my pictures in a catalog to a new computer.  On the old computer photos were located in C:\data\Pictures.  On the new computer they are located in d:\data\pictures.  When I open my 2014 catalog it does not fi

  • Designer Workflows with System Account

    Hi.. I created a SharePoint List Workflows using SharePOint Designer and i want to know the reason why workflow not working for System Account and for remaining users it working fine. Ravindranath

  • TM wants to start a new backup

    I have several months of Time Machine backups. TM can't see the old backups and wants to start over - TM Preferences shows Oldest backup:None, Latest backup: None.  I've not allowed it to start a new backup. In finder, in /Time Capsule/Data I can see