An ERP environment rarely talks directly to a webshop. In practice, SAP exchanges data through files on a server: stock goes in, orders come out. Until someone automates that route, an employee sits in between, opens files, copies quantities and keys in orders, usually at the start and end of the day.
The integration takes over that back and forth. Orders from your shop become a file on the server each round, as CSV or XML, with every order line on its own row and the first row carrying the order itself. The other way round, the integration reads the stock files SAP prepares: each row names a product with a quantity, and that quantity is set on the product with the same SKU in your shop.
You decide what the files look like and how large a round is. You choose whether everything from one round goes into one file or whether each order gets its own file. You also choose the name yourself, and until a file is complete it carries a temporary name, so SAP never picks up a half-finished order. For stock, you set how many files and how many rows are processed at a time, and whether a finished file moves to an archive folder.