Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI fields not available

Former Member
0 Likes
564

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

3 REPLIES 3
Read only

Former Member
0 Likes
503

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)

Read only

0 Likes
503

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.

Read only

0 Likes
503

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.