Sei sulla pagina 1di 5

Oracle ERP Technology and Business Intelligence Blog: Part 2: Adding new fields to the ...

Page 1 of 5

SEARCH BLOG

FLAG BLOG

Next Blog

Create Blog | Sign In

Oracle ERP Technology and Business Intelligence Blog


My notes, thoughts and findings on implementing Oracle Business Intelligence, reporting and technology solutions for ERP Customers.

Friday, 6 June 2008

Part 2: Adding new fields to the R12 Payment Funds Disbursement XML file
IBY_FD_EXTRACT_EXT_PUB is a standard PL/SQL package that is used to extend (i.e. add additional tags to) the XML file generated during a R12 Oracle Payments Payment Process Request: About Me
KE VIN WO ODRO W

I am a consultant specializing in This XML file is then used as the data source for the XML Publisher cheque or electronic file presentation layout. To understand how to use IBY_FD_EXTRACT_EXT_PUB, we have to understand the structure of the XML file created by the Payments process request. There are 4 main levels to the file. These are: Top Level: Outbound Payment Instruction This is the top level of the XML File and there is one Outbound Payment Instruction per Payment process request. Level 2: Outbound Payment: This is the Payment Level i.e. an individual cheque or BACS payment amount to a supplier. There can be multiple Outbound Payments per Outbound Payment Instruction. Level 3: Document Payable: Details the documents (i.e. invoices) being paid. There can be multiple Document Payable tags per Outbound Payment planning, implementing and managing Business Intelligence, reporting and technical solutions for Oracle Financials and Supply Chain Customers. View my complete profile Blog Archive

2008 (18) July (4)


OBI EE and .NET Framework V2 Who Am I? An investigation into R12 UMX Proxy User...

http://kwoodrow.blogspot.com/2008/06/part-2-adding-new-fields-to-r12-payment.html

8/5/2008

Oracle ERP Technology and Business Intelligence Blog: Part 2: Adding new fields to the ... Page 2 of 5

BIP XSL-TEXT Level 4: Document Payable Line: This level details the invoice line. There can be multiple Document Payable Line tags per Document Payable. Templates : Part 2 BIP XSL-TEXT Templates : Part Here is an example Payments file viewed using XML notepad: 1 June (9) May (5) 2007 (5)

Labels Additional XML tags can be added at each of these 4 levels by coding different PL/SQL functions in IBY_FD_EXTRACT_EXT_PUB. The following table lists the functions you need to modify to add additional tags to each level of the XML file: BI Publisher / XML Publisher (13) Bill Presentment Architecture (2) Check Printing (3) Discoverer (3)
XML File Level IBY_FD_EXTRACT_EXT_PUB Function To Modify Example of Parameter Usage SELECT Get_Ins_Ext_Agg OutboundPaymentInstruction (p_payment_instruction_id IN NUMBER) FROM WHERE

eText (4)

General Ledger (1) IBY_FD_EXTRACT_EXT_P UB (2) OBI EE (1)

iby_pay_instructions_all payment_instruction_id =

p_payment_instruction_id; SELECT * OutboundPayment Get_Pmt_Ext_Agg (p_payment_id IN NUMBER)

Payments (6)

FROM iby_payments_all Proxy User (1) WHERE ipa.payment_id =

Quick Reminders (2) p_payment_id;


SELECT *

Security (1) System Administrator (1)

Get_Doc_Ext_Agg DocumentPayable (p_document_payable_id IN NUMBER)

FROM iby_docs_payable_all dp WHERE dp.document_payable_id = UMX (1) P_document_payable_id;

Get_Docline_Ext_Agg DocumentPayableLine (p_document_payable_id IN NUMBER, p_line_number IN NUMBER) SELECT * Get_Ppr_Ext_Agg PaymentProcessProfile

User Management (1) Workflow (1) XDOLoader (2) XSL-TEXT (2)

FROM (p_payment_service_request_id iby_pay_service_requests IN NUMBER) WHERE payment_service_request_id =

http://kwoodrow.blogspot.com/2008/06/part-2-adding-new-fields-to-r12-payment.html

8/5/2008

Oracle ERP Technology and Business Intelligence Blog: Part 2: Adding new fields to the ... Page 3 of 5

p_payment_service_request_id;

As shown in the example below, it is best practice to group all of your custom tags within a parent tag called 'Extend' EXAMPLE: The following is an example of adding an 'Extend' tag and some additional invoice data to the DocumentPayable level of the XML file:
--- This API is called once per document payable. -- Implementor should construct the extract extension elements -- at the document level as a SQLX XML Aggregate -- and return the aggregate. -FUNCTION Get_Doc_Ext_Agg(p_document_payable_id IN NUMBER) RETURN XMLTYPE IS v_att1 ap_invoices_all.attribute1%TYPE; v_att2 ap_invoices_all.attribute2%TYPE; v_att3 ap_invoices_all.attribute3%TYPE; v_detail_line VARCHAR2(255); v_result XMLTYPE; BEGIN SELECT ai.attribute1,ai.attribute2,ai.attribute3 INTO v_att1, v_att2, v_att3 FROM iby_docs_payable_all dp,ap_invoices_all ai WHERE dp.calling_app_doc_unique_ref2 = ai.invoice_id AND dp.document_payable_id = p_document_payable_id; v_detail_line := xxcsd_build_inv_line(p_document_payable_id); --now build the XML string SELECT XMLConcat(XMLElement("Extend", XMLElement("XXCSD_INVOICE_DFF1", v_att1), XMLElement("XXCSD_INVOICE_DFF2", v_att2), XMLElement("XXCSD_INVOICE_DFF3", v_att3), XMLElement("XXCSD_INV_DETAIL", v_detail_line) ) ) INTO v_result FROM dual; RETURN v_result; END Get_Doc_Ext_Agg;

As you can see, Ive added 4 new tags XXCSD_INVOICE_DFF1, XXCSD_INVOICE_DFF2, XXC

http://kwoodrow.blogspot.com/2008/06/part-2-adding-new-fields-to-r12-payment.html

8/5/2008

Oracle ERP Technology and Business Intelligence Blog: Part 2: Adding new fields to the ... Page 4 of 5

SD_INVOICE_DFF3 and XXCSD_INV_DETAIL to the XML File:

These new XML tags can now be referenced in my XML Publisher presentation template and added to my cheque or electronic payment file layout. For example, here is the tag XXCSD_INV_DETAIL used in an ETEXT template:

Posted by Kevin Woodrow at 05:37 Labels: BI Publisher / XML Publisher, IBY_FD_EXTRACT_EXT_PUB, Payments

2 comments:
Ben said... Hey Kevin, I would be interested in seeing (as in downloading) source XML, eText RTF and resultant flat files from this series of posts you're doing. The Oracle documentation for the eText format is terrible. Thanks!
17 June 2008 09:21

Anonymous said... .
19 June 2008 17:17

Post a Comment

http://kwoodrow.blogspot.com/2008/06/part-2-adding-new-fields-to-r12-payment.html

8/5/2008

Oracle ERP Technology and Business Intelligence Blog: Part 2: Adding new fields to the ... Page 5 of 5

Links to this post


Create a Link Newer Post Home Older Post

Subscribe to: Post Comments (Atom)

http://kwoodrow.blogspot.com/2008/06/part-2-adding-new-fields-to-r12-payment.html

8/5/2008

Potrebbero piacerti anche