You are on page 1of 7

Emirates Bank -

APPLICATION EXTENSION TECHNICAL DESIGN


EFM (Unifi) Customisation Ref: Automatic Supplier Invoice number Updation
Author: Creation Date: Last Updated: Document Ref: Version: Tony Varghese March 25, 2008 April 13, 2008 Automatic Supplier Invoice number Updation.doc Version 1.1

63885152.doc

Emirates Bank Group Confidential - For internal use only

Document Control

Change Record
9

Date 25-Mar2008 13-Apr2008

Author Tony Varghese ND Kumar

Versio n 1.0 1.1

Change Reference Original Document Changed the Before Report Trigger.

Reviewers
Name Position

Approvers
Name N.D Kumar Position Project Manager (onsite)

Distribution
Copy No. 1 2 63885152.doc Name Library Master Location Project Library Project Manager 6

Emirates Bank Group Confidential - For internal use only

Copy No. 3 4

Name

Location

63885152.doc

Emirates Bank Group Confidential - For internal use only

Contents

1.1. Approach ...........................................................................................8 1.1.1 References..................................................................................8 1.2. Module List...........................................................................................8 1.3 Concurrent Program Logic....................................................................9 1.4 Calling Arguments..............................................................................9 2.1 Open Issues...................................................................................11 2.2 Closed Issues................................................................................11

1. Technical Overview
This document defines the technical components required for automatically generating Accounts Payable Invoice Number as per Emirates Banks requirement. The objective of this document is to describe the Techincal requirements for this interface and also to discuss the required technical solutions

1.1. Approach
Customize the Pay On Receipt AutoInvoice program to include the logic to generate AP Invoice as per EBGs requirement.

1.1.1 References
Functional Design Document Updation.doc : Automatic Supplier Invoice number

1.2. Module List 1.2.1 Concurrent Programs :


XXEBG_Pay on Receipt AutoInvoice

1.2.2 Custom Components :


XXEBG_POXPOIV.sql (SQL Script) XXEBG_PO_INVOICES_SV1 (Database Package)
63885152.doc Emirates Bank Group Confidential - For internal use only 8

XXEBG_PO_INVOICES_SV2 (Database Package) XXEBG_APXIIMPT.rdf (Oracle Report)

1.3

Concurrent Program Logic

Need to create a new oracle (RDF) report and register it to the concurrent program with the name as XXEBG_Pay on Receipt AutoInvoice and execution method is SQL*Plus .

1.4

Calling Arguments

Program Name

Argument

Require d N

Comments

XXEBG_Pay On Receipt AutoInvoice

Transaction Source

Using the value set PO_INV_CR_TXN_SOURCES User select the value ERS Evaluated Receipt Settlement.

XXEBG_Pay On Receipt AutoInvoice

Commit Interval

Using the value set 7/Number

XXEBG_Pay On Receipt AutoInvoice

Receipt Number

Using the value set XXEBG_PO_INV_CR_RECEIPT_NU MS_ORG User can enter a valid Receipt Number. Using the value set 7/Digits

XXEBG_Pay On Receipt AutoInvoice

Aging Period

1.5 Table and View Usage CRUD Matrix (Create, Read, Update, Delete)
Table Name PO_Vendors PO_Vendor_Sites Ap_system_parameters po_headers_all Mode R R R R

63885152.doc

Emirates Bank Group Confidential - For internal use only

po_lines_all po_line_locations_all rcv_shipment_headers rcv_shipment_lines rcv_transactions ap_invoice_lines_interface

R R R R R C

1.6

Program Logic (Pseudocode)

1. Create an SQL file XXEBG_POXPOIV.sql to call the package xxebg_po_invoices_sv1.create_ap_invoices with the parameters Entered by the user. 2. Create a packages XXEBG_PO_INVOICES_SV1, XXEBG_PO_INVOICES_SV2 based on the standard packages PO_INVOICES_SV1 and PO_INVOICES_SV2. 3. In the package XXEBG_PO_INVOICES_SV1 , call the custom report XXEBG_APXIIMPT.rdf instead of the standard report APXIIMPT.rdf 4. In before report trigger of the report XXEBG_APXIIMPT.rdf add the following statements CURSOR cur IS SELECT rsh.receipt_num,rsh.shipment_num FROM rcv_shipment_headers rsh, rcv_shipment_lines rsl WHERE rsh.shipment_header_id = rsl.shipment_header_id and shipment_num is not null ; FOR c IN cur LOOP UPDATE ap_invoices_interface SET invoice_num = substr(c.shipment_num||'-'||c.receipt_num||'-'|| substr(invoice_num,instr(invoice_num,'-',1,2)+1,length(invoice_num)), 1,49) -invoice_num = 'EBG-' || c.shipment_num where substr(invoice_num,5,6)=c.receipt_num and status is null and source='ERS'; END LOOP;

63885152.doc

Emirates Bank Group Confidential - For internal use only

10

2.1

Open Issues
ID
1

Issue

Resolution

Responsibility

Target Date Impact Date

2.2
ID
1

Closed Issues
Issue Resolution Responsibility Target Date Impact Date

63885152.doc

Emirates Bank Group Confidential - For internal use only

11

You might also like