Your till in AsPos is up to date, yet someone still prepares the same sale again as a file for SAP. Customer, addresses, lines and quantities must match, or the delivery will differ from what was charged in the shop. At the same time, the stock arrives as a file from SAP and a colleague types quantities into AsPos. The integration takes over that double work.
The sales go from AsPos to a file on the server. You choose customer orders or till receipts; by default it is the orders. Each one includes the customer, with invoice and delivery address, the expanded lines, the items and coupons. This becomes a CSV or XML, either as one combined file or a separate file per order. SAP fetches the file itself. Stock flows back: each line in the file is an item number and a quantity, and that quantity replaces the level in one shop and one warehouse.
You set the start date and the maximum per run yourself. Orders are read by their last change, till receipts by the date of the receipt, and whatever has already been sent stays behind. Receipts without a customer or without lines are not included. For stock, there is a maximum number of files and lines per run; an empty maximum for lines means ten. A finished stock file is only read again by the integration once it has a new name.