Program to find Custom objects

Hi everyone,
As per the requirement, I need to build a program which will list down all custom objects (tables, data element, domain, function module & etc) in a given program.
Could you please tell which is optimized way to write the program and which are the tables/function modules I need to use.
Thanks in advance.
Regards,
Balaji Viswanath.

hi ,
you can find lots of program here
http://www.guidancetech.com/people/holland/sap/abap/
Program to list all sap tables
REPORT ZZBGS044 MESSAGE-ID Z1 LINE-COUNT 65 LINE-SIZE 132
                NO STANDARD PAGE HEADING.
Description: This program list all tables in        regards to the   *
             selection criteria.                                     *
Customizing: You need not to make any customizing to use this program*
Change of    You only have to check that tables, functions and       *
release:     includes till exists. Bedst just to check and run the   *
             program.                                                *
Programmer:  Benny G. Sørensen                                       *
Date:        July 1995                                               *
SAP R/3      2.2F                                                    *
Corrections----
Date        Userid     Correction                                    *
xx-xx-xxxx  xxxxxxxxx  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx *
TABLES: DD02V                "SAP tables view
DATA: BEGIN OF DYNTAB OCCURS 2000.
        INCLUDE STRUCTURE BDCDATA.
DATA: END OF DYNTAB.
DATA: BEGIN OF TABLES OCCURS 100.
        INCLUDE STRUCTURE DD02V.
DATA: END OF TABLES.
DATA: L        TYPE I,
      REPL(30) TYPE C VALUE '????????????????????????????'.
FIELD-SYMBOLS:
PARAMETERS:
TABLE(30) TYPE C,
TITLE(74) TYPE C LOWER CASE DEFAULT ' ',
DOWNLOAD(1) TYPE C DEFAULT ' ',
FILENAME(65) TYPE C DEFAULT 'c:SAPDOC?',
EXCEPT(30) TYPE C DEFAULT ' '.
START-OF-SELECTION.
IF TABLE = ''.
TABLE = '*' .
ENDIF.
IF TITLE = ''.
TITLE = '*' .
ENDIF.
TRANSLATE TABLE USING '*%'.
TRANSLATE TITLE USING '*%'.
CONDENSE EXCEPT NO-GAPS.
L = STRLEN( EXCEPT ).
IF L > 0.
ASSIGN REPL(L) TO
ENDIF.
SELECT * FROM DD02V INTO TABLES
WHERE DDLANGUAGE = SY-LANGU
AND TABNAME LIKE TABLE
AND DDTEXT LIKE TITLE.
HIDE DD02V-TABNAME.
IF EXCEPT NE ''.
REPLACE EXCEPT LENGTH L WITH
INTO TABLES-TABNAME.
ENDIF.
TRANSLATE TABLE USING '% '.
CONDENSE TABLE NO-GAPS.
IF TABLES-TABNAME CS TABLE.
WRITE:/ TABLES-TABNAME, ' ', TABLES-DDTEXT.
APPEND TABLES.
ENDIF.
ENDSELECT.
IF DOWNLOAD NE ''.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = FILENAME
FILETYPE = 'WK1' "ASC, WK1, DBF, DAT, bin
TABLES
DATA_TAB = TABLES.
ENDIF.
AT LINE-SELECTION.
SET PARAMETER ID 'DOB' FIELD SY-LISEL(30) .
CALL TRANSACTION 'SE12' AND SKIP FIRST SCREEN.
AT PF8.
CHECK SY-LISEL <>
  SET PARAMETER ID 'DTB' FIELD SY-LISEL(10) .
  REFRESH  DYNTAB.
  PERFORM DYNPRO USING:
     'X'  'SAPMSTAZ'     '0100'        "Selection screen
    ,' '  'DD02V-TABNAME'  SY-LISEL(10).
  CALL TRANSACTION 'SE16' USING DYNTAB MODE 'A' .
FORM DYNPRO USING DYNBEGIN NAME VALUE.
  IF DYNBEGIN = 'X'.
    CLEAR DYNTAB.
    MOVE :  NAME TO DYNTAB-PROGRAM,
            VALUE TO DYNTAB-DYNPRO,
            DYNBEGIN TO DYNTAB-DYNBEGIN.
    APPEND DYNTAB.
  ELSE.
    CLEAR DYNTAB.
    MOVE:  NAME TO DYNTAB-FNAM,
           VALUE TO DYNTAB-FVAL.
    APPEND DYNTAB.
  ENDIF.
ENDFORM.
Yogesh N

Similar Messages

  • Program to Find Customer Details

    Hi,
    I have a specific requirement that all customer relevant data should be downloaded into flat files.
    For example, let us take customer, we need complete information of a customer in a single table so that we can export the same to flat file.
    RMDATAGEN this program is for Material. here i get all Material details. simillarly can i get all for Customer.
    Please advise if there are any programs available.
    Thanks in advance
    Thanks,

    Hi
    you can use BAPIs- BAPI_CUSTOMER_GETDETAIL2 and BAPI_CUSTOMER_GETDETAIL1 to get the customer details.
    Regards
    Geeta Gupta

  • Customizing object urgent

    how to find customizing object in production?so that i can copy a client

    Hi,
    Check if threre's an entry for this customizing object in table CRMATAB on your R/3. I guess that's one of the reason it can't be downloaded.
    Report SMOF_FILL_CRMATAB fills up this table on ECC when this report is run from your CRM.
    Tnx.

  • How to find out which program fill a custom table ?

    Dear All,
    I am trying to find out which program fill custom table, I tried se11, which programs used this custom table via where used list but could not find. Is there any different way ?
    Regards

    Hi Sappcon,
    yes, it is as Brad said, but you should extend the approach regarding this tables content: If it is related to an existing business object (i.e. order, delivery or the like), you may have a look at user exits/Badis in that field.
    Also, the dynamic approach is possible. First use report RPR_ABAP_SOURCE_SCAN to find the name of the table in all programs in customer name space - it may be defined as a constant in program/function group/class.
    If the dynamic approach is used, the name of the table may be determined by reading another (custom) table or even in a programs text pool. You may find this by searching a pattern UPDATE() - or MODIFY/INSERT in customer programs.
    If the table has update date/time fields, check what jobs or online activities can be responsible.
    If, after all, you still do not know, then I'd say this is a consulting issue
    Regards,
    Clemens

  • Is there a way to find version for customizing objects?

    hi
    Since we dont have version management for customizing objects like we have for programs or r/3 repository is there a way or some uitlity to find the version of customizing objects?
    ~Suresh

    Hi
       SAP default will provide Version Management na.
    go to se 38 -> ur program -> Utilities -> version management.
    Otherwise VSS(Visual Source Save ) is a tool used for version management.
    Check for VSS whether it is there in your company.
    Regards,
    kumar

  • Track Custom Objects with program

    Hello Experts,
    I have one requirement where based on program name / function module, I need to find out
    how many custom tables, structures, FM i.e. custom objects are used inside that program / function module.
    I need to do this programatically.
    Can anybody suggest me for the same?
    Regards,
    Neha

    Hi Ajay,
    I believe using that Database view, we will get only information about that program. Not the custom object associated with it.
    Regards,
    Neha

  • How to find CUSTOMER EXIT for a Standard SAP program

    How to find CUSTOMER EXIT for a Standard SAP program

    Hi
    To introduce the techniques of enhancement in standard SAP system. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
    They do not affect standard SAP source code.
    When you add new functionality to your SAP System using SAP’s exits, you do not alter the source code of standard SAP programs in any way. The code and screens you create are encapsulated as separate objects. These customer objects are linked to standard applications, but exist separately from SAP’s standard software package.
    They do not affect software updates.
    When you add new functionality to your SAP System using SAP’s exits, your objects (called customer objects) must adhere to strict naming conventions. When it comes time to upgrade a to a new software release, customer objects’ names ensure that they will not be affected by any changes or new additions to the standard software package.
    Customer exits are not available for all programs and screens found in the SAP System.
    Any change made to an SAP object in a customer system is called a modification. Customers usually modify their systems for one of two reasons. Either they make changes to the SAP standard in order to adjust the R/3 System to their specific business needs (actual modifications), or they alter individual SAP objects in order to correct an error (as recommended in an SAP error note).
    You should only modify the SAP standard if the modifications you want to make are absolutely necessary for optimizing work flow in your company. Be aware that good background knowledge of application structure and flow are important prerequisites for deciding what kind of modifications to make and how these modifications should be designed.
    SAP application programmers create SAP enhancements in transaction SMOD using function module exits, menu exits, and screen exits.
    Customers are given a catalog containing an overview of existing SAP enhancements. They can then combine the SAP enhancements they want into an enhancement project using transaction CMOD.
    SAP enhancements are made up of component parts. These components include function module exits, menu exits, and screen exits. A specific component may be used only once in a single SAP enhancement (this guarantees the uniqueness of SAP enhancements).
    Customer enhancement projects consist of SAP enhancements. Each individual SAP enhancement may be used only once in a single customer enhancement program (this guarantees the uniqueness of a customer project).
    SAP application programmers preplan function module exits, menu exits, and screen exits for their applications and combine them to create useful enhancements for the R/3 System.
    Customers create their own enhancement projects for their systems using SAP enhancements. You can customize the individual components of an enhancement project by creating your own include programs (for function module exits), texts (for menu exits), and subscreens (for screen exits).

  • How to find all those list of SAP standard and custom objects that are changed from a specific point of time

    Hi all,
    Please let me know the process to track or find all the SAP Standard and custom objects. that got changed from a specific point of time.
    Is there any function module or any table where this change log is maintained.?
    I just only need the details ,wheather that SAP standard or Custom object has got changed or not.
    Thanks in advance

    Hi RK v ,
    I really don't know what your actual requirement is , but if you want to know the objects as per the modification , then transport request will be much help to you .
    Have a look into table E070 and E071 .
    Regards ,
    Yogendra Bhaskar

  • How to get list of custom objects used in abap report program?

    Hi friends,
    I have a requirement in which I have to scan the entire abap report and retrieve list of custom objects used in it for example custom tables, data elements, structures, table types etc,. Is there any provision in SAP like fuction modules to do this functionality?  As of now I am coding everything manually where so many possibilities are there for all kinds of objects. Provide your answers and suggestions...
    Thanks,
    Nastera

    Hi,
    The best way to do this is environment analysis. Follow the steps:
    1. Open se38, type in the program name (don't click on on display/change or create button, stay on first screen only)
    2. Click on environment analysis button (hot key SHIFT+F4)
    3. It will throw a pop-up, which will ask for type of object you want to see, which are linked /used by this program. select all (or may be if you are only interested in Tables, then select table only)
    4. Hit 'Enter'
    You will get the full list of all objects used in this report program. Just note down the one which starts with Z or Y and that's it.
    Cheers,
    Anid

  • Problem finding object for Custom Object Test

    I need to create a custom object test that tests whether a an element is present after a record gets inserted into the database. The script is databanked and each iteration needs to insert a databanked record, then evaluate my custom object test to make sure the record was inserted. The trick is in writing the expression that finds the correct custom object. After one iteration, this is the code that finds the custom object;
    RSWApp.om.GetElementByPath "window(index=0).link(text=""Category D"" | href=""javascript:OpenModal('DocumentCategoryAddEdit.aspx?documentCategoryId=377','400');"" | index=19)", element
    Instead of always grabbing the object whose text is "Category D", I want to grab the object whose text is <<category>> (ie retrieved from a databank file). Search in the href or index isn't helpful because these will change with each iteration through my script.
    I tried to modify the GetElementByPath to this:
    RSWApp.om.GetElementByPath "window(index=0).link(text=dbValue|)", element
    where dbValue is a local parameter that I set earlier on. When I run this, I get an object not found error.
    Any ideas?

    I much prefer to use RSWAPP.om.findElement. It is much more robust than FindElements.<BR>
    RSWApp.GetDatabankValue Is what is needed anytime you want to return Databank values to the VBA environment<BR>
    <BR>
    Your code should look something like the following:<BR>
    <BR>
    Dim dbVal as string
    <BR>
    RSWApp.GetDataBankValue "MyDbVariable", dbVal<BR>
    <BR>
    This will return the contents of "MyDbVariable" which is defined and bound in the databank wizard to VBA variable dbVal.<BR>
    <BR>
    You can then use DBVal in your path:
    <BR>
    RSWApp.om.GetElementByPath "window(index=0).link(text="" & dbVal & "" | href=""javascript:OpenModal(&#39;DocumentCategoryAddEdit.aspx?documentCategoryId=377&#39;,&#39;400&#39;);"" | index=19)", element<BR>
    <BR>
    If you decide to use Find elements instead of GetElementByPath, the syntax would like the following: <BR>
    <BR>
    Set element = RSWApp.om.FindElement(dbVal, "A", "InnerText") <BR>
    As you can see it is much simpler.<BR>
    <BR>
    Hope this helps!

  • Z*Programs - Custom Objects List

    Hi,
    I wanted to know if there is any standard SAP T-Code for listing all the Z*Programs (ABAP Custom Objects) with Frequency of Use, or Hihgly used order, number of time used etc. 
    We wanted to take out all the Z programs that are frequently used for the purpose of conversion/upgrade to mySAP ECC 5.0.   We wanted to work on the highly used ABAP programs as the first priority.
    Anybody with answer, will be hihgly appreciated.
    Regards,
    Subbu

    Why don't u use a home made program ?
    All info is stored in TADIR just select with this table with name like Z% or Y%...
    That is my point of view...
    report zlist.
    tables : tadir.
    select *
      from tadir
      where obj_name like 'Z%' or obj_name like 'Y%'
      order by object.
    write : / tadir-OBJECT     , tadir-obj_name.
    endselect.

  • Custom Objects List Using ABAP Program

    Hi Experts,
    We have  a requirement to collect all the custom objects(reports,smartforms,ddic objects etc)developed in ECC.
    We need list basing on condition of 'last changed by' .
    So for few objects we have 'last changed by' field and we are able to get the list but for few custom objects 'last changed by' field is not maintained.
    Example for BTE there is no 'last changed by'...
    Please suggest if any ideas.
    Regards,
    Rafi

    Hi Rafi,
    Do a source scan using RS_ABAP_SOURCE_SCAN for reports..Put Z* and give your respective conditions on last change field.
    2.Check the Transport list to production you will get other details.
    Hope it will be helpful for you.
    Regards,
    Kannan

  • Custom Object 1 - Batch Deletion

    Hello,
    I am trying to delete all records using Batch Delete option from a Custom Object. The option is not present in CRMOD even when I am the Admin of CRMOD. I have checked the Access Profile and everything seems alright.
    Please suggest me some alternatives?
    Thank you.
    Regards,
    Rohit Dassani

    Hello,
    you have only one alternative. You could write a program (Java, .Net, etc.) for delete records from Custom Object(s) by using CRMOD Web Service.
    Certainly you can find some samples in the Net.
    Regards

  • Identification of Customer Objects

    We are going through upgrade process for a customer, and trying to identify custom objects in th system.
    Please suggest, do we have any way to find out that what are the objects customer has created in the system which are not SAP standard. We do not have very precise idea that what name space do they use.
    If we have any transaction or table to track it, please suggest.

    Hi,
    Normally SAP would advocate the use of Z* or Y* as customer-defined type.
    For programs, you might wanna try transaction SE38, then look for Z* or Y* programs.
    For function modules, look under the same Z* and Y* criteria.
    For transactions, you can use transaction SE93, and use the lookup.
    For a good overview of all the possible customer-defined programs, fields etc, you can use transaction SE80.
    Hope this helps.
    Cheers,
    Gimmo

  • How to run SPAU & Custom Objects Mod

    Hi
    I am new to upgrade , Can anyone guide me how to run
    SPAU & Custom Objects Mod
    Thanks
    Parin
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Oct 30, 2011 10:41 AM

    Hi Ramana,
    what kind of report you want to  execute? the report is Executable Report or Modulepool prog. ??
    if it is a executable program so when u execute (F8) from SE38 when u find the selection-screen in the menu bar ->Program ->Execute in Background( F9) option exits there u can schedule your report in Background or else use toce SM36 ( Define Background Job).
    Why you want to run it in background with transaction code if you have this options?
    Regards,
    Sunil kairam.

Maybe you are looking for

  • JDev9051 with MS Access

    I have developed an ADF Swing application with ADF BC4J components - only simple editable jTable. I used MS Access database and jdbc-odbc connection. With JDev905Preview everything worked fine. With jDev9051 when trying to edit field in the table fol

  • Bandwidth surges and hundreds of requests in logs - Strange Behaviour

    So, beginners luck I guess... Basically set up a client site to redirect from our existing site www.abc.com (hosted externally) so the client portion would direct to client.abc.com. I had all the internal stuff setup correctly, dns for the client.dom

  • Change in ARE3 form..

    hi experts, i need to change the standard ARE3 form but i found that the form has dynamic coding producing the smartform. Can you pls suggest how to add some data to printed in the smart form? We have to enter the license number also in the form whic

  • My local (win7) machine actively refusing to connect to a web service created on same machine (VS2012) -- how to resolve?

    I created a web service in an Asp.Net application (VS2012) which uses Entity Framework to connect to the AdventureWorksLT database on my local sql server (2008 R2 running on win7).  The web service appears to run fine when I build it and run it and 

  • Indesign CS4 - Print Booklet Help.

    Hi, I have just been looking at the "Print Booklet" function in CS4 and was hopping you could help with some advice. All of my jobs get sent to me as PDF's ready for imposing for our indigo 5000 Presses. From what i can see all I need to start using