Skip to Content
author's profile photo Former Member
Former Member

Problems with loadbatchactions

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
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2005 at 04:48 AM

    Did you try to change your form extension to .xml instead of .srf when loading?

    And also you may need to delete this line from your xml form: <?xml version="1.0" encoding="UTF-16"?>

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Erik, thanks for your post, already get the solution to the problem, I don't use a form of delphi and by this the messages between SBO and my application are lost.

      thank you very much anyway.

      Francisco Troncoso.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.