Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Classification in MM

Former Member
0 Likes
1,416

Hi All,

I would like to know about the classification assignment in Material Management. I have an interface which is inbound to SAP creates material and assign classification to those materials. How to create classification for the new materials created by the interface? Can anyone suggest the function module or BAPI relevant which needs to be called in sequence for this. Thanks

Ricky

Hi All,

I would like to know about the classification assignment in Material Management. I have an interface which is inbound to SAP creates material and assign classification to those materials. How to create classification for the new materials created by the interface? Can anyone suggest the function module or BAPI relevant which needs to be called in sequence for this. Thanks

Ricky

7 REPLIES 7
Read only

Former Member
0 Likes
1,134

Check with FM/BAPI's :

CLVF_VB_INSERT_CLASSIFICATION

BAPI_OBJCL_CHANGE

Look at Program rcclbi03( SAP Standard Program)

Thanks

Seshu

Read only

0 Likes
1,134

Hi Reddy,

Thanks. For a new material in SAP, what are the steps to assign classification ?

Such as assign the material to class, get the guid number and call the classification view and all...I am guessing we have to do some prerequisites before calling BAPI_OBJCL_CREATE_KEY for creating classification view in Material Master

Thanks

Ricky

Read only

0 Likes
1,134

Hi,

1. Define the class and characteristics CL02, CT04

2. assign characteristics to class

3. assign material to class CL20N

4. assign characteristic values at the material level mm02

to create class and assign characteristics use

BAPI_CLASS_CREATE

and assign material to class and char values at material level use

BAPI_OBJCL_CREATE

Thanks.

Message was edited by:

mg s

Message was edited by:

mg s

Read only

0 Likes
1,134

Dear Muthu Ganesh Somasundaram,

Can you please explain me how to assign characteristics to particular class using BAPI_CLASS_CREATE?

In which parameter I want to pass value?

-Thanks

Janaraja

Read only

0 Likes
1,134

Hi Janaraja,

Check this Note 1323945 - BAPI_CLASS_CREATE: Instructions for use with Sample Code given by SAP .

Regard's

Smruti

Read only

Former Member
0 Likes
1,134

Hi Ricky Johnson,

Follow the steps.

Create a material using BAPI_MATERIAL_SAVEDATA. then

Create characteristics using BAPI_CHARACT_CREATE,

Then Create class using BAPI_CLASS_CREATE, Then

Assign the created characteristics to that class with class type to that material using BAPI_OBJCL_CHANGE.

Surely It will work. If any prob let me know..

-JANARAJA.

Read only

reachdebopriya
Active Participant
0 Likes
1,134

Hi Ricky,

Try this one.

KLAH,AUSP,CABN,CAWN tables.

Try this Function Module:

'BAPI_OBJCL_GETDETAIL'

All characteristic values (for various objects) are stored in AUSP.

Check this document : http://scn.sap.com/people/srikanth.tulasi/blog/2008/12/09/issues-in-fetching-internal-characteristic...

You can use function CLAF_CLASSIFICATION_OF_OBJECTS .

Example Usage:

DATA: _object        LIKE  ausp-objek,

         _it_class      TYPE STANDARD TABLE OF sclass   WITH HEADER LINE,

         _it_objectdata TYPE STANDARD TABLE OF clobjdat WITH HEADER LINE.


       _object = matnr.

      CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'

        EXPORTING

          classtype          = '001'

          object             = _object

        TABLES

          t_class            = _it_class

          t_objectdata       = _it_objectdata

        EXCEPTIONS

          no_classification  = 1

          no_classtypes      = 2

          invalid_class_type = 3

          OTHERS             = 4.

Thanks,

Debopriya Ghosh