Skip to Content
0
Former Member
Jul 31, 2008 at 12:39 PM

Change Form Mode

551 Views

Hi

I need to change A/R Invoice mode when it loading . i write the code below but still its in addmode

if ((pVal.FormType == 133) & (pVal.EventType == SAPbouiCOM.BoEventTypes.et_FORM_LOAD) & (pVal.Before_Action == true))

{

SAPbouiCOM.Form oForm = null;

try

{

oForm = SBO_Application.Forms.Item(pVal.FormUID);

oForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE;

}

catch (Exception e)

{

SBO_Application.MessageBox(e.Message, 1, "Ok", "", "");

}

}

}