11-16-2007 10:13 AM
Hello everyone!
I want to upload some characteristics with BAPI_CHARACT_CREATE. To what I know, the tables CABN, CAWN should be updated and TCME for the mapping characteristic/class type.
CABN and CAWN are successfully updated. However, TCME isn't. I'm putting the class type in CHARACTDETAIL-ADT_CLASS_TYPE.
Any thoughts on this?
Best Regards,
Luís.
02-12-2015 10:01 PM
Hello, Even though this was already assumed as answered and even though have happened a lot of time, I want to document the answer:
In order to use the BAPI_CHARACT_CREATE to create your class type restriction you have to define an additional table and append to it the class types you want to restrict (001 for material types, 002 for equipment types).
In the next pattern:
CALL FUNCTION 'BAPI_CHARACT_CREATE'
EXPORTING
charactdetail = fs_chardetail
TABLES
charactdescr = t_chardescr
charactvalueschar = t_charvalueschar
charactvaluesdescr = t_charvaluesdescr
charactrestrictions = t_charrestrict
return = t_return.
The highlighted table (BAPICHARACTRESTRICTIONS TYPE), t_charrestrict, is the one you have to use for adding the class types restrictions instead of using BAPICHARACTDETAIL structure.
DATA:
t_charrestrict TYPE
STANDARD TABLE
OF bapicharactrestrictions.
Bye
Hector G