la pigrizia uccide lo so… ma a volte tentar non nuoce
Si ma c’ sempre qualche angelo in giro …
il File RIBA costituito da diverse tipologie di record quindi occorre creare una struttura per ogni record
Un Record per Intestazione del flusso
Un Record finale
E tante volte i 7 record di contenuti quante sono le RIBA da emettere
Record di intestazione
fillera as string * 1
tiporecord as string * 2
mittente as string * 5
ricevente as string * 5
datacreazione as string * 6
nomesupporto as string * 20
disposizione as string * 6
lbero as string * 59
qualificatore as string * 7
fillerb as string * 2
codicedivisa as string * 1
fillerc as string * 1
nondisponibile as string * 5
Record Riba tipo 14
fillera as string * 1
tiporecord as string * 2
numeroprogressivo as string * 7
fillerb as string * 12
datapagamento as string * 6
causale as string * 5
importo as string * 13
segno as string * 1
abipres as string * 5
cabpres as string * 5
contopres as string * 12
abi as string * 5
cab as string * 5
fillerc as string * 12
codicesia as string * 5
tipocodice as string * 1
codicecliente as string * 16
flagdebitore as string * 1
fillerd as string * 5
codicedivisa as string * 1
Record Riba tipo 20
fillera as string * 1
tiporecord as string * 2
numeroprogressivo as string * 7
creditore1 as string * 24
creditore2 as string * 24
creditore3 as string * 24
creditore4 as string * 24
fillerb as string * 14
Record Riba tipo 30
fillera as string * 1
tiporecord as string * 2
numeroprogressivo as string * 7
creditore1 as string * 24
creditore2 as string * 24
creditore3 as string * 24
creditore4 as string * 24
fillerb as string * 14
Record Riba tipo 40
fillera as string * 1
tiporecord as string * 2
numeroprogressivo as string * 7
creditore1 as string * 24
creditore2 as string * 24
creditore3 as string * 24
creditore4 as string * 24
fillerb as string * 14
Record Riba tipo 50
fillera as string * 1
tiporecord as string * 2
numeroprogressivo as string * 7
creditorerigo1 as string * 40
creditorerigo2 as string * 40
fillerb as string * 10
codicefiscale as string * 16
fillerc as string * 4
Record Riba tipo 51
fillera as string * 1
tiporecord as string * 2
numeroprogressivo as string * 7
numeroricevuta as string * 10
denomincred as string * 20
provincia as string * 15
numeroautorizzazione as string * 10
dataautorizzazione as string * 6
fillerb as string * 49
Record Riba tipo 70
fillera as string * 1
tiporecord as string * 2
numeroprogressivo as string * 7
fillerb as string * 78
indicatorecircuito as string * 12
tipodoc as string * 1
flagesito as string * 1
flagstampaavviso as string * 1
chiavicontrollo as string * 17
Record di coda
fillera as string * 1
tiporecord as string * 2
mittente as string * 5
ricevente as string * 5
datacreazione as string * 6
nomesupporto as string * 20
adisposizione as string * 6
numerodisposizione as string * 7
importinegativi as string * 15
importipositivi as string * 15
numerorecord as string * 7
fillerb as string * 24
codicedivisa as string * 1
nondisponibile as string * 6
I record con nome fillera, fillerb, fillerc … etc devono essere riempiti con spazi vuoti tanti quanto la lunghezza
ogni record ha lunghezza fissa di 120 caratteri
I caratteri devono avere codifica 0/9 a-z A-Z e i segni di punteggiatura principali ,.-; altri caratteri non sono permessi
ogni record deve essere delimitato da CR o CR+LF o ritorno a capo UNIX va beninissimo utilizzare EndOfLine
Il file di testo deve essere un normale testo ASCII
Ti allego le specifiche del tracciato
Per gli importi numerici devi allineare a destra e riempire con 0
Per gli altri campi di tipo testo (vedi tracciato) devi riempire con spazi (chr(32))
Per gli esempi ti allego link : Esempio compilazione file riba
Grazie mille, a buon rendere.
Grazie @Massimiliano anche io sto sviluppando un app per gestire RIBA e il tuo esempio stato molto utile !
Grazie Massimiliano, molto molto utile.
Si ma non perdeteci tempo, tanto il tracciato a settimane viene rimpiazzato dal nuovo tracciato RIBA SEPA.
grazie
Pessima notizia!!!
OK svelato l’arcano, siccome le disposizioni RIBA sono un prodotto solo italiano e non utilizzato dagli altri paesi comunitari il tracciato CBI che ho postato valido fino ad un prossimo aggiornamento.
Quindi utilizzate tranquillamente il tracciato in quanto l’ultima versione.
Mi scuso per le info sbagliate su RIBA SEPA