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

Parents Reply Children
  • 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

     

     

  • 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