<?xml version="1.0" encoding="utf-16"?><customize><COR_CUSTOM_FIELD U_RuleName="DOC:10170:Add BP Name to Journal Remarks" U_Type="0" U_Action="0" U_Warning=" " U_WarningText="" U_WarningBox=" " U_WarningStatus=" " U_Active="N" U_FormTypeBasis="" U_ItemUIDBasis="" U_ColumnBasis="" U_FormType="133" U_ItemUID="1" U_Column="" U_EventType="1" U_Before="Y" U_Mode="3" U_Refresh=" " U_EasyFunctionRule="" U_ErrorBox=" " U_ErrorStatus=" " U_Creator="1" U_LastModified="7/25/2012 5:46:10 PM" U_LastModifiedBy="1" U_Permission=""><U_Expression>/****** General Information *****Creator: &lt;coresystems USA&gt;, &lt;buwi&gt;Create Date: 2012-07-09 ***** StartConfDesc *****&lt;DOC:10170:Add BP Name to Journal Remarks&gt;***** EndConfDesc ***** ***** Updates *****YYYY-MM-DD, name: Update Comment*/string ruleName = "DOC:10170:Add BP Name to Journal Remarks";string errorMessage = "Error in Optimizer Rule '" + ruleName + "'";try{	SAPbouiCOM.Form AFORM;	AFORM = SwissAddonFramework.B1Connector.GetB1Connector().Application.Forms.ActiveForm;	SAPbouiCOM.EditText oJRemark = (SAPbouiCOM.EditText) AFORM.Items.Item("18").Specific;	SAPbouiCOM.EditText oName = (SAPbouiCOM.EditText) AFORM.Items.Item("54").Specific;	string NewRemark = oJRemark.Value + " - " + oName.Value;	AFORM.Freeze(true);	AFORM.Items.Item("138").Click(SAPbouiCOM.BoCellClickType.ct_Regular);	oJRemark.Value = NewRemark.PadRight(50).Substring(0,50);	AFORM.Items.Item("112").Click(SAPbouiCOM.BoCellClickType.ct_Regular);	AFORM.Freeze(false);}catch (Exception ex){		MessageBox.Show(errorMessage + ": \n" + ex.Message, "OK");	StatusBar.WriteError(errorMessage + ": " + ex.Message);	Debug.WriteMessage(errorMessage + ": " + ex.Message, Debug.DebugLevel.Exception);}GC.Collect();return true;</U_Expression></COR_CUSTOM_FIELD></customize>