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

Extending basic material with classification data

Former Member
0 Likes
1,113

Hi

We intend to use a BAPI / function module to extend a material - BAPI_MATERIAL_SAVEDATA seems to be recommended in many discussions here -

However, how I do add data for a material classfication view using this BAPI - or is there any other BAPI/ fm to do this ?

Thanks in advance for sharing your thoughts on this.

3 REPLIES 3
Read only

Former Member
0 Likes
947

Play with this bapi : BAPI_OBJCL_CREATE

( I was thinking about class and updating it's characteristics)

Siva

null

Read only

Former Member
0 Likes
947

<b>BAPI_OBJCL_CHANGE</b> : This BAPI changes an existing classification, or creates the classification if it does not yet exist. The classification is defined by the required entry fields for the object key (ObjectKey), object table (ObjectTable), class name (AllocDetail-Class_Num), and class type (AllocDetail-Class_Type). The default value for the optional date field (KeyDate) is the system date, on which all classifications become valid. The new characteristics and/or values are transferred to different tables according to data type. Numeric, time, and date characteristics are transferred to table AllocValuesNumNew, character and boolean characteristics are transferred to table AllocValuesCharNew, and currency characteristics are transferred to AllocValuesCurrNew.

The object key (OBJECTKEY) must be transferred in internal format. This means before conversion exits. For example, a material number must be transferred with leading zeros.

If the BAPI runs without errors, table Return contains no messages of type "E".

Assignment created: message CL735

Assignment changed: message CL737

Assignment not changed: message CL738

This BAPI only changes the parameters of an existing assignment (or creates a whole new assignment), but it does not delete the assignment to a class and replace it with an assignment to another class. If you want to reassign an object, the old assignments must be read with BAPI_OBJCL_GETCLASSES and deleted with BAPI_OBJCL_DELETE, then the new assignments must be created with BAPI_OBJCL_CREATE.

The information transferred by this BAPI replaces all old information. An empty field means "delete entry!", not "no change".

This BAPI does not change the database. To change the database, call BAPI BapiService.TransactionCommit afterwards.

You can only use this BAPI for objects that are not classes!

This BAPI only processes assigned values for classification - not for configuration.

Read only

gopi_narendra
Active Contributor
0 Likes
947

You can as well make use of the FM : MATERIAL_BTCI_SELECTION_NEW

Regards

Gopi