Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Script to add suppliers in project document

Hello Experts ,

We are currently running on SAP Sourcing /CLM 10 . We are using project module with supplier tab .  Currently have a requirement for adding the supplier(s) in supplier tab of project via script ( instead of adding manually , needs to be added via script while saving the project  )  . The code we are trying is below but not working .

While saving the project document no error is appearing but supplier is also not appearing under supplier tab . Can you please guide ?

supplierContactColl = doc.getVendorList();

StandardVendor=doc.getVendorList().create();

StandardVendor.setUniqueName("VEN-0000002");

StandardVendor.setDisplayName("ABC Ltd");

StandardVendor.setContactEmail("seraka@xx.com");

The code is triggered on Project document and saving event .

Here , we wanted to hard code a supplier to be added in supplier tab . The supplier is existing  in CLM . Once we have the above code working , we need to add supplier dynamically on saving event .

Tags:

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question