on 04-06-2007 11:10 AM
Hello,
i am creating some report which reads purchase orders and items in them. I need to know how can i find the item category - i read PO in table crmd_orderadm_h, then i can read crmd_orderadm_i (parent = guid of po) and now i need to know the category...
thanks
JJ
Hi,
Try to use that these tables:
COMM_PRODUCT for product ID and GUID
COMM_PRPDACTR for map product to category
COMM_CATEGORY for category
Example:
select * from prod~comm_product
into ls_table
from comm_product as prod
inner join comm_prpdcatr as prpd
on prod~guid = prpd~product_guid
inner join comm_category as cat
on prpd~category_guid = cat~guid
where prod~product_id = lv_productid.
The category is in table BBP_PDIGP (CATEGORY and CATEGORY_ID fields) you can get this fields from FM BBP_PD_SC_GETDETAIL or BBP_PD_SC_ITEM_GETDETAIL
Regards,
Marcin Gajewski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe, you should use FM <b>BBP_PD_PO_GETDETAIL</b> - you can check E_ITEM - you will get all your required data (Product category too).
Regards,
Shiv
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.