# US 2026/0310732 A1 · Offline mode for server-based formulas

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0310732 A1
- Document ID: US20260310732A1
- Status: Published application
- Kind: A1
- Application number: 19/170,670
- Filed: 2025-04-04
- Published: 2026-10-08
- Earliest claimed: 2025-04-04
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Stephane Coze; Laurent LE Floch; Bing Sun; Florent Migeon
- Web page: https://patentgrep.com/patent/US20260310732A1

## CPC

- G06F 16/93: Document management systems
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A document that makes use of server-based formulas may be switched between online and offline modes. When the document is placed in the offline mode, an add-in searches for server-based formulas and evaluates those formulas to get a current value for each one. The document is modified to replace each server-based formula with an offline formula that evaluates to the current value of the server-based formula. The server-based formula may be replaced with a conditional statement that stores the server-based formula on an unused branch of the condition. When the document is restored to the online mode, the add-in searches for the offline formulas that were generated during the previous switch to the offline mode. Each offline formula is replaced with the corresponding stored server-based formula.

## Claims

### Claim 1

A system comprising:
one or more hardware processors; and
a memory that stores instructions that, when executed by the one or more hardware processors, cause the one or more hardware processors to perform operations comprising:
receiving a request to modify a document to an offline mode; and
in response to the request:
detecting a formula in the document;
determining a value for the formula based on data received from a server via a network; and
modifying the document by placing the value in an active branch of a conditional statement, thereby enabling the document to display the value even while disconnected from the network.

### Claim 2 (depends on 1)

The system of claim 1, wherein:
the detecting of the formula in the document comprises determining that the formula depends on data received from the server.

### Claim 3 (depends on 2)

The system of claim 2, wherein:
the detecting of the formula in the document is part of detecting all formulas that depend on data received from the server.

### Claim at position 4 (depends on 3)

) The system of claim 3, wherein:
the document comprises a workbook comprising a plurality of worksheets; and
the detecting of all formulas that depend on data received from the server comprises iterating through the plurality of worksheets.

### Claim 5 (depends on 1)

The system of claim 1, wherein the instructions are part of an add-in module that is able to function without modification in an online version of an application and an offline version of the application.

### Claim 6 (depends on 1)

The system of claim 1, wherein the modifying of the document comprises placing value in one branch of an IF statement and placing the formula in another branch of the IF statement.

### Claim 7 (depends on 1)

The system of claim 1, wherein the operations further comprise:
in response to the request, modifying a persistency layer of the document to indicate that the document is in the offline mode.

### Claim 8 (depends on 7)

The system of claim 7, wherein the operations further comprise:
receiving a second request to modify the document to an online mode; and
in response to the second request, restoring the formula to the document.

### Claim 9 (depends on 8)

The system of claim 8, wherein the operations further comprise:
in response to the second request, modifying the persistency layer of the document to indicate that the document is in the online mode.

### Claim 10

A method comprising:
receiving, by one or more hardware processors, a request to modify a document to an offline mode; and
in response to the request:
detecting a formula in the document;
determining a value for the formula based on data received from a server via a network; and
modifying the document by placing the value in an active branch of a conditional statement, thereby enabling the document to display the value even while disconnected from the network.

### Claim 11 (depends on 10)

The method of claim 10, wherein:
the detecting of the formula in the document comprises determining that the formula depends on data received from the server.

### Claim 12 (depends on 11)

The method of claim 11, wherein:
the detecting of the formula in the document is part of detecting all formulas that depend on data received from the server.

### Claim 13 (depends on 12)

The method of claim 12, wherein:
the document comprises a workbook comprising a plurality of worksheets; and
the detecting of all formulas that depend on data received from the server comprises iterating through the plurality of worksheets.

### Claim 14 (depends on 10)

The method of claim 10, wherein the request is received by an add-in module that is able to function without modification in an online version of an application and an offline version of the application.

### Claim 15 (depends on 10)

The method of claim 10, wherein the modifying of the document comprises placing the value in one branch of an IF statement and placing the formula in another branch of the IF statement.

### Claim 16 (depends on 10)

The method of claim 10, further comprising: in response to the request, modifying a persistency layer of the document to indicate that the document is in the offline mode.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
receiving a second request to modify the document to an online mode; and
in response to the second request, restoring the formula to the document.

### Claim 18

A non-transitory machine-readable storage medium comprising instructions that, when executed by one or more processors of a machine, cause the machine to perform operations comprising:
receiving a request to modify a document to an offline mode; and
in response to the request:
detecting a formula in the document;
determining a value for the formula based on data received from a server via a network; and
modifying the document by placing the value in an active branch of a conditional statement, thereby enabling the document to display the value even while disconnected from the network.

### Claim 19 (depends on 18)

The non-transitory machine-readable storage medium of claim 18, wherein:
the detecting of the formula in the document comprises determining that the formula depends on data received from the server.

### Claim 20 (depends on 19)

The non-transitory machine-readable storage medium of claim 19, wherein:
the detecting of the formula in the document is part of detecting all formulas that depend on data received from the server.
