Get the class attributes name dynamically?

Hi all,
I have to call a transformation and give it as result parameter an internal table with ABAP_TRANS_RESBIND_TAB type.
How can I get the name & the adresse of the current class parameters ?
Thanks.
Edited by: Noureddine MOUTAA on Oct 20, 2008 2:01 PM

I have to call a transformation and give it as result parameter an internal table type ABAP_TRANS_RESBIND_TAB.
And to fill this internal table, I need the name and the reference of the attribute
I mean by REFERENCE the result of this instruction GET REFERENCE OF, as shown below:
DATA: attribute TYPE string.
DATA: the_reference TYPE REF TO data.
GET REFERENCE OF attribute INTO the_reference.
Thanks.
Edited by: Noureddine MOUTAA on Oct 20, 2008 4:37 PM

Similar Messages

  • Get the class file name of the JSP page

    Hi
    I'm wondering how I can get the class name associated with the current JSP page...
    I found on this forum how get the name of current JSP page, but it doesn't help me...
    Thanks

    Hi,
    Sometimes I can be really dumb; of course, the solution is to call the getClass() method on the this object, and eventually store the Class object returned in the SessionBean file if it's necessary (in a SessionBean field/property, or in a parameter of a SessionBean's method).
    Sorry for this thread without any interest. :(

  • I need get the class container name (Urgent)

    My class contain another inside, declared as variable.
    In the class declared as variable, can I get the class name of class that contains it?
    Is it possible?
    Thanks
    Renato de Melo

    I can't think of a good way of doing this, but here is a really kludgy one!
    within FieldClass, use getClass().getName(). This will return the full name of the class, and since this is an inner class, it will be "packagename.Container$FieldClass". All you then need to do is to find the substring between the last full-stop (period if you're American), and the $:
    String className = getClass().getName();
    int start = className.lastIndexOf('.') + 1;
    String containerName = className.substring( start, className.indexOf('$', start);HTH (and HTW - this is off the top of my head!)
    Robin

  • How to get the jsp page name in jsp?

    how to get the jsp page name in jsp? how the jsp get the jsp page name dynamic.
    thanks in advance.

    Try request.getServletPath()

  • Getting XI business system name Dynamically

    Hi All,
    I am using RFC lookup for one of our project requirment. we will be using one of our inputs as business system which hosts the RFC function module (RFC_READ_TABLE). in our dev it is our XI business system. But when we move these objects to quality or prod, this mapping fails because the name of the XI business system changes. Can anyone suggest me how we can get the xi system name dynamically.
    Best Regards,
    Deepika

    Hi Deepika
    You can use the function "Sender" or "Receiver" (depending upon whether your business system is sender or receiver) which is available under 'Constants' category in Standard funtions of Graphical mapping.
    These functions give the current value of the businees system in the environment where the interface is running.
    Let me knwo if you are still not able to pick it.
    Thanks
    Ram

  • How to get the class name and field name dynamically

    Hi
    I have a class (ex: Contract) the fields (ex : a,b,c) .i need to get the class name and field name dynamically
    ex
    if( validation file for the field Contract.a){
    return contract.a;
    }else if(validation file for the field Contract.b){
    return contract.b;
    how to pass the field name and object dynamically
    Please help me .............
    Thanks in Advance..
    Edited by: 849614 on Aug 11, 2011 6:49 AM

    YoungWinston wrote:
    maheshguruswamy wrote:
    Agreed, but IMO, i still feel its best if there is no tie in between consumer class level details and the database it talks to. A service layer is needed in between them.Sounds like you've done a bit of this before. Me, I've either been a modeller/DBA, doling out data, or a nuts and bolts programmer (and actually more toolmaker than apps, but did a bit of that too).
    Do you know of a good book about the "middle ground" (ie, these service layers)? I understand it empirically, but haven't had a lot of exposure to it.
    Winston
    Edited by: YoungWinston on Aug 11, 2011 10:34 PM
    PS: Apologies. Edited my previous post, presumably while you were composing your reply, when I finally realized what '.filed' meant.Most of my work is in web development, never been a DBA :) . The biggest 'concern' in my shop is 'separation of concerns'. The UI group reports up to a different IT head, the DB group reports up to a different IT head and so on. The looser the coupling between these systems, the lesser the project costs (Integration, QA etc) are. Martin Fowler's books contain good information about separation of concerns in an enterprise environment. The two books which i recommend are
    [url http://www.amazon.com/Patterns-Enterprise-Application-Architecture-Martin/dp/0321127420]Enterprise Application Architecture and
    [url http://www.amazon.com/Enterprise-Integration-Patterns-Designing-Deploying/dp/0321200683/ref=pd_sim_b_1]Enterprise Integration Patterns

  • How to get the class name of a page in oracle apex

    Hi All,
    Can anyone please let me know how we can get the class name of a page or region in oracle apex? I would also like to know how we get the DOM object ID for particular item.
    I appreciate any help on this.
    Regards
    Raj

    RajEndiran wrote:
    Can anyone please let me know how we can get the class name of a page or region in oracle apex?What do you mean with class name? The name of the template (e.g. the css style class name)?
    I would also like to know how we get the DOM object ID for particular item.Use firebug or inspect the source code of the rendered page to see the object IDs. Other then then, the typical ID of page items is the name of the item. For regions you can set your own ID.

  • How to i get the class name ? please help me

    hi friends
    i want to know how to get the class name from my java program
    public class sample
    public static void main(String args[])
    how to i get sample.
    please help me.
    thanks in advance                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I can't recall which forum member gave the following solution, but it works
    in static contexts and it's copy-and-paste friendly -- you don't hard-code the
    name of the class, only a dummy class that you use to make this hack work:
    public class Foo {
        private static class Dummy{}
        public static void main(String[] args) {
            Class cls = Dummy.class.getEnclosingClass();
            String name = cls.getName();
            System.out.println(name);
    }

  • How to get the Class name of an API method?

    Like most of us, it's difficult to know where every method within a Java class is. Also, many of the same methods are scattered throughout Java Classes. I know of two methods that retreive this... getClass().getName(). But, you must have an object to use these. Is there a way to find out what Class contains a method or Class variable thru an Applet or Java Application?? Obviously, I can look at API Docs; but this takes time.
    Tks Randy

    RajEndiran wrote:
    Can anyone please let me know how we can get the class name of a page or region in oracle apex?What do you mean with class name? The name of the template (e.g. the css style class name)?
    I would also like to know how we get the DOM object ID for particular item.Use firebug or inspect the source code of the rendered page to see the object IDs. Other then then, the typical ID of page items is the name of the item. For regions you can set your own ID.

  • How to get the current function name in java

    How to get the current function name in java.
    In c it is done as
    printf("%s",__func__);
    Thanx in advance.

    j0o wrote:
    System.out.println("Class Name: " + new Exception().getStackTrace()[0].getClassName() +
    "/n Method Name : " + new Exception().getStackTrace()[0].getMethodName() +
    "/n Line number : " + new Exception().getStackTrace()[0].getLineNumber());
    I pointed the OP at this approach yesterday in one of his multi-posts. I still have not been given my Dukes!

  • How to get the Output File Name as One of the Field Value From Payload

    Hi All,
    I want to get the Output file name as one of the Field value from payload.
    Example:
    Source XML
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_TEST xmlns:ns0="http://sample.com">
    - <Header>
      <NAME>Bopanna</NAME>
      </Header>
      </ns0:MT_TEST>
    I want to get the Output file name as " Bopanna.xml"
    Please suggest me on this.
    Regards
    Bopanna

    Hi,
    There are couple of links already available for this. Just for info see the below details,
    The Output file name could be used from the field value of payload. For this you need to use the UDF DynamicFile name with below code,
    //       Description: Function to create dynamic Filename
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    With this udf map it with the MessageType as
    (File Name field from Payload) > DynamicFileConfiguration>MTReceiver
    Thanks
    Swarup

  • Get the ID of a dynamically created symbol from library, INSIDE another symbol.

    Hi everyone,
    I'm trying to get the id from a dynamic created symbol from library.
    When dynamically creating the symbol directly on the stage (or composition level), there's no problem.
    But I just can't get it to work when creating the symbol inside another symbol. 
    Below some examples using both "getChildSymbols()" and "aSymbolInstances" 
    // USING "getChildSymbols()" ///////////////////////////////////////////////////////////////////////// 
    // ON THE STAGE 
    var m_item = sym.createChildSymbol("m_item","Stage");
    var symbolChildren = sym.getChildSymbols(); 
    console.log(symbolChildren[0].getSymbolElement().attr('id')); // ok eid_1391853893203
    // INSIDE ANOTHER SYMBOL
    var m_item = sym.createChildSymbol("m_item", sym.getSymbol("holder").getSymbolElement()); 
    var symbolChildren = sym.getSymbol("holder").getChildSymbols(); // Am i using this wrong maybe?
    console.log(symbolChildren.length) // returns 0 so can't get no ID either
    // USING "aSymbolInstances"" ////////////////////////////////////////////////////////////////////////// 
    // ON THE STAGE
    var m_item = sym.createChildSymbol("m_item","Stage"); 
    console.log(sym.aSymbolInstances[0]); // ok (i guess) x.fn.x.init[1] 0: div#eid_1391854141436
    // INSIDE ANOTHER SYMBOL
    var m_item = sym.createChildSymbol("m_item", sym.getSymbol("holder").getSymbolElement());
    console.log(sym.getSymbol("holder").aSymbolInstances[0]); // Javascript error in event handler! Event Type = element 
    In this post http://forums.adobe.com/message/5691824 is written: "mySym.aSymbolInstances will give you an array with all "names" when you create symbols"
    Could it be this only works on the stage/ composition level only and not inside a symbol? 
    The following methods to achieve the same are indeed possible, but i simply DON'T want to use them in this case:
    1) Storing a reference of the created symbol in an array and call it later by index.
    2) Giving the items an ID manually on creation and use document.getElementById() afterwards.
    I can't believe this isn't possible. I am probably missing something here.
    Forgive me I am a newbie using Adobe Edge!
    I really hope someone can help me out here.
    Anyway, thnx in advance people!
    Kind Regards,
    Lester.

    Hi,
    Thanks for the quick response!
    True this is also a possibility. But this method is almost the same of "Giving the items an ID manually on creation and use document.getElementById() afterwards".
    In this way (correct me if i'm wrong) you have to give it an unique ID yourself. In a (very) big project this isn't the most practical way.
    Although I know it is possible.
    Now when Edge creates a symbol dynamically on the Stage (or composition level) or inside another symbol it always gives the symbol an ID like "eid_1391853893203".
    I want to reuse this (unique) ID given by Edge after creation.
    If created on the stage directly you can get this ID very easy. Like this;
    var m_item = sym.createChildSymbol("m_item","Stage");
    var symbolChildren = sym.getChildSymbols(); 
    console.log(symbolChildren[0].getSymbolElement().attr('id')); // ok eid_1391853893203
    I want to do exactly the same when created INSIDE another symbol.
    var m_item = sym.createChildSymbol("m_item", sym.getSymbol("holder").getSymbolElement());
    Now how can I accomplish this? How can I get the Id of a dynamically created symbol INSIDE another symbol instead of created directly on the stage?
    This is what i'm after.
    Thnx in advance!

  • How do I get the Weblogic system name in WLS 6.1 sp2 without creating T3Client

    Hi Folks,
    In Weblogic Server 5.1, I get the weblogic.system.name using the following code:
    T3ServicesDef t3services = T3Services.getT3Services();
    String systemName t3services.config().getProperty("weblogic.system.name");
    What is the counterpart for Weblogic Server 6.1?
    Thanks in advance for your help.
    Bill

    The class doesn't seem to be documented in the normal documentation, but
    you can get an overview of the methods by executing
    javap weblogic.management.Admin
    with weblogic.jar in your classpath.
    Hope that helps,
    Nils
    Bill Lam wrote:
    >
    Jim,
    Can you tell me where I can find documentation for
    weblogic.management.Admin?
    Thank you.
    Bill
    "Bill Lam" <[email protected]> wrote:
    Jim,
    Thanks. I appreciate your help.
    Bill
    Jim Brown <[email protected]> wrote:
    Bill:
    The weblogic.server.name property in WLS 5.1 has been replaced by the
    property weblogic.Name in WLS 6.X. Although it is possible to retrieve
    this value by calling System.getProperty(), I would encourage you to
    use
    the new JMX services which have replaced our proprietary management
    interfaces (T3ServicesDef, et. al.). For example, you could write aJMX
    client to read the various properties of ServerMBean. To get started,
    here is the link to our WebLogic JMX documentation:
    Programming WebLogic JMX Services
    <http://e-docs.bea.com/wls/docs61/jmx/index.html>
    Please post any follow-up questions about JMX to the
    weblogic.developer.interest.management.general_and_jmx newsgroup.
    Besides writing a JMX client, you can also take advantage of the
    following short-cut for retrieving the server name. The remaining code
    for this example can be found in your WebLogic Server samples directory
    under: ./wlserver6.1/samples/examples/cluster/rmi/HelloClusterImpl.java
    private String getLocation(){
    String toReturn = null;
    try{
    toReturn = weblogic.management.Admin.getServerName();
    }catch(Exception e){
    System.out.println("HelloClusterImpl failed getLocation");
    e.printStackTrace();
    if(toReturn==null){
    return "";
    }else{
    return toReturn;
    Regards,
    Jim Brown
    Bill Lam wrote:
    Hi Folks,
    In Weblogic Server 5.1, I get the weblogic.system.name using the followingcode:
    T3ServicesDef t3services = T3Services.getT3Services();
    String systemName t3services.config().getProperty("weblogic.system.name");
    What is the counterpart for Weblogic Server 6.1?
    Thanks in advance for your help.
    Bill--
    Jim Brown
    Developer Relations Engineer
    BEA Support
    ============================
    [email protected]

  • How to get the .class file for the extended Controller .java file

    Hi,
    I did the below steps.
    1. Created New OAWorkspace
    2. Created New project
    3. Imported the page .xml file
    4. Added new .java file by extending the controller class
    5. Added code in the .java file.
    6. Ran the .xml file
    As I copied all the folders from Unix box, the page was opened.
    But My question was where can I see the .class file the extended controller. It's a .java file. How to compile and get the .class file for this .java file. If I get this .class file, I can go to the page and click the personlize page. and change the Controller name to the new path by ftp ing the new class to the cust.oracle.apps.pos.changeorder.webiui.
    Please let me know how to create the .class file.
    Thanks,
    HP

    All are Java files are stored in JDEV_INSTALL_DIR:\jdevhome\jdev\myprojects\
    In your case the path java would be
    JDEV_INSTALL_DIR:\jdevhome\jdev\ myprojects \cust\oracle\apps\pos\changeorder\webui\
    AND
    Once you compile the java file in Jdeveloper, Class files get generated @ below path
    In your case the path of class would be
    JDEV_INSTALL_DIR:\jdevhome\jdev\ myclasses \cust\oracle\apps\pos\changeorder\webui\
    Duplicate Thread-
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

  • String to Object, then get the Class

    hi I'm new in Java!
    what I want to do is to convert a String and convert it to a Object then get the classname of the Object.
    for example:
    ExampleClass classObject = new ExampleClass();
    String exampleString = "classObject";
    I want to convert the string "classObject" into an Object, then get the Class name of the Object. (Let's just say I don't know what the Class name is)

    static Class forName(String className)Please correct me if I'm wrong...
    but what I have is an Object name (in string format),
    not a Class Name.
    So I'm kinda looking for something like...
    static Object forName(String objectName)
    Class.forName() returns a Class object. From this you can create an instance.
         String s = "java.awt.Frame";
         java.awt.Frame frame = (java.awt.Frame) (Class.forName(s)).newInstance();

Maybe you are looking for

  • HP PSC 2355 Blue screen of Death and Error message/ blinking lights.

    Hello, I have a HP PSC2355 that we recently moved, after we moved it started randomly locking up with the Blue Screen Of Death (BSOD), it would give an error:0X880529ec on the BSOD, further down the screen were the characters 1:H+x?+  The (ON) light

  • Send message in HTML format from Service Desk

    Dear All, I have configure Service Desk in Solution Manager 7 EHP1 (ABAP+JAVA Stack). I am able to send the message to end user in case of change status from "New" to "In process" in PDF or TEXT format. I want to send same in HTML with link just like

  • Splitting a list (loop and insert)

    I have a text file with about 65000 records to be looped and inserted into a database. I am using cfhttp to read the list and turn it into a query. I am then using that query to loop and insert the records into a database. However, its too large and

  • Error message 2038 - unable to download books to 'Editions' and getting this error message

    I've bought 5 books over the past week and they will not download properly into Editions. The opening window shows the orange line moving across, indicating a down load and then a window opens with this error message: Gone Tomorrow: IO Error on Netwo

  • How do you switch apps in a Single App subscription?

    Am currently using Id, would like to try Ps, but don't wish to lose access to the latest Id that I'm using. When you switch, are you actually downloading a trial version that you can use simultaneously to the chosen single app already being used? The