To find attributes, parameters in the class

Hello...
Can anyone help me,
I need to write an ABAP program, which should display all the Attributes and Parameters  in the given Class. And the Output should be in HTML form.
For Example: In the selection selection screen if I give CLC2DIR_AGENT.
then the output should display all the attributes and Parameters in HTML.
Can anyone tell me the code for this..

Hi,
try the FM SEO_CLASS_TYPEINFO_GET. The FM will give you information about the class. Then you can try if the FM WWW_ITAB_TO_HTML converts the input.
Regards Rudi

Similar Messages

  • Transfer of the parameters to the class

    Merry Cristmas and Happy New Year to everyone!
    I have the following problem
    I have a class
         public class Automat
    public static int col;
    int D_size,ia,ja;
    float x_coord,y_coord;
    double fy,fx,fxy;
    double [] angle;
    Material mat;
    Automat(int dsize, int acol,int ia,int ja,float x,float y, double afx, double afy, double afxy, double[] ang, Material mat)
    From another class i call this class
    for(int j=0; j<50;j++)
    for (int i = 0; i < 25; i++) {     
    automata[jkaut]=new Automat(20, col,j,i,(int)(30+0.75*20*i),(int)yey, 0,0,0,ang, null);
    jkaut=jkaut+1;
    But when i try to retrieve the variable
    System.out.println(Integer.toString(automata[2].i));
    it gives 0
    Why does the variable i is not transferred to the class?
    Or should i declare it public static in class A?
    Thank you in advance

    As a result of my trials, i make the variables i and j
    public static,
    public class Automat
    public static int i,j;
    Material mat;
    Automat(int dsize, int acol,int ia,int ja,float
    t x,float y, double afx, double afy, double afxy,
    double[] ang, Material mat)
    angle = new double[ang.length];
    System.arraycopy(ang, 0, angle, 0, angle.length);
    mat =mat;
    }First of all u don't need to make i and j static variables --- untill it is required by the job, which doesn't seem to be in your case. A variable declared as static implies that all the objects of the class refer to the same copy of the variable unlike a non-static variable, of which every object has it's own copy.
    Secondly u don't need to make a new array angle (=new double[.....]), u can simply write write angle=ang. This will cause the pointer angle to point to the same memory address as ang. If u still have doubt look at the code posted by Naknan.
    Thirdly u can't write mat=mat (i'm sure this is just a typing mistake u did). U can write this.mat = mat.
    And when i call it from another class
    it gaves the values of i and j, but the numeration of
    hexagon is another that i expected.
    and the procedure of comparisonU r getting wrong/unexpected values probably because u have made i and j static, ie u can say that whenever u pass the values of i and j in the constructor the value of i and j get modified for all the objects/instances of the class.
    if(automata[jkaut].j==ints5[i] &&
    automata[jkaut].i==ints6
    doesn't work
    is the && means "and" or am i mistakenYES && means the logical AND operation
    I was not expected that is java so complex calling of
    variablesU won't find the ways of calling variables in java complex once u're clear with the basics & have had some experience with it. Even a good background in C/C++ makes it absolutely easy.
    It will be good for u if u go through some beginners book on java or some tutorials.

  • How do I find out what Package a class is in

    I am trying to find out what Package the classes XMLNode and XMLInterface are located in. Is there a way to search for a class to find out what package it is held in ?
    Quite often I see example code but spend wore time working out what package the class is in than actually writing code. Am I being really stupid ? (Don't answer that !!)
    Many thanks for any tips
    Dan

    you can find the class path by searching the $JAVA_TOP directory.
    Login to apps server.
    cd $JAVA_TOP
    find . -name "Classname.class"
    --Prasanna                                                                                                                                                                                                                                                                                                                   

  • Need to know how to find the name of the classes for ABAP Objects

    Hi Experts,
    I am new in ABAP Objects. I do not now the best way to find the class which I want to use. Shall I search it using F4 search help, but many of the classes does not have a description with them.
    I want to create a text field on my splitter container. Can anybody please tell me the class-name for the text field.
    Regards,
    Saurabh A. Buksh

    Hi,
    Thank you for the helping me. But, I actually want something which we call a Text Box. I do not require a Text Edit Control.
    Please tell me if you know any classes related to it and the parameters that I need to pass into it.
    Thanks & Regards,
    Saurabh A. Buksh

  • How to find the class name of the  BO

    HI
      How to find out a class for a business object.
    For example for the Business Object FORMABSENC i want to find out the class name.
    iam not able to find out from se24 or swo1.
    Or please suggest me how can i use the method createbapistructure of this businessobject.
    Regards
    vijaya

    Hello Vijay
    When you double-click on "method" AbsenceForm.CreateBapiStructure (transaction SWO1) and switch to tab ABAP you see (on ERP 6.0) that the field Name is empty meaning this BO "method" has not yet been implemented.
    Other methods are implemented by modules of function group SWXA. Checking package SWX you will see that there are no suitable classes around for this object.
    Final remark: Methods of business objects has just a semantic meaning and has nothing to do with object orientation (i.e. classes).
    Regards
      Uwe

  • FM/Class to find the class and characterstics for a given material

    Hi All,
    Is there any Class/FM to find the class and characterstics for a given material.I tried some BAPI_OBJCL* BAPI's but lot of the BAPI's need classnum as input parameter. But i need a BAPI or tables or class which can give the class and its characterstic values for a given material.

    Hi Ben
             Try ..
    BAPI_OBJCL_GETCLASSES
    BAPI_OBJCL_CREATE

  • How can i add custom attributes to a new Class Object using the API ?

    Hello everyone,
    Here is my problem. I just created a subclass of Document using the API (not XML), by creating a ClassObjectDefinition and a ClassObject. Here is the code :
    // doc is an instance of Document
    ClassObject co = doc.getClassObject();
    ClassObjectDefinition cod = new ClassObjectDefinition(ifsSession);
    cod.setSuperclass(co);
    cod.setSuperclassName(co.getName());
    cod.setName("MYDocument");
    ClassObject c = (ClassObject)ifsSession.createSchemaObject(cod);
    Everything seems to be OK since i can see the new class when i use ifsmgr. But my question is : how can i add custom attributes to this new class ? Here is what i tried :
    AttributeDefinition value = new AttributeDefinition(ifsSession);
    value.setAttribute("FOO", AttributeValue.newAttributeValue("bar"));
    c.addAttribute(value);
    But i got the following error message :
    oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject
    java.sql.SQLException: ORA-01400: impossible d'insirer NULL dans ("IFSSYS"."ODM_ATTRIBUTE"."DATATYPE")
    oracle.ifs.server.S_LibraryObjectData oracle.ifs.beans.LibrarySession.DMNewSchemaObject(oracle.ifs.server.S_LibraryObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.NewSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.createSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    void fr.sword.ifs.GestionDocument.IFSDocument.createDocument(java.lang.String)
    void fr.sword.ifs.GestionDocument.IFSDocument.main(java.lang.String[])
    So, what am i doing wrong ?
    More generally, are we restricted in the types of the attributes ? (for example, would it be possible to add an attribute that would be an inputStream ? Or an object that i have already created ?).
    Any help would be appreciated. Thanks in advance.
    Guillaume
    PS : i'm using Oracle iFS 1.1.9 on NT4 SP6 and Oracle 8.1.7
    null

    Hi Guillaume,
    you're welcome. Don't know exactly, but assume that ATTRIBUTEDATATYPE_UNKNOWN
    is used to check for erronous cases only
    and it shouldn't be used otherwise.
    Creating your own objects could be simply done via
    ClassObject ifsClassObject;
    DocumentDefinition ifsDocDef = new DocumentDefinition(ifsSession);
    // get class object for my very own document
    ifsClassObject = ClassObject.getClassObjectFromLabel(ifsSession, "MYDOCUMENT");
    // set the class for the document i'd like to create
    ifsDocDef.setClassObject(ifsClassObject);
    // set attributes and content for the document...
    ifsDocDef.setAttribute("MYFOO_ATTRIBUTE",....);
    ifsDocDef.setContent("This is the content of my document");
    // create the document...
    PublicObject doc = ifsSession.createPublicObject(ifsDocDef);
    null

  • Finding row attribute data in the debugger

    Open a Row object in the debugger and you get an incredible tangle of data with non-explanatory names.
    What I can't find is that actual attribute data that the Row holds. Is there any kind of general rule for finding it?

    Hi,
    I am not sure are you using spring framework or what. if yes you can populate data in command object in referenceData method of simpleformcontroller and that data will be available to the UI.

  • Could not find schema information for the attribute 'filename'

    Can anyone help me.
    I download the VB.NET sample source and try to run the application and got this error.
    "Could not find schema information for the attribute 'filename'"
    and
    "Could not find schema information for the attribute 'url'"
    and
    "Custom tool warning:Schema validation warning:Schema item 'element' named 'AccountWS_AccountUpate_Input' from namespace 'urn:crmondemand/ws/account/' is invalid. Namespace 'urn:/crmondemand/xml/account' is not available to be referenced in this schema"
    Thanks
    Pitiporn

    Are these errors or warnings? If warnings, you should be able to just ignore them.

  • How to find out what are the functions supported by string class

    Hi,
    Can any one let me know how to find what are all the functions supported by the string class in standard(STL) library on solaris.
    Regards,
    Vignesh

    1. Any C++ textbook that covers the Standard Library will tell you about the standard string class. A good tutorial and reference for the entire Standard Library is "The C++ Standard Library" by Nicolai Josuttis, published by Addison Wesley.
    2. WIth Sun C++, the command
    man -s3C++ basic_string
    provides documentation for the default libCstd version of the Standard Library.
    3. You could look at the <string> header itself. I don't recommend that approach.

  • From which table I can find the "Class type" and "Class" of the material?

    From which table I can find the "Class type" and "Class" of the material?
    Thanks in advance for the answers....

    Hi,
    try following table
    KSSK     Material number to class     
    KLAS     Class description     
    KSML     Characteristic name     
    CABN/CABNT     Characteristic name description     
    CAWN/CAWNT     Characteristic name
    [http://www.sap-img.com/materials/classification-view-of-material-master.htm]
    [http://wiki.sdn.sap.com/wiki/display/ERPLO/FrequentlyUsedTables]
    Regards
    kailas Ugale

  • Find the Class Name in a static method

    Hi All,
    I am trying to find the class name inside the static main method. I want to write one main method that loads an instance of the class. Other folks have suggested tricks with the security manager or creating an Exception to look at the stack trace, but these methods don�t reflect the inheritance. I want SUBCLASSES to be able to run from the command line using the inherited main method.
    public static void main(String args[]){
          JPanel thisJPanel = (JPanel) Class.forName(????).newInstance();
    }Any Ideas

    I want
    SUBCLASSES to be able to run from the command line
    using the inherited main method.Someone pointed this out already but more directly, static methods are not inherited.
    The behavior you desire ca be achieved using the Factory pattern.
    The idea of being able to subclass an application is a little bizarre. Why don't you just do something like this:
    public static void main(String[] args){
        // check that there is at least one parameter 
        JPanel thisJPanel = (JPanel) Class.forName(args[0]).newInstance();
    }

  • Finding the Class of a JavaCompiler's compiled code

    I'm using the new javax.tools.JavaCompiler to make an equation interpreter, but i'm running across some issues. I've got a test program set up:
    package test;
    import javax.tools.JavaCompiler;
    import javax.tools.JavaFileObject;
    import javax.tools.SimpleJavaFileObject;
    import javax.tools.ToolProvider;
    import java.io.IOException;
    import java.net.URI;
    import java.net.URISyntaxException;
    import java.util.Arrays;
    import java.util.Date;
    public final class TestJavaCompiler {
        private static boolean compile(JavaFileObject... source) {
            final JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
            final JavaCompiler.CompilationTask task = compiler.getTask(
                    null,
                    null,
                    null,
                    null,
                    null,
                    Arrays.asList(source));
            return task.call();
        private static String composeAProgram(String className, String expression) {
            return "package test;\n" +
                    "import java.util.Date;\n" +
                    "public final class " + className + " implements Calculator {\n" +
                    "    public double calc( double a, double b ) {\n" +
                    "        return " + expression + ";\n" +
                    "    }\n\n" +
                    "    public Date whenCompiled() {\n" +
                    "        return new Date(1220247303687L);\n" +
                    "    }\n" +
                    "}\n";
        public static void main(String[] args) throws URISyntaxException,
                IOException,
                ClassNotFoundException,
                IllegalAccessException,
                InstantiationException {
            // compose text of Java program on the fly.
            final String programText =
                    composeAProgram("Hypotenuse", "Math.sqrt( a*a + b*b )");
            System.out.println("PROGRAM TO BE COMPILED");
            System.out.println(programText);
            // compile item
            RAMJavaFileObject ob = new RAMJavaFileObject("Hypotenuse", programText);
            final boolean status = compile(ob);
            System.out.println("status of compile: " + status);
            // Load class and create an instance.
            final Calculator calculator =
                    (Calculator) Class.forName("test.Hypotenuse").newInstance();
            // execute its methods:
            System.out.println("Hypotenuse.calc( 3, 4 ) is : " + calculator.calc(3.0, 4.0));
            System.out.println("compiled on: " + calculator.whenCompiled());
    class RAMJavaFileObject extends SimpleJavaFileObject {
        private final String programText;
        public RAMJavaFileObject(String className, String programText) throws URISyntaxException {
            super(new URI(className + ".java"), Kind.SOURCE);
            this.programText = programText;
        public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException {
            return programText;
    interface Calculator {
        public double calc(double a, double b);
        public Date whenCompiled();
    }largely copied and pasted from [http://mindprod.com/jgloss/javacompiler.html], sorry about the whole "post a whole program!" thing.
    Anyways, the program compiles and runs. The dynamicly generated program compiles, but when I try to retrieve the class through Class.forName("test.Hypotenuse").newInstance(), I get an exception "ClassNotFoundException: test.Hypotenuse", and some random stack trace that starts at the forName call. I'm developing this on the NetBeans IDE, so I originally thought that the problem might be that I need to specify the parent folders NetBeans generates ("build\classes\"), but changing the forName to "build.classes.test.Hypotenuse" didn't help. Can anyone give me a reason why this isn't working? I'm pretty much stumped

    Obviously the class isn't loaded. So that suggests one of the following.
    - There is no class output (no byte codes.)
    - It is written as a file.
    - It is written into memory.
    Nothing I saw in the java docs suggests the last. Nothing I can find would suggest the first.
    super(new URI(className + ".java"), Kind.SOURCE);The URI must mean something in the above. Is there a ".java" file created somewhere? Did you open it?

  • 'ResourceDictionary' root element is a generic type and requires a x:Class attribute to support the x:TypeArguments attribute sp

    Error : 'ResourceDictionary' root element is a generic type and requires a x:Class attribute to support the x:TypeArguments attribute specified on the root element tag.
    Hi,
    I get this error when i include some namespaces in my ResourceDictionary to specify a Style for a custom control.
    Can anyone help me?
    Thx
    Stardusty

    Hi,
    That's the whole point. I don't want to use x:TypeArguments on a ResourceDictionary but the compiler says it needs it.
    And i don't know why.
    This code give no error:
    <ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespaceystem;assembly=mscorlib">  
    </ResourceDictionary>
    And by adding 3 namespaces it gives that weard error:
    <ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="clr-namespace:MyTime.View.Controls"
    xmlns:converters="clr-namespace:MyTime.View.Converters"
    xmlns:validationrules="clr-namespace:MyTime.View.ValidationRules"
    xmlns:sys="clr-namespaceystem;assembly=mscorlib">  
    </ResourceDictionary>

  • Report program to find the configuration parameters of the system?

    Hi,
    Is there any standard program in SAP to find out the configuration parameters or the configuration settings of the system and any program to find the configuration settings across systems?
    thanks & regards,
    siddhartha.
    P.S : Points will be rewarded.

    Can you concretize your question ? For what purposes ? The "system" is the front-end or server where sap are installed? Chek the RZ20 and ST06. Regards.

Maybe you are looking for