on 05-23-2011 5:30 PM
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
Hi Gaetan!
Make sure you have all of the required fields set...such as the owner, currency, base date, company, status, display name etc.
It was usually when I was missing a required field that I encountered that error.
Hope all is well.
-Howie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.