How to enable "Tracing"?

  • Ben F.
  • Ben F.'s Avatar Topic Author
8 years 1 month ago #24 by Ben F.
How to enable "Tracing"? was created by Ben F.
I'd like to check execution using a log or a trace file.
How can it be turned on in SAPx ?

Please Anmelden to join the conversation.

  • Serge Volkov
  • Serge Volkov's Avatar
8 years 1 month ago - 8 years 1 month ago #26 by Serge Volkov
Replied by Serge Volkov on topic How to enable "Tracing"?
To enable "Tracing" in Connect for SAP Explorer you should just check the flag "Tracing Enabled" as shown below:



After closing of the application there should be several "*.trc" files in the Explorer directory.
Attachments:
Last edit: 8 years 1 month ago by Serge Volkov.

Please Anmelden to join the conversation.

  • Serge Volkov
  • Serge Volkov's Avatar
8 years 1 month ago - 8 years 1 month ago #27 by Serge Volkov
Replied by Serge Volkov on topic How to enable "Tracing"?
If you want to enable "SAPx Tracing" directly in the code of an application - just call SAPxNWSetTracing(True, '') where SAPx should start to trace.
For example, you can place the call at the beginning of your application:
program YourAppName;
uses
  Forms,
  fMain in 'fMain.pas' {frmMain},
  gsSAPxNWCore;
begin
  SAPxNWSetTracing(True, ''); // <- This line enables SAPx Tracing

  Application.Initialize;
  Application.CreateForm(TfrmMain, frmMain);
  Application.Run;
end.

Please ensure that the compiler directive "SAPX_TRACE" is defined in gsSAPx.inc.
Last edit: 8 years 1 month ago by Serge Volkov.

Please Anmelden to join the conversation.

  • Serge Volkov
  • Serge Volkov's Avatar
8 years 1 month ago #28 by Serge Volkov
Replied by Serge Volkov on topic How to enable "Tracing"?
If you only want to check "RFC Tracing" (created by the SAP RFC DLL) - you can simply add the property "TRACE" to your alias file:

Attachments:

Please Anmelden to join the conversation.

Kontakt

  • gs-soft AG

    Delfterstrasse 10

    5000 Aarau

    Schweiz

    Telefon:
    +41 62 832 20 40
    E-Mail:
    Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!


  • Language