‎2010 Nov 12 2:40 PM
Hi,
Is there any other through which we can get the document flow for contract without accessing the VBFA table.
‎2010 Nov 13 7:02 AM
Yes,
for the contract there will be a sales order created. both contract and SO will be in VBAP table only. if you want to find out the reference contract for the SO then in the VBAK-VGBEL will be the contract Document No, Pass this VGBEL to VBAK-VBELN you will get the contract header data, from this you can get the item from VBAP.
regards,
venkat suman
‎2010 Nov 13 7:02 AM
Yes,
for the contract there will be a sales order created. both contract and SO will be in VBAP table only. if you want to find out the reference contract for the SO then in the VBAK-VGBEL will be the contract Document No, Pass this VGBEL to VBAK-VBELN you will get the contract header data, from this you can get the item from VBAP.
regards,
venkat suman
‎2010 Nov 13 7:06 AM
Flow will be like this
SO CONTRACT CONTRACT ITEM
VBAK VBAK VBAP
(VGBEL) ---> (VBELN) ---> (VBELN)
‎2010 Nov 14 5:21 AM
Hi,
For the best practice you should make a view like ZV_SOContract, made a joins like below
VBAP-VGBEL =VBAK-VBELN.
and after that insert your desired fields. Enjoy.
Regards,
Masoom Ali
‎2010 Nov 17 9:42 AM
Hi,
The contract number can be fetched in a many ways,
One of them is :
Access se11 --> table name:VBKD then enter Sales order number in VBELN and you will get the corresponding PO number from Field BSTKD.
Pass PO number in field EBELN of EKKO table and fetch the corresponding LEGAL_CONTRACT ie the contract number.
Hope u got the correct info.!!
Regards,
Nishi.M
‎2010 Nov 17 2:59 PM
Hi Rekha,
Please follow the inline hyperlink and you can get to know the relation between various tables and documents. Do let me know if this doesn't help.
http://www.erpgenie.com/sap/abap/tables.htm
Best,
Chaitanya