{"audience":"Retail operations teams, store accounting, inventory control and finance teams.","authorization_objects":[{"note":"Goods movement posting authorization by movement type","object":"M_MSEG_BWA"},{"note":"Goods movement authorization by plant (store)","object":"M_MSEG_WMB"},{"note":"Accounting posting authorization by company code","object":"F_BKPF_BUK"}],"components":[],"countries":[],"effort_days_max":18,"effort_days_min":12,"effort_size":"L","faq":[{"a":"By default they are posted in totals per store, day and material; this is sufficient for stock and accounting and keeps the number of documents low. If receipt detail is needed, the file is archived and the reconciliation list can drill down to receipt lines.","q":"Are sales posted per receipt or in totals?"},{"a":"The row goes to the error file and the rest of the store-day is processed; the difference appears in the reconciliation list. Once the barcode is defined, only the failed rows are reprocessed.","q":"What happens if a product with a barcode unknown in SAP is sold?"},{"a":"In that case the standard POS inbound IDocs are preferred. This interface is for core SAP systems running without the retail industry solution, which is common for manufacturers and wholesalers with their own stores.","q":"Do we need this interface if we use the retail industry solution?"}],"features":[{"code":"background","label":"Runs as a background job","note":"A nightly job processes the files of all stores and prepares the reconciliation list for the morning."},{"code":"test_run","label":"Test mode (check without posting)","note":""},{"code":"log","label":"Line-by-line result and error log","note":""},{"code":"error_file","label":"Download failed lines as a separate file","note":"Rows with an unknown barcode can be reprocessed after correction."},{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""}],"functions":[{"name":"BAPI_GOODSMVT_CREATE","role":"Posts the goods issue for sales from store stock"},{"name":"BAPI_ACC_DOCUMENT_POST","role":"Posts turnover, VAT and payment types to accounting"},{"name":"BAPI_SALESORDER_CREATEFROMDAT2","role":"Optional: creates cash sales orders for SD statistics"},{"name":"BAPI_TRANSACTION_COMMIT","role":"Commits each store-day posting"}],"gap":"In the retail industry solution, POS sales are received with standard IDocs; systems without that solution have no ready inbound for till sales. Each store's daily sales are deducted from stock with MIGO/MB1A and posted to accounting manually with FB50, while entering them one by one as cash sales orders is not workable at high volume. The custom interface does this automatically every day and shows the differences.","id":"sd-retail-pos-integration","industries":["retail"],"input_columns":[{"derived":false,"label":"Store (plant)","required":true,"rule":"","target_field":"WERKS","target_table":"T001W"},{"derived":false,"label":"Storage location","required":false,"rule":"","target_field":"LGORT","target_table":"T001L"},{"derived":false,"label":"Sales date","required":true,"rule":"","target_field":"BUDAT","target_table":"BKPF"},{"derived":false,"label":"Barcode","required":true,"rule":"","target_field":"EAN11","target_table":"MEAN"},{"derived":false,"label":"Quantity","required":true,"rule":"","target_field":"MENGE","target_table":"MSEG"},{"derived":false,"label":"Net amount","required":true,"rule":"","target_field":"WRBTR","target_table":"BSEG"},{"derived":false,"label":"Tax code","required":true,"rule":"","target_field":"MWSKZ","target_table":"BSEG"},{"derived":true,"label":"Payment type","required":false,"rule":"POS payment type code; mapped to a G/L account during installation","target_field":null,"target_table":null}],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. Each store's end-of-day file (or the single file of the central POS server) is read from a folder on the application server. The store code is mapped to plant and storage location (T001W, T001L), the POS article code or barcode to the material (MEAN).\n2. Checks: has the same store and day already been processed (document header reference store-date), is the barcode defined, does the material have stock in the store location (MARD). Unmatched rows go to an error file; the rest are processed.\n3. Rows are totalled per store, day and material; returns are kept separate. Turnover is also totalled by tax code and collections by payment type.\n4. Stock: a goods issue for sales (movement type 251, 252 for returns) is posted from the store location with BAPI_GOODSMVT_CREATE.\n5. Accounting: BAPI_ACC_DOCUMENT_POST credits revenue accounts by tax code and debits cash, card receivables and gift voucher accounts by payment type; the profit center is the store. If SD statistics are needed, the same totals can also be created as cash sales orders and invoices (BAPI_SALESORDER_CREATEFROMDAT2).\n6. The reconciliation list shows per store and day the till turnover, the turnover posted in SAP, the difference, and the goods issue and accounting document numbers.","module":"SD","object_type":"interface","output_columns":[{"calculated":false,"formula":"","label":"Store","source_field":"WERKS","source_table":"T001W"},{"calculated":false,"formula":"","label":"Store name","source_field":"NAME1","source_table":"T001W"},{"calculated":true,"formula":"Sales date in the file","label":"Sales day","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ net amount in the file","label":"Till turnover","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ revenue lines in the accounting document","label":"Turnover posted in SAP","source_field":null,"source_table":null},{"calculated":true,"formula":"Till turnover − turnover posted in SAP","label":"Difference","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Goods issue document","source_field":"MBLNR","source_table":"MSEG"},{"calculated":false,"formula":"","label":"Accounting document","source_field":"BELNR","source_table":"BKPF"},{"calculated":true,"formula":"Number of rows not matched or not posted","label":"Failed rows","source_field":null,"source_table":null},{"calculated":true,"formula":"Posted, difference, duplicate or error","label":"Status","source_field":null,"source_table":null}],"parameters":[{"example":"/interface/pos/gelen/","kind":"parameter","label":"Folder of the end-of-day files","name":"P_PATH","ref_field":"","required":true},{"example":"","kind":"parameter","label":"Posting date (blank = sales day)","name":"P_BUDAT","ref_field":"BKPF-BUDAT","required":false},{"example":"251","kind":"parameter","label":"Sales movement type","name":"P_BWART","ref_field":"MSEG-BWART","required":true},{"example":"","kind":"checkbox","label":"Also create cash sales orders","name":"P_SDORD","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Test mode (check without posting)","name":"P_TEST","ref_field":"","required":false}],"part_of":[],"performance":"Post store-day-material totals instead of receipt lines; this reduces the number of documents by orders of magnitude. Read the barcode mapping from MEAN once and buffer it. Split stores into parallel background jobs so that the run completes within the night window.","process":"O2C","quote_url":"https://nekuhub.com/en/request-a-quote/?report=sd-retail-pos-integration","related":["mm-mb52-warehouse-stock","sd-billing-not-posted-to-accounting","sd-sales-order-upload"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Deducts store sales from stock manually; no file import and no combined accounting posting.","tcode":"MIGO"},{"note":"Posts turnover to accounting manually; no reconciliation with stock and till totals.","tcode":"FB50"}],"summary":"A custom interface that transfers the end-of-day sales of store tills into SAP. Sales are totalled per store, day and material and posted as goods issues from store stock, while turnover and payment types (cash, credit card, gift voucher) are posted to accounting; the till total and the amount posted in SAP are compared in a reconciliation list.","tables":[{"access":"read","join_on":"","role":"Plant representing the store, and its name","table":"T001W","variant":"both"},{"access":"read","join_on":"T001L-WERKS = T001W-WERKS","role":"Store storage location","table":"T001L","variant":"both"},{"access":"read","join_on":"","role":"Barcode to material mapping","table":"MEAN","variant":"both"},{"access":"read","join_on":"MARD-MATNR = MEAN-MATNR AND MARD-WERKS = T001W-WERKS","role":"Stock check in the store location","table":"MARD","variant":"both"},{"access":"write","join_on":"","role":"Goods issue items for sales (ECC)","table":"MSEG","variant":"ecc"},{"access":"write","join_on":"","role":"Goods issue items for sales (S/4HANA)","table":"MATDOC","variant":"s4"},{"access":"read_write","join_on":"","role":"Turnover and collection accounting document; reference for the duplicate check","table":"BKPF","variant":"both"}],"title":"Daily Transfer of Store POS and Retail Sales to SAP","url":"https://nekuhub.com/en/programs/store-pos-retail-sales-transfer-to-sap/","vendor_id":"nekudos"}