Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 5

Mapping of Payment Format: Date: 6/30/2012

Formato de pago Banco de Credicorp V 1.0 EFT Payment Format

Format Setup:

Hint: Define formatting options…


<TEMPLATE TYPE> FIXED_POSITION_BASED
<OUTPUT CHARACTER SET> iso-8859-1
<NEW RECORD CHARACTER> Carriage Return

Sequences:
Hint: Define sequence generators…
<DEFINE SEQUENCE> PaymentInsSeq
<RESET AT LEVEL> /OutboundPaymentInstruction
<INCREMENT BASIS> RECORD
<END DEFINE SEQUENCE > PaymentInsSeq

Format Data Records:

Hint: This is the body of the format. Define your format records here.
Create one table for each record or group of records that are at the same level.

<LEVEL> OutboundPaymentInstruction
<POSITION> <LENGTH> <FORMAT> <PAD> <DATA> <COMMENTS>
<NEW RECORD> HEADER_RECORD
1 Alpha ‘1’ 1 - Tipo de registro
4 Alpha ‘0000’ 2- Inicio Conteo
4 Alpha to_char(PaymentDate,'yyyy') 3- Anio
2 Alpha to_char(PaymentDate,'mm') 4- Mes
2 Alpha to_char(PaymentDate,'dd') 5- dia
4 Alpha L, ‘0’ InstructionTotals/PaymentCount 6- Total Pagos
18 Number, L, ‘0’ Nvl(InstructionTotals/ 7 - Valor total
INTEGER TotalPaymentAmount/Value,0)*100
10 Alpha L, ‘0’ SUBSTR(REPLACE(InstructionGrouping/ 8- NIT Ordenante
Payer/
LegalEntityRegistrationNumber,’-’),1,
9)
2 Alpha R, ‘’ decode(InstructionGrouping/ 9- Tipo de Cuenta

1
BankAccount/BankAccountType/ Dispersora
Code,'SAVING','02',
'SAVINGS','02','CHECKING','03','OTHER
','01')
16 Alpha L, ‘0’ InstructionGrouping/BankAccount/ 10- Número de la Cuenta
BankAccountNumber Dispersora
136 Alpha L, ‘0’ ‘0’ 11- Relleno

2
<LEVEL> OutboundPayment
<POSITION> <LENGTH> <FORMAT> <PAD> <DATA> <COMMENTS>
<NEW RECORD> PAYMENT_RECORD
1 Alpha ‘2’ 1 - Tipo de registro
4 Alpha L, ‘0’ SEQUENCE_NUMBER(PaymentInsSeq) 2 - Consecutivo
10 Alpha L, ‘0’ SUBSTR(REPLACE(../ 3- NIT Ordenante
InstructionGrouping/Payer/
LegalEntityRegistrationNumber,’-’),1,
9)
6 Alpha L, ‘0’ ‘0’ 4- Relleno
30 Alpha R, ‘ ’ Payee/Name 5 - Beneficiario
11 Alpha L, ‘0’ REPLACE( 6 - Nit/cc

NVL(decode(Payee/TaxOrganizationType/
Code,'CORPORATION',
decode(Payee/TaxRegistrationType,'CO
- CC/Bancos -
NIT',Payee/LegalEntityRegistrationNum
ber,'CO_CC_BANCOS_NIT',Payee/
LegalEntityRegistrationNumber,substr(
Payee/TaxRegistrationNumber,1,9)),
'PERSONA JURIDICA NAL',
substr(Payee/TaxRegistrationNumber,1,
10),
'INDIVIDUAL',

NVL(substr(Payee/LegalEntityRegistrat
ionNumber,1,length(Payee/LegalEntityR
egistrationNumber)-1),substr(Payee/
TaxRegistrationNumber,1,length(Payee/
TaxRegistrationNumber)-1))

,'PERSONA NATURAL
NAL',decode(Payee/SupplierSiteDescrip
tiveFlexField/Attribute1,'31'

,NVL(substr(Payee/TaxRegistrationNumb
er,1,length(Payee/TaxRegistrationNumb
er)-1),substr(Payee/
LegalEntityRegistrationNumber,1,lengt

3
h(Payee/
LegalEntityRegistrationNumber)-1)),
'13',NVL
(Payee/TaxRegistrationNumber,Payee/Le
galEntityRegistrationNumber),DECODE(P
ayee/SupplierDescriptiveFlexField/
Attribute1,'31',substr(Payee/
TaxRegistrationNumber,1,length(Payee/
TaxRegistrationNumber)-1),Payee/
TaxRegistrationNumber))

,(Payee/TaxRegistrationNumber))

,(Payee/LegalEntityRegistrationNumber
)),’-’)
4 Number L, ‘0’ PayeeBankAccount/BankNumber 7 - Codigo del banco
4 Alpha to_char(PaymentDate,'yyyy') 8- Anio
2 Alpha to_char(PaymentDate,'mm') 9- Mes
2 Alpha to_char(PaymentDate,'dd') 10- dia
1 Alpha ‘1’ 11- Tipo pago
15 Number, L, ‘0’ NVL(PaymentAmount/Value,0)*100 12- Valor
INTEGER
16 Alpha R, ‘ ’ REPLACE(PayeeBankAccount/ 13 - Cuenta destino
BankAccountNumber,’-’)
12 Alpha L, ‘ ’ PaymentNumber/CheckNumber 14 - Comprobante
1 Alpha R, ‘ ’ DECODE(UPPER(PayeeBankAccount/ 15 - Tipo de cuenta
BankAccountType/Code), 'SAVING','A’, destino
'SAVINGS','A’,'C')
80 Alpha R, ‘ ’ ‘ ’ 16 -Información Adicional
<END LEVEL> OutboundPayment

<LEVEL> OutboundPaymentInstruction
<POSITION> <LENGTH> <FORMAT> <PAD> <DATA> <COMMENTS>
<NEW RECORD> PAYMENT_RECORD
1 Alpha ‘3’ 1-ID Linea
4 Alpha L, ‘0’ ‘9999’ 2-Fin Conteo
4 Alpha L, ‘0’ InstructionTotals/PaymentCount 3-Numero de pagos
18 Number, L, ‘0’ InstructionTotals/ 4-Valor total a pagar
INTEGER TotalPaymentAmount/Value

4
122 Alpha L, ‘0’ ‘0’ 5-Relleno
<END LEVEL> OutboundPaymentInstruction

<END LEVEL> OutboundPaymentInstruction

You might also like