The Class /AEB/CL_TA_PB_SMAT_READ_BC can be used to read a material for the material number and its plant. It is very important to use a plant that is relevant for the material, which can be checked by displaying the material for that plant. Also the plant has to be assigned to a organizational unit, which can be checked in the AEB cockpit under customizing -> Assignments for organizational unit and product group. There you can define a rule which determines the organizational unit. This organizational unit has to exist, which can be checked in the AEB cockpit under customizing -> Organizational unit. After that you can use the plant and the material number to read data of the material. The material contains its number, organizational unit, classifications with certificates and classification codes.
Updated about 2 years ago