How to identify various objects used in code

Hi All,
Can anyone tell me how can I list down various objects used in a program.
For example in a report program if I am calling a function module, calling an include program, implementing a class and so on. Now I want to list down the objects used in the above program.
Thanks in advance,
Venkat

This can get you started.
DATA:
  code_rec(132),
  itab LIKE STANDARD TABLE OF code_rec.
DATA:
  obj_text(40),
  it_search LIKE STANDARD TABLE OF obj_text.
PARAMETERS:
  prog        TYPE sobj_name.
START-OF-SELECTION.
  PERFORM search_table.
  REFRESH itab.
  READ REPORT prog INTO itab.
  CHECK sy-subrc = 0.
  LOOP AT itab INTO code_rec.
    TRANSLATE code_rec TO UPPER CASE.
    LOOP AT it_search INTO obj_text.
      SEARCH code_rec FOR obj_text.
      CHECK sy-subrc EQ 0.
      WRITE:/ 'Found ', obj_text, 'in', code_rec.
    ENDLOOP.
  ENDLOOP.
*&      Form  search_table
FORM search_table.
  REFRESH it_search.
  PERFORM add_a_search USING 'CALL FUNCTION'.
ENDFORM.                    " search_table
*&      Form  add_a_search
FORM add_a_search USING  p_text.
  obj_text =  p_text.
  TRANSLATE obj_text TO UPPER CASE.
  APPEND obj_text TO it_search.
ENDFORM.                    " add_a_search

Similar Messages

  • How to identify empty InfoObjects used in a Cube

    Hello Gurus!
    I need some help. How do I find empty InfoObjects used in a Cube?
    I have 20+ Cubes and I need to identify those objects in the cubes, which are empty /not filled/. Statistics
    Except writing an ABAP
    Thanks in advance
    Martin

    Thank you for such fast response!
    @Tarak: unfortunately in the TX: LISTCUBE /or display data via RSA1/ you cannot display all characteristics for 'larger' cubes. Additionally you would have to select filter on each characteristics separately.
    @Aduri: could you please give me a more detailed hint? I know cube statistics for load requests, for storage space, for DB time, for IO in report use, but not for IO data, no data.
    @Analyst: Transactional data. Well, to check each mapping for 20+ cubes is a possibility. I have hoped to find a faster way, however.

  • How to identify workbooks are using pre-calculated servers or not?

    Hi all,
    I have a lot of work books but i need to find out which workbooks are using precalculated servers or not ?
    How to identify it?
    Thanks
    pooja

    Hi,
    Go to transaction T code RSPRECADMIN.
    1.This has a list of all your precalculation
    server.
    2.To view what is in the queue, right
    click on a server and choose
    u201CDisplay Current Queueu201D.
    3.This queue will show all precalculation
    jobs that are open,
    currently running, or complete.
    Regards,

  • How much memory do Objects use?

    I'm not sure how to ask this, but how does java manage memory usage for multiple objects? Is the memory needed for a classes methods shared amongst the objects of that class, or does each object have memory for it's methods allocated for its use alone?
    For example:
    class Foo {
       public void doSomething();
    }Let's say I have 30 instances of Foo. I can think of 2 options (but I maybe wrong)
    Case A: Each instance of Foo has it's own memory allocated for it's own copy of doSomething(), resulting in the total memory
    usage of 30 instances of Foo being about 30 times how much memory 1 Foo uses
    Case B: Each instance of Foo looks at a common copy of doSomething(), resulting in less memory needed since there is only one copy of doSomething in memory.
    If the case is A, Static methods would seem to be potentially more memory efficient. Assuming my thinking is correct(and feel free to say I'm dead wrong), would it not make sense to make as many functions as possible static?

    jverd wrote:
    Executable code (initializers, methods, constructors): One copy of the bytecodes per ClassLoader that loads the class. Static/non is irrelevant.Seems to answer the question in full.
    With reference (no pun intended) to the subject.
    Instance variables (non-static member variables): One copy of the variable per instance of the class. Stored on the heap.
    Class variables (static member variables): One copy of the variable per ClassLoader that loads the class. Stored on the heap.
    Local variables, including parameters: One copy of the variable per invocation of the method.Just to complete the picture a bit (but NOT to contradict earlier comments).
    Primitive variables - as above.
    Reference variables - as above. Note that method local reference variables are stored on the stack but
    any object instances referenced by these are stored on the heap even so.

  • How to get MAC address using java code

    hi friends
    please write me, How can I get MAC Address of local machine using java code.I don't want to use JNI.
    Please reply me. Its urgent for me
    Thanks in advance
    US

    You have several ways under *nix
    ifconfig -a | grep HWwill output something like
    eth0      Lien encap:Ethernet  HWaddr 00:11:FF:74:FF:B4combined with Runtime.getRuntime().exec("")and Process.getInputStream()you should be able to read it easilly.
    Under Windows (and Linux of course) try jpcap (http://sourceforge.net/projects/jpcap)
    You can also use jnative as a generic tool (http://sourceforge.net/projects/jnative)
    --Marc (http://jnative.sf.net)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to bypass printer setting using abap code?

    Dear All,
    I want to bypass printer setting using abap code?
    I am printing sticker using a code and i dont want to display printer setting .
    I want direct ouput ?
    Regards
    Steve

    Are you using reports or scripts/smart forms? You can use the parameter for no_dialog = space(use the relevant parameter).

  • How to query a dataset using custom code in report builder 3.0

    Hi,
    Can anyone please suggest whether it is possible to query a dataset by using custom code in report builder 3.0.
    Thanks in advance.

    Hi Purbasha,
    please see below similar thread:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/9af8f39a-9dc5-49ab-91af-2f64198c8477/ssrs-2008-custom-code-for-database-query
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/440ff5de-1c21-47de-95d8-e4212d6cef6d/dataset-in-custom-code-in-sql-server-reporting-services?forum=sqlreportingservices
    swallow

  • How to identify custom object in repository

    Hi,
    I need to prepare a list of Custom objects(applets, view, screens etc.,) that are existing in a repository.
    How do i identify them?
    version - siebel 7.5.13
    thanks
    Goud

    Assuming naming convention is not strongly implemented as your site, you might want to start with searching for all the objects which are not created by 'SADMIN' (assuming developers don't create objects with SADMIN as user), you might want to use 'Flat' view for that purpose or use sql.

  • How to identify the object type in xpress

    In ui global.startdate is evalued with Date object type when use display class as DatePicker. After save, the global.startdate is String type. The other place in the code has use this global.startdate to convert to special date string. The problem is how to detect what data type the global.startdate is at one particular moment?

    In my case I do the following.
    1. Use the following rule to display the date in the desired format.
    <invoke name='dateToString' class='com.waveset.util.Util'>
    <ref>inputdate</ref>
    <s>MM-dd-yyyy</s>
    </invoke>
    At any point in time if one wants to know, one explicity needs to convert the java.util.Date obtained from datepicker using dateToString method in the Util class.
    2. When one wants to insert the date into the database then the following can be done.
         // First Convert the dates into appropriate formats
         SimpleDateFormat formater = new SimpleDateFormat("mm-dd-yyyy");
         java.sql.Date _startDate     = null;
         if(startdate != null) {
              java.util.Date parsedDate = formater.parse(startdate, new ParsePosition(0));
              _startDate = new java.sql.Date(parsedDate.getTime());
              System.out.println("_startDate::::"+_startDate);
         }

  • How to create a dashboard using xhtml code in the spreadsheet

    i have a 4.0 dashboard with xhtml code or parameters in the spreadsheet to drive the dashboard. I am tried to create a new dashboard by copying the code it did not work. i searched all the link nothing works. any idea?
    The sample code in the embedded spreadsheet looks like the one listed below:
    &BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=
    how to create this kind of code to bind your BEx query to the excel spreadsheet to run the dashboard.
    Thanks
    York

    Hello Anirban,
    As we can't change the layout of Smartfrm dynamically we have to fix it.
    1. Just Create a table structure of 5 equal sized column.
    2. Now create a structure in TYPES
        TYPES : BEGIN OF i_table,
                        FIELD1(15) type c,
                        FIELD2(15) type c,
                        FIELD3(15) type c,
                        FIELD4(15) type c,
                        FIELD5(15) type c,
                     END OF i_table.
    3. Now create a table in "FORM INTERFACE"
    4. Display the same in your smartforms.
    Now in your Print program create the same table as above.
    1. Now you can move the first 5 fields data from your dynamic internal table to the interface table.
    2. You can add up a popup saying only first 5 fields can be displayed.
    Note : if the field length is bigger then you have to use a variable to cut out only first 15 character to put it into the interface table.
    Hope this hint helps you a bit to gather some knowledge for your requirement.
    Cheers,
    Suvendu

  • How to identify the encoding used in a file ?

    Hi all,
    I have to read a file and check it is encoded in UTF-8. How I can do this ?. If fiel is saved in MS Windows I can check for BOM. What if the file is saved using Java API ?. Is there any code(copy left code) available for doing this ?
    rgds
    Antony Paul

    The problem is that ther eare no definite tests for character encoding. A particular byte stream can be valid in any number of different encodings (even if the resulting characters are not correct). If the characters don't happen to include any above unicode 127 then a UTF-8 stream is identical to the same characters in any number of different encodings.
    It's not just a matter of there being no code for it in the library, it's impossible to do with any certainty, and to do it even probabalistically you'd have to run the results through a multi-lingual spelling checker.
    If you just ask java.io to open a Reader without specifying an encoding it will assume the default encoding of your system.

  • How to bound the objects used in the mapping?

    HI,
    Could any one please explain me how to bound all the objects from a mapping at a single shot? Can we do this using OWB?
    Thank you,
    Regards,
    Gowtham Sen.

    Hi,
    Thanks to all for replying.
    I am using OWB 10G R1
    I exported the mapping and the depenedent objects such as tables, sequences. and so on.
    But while exporting I couldn't able to export public transformations. So the trasformation objects which I used in the mapping are set as not bounding to any object.
    Now I manually import the transformation.
    So Could any one explain, how to to do this reconcilation using OMB plus?
    Thank you,
    Regards,
    Gowtham Sen.

  • Oracle 8.0 - how to identify temporary tablespace using dba v$ views

    Hello experts,
    can someone tell me how can I query a v$ or dba_ view to identify which are the temporary tablespace in a 8.0.5 Oracle database?
    Thx in advance.

    8.0 did not have the concept of tempfiles.
    However, a Tablespace could be created as a Temporary tablespace (still using "normal" datafiles) with CREATE/ALTER TABLESPACE tablespacename TEMPORAR.
    Meaning : You can't query DBA_TEMP_FILES or V$TEMPFILEs. You have to query DBA_USERS to identify the designated Temporary Tablespace(s) and then query DBA_TABLESPACES for the storage parameters and then query DBA_DATA_FILES for the files.
    You can also query DBA_TABLESPACES for CONTENTS='TEMPORARY' and then query DBA_DATA_FILES.
    Hemant K Chitale

  • How to disable client cookie using Servlet code

    Hi All,
              I want to disable the client cookie using JSP or servlet code.Is it possible how I can do it.
              Thanks in Advance .

    Hi,
              first of all, the URL rewriting option (URLRewritingEnabled) in the weblogic.xml must be set to true.
              Now, for all first-timer web requests the BEA WLS always uses URL rewriting in addition to cookies to see wether the browser accepts cookies or not.
              I would try to rip of all of the cookies in the header, then flush the response to force the http header to be written.
              I have never tried it and has no idea if it will work, however the teory behind supports the idea.
              This will not work for toggling session tracking mechanism from a session already established with cookies, the session will be lost if attempted to do this without the URL-rewriting enabled on the page.
              - Anders M.

  • How to generate soap header using java code

    Hi,
    I need to generate the following soap header using java DOM.
    Can you send me some java code snippet to do so?
    <soapenv:Header>
    <api:RequesterCredentials soapenv:mustUnderstand="0" xmlns:api="urn:ThinkPod:api:ThinkPodAPI" xmlns:ebl="urn:ThinkPod:apis:eBLBaseComponents">
    <ebl:ThinkPodAuthToken>YourToken</ebl:ThinkPodAuthToken>
    <ebl:Credentials>
    <ebl:DevId>YourDevId</ebl:DevId>
    <ebl:AppId>YourAppId</ebl:AppId>
    <ebl:AuthCert>YourAuthCert</ebl:AuthCert>
    </ebl:Credentials>
    </api:RequesterCredentials>
    </soapenv:Header>

    You want to generate that on a mobile device or how is that related to CLDC and MIDP?

Maybe you are looking for