Sei sulla pagina 1di 6

http://scn.sap.

com/thread/429332

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)

So: if you need to find the order like preceding document:

VBFA-VBELV = VBAK-VBELN. VBFA-VBTYP_V = VBAK-VBTYP.

else:

VBFA-VBELN = VBAK-VBELN. VBFA-VBTYP_N = VBAK-VBTYP.

Sales document flow(VBFA)

genral senario: 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.
VBFA Table :

Field MANDT VBELV POSNV VBELN POSNN VBTYP_N RFMNG

Data Element Data Type length Checktable Description MANDT CLNT 000003 T000 000010 VBUK 000006 VBUP 000010 VBUK 000006 VBUP 000001 000015 Client Preceding Document Preceding item Subsequent document Subsequent item Subsequent doc. cat. Quantity

VBELN_VON CHAR POSNR_VON NUMC VBELN_NACH CHAR POSNR_NACH NUMC VBTYP_N RFMNG CHAR QUAN

MEINS RFWRT WAERS VBTYP_V PLMIN TAQUI ERDAT ERZET MATNR BWART BDART PLART STUFE LGNUM AEDAT FKTYP BRGEW GEWEI VOLUM VOLEH FPLNR FPLTR

MEINS RFWRT WAERS_V VBTYP_V PLMIN TAQUI ERDAT ERZET MATNR BWART BDART PLART

UNIT CURR CUKY CHAR CHAR CHAR DATS TIMS CHAR CHAR CHAR CHAR

000003 T006 000015 000005 TCURC 000001 000001 000001 000008 000006 000018 MARA 000003 T156 000002 000001 * 000002 000003 T300 000008 000001 000015 000003 * 000015 000003 * 000010 FPLA 000006 *

Base Unit of Measure Reference value Statistics currency Preceding doc.categ. Pos./neg. quantity MM-WM confirmat.ID Created on Time Material Movement Type Requirement type Planning type Level Warehouse Number Changed on Billing category Gross weight Weight unit Volume Volume unit Billing plan number Item

STUFE_VBFA NUMC LGNUM AEDAT FKTYP BRGEW_15 GEWEI VOLUM_15 VOLEH FPLNR FPLTR CHAR DATS CHAR QUAN UNIT QUAN UNIT CHAR NUMC

RFMNG_FLO RFMNG_FLTV FLTP RFMNG_FLT RFMNG_FLT FLTP VRKME ABGES SOBKZ SONUM KZBEF NTGEW LOGSYS WBSTA MJAHR CMETH VRKME ABGES_CM SOBKZ UNIT FLTP CHAR

000016 000016 000003 T006 000016 000001 * 000016 000001 000013 000010 TBDLS 000001 000004 000001

Quantity Quantity Sales unit Guaranteed Special Stock Special Stock Number Invent.Mgmt active Net Weight Logical system Goods movement stat. Material Doc. Year Conversion Method

LVS_SONUM CHAR LVS_KZBEF NTGEW LOGSYS WBSTA MJAHR OIB_CMETH CHAR QUAN CHAR CHAR NUMC CHAR

Potrebbero piacerti anche