cancel
Showing results for 
Search instead for 
Did you mean: 

Updating User Defined Fields using PHP version of DI API

Former Member
0 Kudos

I'm attempting to update SAP using the PHP com class. I'm able to do everything except reach the user defined fields. I've tried several combinations along the lines of

echo $oBP->UserFields->Fields("U_FieldName")->Value;

but none seem to work. Anyone know the PHP equivalent of  oBP.UserFields.Fields.Item("U_FieldName").Value ?? This is the only thing holding me back and I am unsure of where to look. Thank you for your time!

Accepted Solutions (0)

Answers (1)

Answers (1)

Johan_H
Active Contributor
0 Kudos

Hi Ian,

Please try this:

$oBP->UserFields("U_FieldName")->Value = "whatever";

If all else fails, with user defined fields, you can use direct sql.

Regards,

Johan

Former Member
0 Kudos

Hi,

use GetByKey function to get existing record and then fire update method

$oBo->UserFields("U_FieldName")->Value='xxxxxx';

$VALOR = $oBo->update();

Regards, Alessandro

Former Member
0 Kudos

This turned out to be the correct method for me:  $oBP->UserFields->Fields->Item("U_FieldName")->Value = 'whatever'