Hi James
That's outside of the scope of the community, but here are the tips.
1. add if first transaction around the class type popup, like this:
Above
-row 15 is the pop-up asking for class type - I clicked on the filter
-row 18 is the filter pop-up, I put in class type 010 and clicked the checkbox
-row 22 is the class type pop-up with the class type you entered as the only thing you can select and now you select and and hit the checkbox.
2. click add new class, add it on row 3 and then click on the class name in row 1. It's the stuff inside the first loop - just remove the loop, as you stated you want to only add 1 clas - copy everything from 28 to 36.
-Row 27 clicks to add a new class
-Row 30 adds the new class in row 3 and hits enter
-Row 34 clicks on the class name so that the characteristics are displayed below
The rest is the loop to find a characteristic based on the description using the binoculars, and then setting the value in row 1.
HTH
Sigrid
------------------------------
Sigrid Kok
Precisely Software Inc.
------------------------------
Original Message:
Sent: 04-17-2023 08:52
From: James McComiskey
Subject: Classification of Vendor Master Creation
Is there any way you can add this to my script? I only need to add the one and the characteristics are not lining up and still erroring out
------------------------------
James McComiskey
Westinghouse Electric Company LLC
Canton MA
------------------------------
Original Message:
Sent: 04-14-2023 12:10
From: Sigrid Kok
Subject: Classification of Vendor Master Creation
Hi again, James,
Here's a quick and dirty Vendor example update - slightly different but very close to the Material example.
It
(1) handles the class type popup for the first row
(2) Adds 1 or multiple classes
(3) sets characteristic values
Again if you don't want to add multiple classes, you can remove the first loop and just add one class, then set the characteristic values.
Best Regards,
Sigrid
------------------------------
Sigrid Kok
Precisely Software Inc.
Original Message:
Sent: 04-14-2023 11:09
From: Sigrid Kok
Subject: Classification of Vendor Master Creation
Hi James,
Just created script to add the classification view to already existing materials, adding multiple classes, and ensuring the characteristics show up below to set the values. The same concepts can be used for vendor..
PP has part of the puzzle - the classification type pop-up will only happen on the first object (material in my example - vendor in yours) in your run, so an IF is good there.

the above clicks to filter on the class type, passes in 001 for material class on line 21 (swap to vendor class 010), and then implements the filter and selects the one value to choose the material class type. It's only needed on the first row, as SAP will remember your selection for the rest.
I have two loops - one to add classes and one to set characteristic values.
Inside the add classes loop, I used an OK code that basically double clicks the class name added to get the characteristics to show up in the lower section. I used cursor position 1 and 2 in that section, because the first class would end up on row 1, but the subsequent classes added would be on row 2 of the classes added.

The second loop is standard (1) find the characteristic via the description using the binoculars (2) that moves it to the top (3) set the value.
I'm attaching the example. I have developer notes in there to help explain what was done - look for that red triangle, click that row in the script and see the developer notes in the properties - OR hover over the red triangle to see it. Again it's for material, but the same concepts and approach should work in vendor master.
Hope it's helpful,
Sigrid
------------------------------
Sigrid Kok
Precisely Software Inc.