on 05-29-2007 11:33 AM
i have to display 'description of goods(vbrp-arktx)','total quantity(vbrp-fkimg)','selling rate(komv-kbetr)','total duty payable(komv-ksch)'.how to extract this data which exists in different tables based on invoice no(vbrk-vbeln).i have to take data from vbrk,vbrp,komv.what are the common fields existing between them.please give me solution.
You can get consider the logic below:
SELECT fkimg arkts
FROM vbrp
INTO int_tab1
WHERE vbeln = vbrk-vbeln .
SELECT knumv kposn kschl kbetr
FROM konv
INTO int_tab2
WHERE knumv = vbrk-vbeln .
Now read this table int_table using the following logic
READ TABLE int_tab2 WITH KEY knumv = vbrk-knumv
kposn = <item-number>
kschl = <condition-type>.
Reward Points to helpful answers.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
common field between vbrk,vbrp is vbeln
common field between vbrk,komv is knumv
Regards,
Sooness
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
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.