2005 Dec 07 10:35 AM
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
2005 Dec 07 10:48 AM
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.
2005 Dec 07 11:02 AM
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
2005 Dec 08 4:02 PM
Hi Ravi,
Do I need to add any tables to this object before activating this object.
Thanks,
Sudheer
2007 Jul 24 10:59 AM
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
2009 Sep 03 7:33 AM
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 =
.