‎2010 Jul 09 5:25 PM
Hi All,
Iu2019m trying to use this FM: BAPI_OBJCL_CREATE to create classification view for material, but I couldnu2019t. Can anyone please let me know what are all the import and table parameters we have to populate to create the class?
Require exact values to populate this FM?
Bandi
‎2010 Jul 09 7:00 PM
‎2010 Jul 09 7:27 PM
Hi,
Try by passing these values in the import/ tables parameters.
CALL FUNCTION 'BAPI_OBJCL_CREATE'
EXPORTING
OBJECTKEYNEW = BAPI1003_KEY-OBJECT(MATERIAL)
OBJECTTABLENEW = BAPI1003_KEY-OBJECTTABLE (MARA)
CLASSNUMNEW = BAPI1003_KEY-CLASSNUM (Find the class from here Classification view - Assignments - Class)
CLASSTYPENEW = BAPI1003_KEY-CLASSTYPE (you can from classification view - class type)
STATUS = '1'
KEYDATE = SY-DATUM
IMPORTING
CLASSIF_STATUS =
TABLE
ALLOCVALUESCHAR = BAPI1003_ALLOC_VALUES_CHAR(Append all the characteristic names/values)
RETURN = bapiret2.
Hope this helps you, i had mentioned the structure and field names in the import/tables parameters, you got to declare the internal table of that structure and pass the values.
Regards,
Manjunath