cancel
Showing results for 
Search instead for 
Did you mean: 

Create a Project from a RFX

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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