‎2009 Aug 03 10:43 AM
Hi Friends,
I have useing 'BAPI_OBJCL_CREATE' for creating Classfication View
I am passing mat no, class , class type ..
How can i find characteristic values for particular Class..
Means How can i find values which r passed through
ALLOCVALUESNUM , ALLOCVALUESCHAR, ALLOCVALUESCURR tables
I have code like this
{ CALL FUNCTION 'BAPI_OBJCL_CREATE'
EXPORTING
OBJECTKEYNEW = P_MATNR
OBJECTTABLENEW = 'MARA'
CLASSNUMNEW = IT_MATMAS-CLASS
CLASSTYPENEW = IT_MATMAS-KLART
STATUS = '1'
KEYDATE = SY-DATUM
TABLES
ALLOCVALUESNUM =
ALLOCVALUESCHAR =
ALLOCVALUESCURR =
RETURN = IT_RETURN2.
}
‎2009 Aug 03 12:31 PM
Hi,
You need to use the BAPI 'BAPI_OBJCL_CREATE' to create characteristics for a material.
The characteristics are need to be passed in the table ALLOCVALUESCHAR.
If you do not know the values for a particular characteristics then you canmake use of FM
BAPI_CLASS_GET_CHARACTERISTICS and BAPI_CHARACT_GETDETAIL to get the values.
Regards,
Ankur Parab
‎2009 Aug 03 11:10 AM
Hi,
If I am not wrong, you need not pass any values to ALLOCVALUESNUM , ALLOCVALUESCHAR and ALLOCVALUESCURR, these entries get updated after the execution of the function module.
‎2009 Aug 03 12:31 PM
Hi,
You need to use the BAPI 'BAPI_OBJCL_CREATE' to create characteristics for a material.
The characteristics are need to be passed in the table ALLOCVALUESCHAR.
If you do not know the values for a particular characteristics then you canmake use of FM
BAPI_CLASS_GET_CHARACTERISTICS and BAPI_CHARACT_GETDETAIL to get the values.
Regards,
Ankur Parab