swift结构

SWIFT message types

SWIFT messages consist of five blocks of data including three headers, message content, and a trailer. Message types are crucial to identifying content.

swift包含五个数据块,包括三个头,正文,文件尾

All SWIFT messages include the literal "MT" (Message Type). This is followed by a 3-digit number that denotes the message type, category, and group. Consider the following example, which is an order to buy or sell via a third party:

所有Swift包括文本MT,跟着三位数表明了报文类型,种类和组

MT502The first digit (5) represents the category. A category denotes messages that relate to particular financial instruments or services such as Precious Metals, Syndications, or Travelers Checks. The category denoted by 5 is Securities Markets.

第一个5代表种类,此种类和特别金融机构相关,比如贵金属,辛迪加或旅行支票,5代表证券市场

The second digit (0) represents a group of related parts in a transaction life cycle. The group indicated by 0 is a Financial Institution Transfer.

第二个0代表在交易生命周期中相关的部分,0代表金融机构资金调拨

The third digit (2) is the type that denotes the specific message. There are several hundred message types across the categories. The type represented by 2 is a Third-Party Transfer.

第三个2是指明特别信息,此类型代表第三方传输

Each message is assigned unique identifiers. A 4-digit session number is assigned each time the user logs in. Each message is then assigned a 6-digit sequence number. These are then combined to form an ISN (Input Sequence Number) from the user's computer to SWIFT or an OSN (Output Sequence Number) from SWIFT to the user's computer. It is important to remember that terminology is always from the perspective of SWIFT and not the user.

The Logical Terminal Address (12 character BIC), Day, Session and Sequence numbers combine to form the MIR (Message Input Reference) and MOR (Message Output Reference), respectively.

For a full list of SWIFT message types, see All Things SWIFT: the SWIFT User Handbook.



SWIFT field structure

域结构

This section discusses the SWIFT field structure. A field is a logical subdivision of a message block A, which consists of a sequence of components with a starting field tag and delimiters.

域是blockA的逻辑细分,由一个带有开始域标签和分隔符的序列组成

A field is always prefaced by a field tag that consists of two digits followed, optionally, by an alphabetic character. The alphabetic character is referred to as an option. For example, 16R is a tag (16) with an option (R) that indicates the start of a block; 16S is a tag (16) with an option (S) that indicates the end of a block. A field is always terminated by a field delimiter. The delimiter depends on the type of field used in a message block.

一个域一般由包含两位数域标签作序,可选的,和一个字母,字母代表了一个选项,举例,16R是一个标签16和一个选项R指示了块的开始,16S是一个标签16和一个选项S指示了块的结束,域总是以域分界符结束,分界符取决于块中使用的域的类型

There are two types of fields used in SWIFT messages: generic and non-generic. The type of field used in a SWIFT message block is determined by the Message Type. What follows is a discussion of these SWIFT field structures. For more on generic and non-generic fields and how to distinguish between them, see Part III, Chapter 3 of the SWIFT User Handbook

有两种SWIFT报文,一般的或者非泛型的,


Note:The symbol CRLF shown below is a control character and represents carriage return/line feed (0D0A in ASCII hex, 0D25 in EBCDIC hex).

Non-generic fields

The structure of non-generic fields in SWIFT message blocks is as follows:

:2!n[1a]: data content<CRLF>

非泛型域格式

where:

: = mandatory colon

必要的冒号


2!n = numeric character, fixed length

数字字符,固定长度

[1a] = one optional alphabetic character, letter option

: = mandatory colon

一个可选的字母=必要的冒号

data content = the data content, which is defined separately for every tag

<CRLF> = field delimiter

The following is an example of a non-generic field:

:20:1234<CRLF> :32A:...<CRLF>

Note:In some cases (such as with the tag 15A... n), the data content is optional.

Generic fields

The structure of generic fields in SWIFT messages is as follows:

:2!n1a::4!c'/'[8c]'/'data content

where

:2!n1a: = same format as non-generic fields, except that 1a is mandatory

: = mandatory second colon (required in all generic fields)

4!c = qualifier

'/' = first delimiter

[8c] = issuer code or Data Source Scheme (DSS)

'/' = second delimiter

data content = See Part III, Chapter 3 of the SWIFT User Handbook for the format definition

Note:Non-generic fields and generic fields cannot share the same field tag letter option letter. In order to distinguish between them easily, a colon is defined as the first character of the column Component Sequence. Generic fields are defined in the same section (Part III, Chapter 3 of the SWIFT User Handbook) as the non-generic fields.

The following character restrictions apply to generic field data content:

  • Second and subsequent lines within the data content must start with the delimiter CRLF.
  • Second and subsequent lines within the data content must never start with a colon (:) or a hyphen (-).
  • The data content must end with the delimiter CRLF.



一个field可能有多个option,用a表示,一个option对应一个format,但一个option可以有多个qulifier

转载于:https://my.oschina.net/jd16manson/blog/661447

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值