Skip to Content
0
Former Member
Dec 14, 2006 at 08:20 AM

basic saprfc example running on Windows

20 Views

I'm trying to get a basic saprfc example running on Windows,

using this code:

/people/alvaro.tejadagalindo/blog/2006/08/24/tasting-the-mix-of-ruby-and-sap

Which boils down to calling RFC_READ_TABLE with table: D021T

The connection seems to be OK (see below for sapinfo output).

I get the error: "TABLE_NOT_AVAILABLE GROUP 105 KEY".

Should I try with another table ? Or, maybe some security configuration is needed on the SAP system ?

Regards,

Henrik W.

================================

connect id: 1

is_connected: true

sapinfo: {"RFCIPADDR"=>"10.59.5.16 ", "RFCMACH"=>" 324", "RFCDBHOST"=>"saputvd ", "RFCDATABS"=>"DCD ", "RFCDBSYS"=>"ORACLE ", "RFCINTTYP"=>"BIG", "RFCSI_RESV"=>" ", "RFCHOST2"=>"saputvd ", "RFCHOST"=>"saputvd", "RFCTZONE"=>" 3600", "RFCSAPRL"=>"700 ", "RFCFLOTYP"=>"IE3", "RFCDAYST"=>" ", "RFCOPSYS"=>"AIX ", "RFCSYSID"=>"DCD ", "RFCPROTO"=>"011", "RFCKERNRL"=>"700 ", "RFCDEST"=>"saputvd_DCD_10 ", "RFCCHARTYP"=>"4102"}

Enter table:

C:/ruby/lib/ruby/gems/1.8/gems/saprfc-0.31-mswin32/lib/SAP/Rfc.rb:1013:in `call':

CALL Error: EXCEPT TABLE_NOT_AVAILABLE GROUP 105 KEY TABLE_NOT_AVAILABLE MESSAGE TABLE_NOT_AVAILABLE (RuntimeError)

================================

ruby version: ruby 1.8.5 (2006-08-25) [i386-mswin32]

saprfc version: saprfc-0.31-mswin32