Capturing SAP messages
Emanuele Croci
Dear all,is it possible to capture the messages SAP writes in the system information bar?
This is the bar where SAP visualized red error messages.
Where should I add my source code to read them?
Are already there some examples?
I know it's a strange request, :evil:
but I need to capture these messages and translate them in another language... :cry:
Regards
Emanuele
Raphael Strotz
[quote]"EmanueleCroci"]Dear all,
is it possible to capture the messages SAP writes in the system information bar?
This is the bar where SAP visualized red error messages.
Where should I add my source code to read them?
Are already there some examples?
I know it's a strange request, :evil:
but I need to capture these messages and translate them in another language... :cry:
Regards
Emanuele
[/quote]
Do you have an external Modul or do you use Optimizer ?
If you have an external Modul just add following to your "Run" method :
SwissAddonFramework.Global.StatusBarEvent += new SwissAddonFramework.Global.StatusBarEventHandler(Global_StatusBarEvent);
Then handle your events!
I dunno know how to do that in Optimizer! But in external Modul its easy :)
Emanuele Croci
Dear Raphael,thank you very much for your help:
I added this code in the Helper() method:
...
...
// add event handler to the SAP B1 status bar
SwissAddonFramework.Global.StatusBarEvent += new SwissAddonFramework.Global.StatusBarEventHandler(Global_StatusBarEvent);
...
...
And then I added a new method in the Customize Extend Code:
private void Global_StatusBarEvent(string text,
SAPbouiCOM.BoStatusBarMessageType messageType
)
{
try
{
SwissAddonFramework.UI.Dialogs.MessageBox.Show(text, "OK");
}
catch(System.Exception ex)
{
}
}
This method visualized a message box containing the SAP status bar text.
Regards
Emanuele
0
Please sign in to leave a comment.
Comments
0 comments