2011 Jan 05 6:33 AM
Hi Experts
I need to assign materials with new charcteristics in the material master say using class 001. Using this I assign a value say OTL and save the material.
I need to use this value in a program to perform a certain task. Which table do I need to refer to use this value?
Thanks in advance
Moderator message: please search for available information before asking.
Edited by: Thomas Zloch on Jan 5, 2011 12:50 PM
2011 Jan 05 8:36 AM
2011 Jan 05 9:04 AM
Hi SAPIEN,
U can go through these tables
Characteristics*
CABN Characteristics ( o.a. batch/vendor)
CABNT Characteristics description
CAWN Characteristics
CAWNT Characteristics description
AUSP Characteristic Values
Thanks,
Naga Prakash
2011 Jan 05 9:29 AM
Hi,,
try the below code and tables
Characteristics*
CABN Characteristics ( o.a. batch/vendor)
CABNT Characteristics description
CAWN Characteristics
CAWNT Characteristics description
AUSP Characteristic Values
Getting the reference tables and values----------------
call function 'BAPI_OBJCL_GETDETAIL'
exporting
objectkey = w_oldmaterial
objecttable = 'MARA'
classnum = w_classnum
classtype = w_classtype
unvaluated_chars = 'X'
tables
allocvaluesnum = t_allocvaluesnum
allocvalueschar = t_allocvalueschar
allocvaluescurr = t_allocvaluescurr
return = t_lreturn.
Create with reference-----------------------
w_objectkeynew = new_material.
call function 'BAPI_OBJCL_CREATE'
exporting
objectkeynew = w_objectkeynew
objecttablenew = 'MARA'
classnumnew = w_classnum
classtypenew = w_classtype
tables
allocvaluesnum = t_allocvaluesnum
allocvalueschar = t_allocvalueschar
allocvaluescurr = t_allocvaluescurr
return = t_lreturn.
Prabhudas
2011 Jan 05 11:04 AM