cat_gon Respected Contributor.
Respected Contributor.
132 views

UserData of Financial Summary

Hi Everyone,

 

I am trying to implement a PO field via user data in Financial Summary via webservice.

 

I am having difficulty populating a userdata (PO)  of a forecastactual line that is newly created (not existing in FS yet). But updating a userdata of an existing forecatactual line is no issue.

 

I am having a null pointer exception error when it's a line that does not exist in FS yet.

 

Any thoughts will be greatly appreciated.

 

 

Thanks.

 

Cath

0 Likes
3 Replies
Frequent Contributor.. PHUC_NGUYEN_PPM Frequent Contributor..
Frequent Contributor..

Re: UserData of Financial Summary

Hi Cath,

Could you try to call the PPM web service toolkit if you are able to update a new field to the Financial summary?

FinanceService > updateFinancialSummary

Regards,

Phuc

 

 

0 Likes
cat_gon Respected Contributor.
Respected Contributor.

Re: UserData of Financial Summary

Hi Phuc,

I am able to update the Financial Summary.

The issue is adding a new user data to a new forecastactual line.

Do you know how can I create a user data to a new financial line?

 

Thanks.

 

Cath

 

 

0 Likes
cat_gon Respected Contributor.
Respected Contributor.

Re: UserData of Financial Summary

ForecastActualInfo.Lines.Line line;

ForecastActualInfo.Lines lines = forecastActual.getLines();

lines = forecastActual.addNewLines();

line = lines.addNewLine();
line.setLaborType(mfs.fslType);
line.setCategory(mfs.fslCategory);

line.setExpenseType(mfs.fslCapexOpex);

UserDataInfo uData = UserDataInfo.Factory.newInstance();

uData.setUserData3(mfs.fslPO);
uData.setVisUserData3(mfs.fslPO);

 

line.setUserDataInfo(uData); --> it's not liking this line

 

return forecastActual;

 

basically, I wanted the user Data to be included in the return forecastActual

 

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.