Hi Nick,
Here's an example with the standard BAPI: BAPI_OBJCL_CHANGE. Please ensure you check the notes in the excel template as well as the tips below.
This BAPI will work with characteristics for more than materials, so we set object table to MARA for materials, and Class type to 001 for material classes. Change if you're using variant classes or other types.

BAPIs separate uploads by data types. You can use Numeric for numbers or dates, and character for everything else. In my example I have an additional column that specifies N for numeric and C for character.

The other part is that the Object key is 100 characters in length because it's handling all sorts of objects in SAP of differing lengths. You'll want to zero pad numeric material numbers to the right length. In ECC is 18, so I use a formula, which gets executed before it tries to post to SAP to zero pad the numeric material number, like:

I have an example of the FM version. If you want that, I can share it. It behaves similarly to the standard BAPI, but allows you to do gets and updates for multiple classes.
Hope it's helpful.
Sigrid
------------------------------
Sigrid Kok
Precisely Software Inc.
------------------------------
Original Message:
Sent: 04-07-2023 10:29
From: Nick De Cock
Subject: Changing material characteristics
Hi everyone,
I'm trying to automate our material creation process, but i'm running into some issues uploading material classifications from a template. Everything works well, except for 2 characteristics: 'Brand type' and 'Brand'.
When the script is searching for the characteristic 'Brand', he places the value in characteristic 'brand type' (I think it's the first 'hit'). I would prefer not to change the character names. Is there any way to solve this?


------------------------------
Nick De Cock
milcobel
------------------------------