Application Development 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: 

Log Changes for Material master classification data

Former Member
0 Kudos
2,507

Hi All,

I need to log changes done to the material master(MM02)classification data for Material class type 001 only.

If I observe in classification view for class type 001.

Environment-change documents button is disabled.

Thanks

sudheer

5 REPLIES 5

Former Member
0 Kudos
259

Hi Sudheer,

1. I think this is a part of customization.

(Abap has nothing to do here)

Your functional consultant guy should be

able to help you.

2. Ya, for fetching information about the

changes,

ABAP can help.

The concept is called CHANGE DOCUMENTS.

Apart from material master changes,

it can also be ACTIVATED for other documents like

Purchase order, GRN, Personnel Master Data etc.

Regards,

Amit M.

Former Member
0 Kudos
259

Sudheer,

I think you will have to activate the change documents for the object you are looking for.

The same can be done SCDO transaction. Create a new record by selecting the object you are looking for.

In your case the object should be CLASSIF. For general clasification with material assignment you can choose CLASSIFY.

Regards,

Ravi

Note : Please reward the posts that helpful

0 Kudos
259

Hi Ravi,

Do I need to add any tables to this object before activating this object.

Thanks,

Sudheer

0 Kudos
259

Hi Ravi, can you give detailed description, i tried it but i am not knowing what to give in the tables. i need it very urgent please help me

Former Member
0 Kudos
259

CHANGING CLASSIFICATION VIEW FOR MATERIAL USING BAPI

->CREATE CHARACTERISTIC USING TCODE CT04

->CREATE CLASS USING TCODE CL01 .

-> RUN THIS PROGRAM TO CHANGE THE CLASSIFICATION VIEW

PARAMETERS: P_MATNR TYPE MARA-MATNR. "MATERIAL

DATA: OBJECTKEY TYPE BAPI1003_KEY-OBJECT,

OBJECTTABLE TYPE BAPI1003_KEY-OBJECTTABLE,

CLASSNUM TYPE BAPI1003_KEY-CLASSNUM,

CLASSTYPE TYPE BAPI1003_KEY-CLASSTYPE,

ALLOCVALUESNUMNEW TYPE TABLE OF BAPI1003_ALLOC_VALUES_NUM WITH HEADER LINE,

ALLOCVALUESCHARNEW TYPE TABLE OF BAPI1003_ALLOC_VALUES_CHAR WITH HEADER LINE,

ALLOCVALUESCURRNEW TYPE TABLE OF BAPI1003_ALLOC_VALUES_CURR WITH HEADER LINE,

RETURN TYPE TABLE OF BAPIRET2 WITH HEADER LINE.

OBJECTKEY = P_MATNR.

OBJECTTABLE = 'MARA'.

CLASSNUM = 'MTS_CABLE_BIN1'. "CLASS(CREATED USING CL01)

CLASSTYPE = '023'. "CLASS TYPE (023 FOR BATCH)

CALL FUNCTION 'BAPI_OBJCL_CHANGE'

EXPORTING

OBJECTKEY = OBJECTKEY

OBJECTTABLE = OBJECTTABLE

CLASSNUM = CLASSNUM

CLASSTYPE = CLASSTYPE

  • STATUS = '1'

  • STANDARDCLASS =

  • CHANGENUMBER =

  • KEYDATE = SY-DATUM

  • NO_DEFAULT_VALUES = ' '

  • IMPORTING

  • CLASSIF_STATUS =

TABLES

ALLOCVALUESNUMNEW = ALLOCVALUESNUMNEW

ALLOCVALUESCHARNEW = ALLOCVALUESCHARNEW

ALLOCVALUESCURRNEW = ALLOCVALUESCURRNEW

RETURN = RETURN

.

LOOP AT RETURN.

WRITE: / RETURN-TYPE ,RETURN-MESSAGE.

ENDLOOP.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

  • EXPORTING

  • WAIT =

  • IMPORTING

  • RETURN =

.