Skip to Content
0
Former Member
Mar 04, 2009 at 04:47 PM

Problems when creating CLASSIFICATION with BAPI

388 Views

Hi,

I'm using the following FM to create the CLASSIFICTION view - MM. This is being done in batch ...

CALL FUNCTION 'BAPI_OBJCL_CREATE'

EXPORTING

objectkeynew = lv_matnr

objecttablenew = 'MARA'

classnumnew = lv_classnum

classtypenew = '001' " mat class

TABLES

allocvaluesnum = ialloc_num

allocvalueschar = ialloc_char

allocvaluescurr = ialloc_curr

return = ireturn.

When I create the 1st class with it's characteristics - no problems but when I create the 2nd class, I get an error that says that my allocation is invalid and not created --> MM01 transaction.

When I run the same part number again - meaning a MM02 transaction will be used - the 2nd class is being created. I've copied the logic from the CHANGE to the STORE but still the same error.

Please if you can help ... I don't know where to look anymore.

Thanx !