US 12,730,796 B2
Customizing repository in a table based customizing scenario
Wulf Kruempelmann, Altlussheim (DE); and Volker Zirkel, Mannheim (DE)
Assigned to SAP SE, Walldorf (DE)
Filed by SAP SE, Walldorf (DE)
Filed on Dec. 6, 2022, as Appl. No. 18/062,461.
Prior Publication US 2024/0184771 A1, Jun. 6, 2024
Int. Cl. G06F 16/23 (2019.01); G06F 16/21 (2019.01); G06F 16/22 (2019.01)
CPC G06F 16/2379 (2019.01) [G06F 16/219 (2019.01); G06F 16/2282 (2019.01)] 15 Claims
OG exemplary drawing
 
1. A computer-implemented method, comprising:
receiving, from a client device and at an enterprise resource planning (ERP) system executing on a cloud platform, a change request indicating a change to at least a portion of a database table at a database which provides a persistence storage layer to the ERP system, wherein the ERP system includes a view layer that decouples the ERP system from the database such that the ERP system cannot change the database table directly;
in response to the change request, sending, by the ERP system, a query to a database engine of a repository that is separate from the ERP system and configured to track and store changes to database tables of the database, the query including an identity of the database table, a version information for the database table, and a change data for the database table, wherein the database engine of the repository provides an interface to the database for the ERP system by emulating files in a branch store of the repository as the database tables of the database;
calling a version-to-branch mapping function being executed by the repository to determine whether the version information of the database table is mapped to a branch as a flat file of the branch store at the repository, wherein the version-to-branch mapping function maps versions of the database table to branch identifiers used at the branch store;
in response to the version-to-branch mapping function mapping the version information of the database table to an existing branch at the branch store:
reading a variable that describes a first version of the database table;
converting the variable into a technical branch identifier; and
storing the change data in the existing branch corresponding to the technical branch identifier at the branch store;
in response to the version-to-branch mapping function not including a mapping for the version information of the database table, opening a new branch at the branch store and storing at least the change data in the new branch of the branch store;
receiving, from the client device, a version request to determine a version of the database table in use on a date specified by the client device;
in response to the version request, identifying, based on the version-to-branch mapping function, the version of the database table in use on the specified date and a corresponding branch at the branch store to enable retrieval of a file at the corresponding branch; and
returning the file at the corresponding branch as a response to the client device.