‎2008 Mar 27 7:18 AM
Hi,
I have to create material using BAPI_MATERIAL_SAVEDATA.
I have to upload 3 fields which are not availabe in BAPI Interface.
The fields are
PSTAT Maintenance status,
KLART Class type
CLASS Class Number
I did not find the 3 fields in the MM03 Transaction. Can you tell me where can i find them.
Can you help me how to upload the data to these fields through BAPI.
Thanks & Regards,
Rajender.
Edited by: Rajender K on Mar 27, 2008 8:19 AM
‎2008 Mar 27 10:35 AM
PSTAT Maintenance status :
- you find this field in MARA (header data). It is filled in automatically and determines which views are maintained (e.g. MRP view, basic data, etc...)
KLART Class type
CLASS Class Number
- Both fields are related to the classification view
Use these bapis for classification data:
BAPI_CHARACT_CREATE (create characteristics)
BAPI_CLASS_CREATE (create classes)
‎2008 Mar 27 11:53 AM
Hi Kris,
Thanks for the solution. Now i got a idea.
I'm using BAPI_MATERIAL_SAVEDATA to create material.
can i use the BAPI_CLASS_CREATE after the BAPI_MATERIAL_SAVEDATA Function module in my program to update the class and class type of a particular material.
‎2008 Mar 27 12:12 PM
The 2 functions I mentioned are used to upload the definition of the classification.
To assign values to it, you have to use 'BAPI_OBJCL_CREATE' .
CALL FUNCTION 'BAPI_OBJCL_CREATE'
EXPORTING
objectkeynew = lv_objnum
objecttablenew = 'MARA'
classnumnew = lv_class
classtypenew = lv_type
TABLES
allocvalueschar = lt_values
return = lt_return.