How to find out in which items, pages a function/procedure,.. will be used?

I'm searching for the answer for:
Are there any script tools which find all place in apex , where functions/ packages/ procedures be used ?
-> want find where p_my_function is using. (Item level, page level, ....)
Thank in advanced
Hendrik
Edited by: Hendrik Schmidt on Dec 13, 2010 12:46 AM

Based on the APEX views (*Home > Utilities > Application Express Views*) I've been using this, run in the parsing schema for the application. It's set up to look at one application at a time as this is the best fit for our requirements:
with search as (
      select :search_term search_term from dual)
  , app_source as (
      select
                'Application Computation' component
              , null                      page_id
              , null                      sequence
              , aac.computation_item      name
              , null                      point
              , aac.computation_type      type
              , to_clob(aac.computation)  source
              , s.search_term
      from
                apex_application_computations aac
              , search                        s
      where
                nvl(aac.condition_type, 'None') != 'Never'
      and       (   aac.computation_type like 'SQL%'
                 or aac.computation_type like 'PL/SQL%')
      and       regexp_like(aac.computation, s.search_term, 'ni')
      union all
      select
                'Application Process'
              , null                
              , aap.process_sequence
              , aap.process_name    
              , aap.process_point   
              , aap.process_type    
              , aap.process         
              , s.search_term
      from
                apex_application_processes  aap
              , search                      s
      where
                aap.application_id = :app_id
      and       nvl(aap.condition_type, 'None') != 'Never'
      and       regexp_like(aap.process, s.search_term, 'ni')
      union all
      select
                'Application Tree'
              , null
              , null
              , aat.tree_name
              , null
              , null
              , to_clob(aat.tree_query)
              , s.search_term
      from
                apex_application_trees  aat
              , search                  s
      where
                aat.application_id = :app_id
      and       regexp_like(aat.tree_query, s.search_term, 'ni')
      union all
      select
                'LOV'
              , null
              , null
              , aal.list_of_values_name
              , null
              , null
              , to_clob(aal.list_of_values_query)
              , s.search_term
      from
                apex_application_lovs aal
              , search                s
      where
                aal.application_id = :app_id
      and       aal.lov_type = 'Dynamic'               
      and       regexp_like(aal.list_of_values_query, s.search_term, 'ni')
      union all
      select
                'Page Process'
              , aapp.page_id
              , aapp.execution_sequence
              , aapp.process_name     
              , aapp.process_point    
              , aapp.process_type     
              , aapp.process_source   
              , s.search_term
      from
                apex_application_page_proc  aapp
              , search                      s
      where
                aapp.application_id = :app_id
      and       nvl(aapp.condition_type, 'None') != 'Never'
      and       regexp_like(aapp.process_source, s.search_term, 'ni')
      union all
      select
                'Page Region'
              , aapr.page_id
              , aapr.display_sequence
              , aapr.region_name     
              , aapr.display_position
              , aapr.source_type     
              , aapr.region_source   
              , s.search_term
      from
                apex_application_page_regions aapr
              , search                        s
      where
                aapr.application_id = :app_id
      and       aapr.source_type in ('Report', 'PL/SQL', 'Tabular Form', 'Tree')
      and       nvl(aapr.condition_type, 'None') != 'Never'
      and       regexp_like(aapr.region_source, s.search_term, 'ni')
      union all
      select
                'Page Item'
              , aapi.page_id
              , aapi.display_sequence
              , aapi.item_name
              , aapi.region
              , aapi.item_source_type
              , to_clob(aapi.item_source)
              , s.search_term
      from
                apex_application_page_items   aapi
              , apex_application_page_regions aapr
              , search                        s
      where
                aapi.region_id = aapr.region_id
      and       aapr.application_id = :app_id
      and       nvl(aapi.condition_type, 'None') != 'Never'
      and       nvl(aapr.condition_type, 'None') != 'Never'
      and       (   aapi.item_source_type like 'SQL%'
                 or aapi.item_source_type like 'PL/SQL%')
      and       regexp_like(aapi.item_source, s.search_term, 'ni')
      union all
      select
                'Page Computation'
              , aapc.page_id
              , aapc.execution_sequence
              , aapc.item_name
              , null
              , aapc.computation_type
              , to_clob(aapc.computation)
              , s.search_term
      from
                apex_application_page_comp  aapc
              , search                      s
      where
                aapc.application_id = :app_id
      and       nvl(aapc.condition_type, 'None') != 'Never'
      and       (   aapc.computation_type like 'SQL%'
                 or aapc.computation_type like 'PL/SQL%')
      and       regexp_like(aapc.computation, s.search_term, 'ni')
      union all
      select
                'Page Validation'
              , aapv.page_id
              , aapv.validation_sequence
              , aapv.validation_name
              , null
              , aapv.validation_type
              , to_clob(aapv.validation_expression1 || '/' || aapv.validation_expression2)
              , s.search_term
      from
                apex_application_page_val  aapv
              , search                     s
      where
                aapv.application_id = :app_id
      and       nvl(aapv.condition_type, 'None') != 'Never'
      and       (   aapv.validation_type like 'SQL%'
                 or aapv.validation_type like 'PL/SQL%')
      and       regexp_like(aapv.validation_expression1 || aapv.validation_expression2, s.search_term, 'ni'))
select
          page_id
        , component
        , sequence
        , name
        , point
        , type
        , search_term
        , count(*) over (partition by search_term) func_use_count
from
          app_source
where
          search_term is not null
order by
          page_id nulls first
        , component desc
        , sequence
        , name
        , point
        , type;Edited by: fac586 on 13-Dec-2010 09:14
Note that this is on an APEX 3.0 installation. There may be more potential locations to be checked in later versions.

Similar Messages

  • How to find out the selected item in the lsit

    Hi all,
    How to find out the selected item in the list,can any please post some examples which easy to understand,because iam not a good programmer

    This sample program uses a checkbox as selection,  you could also use a HOTSPOT.
    report zrich_0002 no standard page heading.
    data: imara type table of mara with header line.
    data: check_box(1) type c,  
       report_lines type i.
    start-of-selection.
    * Create the gui status with BACK button in standard place
    * and a READ button in the application toolbar
      set pf-status 'CHECK'. 
    select * into corresponding fields of table imara           from mara up to 100 rows.
    loop at imara.   
    write:/ check_box as checkbox, imara-matnr, imara-matkl.  
    hide imara-matnr. 
    endloop.
      report_lines  = sy-linno - 1.
    top-of-page. 
    write: 'List of materials'.  uline.
    top-of-page during line-selection.  write:  'Material.....'.  uline.
    at user-command. 
    case sy-ucomm.  
    when 'READ'.   
      check_box = space.    
    set pf-status 'CHECK' excluding 'READ'.
          do report_lines times.       
    read line sy-index field value check_box.    
       if check_box = 'X'.        
    write:/  'You have selected material',
    imara-matnr.       
    endif.   
      enddo. 
    endcase.
    Regards,
    Rich Heilman

  • How to find out particular work item is trigger by particular transaction

    Hi,
    can any one tell how to find out particular work item is trigger by particular transaction. in swfrevtlog we ill get custom obj type and also super business obj type,but i need to identify this work item id is triggered by this transaction. can any one help,
    Thanks in advance

    Hi,
    Sorry, but I don't believe that's possible. Even if you can identify the program, there could be multiple transactions that executed it.
    The only possible way, I think, would be to add an enhancement / badi which uses the callstack to determine the calling transaction at the time he event is raised (and then stores it somewhere).
    But that's not very elegant.
    Why do you need to know the triggering transaction? To influence the workflow? If so, another approach might be this:  pass the transaction code as an additional parameter to the workflow event & then pass that to the workflow.
    cheers
    Paul

  • How to find out on which e-mail apple sand me my iForgot mail

    How can I find out on which e-mail apple sand me my iForgot mail?
    And in addition I would like to transfer my bought songs and apps to a new icloud account...
    A few months ago I created my self a new Appleaccount with an new email wich has a more professional name than my curren one.
    The problem is, that I forgot the new E-Mail and the safety E-Mail (if there is one(I hope so)). I actually found out the E-Mailaddress I used as userE-Mail.

    SimonsOldAccountHeWantsToReplace wrote:
    How can I find out on which e-mail apple sand me my iForgot mail?
    A few months ago I created my self a new Appleaccount with an new email ...
    The problem is, that I forgot the new E-Mail and the safety E-Mail ...
    See Here > Apple ID: Contacting Apple for help with Apple ID account security
              Ask to speak with the Account Security Team...
    SimonsOldAccountHeWantsToReplace wrote:
    And in addition I would like to transfer my bought songs and apps to a new icloud account...
    Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID
    See Item 5 here  >  http://support.apple.com/kb/HT5622

  • How to find out in which role an authority object is included

    Hi,
    I need to call web services by an external application. Therefore the authorization object S_SERVICE is needed to call services.
    Now I want to add this object to a specific sap user, but how can I find out in which role this object is included? I don't want to create a new role for just only this standard SAP authority object.
    Thank you!

    >
    Torben Larsen wrote:
    > Hey!
    >
    > Thank you for your answer. I have now found roles, which include this object. But I still have the authorization problems and can see that the object S_SERVICE is the problem, when tracing with ST01.
    >
    > I'm not that much into authorization stuff. So do I need also a profile? I only could call the web services by using profile SAP_ALL.
    >
    > thank you!
    Now that you have required role with you .. simple assign that role to user id from transaction SU01 (Roles tabs).
    Sap standard roles will already have profile in it. You might have to generate the profile. Goto transaction PFCG enter role name hit display button , goto Authorisation tab, hit Display Authorisation button and on next screen press generate button (Shift+f5).
    By the way you can use SUIM to find role and profile for given authority object

  • How to find out whether certain items are /will be rendered?

    Hi,
    this is what i'm trying to do - from inside an apex session i'm trying to find out all the items that will be rendered (in the same application on a certain page)
    It seemed to be easy:
    for c1 in(
    SELECT ITEM_NAME
      FROM apex_application_page_items a
      where application_id = :APP_ID
        and ... --- certain other conditions
        and my_function_render(condition_type, condition_expression1, condition_expression2) = 1
    loop
        --- if item rendered process the item
    end loop;I found an (undocumented) API wwv_flow_check+ that seemed to fulfill all my dreams, but
    here's what happened:
    check_condition - although i converted the condition_type back to condition code with help of apex_standard_conditions, the program works only with PLSQL_EXPRESSION and EXISTS.
    All other conditions in use (i tried ITEM_IS_NOT_NULL, REQUEST_NOT_EQUAL_CONDITION, ITEM_IS NULL, VAL_OF_ITEM_IN_COND_EQ_COND2, NEVER) return in an error
    ORA-06503: PL/SQL: Function returned without value
    Is there some trick for the check_condition function to accept all the other condition types as well or should i write those cases into my program? It seems pretty easy, but feels like reinventing the wheel...
    database 10.2.0.4, apex 3.1.1
    Thanks,
    Andres
    P.S i also tried the who other functions in the package
    check_cond_plsql_expresion works fine
    but check_condition_sql_expresion throws
    ORA-14552: cannot perform a DDL, commit or rollback inside a query or DML??
    Andres

    Hi,
    this is what i'm trying to do - from inside an apex session i'm trying to find out all the items that will be rendered (in the same application on a certain page)
    It seemed to be easy:
    for c1 in(
    SELECT ITEM_NAME
      FROM apex_application_page_items a
      where application_id = :APP_ID
        and ... --- certain other conditions
        and my_function_render(condition_type, condition_expression1, condition_expression2) = 1
    loop
        --- if item rendered process the item
    end loop;I found an (undocumented) API wwv_flow_check+ that seemed to fulfill all my dreams, but
    here's what happened:
    check_condition - although i converted the condition_type back to condition code with help of apex_standard_conditions, the program works only with PLSQL_EXPRESSION and EXISTS.
    All other conditions in use (i tried ITEM_IS_NOT_NULL, REQUEST_NOT_EQUAL_CONDITION, ITEM_IS NULL, VAL_OF_ITEM_IN_COND_EQ_COND2, NEVER) return in an error
    ORA-06503: PL/SQL: Function returned without value
    Is there some trick for the check_condition function to accept all the other condition types as well or should i write those cases into my program? It seems pretty easy, but feels like reinventing the wheel...
    database 10.2.0.4, apex 3.1.1
    Thanks,
    Andres
    P.S i also tried the who other functions in the package
    check_cond_plsql_expresion works fine
    but check_condition_sql_expresion throws
    ORA-14552: cannot perform a DDL, commit or rollback inside a query or DML??
    Andres

  • Short Dumps - How to find out in which process it occured.

    Hi,
    I see quiet a bunch of short dumps in ST22. Like "Message Type X". I wanted to find out in which job/process short dumps have occured?
    Please help me out...
    Thanks in Advance....:)
    Regards,
    Habeeb

    Hi ,
    The simplest way is to double click on a particluar dump in st22 and go in details like -What happened? ,What can you do?,How to correct the error  etc .
    there  were plenty of  options available according ot that u can dig out the error and find out the cause
    (tip-usually job were failed due to some Z programs ,so better way is to search for Z* ,it will give the related object or program in most of the cases.)
    hope it helps....
    Regards,
    Chetan R

  • How to find out what version of pages is running. I don't see get info link?

    how do i find out what version of pages is operating. i have updated but see no get info link?

    When Pages is running, select Pages > About Pages.  The latest version that only runs on OS X Mavericks is 5.0.1.

  • How to find out in which albums a library photo is represented

    Basically my problem is stated in the question, I'm trying to find out in which albums certain library/event photo's are represented. Since I'm moving from albums to events this would be a great help in naming the events.
    Thanks,
    Peter

    There is currently now way in iPhoto to do this.
    iPhoto Menu -> Povide iPhoto Feedback.
    Regards
    TD

  • How to find out in which query same restriction on keyfigure is used

    Dear all,
    is there a way to find out in which queries the same restriction for keyfigure structure is used?
    -> e.g. show me all queries that contains restriction on 0TCTIFPROV = cube AAA??
    Unfortunately the keyfigures in the queries don't have technical names, as basic keyfigures are used and only restricted to a cube!
    Thanks for feedback

    Hi;
    I think you cannot have this information but your can have in metadata repository (Transaction RSA1)
    all the queries linked to your infoobject OTCTIFPROV.
    It could be an other solution for you.
    Regards.

  • How to find out Equipments installed at a given Functional location in PM .

    Hi Gurus ,
                      I am working on a PM requirement and need to extract the equipments installed at a functional location . The Functional location table is IFLOT and Equipment master is EQUI . I dont find any direct link between these 2 tables .Please guide me as to how to go about the process .
    Regards,
    Venkatesh.

    Hi Anji,
                The view VIAUF_AFVC  is for maintenance orders and operations. I tried giving my functional location on the selection screen and checked for the contents , but it says no entries found. Probably this table will get populated only when a maintenance order is issued.
       I need to find out the equipments at a given functional location . Is there any other way ?
    regards,
    Venkatesh.

  • How to find out an Inventory Item History

    Hi All,
    Greeting you all.
    I would like to know is there a way to find out the whole history of an Inventory Item starting from the Copying or Applying template.
    I'm looking for a way by which we can Identify whether an Inventory Item has been created by copying from some other Item or by Applyiing some template.
    Thanks in advance.
    Thanks / Shekhar S
    Edited by: user12121192 on Aug 26, 2010 1:50 PM
    Edited by: user12121192 on Aug 26, 2010 1:51 PM

    Hi Mcertini,
    Thank you for your response.
    I'm not looking for the Item cost history.
    I'm looking for the Item creation source.
    How an Item got created, Manually OR By Copying from another OR By Applying a template OR By Importing Items etc?
    Thanks
    Shekhar S

  • How to find out from which device sms or calls has...

    Hello! I want to check from which of my devices some particular calls and sms in particular period has been made. I use several devices: few laptops and androide phone. Can I check from which device sms and calls has been sent? Thanks in advance !  it is VERY VERY important to find out what is going one!!!!!!   Also haveing problem to find an official skype customer help, how can i contact them on the easyest way pls? thanks

    I think you may need to contact customer service regarding your request. Just click the link below to see the instructions on how you can get in touch with the Support team ;
    http://community.skype.com/t5/The-Skype-Lounge/How​-to-Contact-Skype-Customer-Service/td-p/2056783
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • How to find out through which tcode TR is created.

    Hi Friends,
    We have one custom code to create TR for staging of RM for the production. I want to find out whether TR is created through custom tcode or by standard transation. How can I find out this.
    Thanks,
    Kiran

    Such information is not captured in the TR tables.
    If you require this info then you may write some text into the header text of a TR

  • How to find out in which Procces Flows a mapping is run?

    Hello!
    I have OWB 11.1 and a lot of mappings (>300) and a lot of big PFs.
    I hadn't find a way to check in which PF a certain mapping is.
    (The application is new for me).
    Is this info anywhere in DC? I hoped it could be in somewhere in property sheets, but didn't.
    Do You perhaps have a ready select to find out this info from repository?
    I would appreciate that code a lot.
    Cheers,
    Ykspisto

    Thanks Oleg, but the select
    "SELECT pa.process_name,
    pa.activity_name,
    owbmapping.map_type,
    OWBMAPPING.MAP_NAME
    FROM All_Iv_Process_Activities Pa,
    All_Iv_Xform_Maps Owbmapping
    WHERE Pa.Bound_Object_Id = Owbmapping.Map_Id
    AND OWBMAPPING.MAP_NAME like '%MY_MAP%'
    shows nothing in my owb.
    This "SELECT sys_context('owb_workspace','workspaceID') FROM dual;"
    gives also nothing. Any ideas?
    Cheers,
    Ykspisto

Maybe you are looking for