cancel
Showing results for 
Search instead for 
Did you mean: 

Perl SAP::Rfc - parsing Line Type of table raises error

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi -

There must be a dependency issue with C:/Perl/site/lib/auto/SAP/Rfc/Rfc.dll. Use the windows depends.exe tool to show you what it doesn't like.

Cheers.

Former Member
0 Kudos

MSVCR80.dll is missing.

A downloaded copy is missing encodepointer and other needed functions.

I will see if we have a copy.

Former Member
0 Kudos

Got a good msvcr80.dll and dependency check is good. But I still have the same error with 1.54.

(With nwsaprcf I needed msvcp80.dll, too. Similar error there, can't load connection.dll.)

--

Tim

Former Member
0 Kudos

Have you downloaded and installed the "free" VC runtime from MS? This is probably related to that.

Cheers.

Former Member
0 Kudos

I got MS versions of the missing VC libraries from within my company and put them in system32. I don't know if this is the proper process.

Former Member
0 Kudos

I am not a windows programmer, so I don't know what are the possible options here. You need to cast around and solve your dependency issues first before I can help with sapnwrfc specific issues.

Cheers.

Former Member
0 Kudos

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.

Answers (0)