on 12-01-2006 6:20 AM
Hello. Friends
I want to know the table and field name for Material type(Category ID).
How can I find the table and field for material type using material code (comm_product)?
Thank you
Best Regards
Hello, the table for product category is COMM_CATEGORY.
Regards, Luciano
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your reply
Actually, I want to find the category ID using <b>Product ID</b>.
When user choose the product ID, we should check the material type.
Because we have a validation rule. So If material types are " ERSA" or "ZERS",
user can not create SC except some users.
Could you tell me how to find the category ID, if you know?
Thank you
Best Regards
Lee so hee
Hi So Hee Lee,
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 prodguid = prpdproduct_guid
inner join comm_category as cat
on prpdcategory_guid = catguid
where prod~product_id = lv_productid.
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.