{"audience":"Pricing teams, sales operations and SD consultants.","authorization_objects":[{"note":"Authorization to create condition records by sales organization","object":"V_KONH_VKO"},{"note":"Authorization by condition type","object":"V_KONH_VKS"}],"components":[],"countries":[],"effort_days_max":6,"effort_days_min":4,"effort_size":"M","faq":[{"a":"If the validity of the new record overlaps the old one, the old record's end date is moved to the day before the new start date, as in VK11. The old record is not deleted, so the price used on past invoices stays traceable.","q":"What happens to the old price record?"},{"a":"Yes. The program can be built to read the condition table and key fields from a mapping table; each additional condition table adds its own key columns to the file template and raises the effort range slightly.","q":"Are other condition tables (e.g. customer group/material) supported?"},{"a":"Yes. In S/4HANA condition records are still stored in KONH, KONP and the A tables (only document conditions moved from KONV to PRCD_ELEMENTS). In systems that use the Fiori 'Manage Prices – Sales' app, the same checks can also be applied to its file template.","q":"Does the program work on S/4HANA?"}],"features":[{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"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":""},{"code":"background","label":"Runs as a background job","note":"Large price lists can be loaded overnight from a file on the application server."}],"functions":[{"name":"RV_CONDITION_COPY","role":"Prepares the condition record with key, validity and amount for each row"}],"gap":"VK11 enters or copies condition records one by one; it does not read a file. VK12 changes existing records only by a common percentage or amount and cannot load a different price per row. For the yearly price list update, thousands of customer/material prices are entered manually or through fragile recordings. The custom program loads the price list from the file as it is and shows the difference to the old price before saving.","id":"sd-price-condition-upload","industries":[],"input_columns":[{"derived":false,"label":"Sales organization","required":true,"rule":"","target_field":"VKORG","target_table":"A305"},{"derived":false,"label":"Distribution channel","required":true,"rule":"","target_field":"VTWEG","target_table":"A305"},{"derived":false,"label":"Customer (mandatory for A305)","required":false,"rule":"","target_field":"KUNNR","target_table":"A305"},{"derived":false,"label":"Material","required":true,"rule":"","target_field":"MATNR","target_table":"A305"},{"derived":false,"label":"Amount","required":true,"rule":"","target_field":"KBETR","target_table":"KONP"},{"derived":false,"label":"Currency","required":true,"rule":"","target_field":"KONWA","target_table":"KONP"},{"derived":false,"label":"Price unit","required":false,"rule":"","target_field":"KPEIN","target_table":"KONP"},{"derived":false,"label":"Unit of measure","required":false,"rule":"","target_field":"KMEIN","target_table":"KONP"},{"derived":false,"label":"Valid from","required":true,"rule":"","target_field":"DATAB","target_table":"A305"},{"derived":false,"label":"Valid to","required":true,"rule":"","target_field":"DATBI","target_table":"A305"}],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. The file is read; the condition table is chosen on the selection screen: A305 (customer/material) or A004 (material). The condition type must be defined in T685 for the sales application (KAPPL = V).\n2. Every row is checked: the customer exists in the sales area (KNVV), the material exists in the sales organization and distribution channel (MVKE), the amount is positive, currency and unit are valid and the start date is before the end date; if the same key appears twice in the file, the second row gets an error.\n3. The record valid today for the same key is read from A305/A004 and KONP; the old price and the change in percent are written to the result list.\n4. RV_CONDITION_COPY prepares the key, validity and KONP amount; the validity of an overlapping old record is delimited with the standard VK11 logic. The record is written to KONH, KONP and the condition table with RV_CONDITION_SAVE and COMMIT WORK; RV_CONDITION_RESET clears the buffer between rows.\n5. In test mode only the checks and the old price comparison run; no record is created. In a real run, the condition record number and message are listed per row; failed rows can be downloaded as a separate file.","module":"SD","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":"Customer","source_field":"KUNNR","source_table":"A305"},{"calculated":false,"formula":"","label":"Material","source_field":"MATNR","source_table":"A305"},{"calculated":false,"formula":"","label":"Condition record","source_field":"KNUMH","source_table":"KONH"},{"calculated":true,"formula":"KONP-KBETR of the record valid today","label":"Old price","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"New price","source_field":"KBETR","source_table":"KONP"},{"calculated":true,"formula":"(New price − old price) ÷ old price × 100","label":"Change %","source_field":null,"source_table":null},{"calculated":true,"formula":"Created, test OK or error","label":"Status","source_field":null,"source_table":null},{"calculated":true,"formula":"Check or save message","label":"Message","source_field":null,"source_table":null}],"parameters":[{"example":"C:\\temp\\fiyat-listesi-2027.xlsx","kind":"parameter","label":"Price list file (XLSX or CSV)","name":"P_FILE","ref_field":"","required":true},{"example":"PR00","kind":"parameter","label":"Condition type","name":"P_KSCHL","ref_field":"A305-KSCHL","required":true},{"example":"X","kind":"radio","label":"Customer/material price (A305)","name":"R_A305","ref_field":"","required":false},{"example":"","kind":"radio","label":"Material price (A004)","name":"R_A004","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Test mode (check without saving)","name":"P_TEST","ref_field":"","required":false}],"part_of":["o2c-pricing-billing-accuracy-pack"],"performance":"Run price lists above a few thousand rows as a background job from a file on the application server. Read the old prices once for all keys in the file rather than row by row.","process":"O2C","quote_url":"https://nekuhub.com/en/request-a-quote/?report=sd-price-condition-upload","related":["sd-customer-price-conditions-validity","sd-invoice-vs-order-price-qty-differences","sd-sales-order-upload"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Creates or copies condition records one at a time; does not load from a file.","tcode":"VK11"},{"note":"Displays existing condition records; no comparison with new prices and no upload.","tcode":"VK13"}],"summary":"A custom program that creates sales price condition records per customer/material or per material, with validity dates, in bulk from Excel or CSV rows. Before saving, it reads the current price and shows the change in percent, runs every check in test mode and lists the result of each row.","tables":[{"access":"read","join_on":"T685-KSCHL = A305-KSCHL","role":"Condition type check (sales application)","table":"T685","variant":"both"},{"access":"read","join_on":"KNVV-KUNNR = A305-KUNNR AND KNVV-VKORG = A305-VKORG AND KNVV-VTWEG = A305-VTWEG","role":"Check that the customer exists in the sales area","table":"KNVV","variant":"both"},{"access":"read","join_on":"MVKE-MATNR = A305-MATNR AND MVKE-VKORG = A305-VKORG AND MVKE-VTWEG = A305-VTWEG","role":"Check that the material exists in the sales organization and distribution channel","table":"MVKE","variant":"both"},{"access":"read_write","join_on":"","role":"Customer/material condition table: the old record is read, the new key and validity are written","table":"A305","variant":"both"},{"access":"read_write","join_on":"","role":"Material condition table (when price per material is selected)","table":"A004","variant":"both"},{"access":"write","join_on":"","role":"Condition record header","table":"KONH","variant":"both"},{"access":"read_write","join_on":"","role":"Condition amount, currency, price unit and unit of measure","table":"KONP","variant":"both"}],"title":"Mass Sales Price Condition Upload from Excel Program","url":"https://nekuhub.com/en/programs/mass-sales-price-condition-upload-from-excel-program/","vendor_id":"nekudos"}