12-05-2007 9:12 AM
Hi,
What bapi can I use to upload data to the characteristic and values table of classification tab of MSC1N?
I was told to try BAPI_OBJCL_CHANGE but i dont know how to use it.
any ideas?
Tyken
02-07-2008 5:26 PM
Hello
i have just used it. It is my first time with that BAPI but it seems to work perfectly. Here is the code. Sorry , the comments are in spanish... I have introduce some data directly to the paramenters. Where are you getting your data from??
&----
*& Form CARGA_CATEGORIA_CLASE
&----
form carga_categoria_clase .
wa_objectkey = 'HGBATCH'.
wa_objecttable = 'MARA'.
wa_classnum = 'SSG_INFO'.
wa_classtype = '001'.
wa_allocvaluescharnew-charact = 'REMARKS'.
wa_allocvaluescharnew-value_char = 'NEW TEXT FOR REMARK'.
append wa_allocvaluescharnew.
call function 'BAPI_OBJCL_CHANGE'
exporting
objectkey = wa_objectkey
objecttable = wa_objecttable
classnum = wa_classnum
classtype = wa_classtype
status = '1'
tables
allocvaluesnumnew = wa_allocvaluesnumnew
allocvaluescharnew = wa_allocvaluescharnew
allocvaluescurrnew = wa_allocvaluescurrnew
return = wa_return.
commit work and wait.