Are there some little things in life that frustrate you?
- Java Web Start Available for EBS 12.1 and 12.2
- Using Java Web Start with Oracle E-Business Suite (Doc ID 2188898.1)
Data Warehousing, Oracle eBusiness Suite/Applications technical news, views and developments.
Are there some little things in life that frustrate you?
The New Zealand Oracle Users Group - NZOUG Conference 2013 is open for registrations and Earlybird pricing is still available! The agenda is now available.
NZOUG 2013 is being held in Wellington at the iconic Te Papa Museum on the beautiful waterfront on the 18th and 19th of March, with an additional Workshop Day on the 20th March.
The conference will see a wealth of brilliant speakers from around the world, including Tom Kyte, Graham Wood, Andrew Holdsworth, John Schiff and Nadia Bendjedou and of course top speakers from Middle Earth (NZ) as well. Tom, Andrew and Graham will be presenting their Real World Performance show, which will be a highlight of the conference.
Topics being covered cross a wide range of Oracle solutions, with tracks for Development, DBA, Cloud Computing, Oracle E-Business Suite, a full dedicated JD Edwards Day, Fusion Applications, EPM/BI, Middleware, Management, Infrastructure, Security, Hardware and Professional Development.
I'll be co-presenting one paper on utilizing the Oracle E-Business Suite Integrated SOA Gateway, tips, tricks and a demo, not too much this time around so that I can head along to as many of the other presentations as I can. Drop me an email if you want to catch up at the conference!
So, if you're around New Zealand in mid-March, perhaps following on from the NZ - England Cricket Test, and if you like getting out and networking often with fun consequences, then make sure you come to the New Zealand Oracle event of the year, not to be missed!
Catch ya!
Gareth
This is a post from Gareth's blog at http://garethroberts.blogspot.com
Posted by
Gareth
at
12:28 AM
1 comments
Labels: dba, development, ebiz, internet, media, networking, NZOUG
In the Oracle E-Business Suite (EBS) Release 12 the data model of Suppliers has become much more complex. The base tables have changed (Suppliers, Sites, Bank Accounts, Contacts) and some of the fields have become obsolete.
Here is a query to bring many of the Supplier attributes together, with focus on banks / bank accounts, payment methods, contacts, remittance delivery (email, notification method). Please post comments if you find any issues!
Adjust the WHERE clause on the first WITH query to return the suppliers that you need to report on. Hope this query helps someone out.
Add additional fields to the final query (or WITH queries as required.)
Update 29-Feb-2012: Outer join sites ss to payment methods pm.
with vendors as ( select vendor_id from ap_suppliers where 1=1 /* COMMENT / UNCOMMENT and UPDATE THE NEXT 5 LINES AS YOU REQUIRE */ --and vendor_type_lookup_code = 'VENDOR' --and upper( vendor_name ) like 'VIRTUATE%' and creation_date between '01-JAN-2011' and '01-JAN-2012' --and enabled_flag = 'Y' ) , vend as ( select pv.vendor_id vendor_id , pv.vendor_name_alt vendor_name_alt , pv.vendor_name vendor_name , pv.segment1 vendor_number , pv.vendor_type_lookup_code vendor_type_lookup_code from ap_suppliers pv where pv.vendor_id in (select v.vendor_id from vendors v) ) , site as ( select ss.vendor_id vendor_id , ss.vendor_site_id vendor_site_id , ss.vendor_site_code vendor_site_code , ss.vendor_site_code_alt vendor_site_code_alt , ss.vat_code tax_code , ss.vat_registration_num vat_registration_num , t.name terms_name , ss.address_line1 ss_address_line1 , ss.address_line2 ss_address_line2 , ss.address_line3 ss_address_line3 , ss.zip ss_zip , ss.city ss_city , ss.state ss_state , ss.country ss_country , ss.area_code ss_area_code , ss.phone ss_phone , ss.fax_area_code ss_fax_area_code , ss.fax ss_fax , ss.telex ss_telex , ss.pay_site_flag ss_pay_site_flag , ss.primary_pay_site_flag ss_primary_pay_site_flag , pm.remit_advice_delivery_method ss_remit_advice_deliv_meth , pm.remit_advice_email ss_remit_advice_email , pm.remit_advice_fax ss_remit_advice_fax , pm.payment_method_code ss_payment_method_code , ss.remittance_email ss_remittance_email , ss.supplier_notif_method ss_supplier_notif_method , ps.addressee ss_addressee , ( select hcp.phone_area_code from hz_contact_points hcp where hcp.owner_table_id = ss.party_site_id and hcp.owner_table_name = 'HZ_PARTY_SITES' and hcp.phone_line_type = 'GEN' and hcp.contact_point_type = 'PHONE' --and hcp.created_by_module = 'AP_SUPPLIERS_API' and rownum < 2 -- copied from OAF View Object ) ss_hcp_phone_area_code , ( select hcp.phone_number from hz_contact_points hcp where hcp.owner_table_id = ss.party_site_id and hcp.owner_table_name = 'HZ_PARTY_SITES' and hcp.phone_line_type = 'GEN' and hcp.contact_point_type = 'PHONE' --and hcp.created_by_module = 'AP_SUPPLIERS_API' and rownum < 2 -- copied from OAF View Object ) ss_hcp_phone_number , ( select hcp.phone_area_code from hz_contact_points hcp where hcp.owner_table_id = ss.party_site_id and hcp.owner_table_name = 'HZ_PARTY_SITES' and hcp.phone_line_type = 'FAX' and hcp.contact_point_type = 'PHONE' --and hcp.created_by_module = 'AP_SUPPLIERS_API' and rownum < 2 -- copied from OAF View Object ) ss_hcp_fax_area_code , ( select hcp.phone_number from hz_contact_points hcp where hcp.owner_table_id = ss.party_site_id and hcp.owner_table_name = 'HZ_PARTY_SITES' and hcp.phone_line_type = 'FAX' and hcp.contact_point_type = 'PHONE' --and hcp.created_by_module = 'AP_SUPPLIERS_API' and rownum < 2 -- copied from OAF View Object ) ss_hcp_fax_number from ap_supplier_sites_all ss , ap_suppliers sup , ap_terms t , ( select ss.vendor_site_id , payee.remit_advice_delivery_method , payee.remit_advice_email , payee.remit_advice_fax , pm.payment_method_code from iby_external_payees_all payee , iby_ext_party_pmt_mthds pm , hz_party_sites ps , ap_supplier_sites_all ss where payee.payee_party_id = ps.party_id and payee.payment_function = 'PAYABLES_DISB' and payee.party_site_id = ss.party_site_id and payee.supplier_site_id = ss.vendor_site_id and payee.org_id = ss.org_id and payee.org_type = 'OPERATING_UNIT' and ss.party_site_id = ps.party_site_id and payee.ext_payee_id = pm.ext_pmt_party_id (+) and pm.primary_flag (+) = 'N' and not exists ( select 1 from iby_ext_party_pmt_mthds pm2 where pm.ext_pmt_party_id = pm2.ext_pmt_party_id and pm2.primary_flag = 'Y' ) union all select ss.vendor_site_id , payee.remit_advice_delivery_method , payee.remit_advice_email , payee.remit_advice_fax , pm.payment_method_code from iby_external_payees_all payee , iby_ext_party_pmt_mthds pm , hz_party_sites ps , ap_supplier_sites_all ss where payee.payee_party_id = ps.party_id and payee.payment_function = 'PAYABLES_DISB' and payee.party_site_id = ss.party_site_id and payee.supplier_site_id = ss.vendor_site_id and payee.org_id = ss.org_id and payee.org_type = 'OPERATING_UNIT' and ss.party_site_id = ps.party_site_id and pm.ext_pmt_party_id = payee.ext_payee_id and pm.primary_flag = 'Y' ) pm , hz_party_sites ps where sup.vendor_id in (select vendor_id from vendors) and sup.vendor_id = ss.vendor_id and ss.vendor_site_id = pm.vendor_site_id (+) and ss.party_site_id = ps.party_site_id (+) and ss.terms_id = t.term_id (+) ) , cont as ( select pv.vendor_id vendor_id , pvs.vendor_site_id vendor_site_id , hp.party_id c_party_id , hp.person_first_name c_first_name , hp.person_last_name c_last_name , hp.person_title c_person_title , hcpe.email_address c_email_address , hcpp.phone_area_code c_phone_area_code , hcpp.phone_number c_phone_number , hcpf.phone_area_code c_fax_area_code , hcpf.phone_number c_fax_number from hz_parties hp , hz_relationships hzr , hz_contact_points hcpp , hz_contact_points hcpf , hz_contact_points hcpe , ap_suppliers pv , ap_supplier_sites_all pvs , hz_party_sites hps where hp.party_id = hzr.subject_id and hzr.relationship_type = 'CONTACT' and hzr.relationship_code = 'CONTACT_OF' and hzr.subject_type = 'PERSON' and hzr.subject_table_name = 'HZ_PARTIES' and hzr.object_type = 'ORGANIZATION' and hzr.object_table_name = 'HZ_PARTIES' and hzr.status = 'A' and hcpp.owner_table_name(+) = 'HZ_PARTIES' and hcpp.owner_table_id(+) = hzr.party_id and hcpp.phone_line_type(+) = 'GEN' and hcpp.contact_point_type(+) = 'PHONE' and hcpf.owner_table_name(+) = 'HZ_PARTIES' and hcpf.owner_table_id(+) = hzr.party_id and hcpf.phone_line_type(+) = 'FAX' and hcpf.contact_point_type(+) = 'PHONE' and hcpe.owner_table_name(+) = 'HZ_PARTIES' and hcpe.owner_table_id(+) = hzr.party_id and hcpe.contact_point_type(+) = 'EMAIL' and hcpp.status (+)='A' and hcpf.status (+)='A' and hcpe.status (+)='A' and hps.party_id = hzr.object_id and pvs.party_site_id = hps.party_site_id and pv.vendor_id = pvs.vendor_id and exists ( select 1 from ap_supplier_contacts ascs where (ascs.inactive_date is null or ascs.inactive_date > sysdate) and hzr.relationship_id = ascs.relationship_id and hzr.party_id = ascs.rel_party_id and hps.party_site_id = ascs.org_party_site_id and hzr.subject_id = ascs.per_party_id ) and pv.vendor_id in (select vendor_id from vendors) ) , bank as ( select pv.vendor_id vendor_id , ss.vendor_site_id vendor_site_id , hopbank.bank_or_branch_number bank_number , hopbranch.bank_or_branch_number branch_number , eba.bank_account_num bank_account_num , eba.bank_account_name bank_account_name , piu.start_date bank_use_start_date , piu.end_date bank_use_end_date , piu.order_of_preference bank_priority from iby_ext_bank_accounts eba , iby_external_payees_all payee , iby_pmt_instr_uses_all piu , ap_supplier_sites_all ss , ap_suppliers pv , hz_organization_profiles hopbank , hz_organization_profiles hopbranch where 1=1 and eba.bank_id = hopbank.party_id and eba.branch_id = hopbranch.party_id and payee.payment_function = 'PAYABLES_DISB' and payee.party_site_id = ss.party_site_id and payee.supplier_site_id = ss.vendor_site_id and payee.org_id = ss.org_id and payee.org_type = 'OPERATING_UNIT' and payee.ext_payee_id = piu.ext_pmt_party_id and piu.payment_flow = 'DISBURSEMENTS' and piu.instrument_type = 'BANKACCOUNT' and piu.instrument_id = eba.ext_bank_account_id and piu.start_date < sysdate and ( piu.end_date is null or piu.end_date > sysdate ) and ss.vendor_id = pv.vendor_id and pv.vendor_id in (select vendor_id from vendors) ) -- select distinct v.*, s.*, c.*, b.* select distinct v.vendor_id supplier_id , v.vendor_number supplier_num , v.vendor_name supplier_name , v.vendor_type_lookup_code supplier_type , s.terms_name terms_name , s.tax_code invoice_tax_code , s.vat_registration_num vat_registration_num , s.vendor_site_code site_code , s.ss_address_line1 address1 , s.ss_address_line2 address2 , s.ss_address_line3 address3 , s.ss_city suburb , s.ss_state state , s.ss_zip post_code , s.ss_country country , s.ss_payment_method_code payment_method , b.bank_account_name bank_account_name , b.bank_number bank_number , b.branch_number branch_number , b.bank_account_num bank_account_num , s.ss_remit_advice_email remittance_email , s.ss_remit_advice_deliv_meth notification_method , c.c_first_name contact_first_name , c.c_last_name contact_last_name , c.c_person_title contact_title , c.c_email_address contact_email , c.c_phone_area_code contact_ph_area_code , c.c_phone_number contact_ph_number , c.c_fax_area_code contact_fax_area_code , c.c_fax_number contact_fax_number from vend v , site s , cont c , bank b where v.vendor_id = s.vendor_id (+) and s.vendor_id = b.vendor_id (+) and s.vendor_site_id = b.vendor_site_id (+) and s.vendor_id = c.vendor_id (+) and s.vendor_site_id = c.vendor_site_id (+) and nvl(b.bank_priority,-1) = (select nvl(min(bank_priority),-1) from bank b2 where b2.vendor_id = b.vendor_id and b2.vendor_site_id = b.vendor_site_id) order by 3,1,2,4,5,6,7,8,9,10,11,12,13;
Catch ya!
Gareth
This is a post from Gareth's blog at http://garethroberts.blogspot.com
Posted by
Gareth
at
11:03 AM
4
comments
I often get asked to take a look at an Oracle eBusiness Suite concurrent request to see what it is doing, this can come from a few different angles:
There are a number of strategies to track and trace where things are at for a running request, these include:>
So without further ado, let's take a look at the following sweet query. UPDATE: 23-Aug-2012 fixed multi rows due to missing join on inst_id between gv$session and gv$process. Also note for non-RAC environments change gv$ to v$ and remove joins to sys.v_$active_instances:
set pages 9999 feed on lines 150 col user_concurrent_program_name format a40 head PROGRAM trunc col elapsed format 9999 col request_id format 9999999 head REQUEST col user_name format a12 col oracle_process_id format a5 head OSPID col inst_name format a10 col sql_text format a30 col outfile_tmp format a30 col logfile_tmp format a30 REM ********************* REM **** RAC VERSION **** REM ********************* select /*+ ordered */ fcp.user_concurrent_program_name , fcr.request_id , round(24*60*( sysdate - actual_start_date )) elapsed , fu.user_name , fcr.oracle_process_id , sess.sid , sess.serial# , inst.inst_name , sa.sql_text , cp.plsql_dir || '/' || cp.plsql_out outfile_tmp , cp.plsql_dir || '/' || cp.plsql_log logfile_tmp from apps.fnd_concurrent_requests fcr , apps.fnd_concurrent_programs_tl fcp , apps.fnd_concurrent_processes cp , apps.fnd_user fu , gv$process pro , gv$session sess , gv$sqlarea sa , sys.v_$active_instances inst where fcp.concurrent_program_id = fcr.concurrent_program_id and fcp.application_id = fcr.program_application_id and fcr.controlling_manager = cp.concurrent_process_id and fcr.requested_by = fu.user_id (+) and fcr.oracle_process_id = pro.spid (+) and pro.addr = sess.paddr (+) and pro.inst_id = sess.inst_id (+) and sess.sql_address = sa.address (+) and sess.sql_hash_value = sa.hash_value (+) and sess.inst_id = inst.inst_number (+) and fcr.phase_code = 'R' /* only running requests */ ; REM ********************* REM ** NON-RAC VERSION ** REM ********************* select /*+ ordered */ fcp.user_concurrent_program_name , fcr.request_id , round(24*60*( sysdate - actual_start_date )) elapsed , fu.user_name , fcr.oracle_process_id , sess.sid , sess.serial# , sa.sql_text , cp.plsql_dir || '/' || cp.plsql_out outfile_tmp , cp.plsql_dir || '/' || cp.plsql_log logfile_tmp from apps.fnd_concurrent_requests fcr , apps.fnd_concurrent_programs_tl fcp , apps.fnd_concurrent_processes cp , apps.fnd_user fu , v$process pro , v$session sess , v$sqlarea sa where fcp.concurrent_program_id = fcr.concurrent_program_id and fcp.application_id = fcr.program_application_id and fcr.controlling_manager = cp.concurrent_process_id and fcr.requested_by = fu.user_id (+) and fcr.oracle_process_id = pro.spid (+) and pro.addr = sess.paddr (+) and sess.sql_address = sa.address (+) and sess.sql_hash_value = sa.hash_value (+) and fcr.phase_code = 'R' /* only running requests */ ; PROGRAM REQUEST ELAPSED USER_NAME OSPID SID SERIAL# INST_NAME SQL_TEXT OUTFILE_TMP LOGFILE_TMP ---------------------------------------- -------- ------- ------------ ----- ---------- ---------- ---------- ------------------------------ ------------------------------ ------------------------------ Workflow Background Process 2960551 1 VIRTUATE 24814 130 29699 APPLPROD1 BEGIN WF_ENGINE.BACKGROUNDCONC /usr/tmp/o0068194.tmp /usr/tmp/l0068194.tmp URRENT(:errbuf,:rc,:A0,:A1,:A2 ,:A3,:A4,:A5); END; 1 row selected.
From the above we can see key information:
We can break out the above into a few queries and procedures to drill into specific information information from the core EBS tables and DBA v$ views
col user_concurrent_program_name format a40 head PROGRAM trunc col elapsed format 9999 col request_id format 9999999 head REQUEST col user_name format a12 col oracle_process_id format a5 head OSPID select fcp.user_concurrent_program_name , fcr.request_id , round(24*60*( sysdate - actual_start_date )) elapsed , fu.user_name , fcr.oracle_process_id from apps.fnd_concurrent_requests fcr , apps.fnd_concurrent_programs_tl fcp , apps.fnd_user fu where fcp.concurrent_program_id = fcr.concurrent_program_id and fcp.application_id = fcr.program_application_id and fu.user_id = fcr.requested_by and fcr.phase_code = 'R'; PROGRAM REQUEST ELAPSED USER_NAME OSPID ---------------------------------------- -------- ------- ------------ ----- Virtuate GL OLAP Data Refresh 2960541 5 VIRTUATE 21681
col inst_name format a10 col sql_text format a30 col module format a20 REM ********************* REM **** RAC VERSION **** REM ********************* select sess.sid , sess.serial# , sess.module , sess.inst_id , inst.inst_name , sa.fetches , sa.runtime_mem , sa.sql_text , pro.spid from gv$sqlarea sa , gv$session sess , gv$process pro , sys.v_$active_instances inst where sa.address = sess.sql_address and sa.hash_value = sess.sql_hash_value and sess.paddr = pro.addr and sess.inst_id = pro.inst_id and sess.inst_id = inst.inst_number (+) and pro.spid = &OSPID_from_running_request; REM ********************* REM ** NON-RAC VERSION ** REM ********************* select sess.sid , sess.serial# , sess.module , sa.fetches , sa.runtime_mem , sa.sql_text , pro.spid from v$sqlarea sa , v$session sess , v$process pro where sa.address = sess.sql_address and sa.hash_value = sess.sql_hash_value and sess.paddr = pro.addr and pro.spid = &OSPID_from_running_request;
If you're running something that has long SQL statements, get the full SQL Statement by selecting from v$sqltext_with_newlines as follows
select t.sql_text from v$sqltext_with_newlines t , v$session s where s.sid = &SID and s.sql_address = t.address order by t.piece
col outfile format a30 col logfile format a30 select cp.plsql_dir || '/' || cp.plsql_out outfile , cp.plsql_dir || '/' || cp.plsql_log logfile from apps.fnd_concurrent_requests cr , apps.fnd_concurrent_processes cp where cp.concurrent_process_id = cr.controlling_manager and cr.request_id = &request_id; OUTFILE LOGFILE ------------------------------ ------------------------------ /usr/tmp/PROD/o0068190.tmp /usr/tmp/PROD/l0068190.tmp REM Now tail log file on database node to see where it is at, near realtime REM tail -f /usr/tmp/l0068190.tmp
Then on the Database node you can tail -f the above plsql_out or plsql_log files to see where program is at. Combine this with good logging techniques (date/time stamp on each entry) and you'll be able to know where your program is at.
If locks are the potential problem, then drill into those:
set lines 150 col object_name format a32 col mode_held format a15 select /*+ ordered */ fcr.request_id , object_name , object_type , decode( l.block , 0, 'Not Blocking' , 1, 'Blocking' , 2, 'Global' ) status , decode( v.locked_mode , 0, 'None' , 1, 'Null' , 2, 'Row-S (SS)' , 3, 'Row-X (SX)' , 4, 'Share' , 5, 'S/Row-X (SSX)' , 6, 'Exclusive' , to_char(lmode) ) mode_held from apps.fnd_concurrent_requests fcr , gv$process pro , gv$session sess , gv$locked_object v , gv$lock l , dba_objects d where fcr.phase_code = 'R' and fcr.oracle_process_id = pro.spid (+) and pro.addr = sess.paddr (+) and sess.sid = v.session_id (+) and v.object_id = d.object_id (+) and v.object_id = l.id1 (+) ; REQUEST_ID OBJECT_NAME OBJECT_TYPE STATUS MODE_HELD ---------- -------------------------------- ------------------- ------------ --------------- 1070780 VIRTUATE_GL_OLAP_REFRESH TABLE Not Blocking Exclusive
So there you have it - enough tools to keep you happy Track n Tracing! Maybe next time we'll look at tracing with bind / waits or PL/SQL Profiling concurrent programs
Catch ya!
Posted by
Gareth
at
10:16 AM
3
comments
Labels: dba, development, ebiz, fnd, interfaces, performance, query, reports, techie, troubleshooting
From time to time I create enhancement requests or bugs, commonly on Oracle eBusiness Suite. Additionally I come across enhancement requests that I think deserve more visibility. This page is dedicated to that cause. If you have an Oracle Enhancement Request (ER) or Bug you would like to raise the visibility on, please feel free to comment or contact me.
If you like the looks of one of the Enhancement Requests noted below, log a Service Request (SR) on My Oracle Support (MOS) and ask for your MOS Customer record to be attached to the ER / Bug.
Created | Logged By | Bug / ER | Status | Product | Description |
---|---|---|---|---|---|
2015/02/22 | See ER | 9130428 | Open | AR | Need a Standard Way to Export the Aging 7 Buckets By Account Report Output to Excel |
2013/10/07 | See ER | 17069048 | Open | BIP | Enable use of recursive with clause |
2013/06/05 | See ER | 12872320 | Open | BIP | Request to add autofilter functionality to native Excel template (binary) |
2012/01/22 | Gareth | 13616572 | Open | BIP | BI Publisher RTF unable to show a fixed number of lines for a word wrapped cell |
2011/05/13 | See ER | 12423249 | Open | BIP | Adding support of SMTP username/password to "XAPI:EMAIL" bursting for E-Business Suite (EBS) 12.1.X |
2010/11/09 | See ER | 8208646 | Open | AP/IBY | R12 Unable to send Separate Remittance Advice as email attachment in PDF |
2010/08/11 | Gareth | 10019593 | Rejected | AP/IBY | ARXRWMAI - In Receipts Summary form, cannot query by payment server id - PSON (Payment Server Order Number) |
2010/07/14 | See ER | 9908713 | Open | BIP | Need the DeliveryManager API to have a trackback variable for bounced emails |
2010/07/18 | See ER | 9918364 | Open | BIP | Need email body to be set to UTF-8 charset when using East Asian language emails |
2010/07/08 | Gareth | 9891120 | Open | eAM | Need hook to extend EAM Maintenance Work Order Detail Report |
2010/06/19 | Gareth | 9834226 | Open | AP | Need to embed email images Payables/Payments "Send Separate Remittance Advices" |
2009/01/07 | See ER | 7694052 | Open | AP | Does the Supplier Open Interface API Support Updates to Supplier Information? |
2005/03/25 | See ER | 4262148 | Open | AP | Need Public API to manage custom AP Invoice Holds |
Status Code | Definition |
---|---|
11 | Code/Hardware Bug (Response/Resolution) |
12 | To External (User Group) Review |
15 | Enhancement Req. Internal(Oracle) Review |
19 | Approved for User Group Voting |
20 | To Requestor, Need More Info |
22 | Approved for Future Release |
23 | Scheduled for Future Release |
50 | ER Waiting for Base ER Fix |
82 | QA/PM to Eval ER, Chg Delivered Internal |
97 | Closed, Enhancement Rejected |
98 | Closed, Enhancement Implemented |
Catch ya!
Gareth
This is a post from Gareth's blog at http://garethroberts.blogspot.com
Posted by
Gareth
at
5:42 AM
1 comments
Labels: ap, bi publisher, ebiz, general, MOS, troubleshooting
Just a quick post to give an example of a bursting control file that has multiple emails, with a filter based on XML Element in the data to select which email to send.
Here it is:
<?xml version="1.0" encoding="UTF-8"?>
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
<xapi:globalData location="stream"/>
<xapi:request select="/ARXSGPO_CPG/LIST_G_SETUP/G_SETUP/LIST_G_STATEMENT/G_STATEMENT">
<xapi:delivery>
<xapi:email server="${XXX_SMTP}" port="25" from="${XXX_SEND_FROM}" reply-to ="${XXX_REPLY_TO}">
<xapi:message id="email1" to="${XXX_CUST_EMAIL}" cc="${XXX_ARCHIVE_EMAIL}" attachment="true" content-type="html/text" subject="Statement from ${ORG_NAME} - ${STATEMENT_DATE}">Hello,
Please find attached the Statement for period to ${STATEMENT_DATE}.
${ORG_NAME}
Internal Ref: Customer Email
</xapi:message>
</xapi:email>
<xapi:email server="${XXX_SMTP}" port="25" from="${XXX_SEND_FROM}" reply-to ="${XXX_REPLY_TO}">
<xapi:message id="email2" to="${XXX_AGENT_EMAIL}" cc="${XXX_ARCHIVE_EMAIL}" attachment="true" content-type="html/text" subject="Statement from ${ORG_NAME} - ${STATEMENT_DATE}">Hello,
Please find attached the Statement for period to ${STATEMENT_DATE}.
Regards,
${ORG_NAME}
Internal Ref: Agent Email
</xapi:message>
</xapi:email>
</xapi:delivery>
<xapi:document key="${CUSTOMER_ID}_1" output="${XXX_SHORTNAME}_Statement_${STATEMENT_DATE}" output-type="pdf" delivery="email1">
<xapi:template type="rtf" location="xdo://AR.XXX_STATEMENT_PRINT.en.00/?getSource=true" filter="/ARXSGPO_CPG/LIST_G_SETUP/G_SETUP/LIST_G_STATEMENT/G_STATEMENT[XXX_CUST_MODE='Email']"/>
</xapi:document>
<xapi:document key="${CUSTOMER_ID}_2" output="${XXX_SHORTNAME}_Statement_${STATEMENT_DATE}_Agent" output-type="pdf" delivery="email2">
<xapi:template type="rtf" location="xdo://AR.XXX_STATEMENT_PRINT.en.00/?getSource=true" filter="/ARXSGPO_CPG/LIST_G_SETUP/G_SETUP/LIST_G_STATEMENT/G_STATEMENT[XXX_AGENT_MODE='Email']"/>
</xapi:document>
</xapi:request>
</xapi:requestset>
Catch ya!
Gareth
Posted by
Gareth
at
10:31 PM
8
comments
Labels: ar, bi publisher, development, ebiz, techie
Are you running Oracle E-Business Suite (EBS) / Applications and want to get an operating system level environment variable value from a database table, for example for use in PL/SQL? Or perhaps to default a concurrent program parameter? Didn't think environment variables were stored in the database?
Try out out this query that shows you $FND_TOP:
select value from fnd_env_context where variable_name = 'FND_TOP' and concurrent_process_id = ( select max(concurrent_process_id) from fnd_env_context ); VALUE -------------------------------------------------------------------------------- /d01/oracle/VIS/apps/apps_st/appl/fnd/12.0.0
Or did you want to find out the Product "TOP" directories e.g the full directory path values from fnd_appl_tops under APPL_TOP?
col variable_name format a15 col value format a64 select variable_name, value from fnd_env_context where variable_name like '%\_TOP' escape '\' and concurrent_process_id = ( select max(concurrent_process_id) from fnd_env_context ) order by 1; VARIABLE_NAME VALUE --------------- ---------------------------------------------------------------- AD_TOP /d01/oracle/VIS/apps/apps_st/appl/ad/12.0.0 AF_JRE_TOP /d01/oracle/VIS/apps/tech_st/10.1.3/appsutil/jdk/jre AHL_TOP /d01/oracle/VIS/apps/apps_st/appl/ahl/12.0.0 AK_TOP /d01/oracle/VIS/apps/apps_st/appl/ak/12.0.0 ALR_TOP /d01/oracle/VIS/apps/apps_st/appl/alr/12.0.0 AME_TOP /d01/oracle/VIS/apps/apps_st/appl/ame/12.0.0 AMS_TOP /d01/oracle/VIS/apps/apps_st/appl/ams/12.0.0 AMV_TOP /d01/oracle/VIS/apps/apps_st/appl/amv/12.0.0 AMW_TOP /d01/oracle/VIS/apps/apps_st/appl/amw/12.0.0 APPL_TOP /d01/oracle/VIS/apps/apps_st/appl AP_TOP /d01/oracle/VIS/apps/apps_st/appl/ap/12.0.0 AR_TOP /d01/oracle/VIS/apps/apps_st/appl/ar/12.0.0 ...
Or perhaps the full directory path to $APPLTMP?
select value from fnd_env_context where variable_name = 'APPLTMP' and concurrent_process_id = ( select max(concurrent_process_id) from fnd_env_context ); VALUE -------------------------------------------------------------------------------- /d01/oracle/VIS/inst/apps/VIS_demo/appltmp
NB: These queries assume your concurrent managers are running!
Catch ya!
Posted by
Gareth
at
11:12 AM
9
comments
Labels: appsdba, atg, dba, development, ebiz, fnd, interfaces, query, techie, troubleshooting
Apologies for the cryptic title on this one. The issue is a simple but subtle one ... and if you're not an eBusiness Suite customer, but interested in the BIP HTML formatting part, please read on as the discussion may be relevant.
In the Oracle eBusiness Suite Release 12 there is an out-of-the-box solution for sending Payables Remitttance Advice notices via Email. The program is "Send Separate Remittance Advices" and is integrated into the Payments Process. The standard solution utilizes XML Publisher under the covers, but (at the time of writing) has been coded to force HTML output for the Email content and uses its own delivery mechanism, rather than a more flexible bursting one that could attach PDFs to emails. Now, this means there are a couple of limitations with the output format for these Remittance Advice notices:
So the out-of-the-box solution has these gotcha's until such time as it uses a "fixed-format", "all content embedded in email" delivery method such as attaching a PDF to the email with the advice details...
BUT WAIT, there may be workarounds.
For Issue 1. we can tell XML / BI Publisher to embed Inline CSS rather than CSS Stylesheets using the following undocumented XML Publisher configuration. Place the following configuration in the xdo.cfg file and put it in eBusiness Suite $XDO_TOP/resource directory. Usual caveats apply; please test this before rolling to Production. Also be aware that this may affect all HTML output, with output file sizes likely to increase.
<config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/"> <properties> <!-- html-css-embedding valid values embed-to-element | embed-to-header | externalize --> <property name="html-css-embedding">embed-to-element</property> </properties> </config>
For Issue 2. one trick is to place your formatting inside a Table and fix the width / height to that which you require. This may take a smidgen of tweaking, but at least you can get something that looks and prints nicely.
For Issue 3 ... well, I'm still working that one - no workaround from Support yet to embed the images in the HTML. Will keep you posted. UPDATE: Enhancement request (ER) Bug 9834226 has been raised for the issue of inability to embed images in Remittance Advice.
Hope this helps.
Catch ya!
Gareth
This is a post from Gareth's blog at http://garethroberts.blogspot.com
Posted by
Gareth
at
11:09 PM
15
comments
Labels: ap, bi publisher, ebiz, email, HTML, internet, techie
Just a short post with a note of how to get Oracle eBusiness Suite Concurrent Program Parameters into the output on an XML Publisher RTF Template.
There are two simple options, given an example parameter with token P_ORG_ID:
1. Add the concurrent program parameter as a field in the XML - this may be easier / necessary when you get to bursting or similar. Refer to the parameter using the usual <?P_ORG_ID?> RTF syntax.
2. Add the parameter using the param@begin syntax at the top of your RTF file:
<?param@begin:P_ORG_ID?>
And then refer the the value using dollar notation:
<?$P_ORG_ID?>
Catch ya!
Gareth
This is a post from Gareth's blog at http://garethroberts.blogspot.com
Posted by
Gareth
at
9:34 PM
0
comments
Labels: bi publisher, development, ebiz, fnd
So you've just finished the first cut of your funky BI
Publisher Check (Cheque) format template, and you feel pretty accomplished:
<?attribute@incontext:end-indent;'0.0pt'?> <?attribute@incontext:start-indent;'0.0pt'?> <?attribute@incontext:padding-start;'0.0pt'?>
Posted by
Gareth
at
9:17 PM
2
comments
Labels: ap, bi publisher, development, ebiz
With OpenWorld 2009 all done plus a few highly enjoyable days in the Valley I'm now back at home. I had a fantastic time once again, second time around was much less daunting - I went for less sessions, more unconference and more shopping!
The first couple of days of OpenWorld this year seemed very light on attendees, but with a flurry of activity in the last few days and a fantastic appreciation event - an awesome performance from Aerosmith - things really picked up. Very few product announcements of essence from the Oracle team so the real highlights for me were catching up with a variety of people/groups at a number of events:
A huge thanks to all the above for the hospitality.
So only a few notes this year that took my interest to note them down. It seems a bit light especially on the eBusiness Suite side so if I have missed anything major, please post a comment.
Larry's Keynote Announcements:
Just the one product release announcement related to my areas of work:
A number of interesting things up and coming, but most set for calendar year 2010.
OBI 11g - yet to be released, but demo'd, with my notes:
Oracle APEX 4.0
E-Business Suite:
Some other interesting tidbits that I noted:
Wrap-Up
So another excellent OpenWorld over - thanks to Oracle for putting on another flawless event and appreciate the Bloggers Pass. Even the weather made me feel at home ;-)
Next major event on my calendar is the NZOUG Conference 2010, Rotorua, New Zealand, March 15-16 2010 - looking forward to it. Hope to see some of you there!
PS. On a side note, from a New Zealand perspective, interesting that an IBM data center should fail around OpenWorld given Larry's consistent reiteration about the redundancies in the Oracle Database Machine and lack thereof in IBM's ex TPC-C beating solution! Even more than a week later seems like things are not quite back to the usual high Air New Zealand standards - following pic snapped 20-Oct-09.
Posted by
Gareth
at
8:52 AM
5
comments
Labels: apex, bi publisher, ebiz, hardware, media, Openworld 2009
So you're working with Discoverer 10g integrated with the Oracle eBusiness Suite on Release 12. You've installed and set everything up per Metalink/MOS Note 373634.1 "Using Discoverer 10.1.2 with Oracle E-Business Suite Release 12" plus created a custom application and responsibility to have it's own menu items corresponding to your Discoverer Workbooks/Worksheets.
You login to your new responsibility and click on your new menu entry that you created per Metalink/MOS Note "How to Create a Link to a Discoverer Workbook in Apps R12" and what do you get when you query subledger data such as Payables Invoices, or secured General Ledger data?
This sheet currently contains no data.
Well, its a quick fix. Simply save the following value in the "Initialization SQL Statement - Custom" profile option at Responsibility level for your new Responsibility.
begin gl_security_pkg.init; mo_global.init('M'); end;
Note: this may depend on your setup of the following profile options:
All sorted!
Posted by
Gareth
at
1:20 PM
3
comments
Labels: development, discoverer, ebiz, integration, reports, security, techie, troubleshooting
Oracle has announced the availability of Release 12.1, plenty of buzz around on this and Beehive updates.
Update: Oracle Application Management / Change Management Pack 3.0 also released! See Patch 8333939
Let's take a look at the Top Eight R12.1 new ATG (Applications Technology) features from my perspective.
Plenty of other candidates, but those are the ones that took my fancy from the ATG bag of tricks!
So how am I doing against my Chinese New Year predictions?
Disclaimer: The words, ideas and opinions here are my own. Please don't assume they represent the opinion of any other person or organization. This information is based on various sources, so it may not match the actual functionality delivered!
Posted by
Gareth
at
2:20 PM
10
comments
Labels: appsdba, atg, bi publisher, dba, development, ebiz, fnd, reports, techie
Revisited again 30-NOV-2010: Following the ARU change I've updated the Patch search engine (file orapatch.xml)
Update: The Note and Bug search engines (files oranote.xml and orabug.xml) have been updated post upgrade to My Oracle Support (MOS).
Navigating directly to a specific Oracle Patch, Metalink Note or Bug is a bit of a chore. Not to mention Metalink / My Oracle Support (MOS) could do with a mobile interface to speed things up & sidestep that Flash! Cut'n'pasting from my text file with the URL templates was getting tedious. So with inspiration from Eddie Awad's posts, I've put together three custom Firefox Search Engines, well, not really Search Engines, but "I'm Feeling Lucky" engines. You gotta know the Patch/Note/Bug number you wanna get to:
Once you've installed them, hit Control-K, choose the Patch, Note or Bug "search engine" (Control-Down Arrow), enter or paste the exact Patch, Note or Bug number, hit enter and voila, you're there ... if you're logged into the target site!
Give it a try: e.g. Patch 5612820, Note 444524.1, Bug 6074498.
If you get the XML files, put them in your C:\Program Files\Mozilla Firefox\searchplugins folder (or similar), restart your browser and you'll be up and running!
If you need a generic Metalink search engine in the same vain look here.
PS. You will need your Metalink (MOS) username/password to get to the target pages.
PPS. Hoping Oracle doesn't change the URL structures 2 minutes after I post this ;-) Let me know if I don't notice when that happens!
Eddie's posts:
Some good news for eBusiness Suite 11i "bippers" to kick off the year of the Ox. In a previous post I provided a temporary solution for the issue where the default value of the Output Format for a BI Publisher based concurrent request was hardcoded to PDF. Many people have requirements to default the output type to Excel (xls).
Happily, my custom solution is now obsolete.
I'm pleased to advise that on 9-Jan-2009 Oracle provided Patch 5612820 for Oracle eBusiness Suite Release 11i. This patch has a co-requisite, Patch 7627832 released 11-Dec-2008 that took me a while to track down! Now both major current install levels of R11i and R12 are catered for:
For R11i prerequisites, you'll need to be on ATG RUP 6 Patch 5903765 see Note:444524.1, which I previously wrote about here. Both patch 7627832 and ATG RUP 6 have a number of other prerequisites and postrequisites so you may have some patching to do to get your 11i environment up to the required patch level.
For R12, Patch 5612820 is included in Release Update Pack 12.0.6, otherwise you'll need R12.AD.A.delta.4 and R12.ATG_PF.A.delta.4 before it can be applied.
Here are some screenshots of the new Default Output Type field on the Templates page.
Release 11i:
Release 12:
And the new Profile Option FND: Default Template Output Type, which takes effect if there is no default output type on the XMLP Template setup.
Release 11i:
And verification that the default output format is indeed working...
Release 11i:
Release 12:
Nice, get patching!
Posted by
Gareth
at
8:54 PM
6
comments
Labels: atg, bi publisher, dba, development, ebiz, fnd
Gong Xi Fa Cai
Happy Chinese New Year - for January the 26th!
2008 has been and gone, and we're well into 2009. Let's look at some of potential up and coming tidbits for the Oracle eBusiness Suite.
1. Release 12.1: I was expecting this late last year, but we saw 12.0.6 instead. Release 12.1 promises to deliver a number of things, the main one for me will be a whole swag of XML / BI Publisher layouts for standard reports. A couple of Metalink oops My Oracle Support Notes indicate R12.1 is in controlled release. Haven't had a chance to track down the patch number .. anyone have it? For documentation on R12.1 see the Release Content Documentation.
2. Patch 5612820 for EBS Release 11i: This minor piece of functionality to default the Layout Format for BI Publisher based concurrent requests has been nagging me. Its out for R12, and actually its already out for R11i (9-Jan-2009) however ... the Default Layout on the XMLP side is there but the critical concurrent processing portion to default the layout on a concurrent request was missing so its back with Development. I'll keep you posted.
3. Native Excel Templates for XML / BI Publisher: This one may be subtle but for me its a biggie. Release 12 FSGs with native Excel Templates I believe are in controlled release. RTF templates have their moments, but I know a number people are looking for Excel templates. Excel and Accounting live together, and its high time they were standard for XML Publisher with eBusiness Suite. Here's hoping for more than just FSG native Excel templates.
4. Further emergence of OBIA with EBS: I've spent quite a bit of time with the Business Intelligence products lately, and the Oracle Business Intelligence Applications (OBIA) stack is a formidible beast. Albeit complex, there is plenty of sense and underlying power. I think only a handful of people have tapped into this and I'm keen to see how it plays out this year.
5. Change Management Pack for the eBusiness Suite: I'll be watching this closely too - the important parts from my perspective will be automated patching, and the ability to cut your own custom patches for applying using adpatch - nice, but of course I'm assuming you'll need front up with a few $$ too. Watch this space.
6. New Oracle Application Express (APEX) listener: Apparently due in APEX v4, the new listener will hopefully once again push APEX squarely back into the realm of the EBS after mod_plsql's support was tragically cast aside, only to resurface after clarification from Oracle :-) Any update on this David?
7. Oracle Fusion Applications: I wasn't sure whether to put this in, but I think its worth a mention. Perhaps shouldn't include it here with the emphasis on 2009 as my gut feel is that we'll be waiting a tad longer than that. However, if you've heard anything let us know!
8. What's happening for me in 2009? Well, fingers crossed I'll get stuck into a couple of projects that should have seen the light in 2008!
Do you have any hopes/requests/tidbits for Oracle eBusiness Suite action in 2009? Post a comment.
In my neck of the woods a whole lot went on in 2008 including Website launches, Virtuate contract wins, Product demos, a GreaseMonkey Script release, attending OpenWorld for the first time, joining the NZOUG committee and helping to organize the NZOUG Conference, a new phone (Nokia E71 - nice), a new laptop (Toshiba A300 Y01 running Vista 64 ouch) and a ton more. Despite the gloomy economic outlook I'm hugely looking forward to 2009, the year of the Ox.
Disclaimer: The words, ideas and opinions here are my own. Please don't assume they represent the opinion of any other person or organization.
Posted by
Gareth
at
9:59 PM
1 comments
Labels: apex, appsdba, atg, bi publisher, ebiz, NZOUG, Openworld 2008, techie, windows
In prior posts I've dealt with Forms Personalizations, and played with email e.g. via BI (XML) Publisher Bursting. In this post we'll come up with a simple Forms Personalization to ensure that data entry of email addresses results in well-formed email addresses. We'll use regular expressions: an underutilized feature in Oracle since 10g. Initially we'll look at the Remittance Email address on Supplier Sites. But the implementation will allow easy re-use for other email address fields in the EBS by storing the regular expression in a Profile Option.
Lets take a look at the regular expression I'll use for email address validation. This regular expression is a consolidation from a variety of sources, considers IPv4 and IPv6 addressing, and includes specific formatting to get around an Oracle Regex bug. Note it isn't the "full official" regex for email address validation - I wanted a one-liner! What does the regular expression below mean? Basically allow a bunch of characters before the @ and a bunch of characters after the @ considering IPv4 or IPv6 addressing. If anyone has any suggestions/issues/changes, please feel free to comment!
Update 27-JUL-2010: Changed regex to allow multiple hypens as it was only accepting one hyphen in hostname.
Update 09-MAY-2012: Changed regex to disallow leading/trailing periods in username and disallow leading periods in server/domain.
^[-a-zA-Z0-9_\+\^!#\$%&*+\/\=\?\`\|\{\}~\']+(\.([-a-zA-Z0-9_\+\^!#\$%&*+\/\=\?\`\|\{\}~\'])+)*@((([0-9a-zA-Z]*[-\w]*[0-9a-zA-Z])+\.)+[a-zA-Z]{2,9})|(\[([0-9]{1,3}(\.[0-9]{1,3}){3})|([0-9a-fA-F]{1,4}(\:[0-9a-fA-F]{1,4}){7})\])$
We'll store the regular express as a profile option. This allows a single source of truth for our email address validation logic. We could equally put it in a PL/SQL package, but then updates would require coding ... and no-one wants to code these days ;-)
Navigate to Application Developer, ProfileOkay, moving onto the good stuff. Now we'll setup the Forms Personalization to validate the Remittance Email address on the Supplier Sites, Payment tab.
Navigate to Payables Manager, Suppliers, EntryEnter junk in the Remittance Email address on the Payment tab and save.
To implement the same email address validation on other forms, run through the Forms Personalization steps above, identifying the new block and field, replacing SITE.REMITTANCE_EMAIL as required, and update the Error Message action message description / text with the field name.
If you identify a problem with the regular expression, you have one place to change it and it flows through to all the places you implemented the forms personalization the next time your Users log in!
Posted by
Gareth
at
11:02 PM
7
comments
Labels: ap, development, ebiz, fnd, personalizations, regex, techie