Skip to Content
0
Former Member
Nov 30, 2011 at 05:26 PM

Check Products for Category Id

120 Views

Hi,

I am new to CRM.

I am using method PCAT_ASSIGN_CREATE of class CL_CRM_MKTPL_APPL_BASE to assign the Product categories to the Trade promotion.

By passing the Category ID & Category GUID in method PCAT_ASSIGN_CREATE, when i use the Category Id which does not have any product along with the valid Category Id using PCAT_ASSIGN_CREATE and call the method to save data no error message is returned where as if i try to do same thing manually error message gets displayed 'Category XXXXX does not contain any product'.

Is there function module or method to check whether Category has any product or not, for the Category ID.

Please guide me in this regard.

Regards,

Ganesha