05-16-2008 6:52 PM
How to create the Classification view for material? Actually i am using BAPI_MATERIAL_SAVEDATA.
Thanks.
regards.
Marisol
05-16-2008 7:25 PM
Hi ,
You cannot create Classification View using BAPI
BAPI_MATERIAL_SAVEDATA..
For creating Classification View: Use Function Module
CLMM_MAINTAIN_CLASSIFICATIONS and pass
class_type = '001'
object_table = 'MARA'
key_date = sy-datum
CHANGE_NUMBER =
new_log = 'X'
test_run = ' '
Fill tables :
OBJECTS = it_clsel_objects
class_allocs_set = it_allocation_classes
CLASS_ALLOCS_DEL =
VALUATION_OLD =
valuation_new = it_comw
with corresponding values and it will work..
Hope this helps
01-06-2010 12:19 PM
Hi Rohit.
I need to maintain the new values for the characteristics,and equipments as well for the class type 002 and Table EQUI.
Can you please let me know the fields responsible to maintain characteristic,values and equipments in the function module
CLMM_MAINTAIN_CLASSIFICATIONS. If possible paste the code if u got something.
Regards,
Surya.
05-16-2008 7:32 PM
hi check this...
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = T_HEAD
PLANTDATA = T_MARC
PLANTDATAX = T_MARCX
STORAGELOCATIONDATA = T_MARD
STORAGELOCATIONDATAX = T_MARDX
SALESDATA = T_MVKE
SALESDATAX = T_MVKEX
IMPORTING
RETURN = T_RETURN
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = T_RETURN
regards,
venkat .