Sub topic 4
Inquiries and quotations
This chapter covers the two optional documents that come before a sales order. It assumes you can navigate SAP GUI or the Fiori launchpad. You should also know what the sales area is (sales organization, distribution channel, division) and be able to read a short SELECT statement. The chapter on enterprise structure covers the sales area, and the sales order chapter comes next.
Where pre-sales documents fit
Inquiries and quotations are sales documents, so they live in the same tables as sales orders. They do not move stock and do not post to accounting. They record what the customer asked for and what you offered, and they let you copy that data into an order later without retyping it.
| Document | Sales document category (VBAK-VBTYP) | Standard document type | Typical transaction |
|---|---|---|---|
| Inquiry | A | IN | VA11 (create), VA12 (change), VA13 (display) |
| Quotation | B | QT | VA21 (create), VA22 (change), VA23 (display) |
| Sales order | C | OR | VA01 (create) |
The category (VBTYP) is fixed by SAP and drives behavior. The document type (AUART) is configurable, so a company may have its own types such as ZQT. When you build a report, filter on category, not on the type name.
In S/4HANA, Fiori apps exist for creating and managing quotations. They write the same documents, and the classic transactions remain available.
Inquiries
An inquiry records that a customer wants information, such as price or availability, with no commitment from you. It carries the same core data as an order: sold-to party, materials, quantities and requested dates.
Use an inquiry when:
- The customer asks for indicative prices before you can commit.
- You want to track demand you could not yet serve.
- Sales support collects requests that a different team will quote.
An inquiry has validity dates (valid-from and valid-to), an expected value, and a probability field. These help sales management judge the pipeline. They do not reserve stock or commit a price.
Quotations
A quotation is a legally binding offer, at least for the validity period you set. It has the same structure as an order (header, items, schedule lines, conditions), with these differences:
- It has a valid-from and valid-to period. In table VBAK these are ANGDT and BNDDT.
- It is priced like an order, so the pricing result is the price you promise. Pricing is covered in its own chapter.
- It can show availability information, but the quotation does not pass requirements to planning. Only orders reserve stock, so a quotation is not a promise that goods exist.
- Quotation items use their own item categories (standard AGN for a material item), which are configured differently from order item categories such as TAN.
Reference and copy control
The key operation is creating a follow-on document with reference. From VA01 you enter the order type, choose "Create with Reference", and give the quotation number. SAP copies header and item data according to copy control, a configuration that defines, for each source type and target type pair:
- Which header and item fields are copied.
- Whether pricing is copied as it was or redetermined.
- Whether the validity of the source is checked.
- Whether the source quantity is updated as "used".
Copy control is where most surprises come from. If an order created from a quotation shows a different price from the quotation, the usual cause is the pricing type in copy control. It may be set to redetermine pricing, or to copy the conditions without redetermination. Check the copy control entry for the type pair (for example QT to OR), and do not suspect the quotation first.
Quotation status
Each quotation carries a status derived from what was done with it:
| Status | Meaning |
|---|---|
| Open | No follow-on document references it. |
| Partially processed | Some items or quantities are copied to an order. |
| Completed | All quantities are referenced, or all items are rejected. |
The status updates through the document flow, so it changes without anyone editing the quotation. A quotation with a rejection reason (VBAP-ABGRU) on an item counts as completed for that item.
Rejecting and expiring
If the customer declines, do not delete the quotation. Enter a reason for rejection on each item (or use the mass option in the item list). This keeps the history, supports win/loss reports, and prevents the item from being copied.
Expiry works differently. When the valid-to date passes, SAP does not change the document. It only blocks copying into an order, and it shows a message when a user tries. The quotation stays "open" in status. This is a common source of confusion in pipeline reports.
Tracing the follow-on order in tables
The document flow table VBFA stores the link between a quotation and the orders created from it. VBELV and VBTYP_V identify the predecessor, and VBELN and VBTYP_N identify the successor.
REPORT z_quote_followup.
DATA(lv_quote) = CONV vbeln_va( '0020000123' ).
SELECT vbelv, posnv, vbeln, posnn, vbtyp_n
FROM vbfa
WHERE vbelv = @lv_quote
AND vbtyp_v = 'B'
AND vbtyp_n = 'C'
INTO TABLE @DATA(lt_orders).
IF lt_orders IS INITIAL.
cl_demo_output=>display( |Quotation { lv_quote } has no follow-on orders.| ).
ELSE.
cl_demo_output=>display( lt_orders ).
ENDIF.To find quotations that expired without any order, select header rows and then check VBFA. Header dates are in VBAK:
REPORT z_expired_quotes.
SELECT h~vbeln, h~kunnr, h~angdt, h~bnddt
FROM vbak AS h
WHERE h~vbtyp = 'B'
AND h~bnddt < @sy-datum
AND NOT EXISTS ( SELECT vbelv FROM vbfa
WHERE vbelv = h~vbeln
AND vbtyp_v = 'B'
AND vbtyp_n = 'C' )
INTO TABLE @DATA(lt_lost).
cl_demo_output=>display( lt_lost ).The second query shows quotes with no order at all. A quotation with a partial order but an expired remainder will not appear, which may or may not be what you want.
Common errors and how to read them
- "Quotation is no longer valid" when creating the order. The valid-to date has passed. Either extend the date in VA22 (if policy allows) or create the order without reference and re-enter the data.
- The order price differs from the quotation. Check the pricing type in copy control, and check whether condition master data changed since the quotation.
- The quotation cannot be copied to an order type. Copy control has no entry for the type pair, or the item category has no allowed follow-on. This is a configuration gap and needs your SD consultant.
- A customer who is not yet in the system. The sold-to party must exist as a customer (a Business Partner with the customer role in S/4HANA). For a prospect you can create the partner first, or use a one-time customer account, which stores the address per document.
- Pipeline report counts expired quotes as open. Status does not change on expiry. Filter by valid-to date as well.
- Stock appears reserved after a quotation. It should not be. If MRP shows demand, you are probably looking at an order, or a quotation type was configured to transfer requirements, which is non-standard.
Summary of the working model
An inquiry and a quotation are normal sales documents with categories A and B. Only the quotation has the force of an offer. Neither document commits stock or posts to accounting. The link to the order is the reference created through copy control, and it is stored in VBFA. Status, validity and rejection reasons together tell you what happened to each offer.
Exercise
A quotation QT was valid until 31 October. On 5 November a customer wants to order from it, and the order fails with a validity message. The quotation's status is still "Open". Why is the status unchanged, and what are two ways to proceed?
Show answer
Status comes from follow-on documents in the document flow, and expiry creates none, so the quotation stays "Open" while only the copy function is blocked. You can extend the valid-to date in VA22, if company policy allows it, and then create the order with reference. Or you can create the order without reference and enter the data again, accepting that the document flow will not link back to the quotation.
Exercise
Which VBFA filter finds the orders created from quotation 0020000123, and why should you filter on VBTYPV and VBTYPN and not on document type names such as QT and OR?
Show answer
Use VBELV = '0020000123' with VBTYPV = 'B' and VBTYPN = 'C'. The document categories are fixed by SAP, while document types (AUART) are configurable and may be named differently in your system, for example ZQT.