SQL Script to find Concurrent program details with Path, program type, Executable details
SELECT fcp.concurrent_program_id
,fcp.concurrent_program_name
,fcpt.user_concurrent_program_name usr_conc_program
,fcp.enabled_flag flag
,fcp.output_file_type output_TYPE
,fe.executable_name
,fcp.execution_method_code program_method_code
,(SELECT meaning FROM apps.fnd_lookup_values WHERE lookup_code = fcp.execution_method_code AND lookup_type = 'CP_EXECUTION_METHOD_CODE') prog_method
,fe.execution_method_code executable_method_code
,(SELECT meaning FROM apps.fnd_lookup_values WHERE lookup_code = fe.execution_method_code AND lookup_type = 'CP_EXECUTION_METHOD_CODE') exec_method
,fe.execution_file_name
,fa.application_short_name
,fat.application_name
,fa.basepath top
,(select value from apps.fnd_env_context where variable_name = fa.basepath and concurrent_process_id = (select max(concurrent_process_id) from apps.fnd_env_context)) ||'/reports/US' path
,fcp.creation_date
,(select user_name||' : '||description from apps.fnd_user where user_id = fcp.created_by) created_by
,fcp.last_update_date
,(select user_name||' : '||description from apps.fnd_user where user_id = fcp.last_updated_by) updated_by
FROM apps.fnd_concurrent_programs_tl fcpt
,apps.fnd_concurrent_programs fcp
,apps.fnd_executables fe
,apps.fnd_application_tl fat
,apps.fnd_application fa
WHERE 1 = 1
and fcpt.application_id = fcp.application_id
and fcpt.concurrent_program_id = fcp.concurrent_program_id
and fe.executable_id = fcp.executable_id
and fe.application_id = fa.application_id
and fat.application_id = fa.application_id
AND fcp.enabled_flag = 'Y'
and upper(fcpt.user_concurrent_program_name) = '&prog_name_upper_case'--like '%EVENT%'
;
Read More
Showing posts with label SQL. Show all posts
Showing posts with label SQL. Show all posts
September 5, 2017
October 5, 2016
Below Script will help you to get the Inventory Org to Business Group details with Legal Entity, Operating Unit, Ledger, Period details, Inventory Validation org and Purchase Validation org for the Operating unit
This script is in the context of Oracle R12
-------------------
select mp.organization_code org_code,
org.organization_id org_id,
org.name org_name,
hl.location_id,
hl.location_code,
hl.address_line_1,
hl.address_line_2,
hl.address_line_3,
hl.town_or_city,
hl.country,
hl.postal_code,
ou.organization_id ou_id,
ou.name OU,
le.legal_entity_id le_id,
le.name LE,
gl.ledger_id,
gl.name primary_ledger,
gl.currency_code,
bg.name bg,
(select organization_code
from apps.mtl_parameters
where organization_id =
(select parameter_value
from apps.OE_SYS_PARAMETERS_ALL
where parameter_code = 'MASTER_ORGANIZATION_ID'
and org_id = ou.organization_id)) IVO,
(select organization_code
from apps.mtl_parameters
where organization_id =
(select inventory_organization_id
from AP.FINANCIALS_SYSTEM_PARAMS_ALL#
where org_id = ou.organization_id)) PVO,
(select period_name || ' : ' || open_flag
from apps.ORG_ACCT_PERIODS
where period_start_date <= trunc(sysdate)
and schedule_close_date >= trunc(sysdate)
and organization_id = mp.organization_id) inv_period,
(select period_name || ' : ' || show_status
from apps.GL_PERIOD_STATUSES_V
where start_date <= trunc(sysdate)
and end_date >= trunc(sysdate)
and ledger_id = gl.ledger_id
and application_id = 101) gl_ledger_period,
(select period_name || ' : ' || show_status
from apps.GL_PERIOD_STATUSES_V
where start_date <= trunc(sysdate)
and end_date >= trunc(sysdate)
and ledger_id = gl.ledger_id
and application_id = 200) AP_period,
(select period_name || ' : ' || show_status
from apps.GL_PERIOD_STATUSES_V
where start_date <= trunc(sysdate)
and end_date >= trunc(sysdate)
and ledger_id = gl.ledger_id
and application_id = 222) AR_period,
(select period_name || ' : ' || show_status
from apps.GL_PERIOD_STATUSES_V
where start_date <= trunc(sysdate)
and end_date >= trunc(sysdate)
and ledger_id = gl.ledger_id
and application_id = 201) PO_period
from apps.XLE_ENTITY_PROFILES le,
apps.HR_ALL_ORGANIZATION_UNITS ou,
apps.HR_ALL_ORGANIZATION_UNITS org,
apps.HR_ALL_ORGANIZATION_UNITS bg,
apps.mtl_parameters mp,
apps.GL_LEDGERS gl,
apps.HR_ORGANIZATION_INFORMATION ouinfo,
apps.HR_ORGANIZATION_INFORMATION orginfo,
apps.hr_locations hl
where mp.organization_id = org.organization_id
and org.organization_id = orginfo.organization_id
and org.location_id = hl.location_id
and orginfo.org_information_context = 'Accounting Information'
and orginfo.org_information3 = ou.organization_id
and orginfo.org_information1 = gl.ledger_id
and orginfo.org_information2 = le.legal_entity_id
and ou.organization_id = ouinfo.organization_id
and ouinfo.org_information_context = 'Operating Unit Information'
and ouinfo.org_information2 = le.legal_entity_id
and ouinfo.org_information3 = gl.ledger_id
and bg.organization_id = ou.business_group_id
and mp.organization_code in ('V1');
This script is in the context of Oracle R12
-------------------
select mp.organization_code org_code,
org.organization_id org_id,
org.name org_name,
hl.location_id,
hl.location_code,
hl.address_line_1,
hl.address_line_2,
hl.address_line_3,
hl.town_or_city,
hl.country,
hl.postal_code,
ou.organization_id ou_id,
ou.name OU,
le.legal_entity_id le_id,
le.name LE,
gl.ledger_id,
gl.name primary_ledger,
gl.currency_code,
bg.name bg,
(select organization_code
from apps.mtl_parameters
where organization_id =
(select parameter_value
from apps.OE_SYS_PARAMETERS_ALL
where parameter_code = 'MASTER_ORGANIZATION_ID'
and org_id = ou.organization_id)) IVO,
(select organization_code
from apps.mtl_parameters
where organization_id =
(select inventory_organization_id
from AP.FINANCIALS_SYSTEM_PARAMS_ALL#
where org_id = ou.organization_id)) PVO,
(select period_name || ' : ' || open_flag
from apps.ORG_ACCT_PERIODS
where period_start_date <= trunc(sysdate)
and schedule_close_date >= trunc(sysdate)
and organization_id = mp.organization_id) inv_period,
(select period_name || ' : ' || show_status
from apps.GL_PERIOD_STATUSES_V
where start_date <= trunc(sysdate)
and end_date >= trunc(sysdate)
and ledger_id = gl.ledger_id
and application_id = 101) gl_ledger_period,
(select period_name || ' : ' || show_status
from apps.GL_PERIOD_STATUSES_V
where start_date <= trunc(sysdate)
and end_date >= trunc(sysdate)
and ledger_id = gl.ledger_id
and application_id = 200) AP_period,
(select period_name || ' : ' || show_status
from apps.GL_PERIOD_STATUSES_V
where start_date <= trunc(sysdate)
and end_date >= trunc(sysdate)
and ledger_id = gl.ledger_id
and application_id = 222) AR_period,
(select period_name || ' : ' || show_status
from apps.GL_PERIOD_STATUSES_V
where start_date <= trunc(sysdate)
and end_date >= trunc(sysdate)
and ledger_id = gl.ledger_id
and application_id = 201) PO_period
from apps.XLE_ENTITY_PROFILES le,
apps.HR_ALL_ORGANIZATION_UNITS ou,
apps.HR_ALL_ORGANIZATION_UNITS org,
apps.HR_ALL_ORGANIZATION_UNITS bg,
apps.mtl_parameters mp,
apps.GL_LEDGERS gl,
apps.HR_ORGANIZATION_INFORMATION ouinfo,
apps.HR_ORGANIZATION_INFORMATION orginfo,
apps.hr_locations hl
where mp.organization_id = org.organization_id
and org.organization_id = orginfo.organization_id
and org.location_id = hl.location_id
and orginfo.org_information_context = 'Accounting Information'
and orginfo.org_information3 = ou.organization_id
and orginfo.org_information1 = gl.ledger_id
and orginfo.org_information2 = le.legal_entity_id
and ou.organization_id = ouinfo.organization_id
and ouinfo.org_information_context = 'Operating Unit Information'
and ouinfo.org_information2 = le.legal_entity_id
and ouinfo.org_information3 = gl.ledger_id
and bg.organization_id = ou.business_group_id
and mp.organization_code in ('V1');
-------------------------
Read More
June 18, 2015
select req.request_id,
req.argument_text,
req.requested_start_date,
req.actual_start_date,
req.actual_completion_date,
(select meaning
from apps.fnd_lookup_values
where lookup_type = 'CP_STATUS_CODE'
AND lookup_code = req.phase_code
and start_date_active is not null) phase,
(select meaning
from apps.fnd_lookup_values
where lookup_type = 'CP_STATUS_CODE'
AND lookup_code = req.status_code
and start_date_active is not null) status,
(usr.user_name || ' - ' || usr.DESCRIPTION) requested_by,
fcpt.user_concurrent_program_name,
(SELECT responsibility_name
FROM apps.fnd_responsibility_tl
WHERE responsibility_id = req.responsibility_id) resp,
req.logfile_name,
req.outfile_name
from apps.fnd_concurrent_requests req,
apps.fnd_user usr,
apps.fnd_concurrent_programs_tl fcpt,
apps.fnd_concurrent_programs fcp
where req.concurrent_program_id = fcpt.concurrent_program_id
and fcp.concurrent_program_id = fcpt.concurrent_program_id
and usr.user_id = req.requested_by
and req.request_id in (&req_id);
Read More
req.argument_text,
req.requested_start_date,
req.actual_start_date,
req.actual_completion_date,
(select meaning
from apps.fnd_lookup_values
where lookup_type = 'CP_STATUS_CODE'
AND lookup_code = req.phase_code
and start_date_active is not null) phase,
(select meaning
from apps.fnd_lookup_values
where lookup_type = 'CP_STATUS_CODE'
AND lookup_code = req.status_code
and start_date_active is not null) status,
(usr.user_name || ' - ' || usr.DESCRIPTION) requested_by,
fcpt.user_concurrent_program_name,
(SELECT responsibility_name
FROM apps.fnd_responsibility_tl
WHERE responsibility_id = req.responsibility_id) resp,
req.logfile_name,
req.outfile_name
from apps.fnd_concurrent_requests req,
apps.fnd_user usr,
apps.fnd_concurrent_programs_tl fcpt,
apps.fnd_concurrent_programs fcp
where req.concurrent_program_id = fcpt.concurrent_program_id
and fcp.concurrent_program_id = fcpt.concurrent_program_id
and usr.user_id = req.requested_by
and req.request_id in (&req_id);
Labels
- inventory (27)
- order management (25)
- Oracle WMS (21)
- WMS (8)
- Oracle Apps Interview question (7)
- order to cash (7)
- Interview QA (5)
- Setup for WMS (5)
- purchasing (5)
- Functional Interview (4)
- Picking (4)
- drop ship (4)
- item attributes (4)
- API (3)
- Shipping (3)
- profile options (3)
- Customization (2)
- LPN (2)
- MSCA Page setup (2)
- 11i vs R12 (1)
Connect With Me
Popular Posts
- Order to Cash Cycle Step by step hands on
- Oracle SCM Functional Interview Questions: Inventory
- Form Personalization in Oracle Apps
- Overview of Purchasing in Oracle Apps
- Oracle Inventory: Inventory Organizations
- Oracle SCM Functional Interview Questions : Order Management
- Oracle Order Management Pick Release Process
- Oracle Inventory Defining Organization
- Defining Shipping Method in Oracle
- Conversion in Oracle