You are on page 1of 3

Requirement: A report is required so that it is possible to monitor the status of the quotations and also

possible to analyse the Data.


The report as suggested it will be possible to get the track of the quotations status (Won/Lost/Cancelled)
and also possible to check if all the orders are being booked using quotations or in some cases the
process is being skipped. Also, it will be possible to quickly retreive the reference Quotation against a
particular order and also particular order against a particular quotation. The report will also help to
analyse the quotations/orders customer wise/ regions wise.

Inputs:
As per business the t-code for Quotation status report should be ZSDQUOTSTAT

As per the business requirement the below are the input parameters:

Organization Data:
 
1. Sales Organization
2. Distribution channel
3. Division
4. Sales office
5. Sales group

 
Document data:
 
6. Document number
7. Document date: from - to
8. Sold to party
9. Valid : from - to
10. Status

Selection Criteria
1. Open Quotations
2. All Quotations
Program Logic:
As per the business requirement , the existing logic and program for VA25N need to be copied to create
a new Z- report with the additional field mentioned below:

1. Description (sold to) : pass VBELN in VBAK table and fetch KUNNR . Pass VBAK- KUNNR in KNA1
and fetch NAME1
2. Status :
1.Closed status:
overall status - "completely processed" and reference status - “compltely processed”
a) if rejection status - "partially processed" or "completely processed" with reason of rejection
as "project shelved" and "project deferred"
b) if rejection status = blank or not yet processed.
If VBUK-GBSTK = C and VBUK-RFSTK= C or VBUK- ABSTK = B OR C with VABP- ABGRU = project
shelved or project defered.
3. Won status:
reference status - "partially processed" or "completely processed".
In cases, when reference status is completely processed then over all status is also completely
processed, so at that time the two lines will be there for quotation both for closed and won
status.
If VBUK- RFSTK =B OR C
3.Open status:
overall status - "not yet processed" and “partially processed” or reference status - "not yet
processed"
If VBUK-GBSTK = A OR B or VBUK – RFSTK = A
4.Lost status:
rejection status - "completely processed" and reason of rejection will be all except "project
shelved" and "project deferred"
If VBUK – RFSTK = A and VBUK-ABSTK = C and VABP- ABGRU NEQ Project shelved or Project
defered
4. Sales order created with reference to quotation : Pass Quotation number in table VBFA- VBELV
and fetch VBELN where VBTYP_N = C
5. Sales order value : Pass VBAK -VBELN and fetch VBAK- NETWR
6. Sales order currency : Pass VBAK- VBELN and fetch VBAK- WAERK
7. Validity End date: Pass Quotation number in table VBAK- VBELN to fetch VBAK- BNDDT.
Output:
Output parameters:
 
1. Quotation number
2. Description ( Quotation Doc.)
3. Sales Organization
4. Distribution channel
5. Division
6. Sales office
7. Sales group
8. Document date
9. Sold to party
10. Description (sold to)
11. Valid from
12. Valid to
13. Status : won / open / closed / lost
14. Value of the quotation
15. Currency of the quotation
16. Sales order created with reference to quotation
17. Sales order value
18. Sales order currency

AMEA ERP
CoE_IN_FS_4000000349_RD4K9E01XQ.docx

You might also like