Skip to Content
0
Former Member
Apr 18, 2012 at 09:21 AM

Status Bar custom message suppressed by SAPB1 Status message

46 Views

Am trying to find items based on item name.If items are present status bar stating "Item Found" is displayed else Item not found is diplayed.My problem is the status bar does not stay .its is overridden by SAP's default status bar operation completed successfully on button click.How can i prevent that.the code i used is

public SAPbouiCOM.BoStatusBarMessageType mt;

mt = SAPbouiCOM.BoStatusBarMessageType.smt_Error;

SapApp.StatusBar.SetText("Item not found", SAPbouiCOM.BoMessageTime.bmt_Medium, (SAPbouiCOM.BoStatusBarMessageType)mt);

even tried this way it does not work

SapApp.SetStatusBarMessage("Item not found", SAPbouiCOM.BoMessageTime.bmt_Medium, true);

Please help.