Jump to content

SAP Connection Problems in SciTE-Lite


Recommended Posts

As the title, I got problems about SAP connection.

#include <AutoItConstants.au3>
#include <MsgBoxConstants.au3>
#include <SAP.au3>
#include <SAPGUI.au3>
#include <WinAPIFiles.au3>

Local $SAPFunc = 0, $Connection = 0, $SAPConnection = 0
Global $ReadTableFunc = 0, $Param = 0, $Table = 0

$SAPFunc = ObjCreate("SAP.Functions.Unicode")
If Not IsObj($SAPFunc) Then
    $error_num = 4
    MsgBox($MB_OK, "SAPFunc Error", "SAPFunc Create Error" & $error_num)
EndIf

things go well if I trigger Go(F5).

I have to transfer the script into an .exe file so I use Build(F7).

The file I build(F7) cannot create SAP Functions while the SAP functions create successfully if I use Compile( Ctrl+F7 ).

Differcen between Compile and Build says a GUI will show up using Compile but there is nothing after I compile and I still get my .exe file.

Q1. Is there any difference between files made by Build and Compile

Q2. Why doesn't the GUI appear

BTW, should I upgrade the editor to full version of SciTE

 

Link to comment
Share on other sites

13 minutes ago, Ken_Chen said:

BTW, should I upgrade the editor to full version of SciTE

probably.
You have more to gain than to lose :)

p.s.
I don't know about about SAP connection.

Edited by ioa747

I know that I know nothing

Link to comment
Share on other sites

by all means make a backup of the folder
C:\Users\ioa757\AppData\Local\AutoIt v3\SciTE
the C:\Program Files (x86)\AutoIt3\Include directory remains untouched
 

Edited by ioa747

I know that I know nothing

Link to comment
Share on other sites

1 hour ago, Ken_Chen said:

As the title, I got problems about SAP connection.

#include <AutoItConstants.au3>
#include <MsgBoxConstants.au3>
#include <SAP.au3>
#include <SAPGUI.au3>
#include <WinAPIFiles.au3>

Local $SAPFunc = 0, $Connection = 0, $SAPConnection = 0
Global $ReadTableFunc = 0, $Param = 0, $Table = 0

$SAPFunc = ObjCreate("SAP.Functions.Unicode")
If Not IsObj($SAPFunc) Then
    $error_num = 4
    MsgBox($MB_OK, "SAPFunc Error", "SAPFunc Create Error" & $error_num)
EndIf

things go well if I trigger Go(F5).

I have to transfer the script into an .exe file so I use Build(F7).

The file I build(F7) cannot create SAP Functions while the SAP functions create successfully if I use Compile( Ctrl+F7 ).

Differcen between Compile and Build says a GUI will show up using Compile but there is nothing after I compile and I still get my .exe file.

Q1. Is there any difference between files made by Build and Compile

Q2. Why doesn't the GUI appear

BTW, should I upgrade the editor to full version of SciTE

 

I convert the script to .exe via the Aut2Exe and notice that the SAP Functions wiil fail if I choose x64

a2e.png.43742bea123e8e1c7960b39ce07b46cd.png

On the other hand, SAP Functions create successfully if I don't check this option.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   1 member

×
×
  • Create New...