on 03-13-2007 4:37 PM
Hi
executing the following call
rfc = SAP::Rfc.new(:ashost => "iwdf3018.wdf.sap.corp" , :sysnr => "50" ,:lang => "EN" , :client => "800" , :user => "++" , :passwd => "++" , :trace => "0" )
iface = rfc.discover("BAPI_BUPA_ADDRESSES_GET")
iface.BUSINESSPARTNER.value = "0000002036"
rfc.call(iface)
I am getting the following error:
.../saprfc-0.35-mswin32/lib/SAP/rfc.rb:729:in `discover': undefined method `pack' for #<SAP::Rfc:0x2c8c8d8> (NoMethodError)
from .../saprfc-0.35-mswin32/lib/SAP/rfc.rb:664:in `each'
from .../saprfc-0.35-mswin32/lib/SAP/rfc.rb:664:in `discover'
Am I missing a detail? What does it try to tell me? And how can I handle this issue?
Regards,
Stefan
Hi -
This is a bug- that has never been put to the test. Can you change line 729 of Rfc.rb which should look like this:
default = pack("H*", default)
to:
default = [default].pack("H*")
Cheers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This fix has been rolled into version 0.36 -> http://www.piersharding.com/download/ruby/saprfc-0.36.tar.gz.
Thanks again, Piers
Best,
Stefan
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.