The embodiment of the invention discloses a method and
system for generating an OFD-format
bank electronic reconciliation statement, and the method comprises the following steps: obtaining to-be-generated reconciliation statement data and the total number of items thereof, carrying out the
paging and blocking of the reconciliation statement data based on template configuration, and constructing a reconciliation statement context; for each block, generating a service request message through an initialization format, generating a corresponding reconciliation statement block, and updating a reconciliation statement context according to a service response result; after all reconciliation statement blocks corresponding to the reconciliation statement data are generated, a
directory page request message is constructed based on the latest reconciliation statement context, and a
directory page file is generated; decompressing a
directory page file and the statement subblocks, replacing corresponding placeholder files in a directory page with page
object description files in the statement subblocks, and merging all
XBRL data fragments into a main
XBRL file; and re-compressing the merged content of the directory page to generate a final
bank electronic reconciliation statement file in the OFD format.