{"audience":"Counting teams, inventory controllers, warehouse supervisors and finance teams running the year-end count.","authorization_objects":[{"note":"Inventory authorization by warehouse number and storage type","object":"L_LGNUM"},{"note":"WM transaction authorization (count entry)","object":"L_TCODE"}],"components":[],"countries":[],"effort_days_max":9,"effort_days_min":6,"effort_size":"M","faq":[{"a":"No. The program enters the count result and evaluates the difference. Clearing the WM difference (LI20) and posting it to IM (LI21) deliberately remain separate steps, so finance approval is preserved.","q":"Does the program also post the differences to stock?"},{"a":"The file layout is kept in a mapping table; adding a mapping for scanners with a different column order or headers needs no code change.","q":"What if the scanner file layout changes?"},{"a":"The row is matched to the quant (LINV-LQNUM) by material and batch. If the same material and batch has several quants, the counted quantity is split in proportion to system stock and this is shown in the log.","q":"How is a row matched when a bin holds several quants?"}],"features":[{"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":"The recount list is downloaded as a file to load back onto the scanners."},{"code":"excel","label":"Export to Excel","note":"An empty count template can be downloaded as Excel."},{"code":"background","label":"Runs as a background job","note":""}],"functions":[{"name":"L_INV_COUNT_EXT","role":"Enters count results made outside SAP into the inventory document"}],"gap":"LI11N enters count results by hand, document by document and item by item; it does not upload from a file and does not compare the value of the entered difference with a tolerance. LI20 clears differences but does not separate which ones should be recounted first. In large counts, keying hundreds of bins by hand causes errors and delays.","id":"wm-cycle-count-result-upload","industries":[],"input_columns":[{"derived":false,"label":"Warehouse number","required":true,"rule":"","target_field":"LGNUM","target_table":"LINV"},{"derived":false,"label":"Inventory document","required":true,"rule":"","target_field":"IVNUM","target_table":"LINV"},{"derived":false,"label":"Storage bin","required":true,"rule":"","target_field":"LGPLA","target_table":"LINV"},{"derived":false,"label":"Material","required":true,"rule":"","target_field":"MATNR","target_table":"LINV"},{"derived":false,"label":"Batch","required":false,"rule":"","target_field":"CHARG","target_table":"LINV"},{"derived":false,"label":"Counted quantity","required":true,"rule":"","target_field":"MENGA","target_table":"LINV"},{"derived":false,"label":"Unit","required":false,"rule":"","target_field":"MEINS","target_table":"LINV"}],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. The file (XLSX or CSV) is read; each row is expected to hold warehouse number, inventory document, bin, material, batch and counted quantity.\n2. LINK-ISTAT is checked to confirm the inventory document is open and LINP to confirm the bin belongs to the document; system stock is read from LINV-GESME.\n3. Difference quantity = counted − system stock; the difference value uses the MBEW price (STPRS when price control is S, VERPR when V, divided by the price unit).\n4. When the difference value and percentage are within the tolerances on the selection screen, the row is entered as a count result with L_INV_COUNT_EXT.\n5. Rows outside tolerance are not entered unless \"Also enter rows outside tolerance\" is selected; they go to a recount list that can be downloaded as a file to send back to the scanners.\n6. In test mode no count is entered; the difference and tolerance result of all rows is listed.","module":"WM","object_type":"upload","output_columns":[{"calculated":true,"formula":"Row number in the file","label":"Row","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Inventory document","source_field":"IVNUM","source_table":"LINV"},{"calculated":false,"formula":"","label":"Storage bin","source_field":"LGPLA","source_table":"LINV"},{"calculated":false,"formula":"","label":"Material","source_field":"MATNR","source_table":"LINV"},{"calculated":false,"formula":"","label":"Description","source_field":"MAKTX","source_table":"MAKT"},{"calculated":false,"formula":"","label":"System stock","source_field":"GESME","source_table":"LINV"},{"calculated":false,"formula":"","label":"Counted","source_field":"MENGA","source_table":"LINV"},{"calculated":true,"formula":"Counted − system stock","label":"Difference qty","source_field":null,"source_table":null},{"calculated":true,"formula":"Difference qty × MBEW price (STPRS or VERPR by VPRSV) ÷ PEINH","label":"Difference value","source_field":null,"source_table":null},{"calculated":true,"formula":"Entered, recount or error","label":"Status","source_field":null,"source_table":null},{"calculated":true,"formula":"Tolerance result or message from L_INV_COUNT_EXT","label":"Message","source_field":null,"source_table":null}],"parameters":[{"example":"C:\\temp\\sayim_100_1711.xlsx","kind":"parameter","label":"Count file (XLSX or CSV)","name":"P_FILE","ref_field":"","required":true},{"example":"250","kind":"parameter","label":"Allowed difference value per row","name":"P_TOLVAL","ref_field":"","required":false},{"example":"2","kind":"parameter","label":"Allowed difference percentage","name":"P_TOLPCT","ref_field":"","required":false},{"example":"","kind":"checkbox","label":"Also enter rows outside tolerance","name":"P_ALL","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Test mode (check without entering counts)","name":"P_TEST","ref_field":"","required":false}],"part_of":["inv-physical-inventory-count-pack"],"performance":"Read LINK, LINP and LINV once for the document numbers in the file; cache MBEW prices per material + valuation area. Call L_INV_COUNT_EXT once per inventory document with all rows of that document.","process":"INV","quote_url":"https://nekuhub.com/en/request-a-quote/?report=wm-cycle-count-result-upload","related":["wm-cycle-count-due-bins","wm-im-stock-comparison"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Enters count results by hand, document by document; no file upload and no tolerance check.","tcode":"LI11N"},{"note":"Clears differences in WM; does not separate which differences should be recounted.","tcode":"LI20"}],"summary":"A custom upload program that enters WM count results made with handheld scanners or Excel into inventory documents in bulk, calculates the difference value and separates rows outside tolerance for recount. Differences within tolerance become ready for clearing in LI20.","tables":[{"access":"read","join_on":"","role":"Inventory document header and status","table":"LINK","variant":"both"},{"access":"read","join_on":"LINP-LGNUM = LINK-LGNUM AND LINP-IVNUM = LINK-IVNUM","role":"Bins in the document (items)","table":"LINP","variant":"both"},{"access":"write","join_on":"LINV-LGNUM = LINP-LGNUM AND LINV-IVNUM = LINP-IVNUM AND LINV-IVPOS = LINP-IVPOS","role":"System stock and counted quantity per quant (written via L_INV_COUNT_EXT)","table":"LINV","variant":"both"},{"access":"read","join_on":"MBEW-MATNR = LINV-MATNR AND MBEW-BWKEY = değerleme alanı (LINV-WERKS)","role":"Unit price for the difference value","table":"MBEW","variant":"both"},{"access":"read","join_on":"MAKT-MATNR = LINV-MATNR AND MAKT-SPRAS = SY-LANGU","role":"Material description in the logon language","table":"MAKT","variant":"both"}],"title":"WM Count Result Upload from Scanner File with Tolerance Check Program","url":"https://nekuhub.com/en/programs/wm-inventory-count-result-upload-with-tolerance-check/","vendor_id":"nekudos"}