Hi All,
Unfortunately I didn't find the better category to post the message. Therefore, have chosen this one.
I have got a my own Delphi program connecting to SAP using TSAPLogonControl and retrieving the table data using TSAPFunctions component.
The issue is that it works on our legacy system (SAP R/3 4.6c based) and doesn't work on SAP ECC 6.0 and SAP SRM causing the EOLEException with the message "Internal Application Error".
Connection := SAP.newConnection;
Connection.User := AnsiUpperCase(Edit1.text);
Connection.System := 'RRO';
Connection.Client := '100';
Connection.ApplicationServer:= 'SAPIDES';
Connection.SystemNumber := '00';
Connection.Password := Edit2.text;
Connection.Language := 'EN' ;
if Connection.LogOn(0,False) = true then<------ this part works fine and gets into the IF condition. I have set it to False to see which server is exactly being connected.
begin
SAPFn.Connection := Connection;<--Error appears here on attempt to assign the connection established at the line above to the SAPFunctions
SAPFn.RemoveAll;
Funct := SAPFnc.add('GET_TABLE_RFC');
// Funct := SAPFn.add('TABLE_ENTRIES_GET_VIA_RFC');
Funct.exports('CLIENT').value := SAP.Client;
// Funct.exports('LANGU').value := 'E';
Funct.exports('TABNAME').value := TabName;
if not Funct.call then
begin
if GrpName='' then showMessage(Funct.exception)
end
else
begin
................................ the rest of the code
end;
end;
May this happen due to the RFC connection limitations on these servers or due to my user authorizations?
Thanks,
Vusal Musayev