07-13-2007 6:57 AM
07-13-2007 7:00 AM
Hi,
<b>VBFA</b> Table gives the <b>Sales Document Flow</b>.
The Field <b>VBTYP_N</b> gives the <b>Document category of subsequent document</b>.
General Scenario:
suppose you want to buy a computer
1) You do Inquiry
2) You get N number of Quotation for that inquiry
3) you select 1 quotation for sales order or many for individual parts like CPU in
one quotation, monitor from one quotation and so on....
4) for all these sales order(s) you get delivery doc(s) and billing doc(s)
using VBFA we can get all the doc numbers related to sales senarios
If you take Inquiry doc all the Quotation doc(s),sales order doc(s) ........
will be preceding documents.
for sales order
Quotation doc(s),Inquiry are subceding.
billing docs(s) ,delivery doc(s) are preceding documents.
This is the consept of VBFA table.
Regards,
Padmam.
07-13-2007 8:14 AM
i am new to abap. Just now i am learning the business process. ur answer is very useful to me . please explain in detail about the below points in detail if u have the time.
3) you select 1 quotation for sales order or many for individual parts like CPU in
one quotation, monitor from one quotation and so on....
4) for all these sales order(s) you get delivery doc(s) and billing doc(s)
first we give purchase order then the shop person gives the sales order, then what is this subsequent document and precceding doc mean. what is the use of it.
07-13-2007 7:03 AM
Hi,
VBFA is the table of the flow of sales document, so you can find all SD document in VBFA, so sales order.
Now u ave to know the type of a sale document.
You can find this information in field VBTYP:
A Inquiry
B Quotation
C Order
D Item proposal
E Scheduling agreement
F Scheduling agreement with external service agent
G Contract
H Returns
I Order w/o charge
J Delivery
K Credit memo request
L Debit memo request
M Invoice
N Invoice cancellation
O Credit memo
P Debit memo
Q WMS transfer order
R Goods movement
S Credit memo cancellation
T Returns delivery for order
U Pro forma invoice
V Purchase order
W Independent reqts plan
X Handling unit
0 Master contract
1 Sales activities (CAS)
2 External transaction
3 Invoice list
4 Credit memo list
5 Intercompany invoice
6 Intercompany credit memo
7 Delivery/shipping notification
8 Shipment
a Shipment costs
e Allocation table
g Rough Goods Receipt (only IS-Retail)
h Cancel goods issue
i Goods receipt
j JIT call
r TD Shipment (IS-Oil Only)
s Loading Confirmation, Reposting (IS-Oil Only)
t Gain/Loss (IS-Oil Only)
u Placing Back in Stock (IS-Oil Only)
v Two-Step Goods Receipt (IS-Oil Only)
w Reservation (IS-Oil Only)
x Loading Confirmation, Goods Receipt (IS-Oil Only)
$ (AFS)
Regards
Sudheer
07-13-2007 7:33 AM
Hi,
the field VBTYP_N is an indicator field specifying what type is the subsequent
document of your preceeding document.
For example, you enetered a particular sales document in the VBELV field and
specified that your VBTYP_N has a value of 'J' which stands for a delivery document.
So what you are trying to do here is to get all delivery documents related to that
sales document. Other common values are 'M' for invoice, 'H' for returns, 'O' for
credit memo, etc.
The table VBFA is the document flow table. It gives the subsequent and preceeding
document of a given document.
Hope it helps...
P.S. Please award points if it helps...
07-13-2007 10:44 AM
Hi,
VBFA Table gives the Sales Document Flow.
The Field VBTYP_N gives the Document category of subsequent document.
The Field VBELV gives the Sales Document Number.
For example:
24208 is the sales Document number and check the value in the VBTYP_N.
if it is J then for that sales document DELIVERY is created,
if it is 8 then SHIPMENT is created,
if it is M then INVOICE is created,
if it is.... then ..... is created.withis this we can known the sades document flow.
Reward if helpful,
07-13-2007 10:46 AM
Hi,
VBFA Table gives the Sales Document Flow.
The Field VBTYP_N gives the Document category of subsequent document.
The Field VBELV gives the Sales Document Number.
For example:
24208 is the sales Document number and check the value in the VBTYP_N.
if it is J then for that sales document DELIVERY is created,
if it is 8 then SHIPMENT is created,
if it is M then INVOICE is created,
if it is.... then ..... is created.withis this we can known the sades document flow.
Reward if helpful,