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.
Original Message:
Sent: 04-12-2023 11:40
From: James McComiskey
Subject: Classification of Vendor Master Creation
I am trying to update the classification of a vendor master. When I map the XK02 to update the script is not picking up the enter after I select the classification. When I run the script after I get an error. All of the fields are picked up in the recording but cannot replicate the results needed.
Classification Entry
After enter
Error running the script for the same supplier after deleting the entry
What am I missing?
------------------------------
James McComiskey
Westinghouse Electric Company LLC
Canton MA
------------------------------