Hi Experts,
I'm trying to create a Project From an RFX by scripts.
We're running version 7 on Demand.
The script is triggered when the user validate the RFX.
Everythings going well except when I'm trying to Save the newly created project. I got an error saying Method invocation projHome.save(newProject)
When I'm trying to change an existing Project and saving it no problem it's only when I'm trying to Save a newly created project.
here is the script:
projHome = IBeanHomeLocator.lookup(session,com.sap.eso.api.projects.ProjectIBeanHomeIfc.sHOME_NAME);
//create("doc Type")
newProj = projHome.create("Direct");
//put the required field Display Name and Product Category field
newProj.setDisplayName("Project for : "+doc.getDocumentId());
newProj.setInternalCategory(doc.getIntCategory());
projHome.save(newProj);
Does someone got any idea why there is an error or what could be the error?
Regards,
Gaetan