Hi people, I'm delphi developer, I'm working with delphi 2005 and I've one problem, when I try to load a .srf file, the file is loaded in a little and simple app, but don't work on real app, delphi wait for the answer and SBO don't response.
example :
var
FoSboGuiApi : SAPbouiCOM.SboGuiApi;
FoSboApp : SAPbouiCOM.Application;
.....
.....
begin
........
........
........
FoSboGuiApi := SAPbouiCOM.SboGuiApiClass.create();
FoSboGuiApi.connect(sCon);
FoSboApp:= FoSboGuiApi.GetApplication(-1);
//add menus options
......
......
......
//load form
oSboXMLDocument := XMLDocument.Create();
oSboXMLDocument.Load('C:\file.srf');
oSboXMLDocument.SelectSingleNode('/Application/forms/action/form/@uid').Value := sFrmUid; // the simple app have too this line
sXmlStr := oSboXMLDocument.InnerXml;
FoSboApp.LoadBatchActions(sXmlStr); //in this line the complier wait for SBO process but SBO never response or never return
//I try too this : FoSboGuiApi.GetApplication(-1).loadBatchActions(sXmlStr);
//but the result is same
end;
the little app has the same source code, but work good
Add a comment