on 04-03-2007 3:52 PM
I'm getting an error when 'discovering' SAPWL_READSTAT_DIRECT_READ. The error text is:
Structure Type not valid L ! at C:/Perl/site/lib/SAP/Iface.pm line 1300.
The error is thrown when trying to setup the exported parameter:
*" REFERENCE(ADM_MESSAGE_RECORDS) TYPE SAPWLADMRECS
where SAPWLADMRECS has a Line Type of SAPWLPFADM
It looks like it's not following the definition of SAPWLPFADM its underlying structure.
I'm using Perl 5.6.1 and SAP-Rfc-1.20-561. Maybe I need to move to a newer version?
Any help is appreciated. Thanks.
--
Tim
Hi -
Please update SAP::Rfc - the current version is 1.55, so you are many releases behind that -> http://search.cpan.org/~piers/SAP-Rfc-1.55/ .
Also - I recommend that you try sapnwrfc -> https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5827. [original link is broken] [original link is broken] [original link is broken] [original link is broken] SAP::Rfc will eventually cease to be relevent, and thus no longer supported as sapnwrfc matures. sapnwrfc allready has better support for simple and complex structures.
Cheers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am upgrading to Perl 5.8.8 build 819 and SAP-Rfc 1.54 (I don't see a windows 1.55). Something looks very wrong now:
C:\Users\TimD\SAP\RFCTests>readtable.pl
Can't load 'C:/Perl/site/lib/auto/SAP/Rfc/Rfc.dll' for module SAP::Rfc: load_file:This application h
as failed to start because the application configuration is incorrect. Reinstalling the application
may fix this problem at C:/Perl/lib/DynaLoader.pm line 230.
at C:\Users\TimD\SAP\RFCTests\ReadTable.pl line 4
Compilation failed in require at C:\Users\TimD\SAP\RFCTests\ReadTable.pl line 4.
BEGIN failed--compilation aborted at C:\Users\TimD\SAP\RFCTests\ReadTable.pl line 4.
I am also looking at the NetWeaver RFC.
Thanks!
--
Tim Wise
Problem resolved...
I installed the VC redistributable libraries from MS as per <a href="http://http://blogs.msdn.com/nikolad/archive/2005/09/02/460368.aspx">Nikola Dudar's WebLog</a>. Still had the load_file error even though depends.exe said there was no problem.
Finally put msvcr80.dll in with Rfc.dll (...Perl\site\lib\auto\SAP\Rfc). This fixed the load_file error, but I don't know if it's the proper process.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.