cancel
Showing results for 
Search instead for 
Did you mean: 

Category ID table

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello, the table for product category is COMM_CATEGORY.

Regards, Luciano

Former Member
0 Kudos

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

yann_bouillut
Active Contributor
0 Kudos

Hi,

Please check table COMM_PRODUCT

Kind regards,

Yann

Former Member
0 Kudos

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

Former Member
0 Kudos

Thank you a lot.

OK, I'll try it.

Answers (0)