on 01-07-2012 5:29 PM
Hi Experts,
I want to do some processing on pricing data for an invoice. I have invoice and item level data but am not able to get the pricing data from database tables. Please let me know the link to get pricing data from database tables for invoice.
Regards,
Dileep.
Hi Dileep,
The pricing data can be retrived from the condition tables.
Please refer Invoice tables VBRK & VBRP and look for condition record field KNUMV. take this field and go to the condition tables KNOV. This table will hold pricing data based on the condition types.
Check for condition record number in VBRK if you done find one. you can get the order number of the invoice from VBFA and pick then retrieve VBAK-KNUMV and get pricing data as shown below.
Sample code
**-->Get condition records
SELECT knumv
kposn
stunr
zaehk
kappl
kschl
krech
kawrt
kbetr
waers
kwert
kstat
kinak
koaid FROM konv INTO TABLE t_konv
WHERE knumv = w_es_bil_invoice-hd_gen-kond_numb "vbak-knumv
AND kappl IN (c_kappl,c_taxes).
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.