Query to Define Value Set for Customer
select RTRIM (RPAD (SUBSTRB (party_name, 1, 50), 36)) customer_name from hz_parties
where
party_type = 'ORGANIZATION'
and party_name <> '%'
and party_name not like 'cancel%'
Order by party_name
SELECT hp.party_name customer
,hca.account_number
,hp.party_number
,ooh.order_number
,ooh.flow_status_code Order_status
,rcta.trx_date Invoice_date
,rcta.trx_number Invoice_number
,rcta.status_trx Invoice_Status
,rcta.invoice_currency_code Invoice_currency
,rctla.line_number
,msi.segment1 Item_number
,rctla.description
,rctla.extended_amount line_amt
,arp.amount_due_original
,arp.amount_due_remaining
,rcta.org_id
,rcta.customer_trx_id
FROM RA_CUSTOMER_TRX_ALL RCTA,
RA_CUSTOMER_TRX_LINES_ALL RCTLA,
RA_CUST_TRX_TYPES_ALL rctt,
AR_PAYMENT_SCHEDULES_ALL arp,
HZ_CUST_ACCOUNTS_ALL HCA,
HZ_PARTIES HP,
MTL_SYSTEM_ITEMS_B msi,
OE_ORDER_LINES_ALL ool,
OE_ORDER_HEADERS_ALL ooh
WHERE rcta.customer_trx_id = rctla.customer_trx_id
AND msi.inventory_item_id = rctla.inventory_item_id
AND msi.organization_id = 116
AND rcta.cust_trx_type_id = rctt.cust_trx_type_id
AND arp.customer_trx_id = rcta.customer_trx_id
AND rctla.line_type = 'LINE'
AND rcta.org_id = rctla.org_id
AND rcta.bill_to_customer_id = hca.cust_account_id
AND hca.party_id = hp.party_id
AND rctla.interface_line_attribute6 = ool.line_id
AND ool.header_id = ooh.header_id
-- AND ooh.order_number = '13904756'
-- AND hp.party_name = 'BANQUE MAGNETIQUE'
ORDER BY hp.party_name,rcta.trx_number,rctla.line_number;
SELECT hp.party_name customer
,hca.account_number
,rcta.trx_date
,rcta.trx_number Invoice_number
,rcta.status_trx
,rcta.invoice_currency_code Invoice_currency
,rctla.line_number
,msi.segment1 Item_number
,rctla.description
,rctla.extended_amount line_amt
,rcta.org_id
,rctt.cust_trx_type_id
FROM RA_CUSTOMER_TRX_ALL RCTA,
RA_CUSTOMER_TRX_LINES_ALL RCTLA,
RA_CUST_TRX_TYPES_ALL rctt,
HZ_CUST_ACCOUNTS_ALL HCA,
HZ_PARTIES HP,
MTL_SYSTEM_ITEMS_B msi
WHERE rcta.customer_trx_id = rctla.customer_trx_id
AND msi.inventory_item_id = rctla.inventory_item_id
AND msi.organization_id = 116
AND rcta.cust_trx_type_id = rctt.cust_trx_type_id
AND rctt.TYPE = 'INV'
AND rctla.line_type = 'LINE'
AND rcta.org_id = rctla.org_id
AND rcta.bill_to_customer_id = hca.cust_account_id
AND hca.party_id = hp.party_id
AND hp.party_name = 'A. C. Networks'
-- AND hca.account_number = '1581'
-- AND rcta.status_trx = 'OP'
ORDER BY hp.party_name,rcta.trx_number,rctla.line_number;
select fu.user_name, frt.responsibility_name, furg.start_date, furg.end_date from fnd_user fu , fnd_user_resp_groups_direct furg , fnd_responsibility_vl frt where fu.user_id = furg.user_id and frt.responsibility_id = furg.responsibility_id and frt.application_id = furg.responsibility_application_id and nvl(furg.end_date,sysdate+1) > sysdate and nvl(frt.end_date,sysdate +1) > sysdate and fu.user_name = :p_user_name --and fu.user_name = :p_userid; ;
SELECT 'Request id: ' || request_id, 'Trace id: ' || oracle_process_id, 'Trace Flag: ' || req.enable_trace, 'Trace Name: ' || dest.VALUE || '/' || LOWER (dbnm.VALUE) || '_ora_' || oracle_process_id || '.trc', 'Prog. Name: ' || prog.user_concurrent_program_name, 'File Name: ' || execname.execution_file_name || execname.subroutine_name, 'Status : ' || DECODE (phase_code, 'R', 'Running') || '-' || DECODE (status_code, 'R', 'Normal'), 'SID Serial: ' || ses.sid || ',' || ses.serial#, 'Module : ' || ses.module , TO_CHAR(req.actual_start_date,'DD-MON-YYYY HH24:MI:SS') Request_start_date , TO_CHAR(req.actual_completion_date,'DD-MON-YYYY HH24:MI:SS') Request_completion_date , req.logfile_name , req.outfile_name , req.argument_text parameters_passed FROM fnd_concurrent_requests req, v$session ses, v$process PROC, v$parameter dest, v$parameter dbnm, fnd_concurrent_programs_vl prog, fnd_executables execname WHERE req.request_id = :p_request_id AND req.oracle_process_id = proc.spid(+) AND proc.addr = ses.paddr(+) AND dest.NAME = 'user_dump_dest' AND dbnm.NAME = 'db_name' AND req.concurrent_program_id = prog.concurrent_program_id AND req.program_application_id = prog.application_id AND prog.application_id = execname.application_id AND prog.executable_id = execname.executable_id ;
SELECT fcp.user_concurrent_program_name, fat.application_name, fdfc.column_seq_num Seq, fdfc.form_left_prompt "Parameter Name", fdfc.enabled_flag Active FROM FND_DESCR_FLEX_COL_USAGE_VL fdfc , fnd_flex_value_sets ffvs , fnd_concurrent_programs_vl fcp , fnd_application_tl fat WHERE 1 =1 AND ffvs.flex_value_set_id = fdfc.flex_value_set_id and fdfc.descriptive_flexfield_name = '$SRS$.'||fcp.concurrent_program_name and fcp.application_id = fat.application_id and ffvs.flex_value_set_name = :p_valuesetname -- Enter value set name ;