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

Mapping of Payment Format: Date:

2/25/2020
Formato de pago Bancolombia PAB V 2.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’ 01 - Tipo registro
15 Alpha L, ‘0’ Replace(InstructionGrouping/Payer/ 02 - Nit de la empresa
LegalEntityRegistrationNumber,’-’)
1 Alpha L, ‘ ’ Decode(PaymentInstructionInfo/ 03 - Aplicacion
ProcessType,'IMMEDIATE','I','MEDIO','
D','NOCHE','N','STANDARD','I')
15 Alpaha L, ‘ ’ ‘ ’ 04 - Filler
3 Alpha L, ‘0’ NVL(PaymentInstructionInfo/ 05 - Clase de transacción
BankInstruction/
BankInstructionCode,‘220’)
10 Alpha R, ‘ ’ InstructionGrouping/Payer/Name 06 - Descripción
propósito transacciones
8 Date, L, ‘0’ OutboundPayment/PaymentDate 07 - Fecha de transmisión

1
YYYYMMDD de lote.
2 Alpha L, ‘0’ Substr(PaymentInstructionInfo/ 08 - Secuencia envío de
InstructionReferenceNumber,length(Pay lotes ese día
mentInstructionInfo/
InstructionReferenceNumber)-1)
8 Date, L, ‘ ’ OutboundPayment/PaymentDate 09 - Fecha de aplicación
YYYYMMDD del lote
6 Alpha L, ‘0’ InstructionTotals/PaymentCount 10 - Número de registros
de detalle y de
documentos.
17 Alpha R, ‘0’ ‘0’ 11 - Sumatoria de débitos

17 Alpha L, ‘0’ IF 12 - Sumatoria de


DECIMAL_PART(InstructionTotals/TotalP créditos
aymentAmount/Value) = '0' THEN

(InstructionTotals/TotalPaymentAmount
/Value||'00')
ELSE
substr(InstructionTotals/
TotalPaymentAmount/
Value,1,instr(InstructionTotals/
TotalPaymentAmount/Value,'.')-1)||
RPAD(DECIMAL_PART(InstructionTotals/
TotalPaymentAmount/Value),2,'0')
END IF
11 Alpha L, ‘0’ InstructionGrouping/BankAccount/ 13 - Cuenta cliente a
BankAccountNumber debitar
1 Alpha R, ‘ ’ Decode(InstructionGrouping/ 14 - Tipo de cuenta
BankAccount/BankAccountType/ cliente a debitar
Code,'SAVING','S','CHECKING','D','REV
OLVING','C')
149 Alpha R, ‘ ’ ‘ ’ 15 - Utilización futura

<LEVEL> OutboundPayment
<POSITION> <LENGTH> <FORMAT> <PAD> <DATA> <COMMENTS>
<NEW RECORD> PAYMENT_RECORD
1 Alpha ‘6’ 01 - Tipo de Registro
15 Alpha R, ‘ ’ REPLACE( 02 - Nit beneficiario

2
NVL(decode(Payee/TaxOrganizationType/
Code,'CORPORATION',

decode(Payee/TaxRegistrationType,'CO
- CC/Bancos -
NIT',Payee/LegalEntityRegistrationNum
ber,'CO_CC_BANCOS_NIT',

Payee/LegalEntityRegistrationNumber,s
ubstr(Payee/TaxRegistrationNumber,1,9
)),
'PERSONA JURIDICA NAL',
substr(Payee/TaxRegistrationNumber,1,
10),

'INDIVIDUAL',decode(Payee/TaxRegistra
tionType,'CO_CEDULA_CIUDADANIA',NVL
(Payee/TaxRegistrationNumber,Payee/Le
galEntityRegistrationNumber),NVL(subs
tr(Payee/
LegalEntityRegistrationNumber,1,lengt
h(Payee/
LegalEntityRegistrationNumber)-
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
h(Payee/
LegalEntityRegistrationNumber)-1)),
'13',NVL
(Payee/TaxRegistrationNumber,Payee/Le

3
galEntityRegistrationNumber),DECODE(P
ayee/SupplierDescriptiveFlexField/
Attribute1,'31',substr(Payee/
TaxRegistrationNumber,1,length(Payee/
TaxRegistrationNumber)-1),Payee/
TaxRegistrationNumber))
,(Payee/TaxRegistrationNumber))

,(Payee/LegalEntityRegistrationNumber
))
,’-’)
30 Alpha R, ‘ ’ Payee/Name 03 - Nombre del
beneficiario
9 Alpha L, ‘0’ decode(PayeeBankAccount/BankNumber, 04 - Banco cuenta del
'59','1059', beneficiario (destino)
'40','1040',
'52','6013677',
'32','5600829',
'66','1066',
'58','1558',
'51','5895142',
'01','5600010',
'23','5600230',
'62','1062',
'63','1063',
'12','5600120',
'47','1047',
'60','1060',
'02','5600023',
'65','1065',
'69','1069',
'53','1053',
'31','1031',
'07','5600078',
'61','1061',
'13','5600133',
'09','5600094',
'70','1370',
'92','1292',
'91','1291',
'83','1283',

4
'89','1289',
'21','1121',
'03','1303',
'14','1014',
'06','5600065',
'67','1067',
'19','5600191',
'1551','1551',
'1014','5600146',
'1507','1507',
'1151','1151',
'1071','1071',
'1637','1637',
'1801','1801',
'1070','1070',
'1805','1805',
PayeeBankAccount/BankNumber
)
17 Alpha R, ‘ ’ PayeeBankAccount/BankAccountNumber 05 - Número cuenta del
beneficiario
1 Alpha L, ‘ ’ ‘ ’ 06 - Indicador Lugar de
pago
2 Alpha L, ‘ ’ decode(PayeeBankAccount/ 07 - Tipo de transacción
BankAccountType/Code,'SAVING','37',
'SAVINGS','37','CHECKING','27','OTHER
','36')
17 Alpha L, ‘0’ IF DECIMAL_PART(PaymentAmount/Value) 08 - Valor transacción
= '0' THEN
(PaymentAmount/Value||'00')
ELSE

substr(PaymentAmount/Value,1,instr(Pa
ymentAmount/Value,'.')-1)||
RPAD(DECIMAL_PART(PaymentAmount/
Value),2,'0')
END IF
8 Date, L, ‘ ’ PaymentDate 09 - Fecha aplicación
YYYYMMDD
21 Alpha R, ‘ ’ PaymentNumber/ CheckNumber 10 - Referencia
1 Alpha L, ‘ ’ NVL(decode(Payee/PersonInfo/ 11 - Tipo de documento de
TownOfBirth,'CC','1','CE','2','PS','5 identificación

5
','TI','4'),
NVL(decode(Payee/
LegalEntityRegistrationType,'CC','1',
'CE','2','PS','5','TI','4'),NVL(decod
e(Payee/
SupplierSiteDescriptiveFlexField/
Attribute1,'31','3','13','1','22','2'
,'12','4','41','5'),
decode(Payee/
SupplierDescriptiveFlexField/
Attribute1,'31','3','13','1','22','2'
,'12','4','41','5'))))
5 Alpha ‘00000’ 12 - Oficina de entrega
15 Alpha R, ‘ ’ Payee/ContactInfo/ContactLocators/ 13 - Número de Fax
FaxNumber
80 Alpha R, ‘ ’ Payee/ContactInfo/ContactLocators/ 14 - e-mail
EmailAddress
15 Alpha R, ‘ ’ ‘ ’ 15 - Número
identificación del
autorizado
27 Alpha R, ‘ ’ ‘ ’ 16 - Filler
<END LEVEL> OutboundPayment
<END LEVEL> OutboundPaymentInstruction

You might also like