on 2006 Aug 22 11:02 PM
I'm learning and loving Ruby, before I move to Rails....So I got a question....I haven't install RFC for Ruby yet....But....Can I connect to SAP from Ruby??? I mean....Just from Ruby, like a terminal server??? Maybe it's a silly question...but I just wanted to know that -:)
Greetings,
Blag.
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hi - not sure that I fully understand your question -
You can write standalone scripts in Ruby to call RFC functions, such as:
require 'saprfc'
rfc = SAP::Rfc.new(...)
i = rfc.discover('RFC_READ_REPORT')
i.program.value = 'RSDBRUNT'
rfc.call(i)
i.qtab.hashRows{|r|
puts r['LINE']
}
rfc.close
If need actual control via the diag protocol of the GUI then you need to look at OLE automation for Ruby + the GUI automation controls.
Cheers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.