Case Study:
we will create a fixed position based eText template(RTF) to generate BI report. The columns will be as below:
- Start with hardcoded value "NEW" which is of 3 chars.
- Next a whitespace.
- Next vendor number , size 15 chars, if less size, will be padded with whitespace.
- Next invoice Number, size 30 chars, all in caps, if less size , will be padded with whitespace
- Next invoice date , in YYYYMMDD, size 8 chars.
- Next a whitespace
- Next invoice amount , size 15 chars, if less size, will be padded "0" before the original digits.
- Next a whitespace
- Next Invoice Currency code, size 3 chars.
SQL Query:
SELECT PS.segment1 VENDOR_NUM
,AVA.invoice_num INVOICE_NUM
,AVA.invoice_date INVOICE_DATE
,AVA.invoice_amount INVOICE_AMOUNT
,AVA.invoice_currency_code INVOICE_CURRENCY_CODE
FROM ap_invoices_all AVA
,poz_suppliers PS
WHERE AVA.vendor_id = PS.vendor_id
EFT template or layout:
Detailed screenshots:
Or
Notes:
- All SQL functions can be applied in data like TO_CHAR, TO_NUMBER, MAX, MIN, NVL, DECODE, UPPER, LOWER, COUNT, CELL, ROUND, REPLACE ETC.
- Etext template can also be used for character delimited files as well.
- Payment files, bank statements are created using eText templates.
No comments:
Post a Comment