pyrfc

List allowed methods while connecting via RFC?

好久不见. 提交于 2019-12-23 08:38:24
问题 I can connect as user "foo" with password "bar" via SAP-RFC from my machine to the SAP server. Is introspection possible via SAP-RFC?nI would like to know which methods user "foo" is allowed to execute. I am using PyRFC, but AFAIK this should not matter for this question. According to user Suncatcher it is not available out of the box. My SAP knowledge is limited up to now. But wouldn't it be possible to loop like this pseudo code? (This code should run (as ABAP) inside in SAP and could be

PyRFC: Connect via mshost (not ashost)

淺唱寂寞╮ 提交于 2019-12-13 08:34:42
问题 I would like to use PyRFC to do remote procedure call on SAP using the Python programming language. conn = pyrfc.Connection(user='foouser', passwd='xxxx', mshost='sap.example.com', sysid='TE1', client='220', group='EXAMPLE', ) But it fails like this: RFC_COMMUNICATION_FAILURE (rc=1): key=RFC_COMMUNICATION_FAILURE, message= ERROR service 'sapmsTE1' unknown TIME Tue Dec 18 15:49:40 2018 RELEASE 753 COMPONENT NI (network interface) VERSION 40 RC -3 MODULE /bas/753_REL/src/base/ni/niuxi.c LINE

Determine the number of characters which are allowed in a field?

别来无恙 提交于 2019-12-11 14:32:05
问题 The is a follow-up question of SAP RFC: nuc_length vs uc_length With PyRFC I can get the func_description like this: get_function_description(rfc_name) Per field I can read uc_length and nuc_length . How can I determine the number of unicode characters which I can put into the field if nuc_length=40 and uc_length=80? 回答1: Unfortunately this is not possible, I think. From the given length in bytes you can only calculate a maximum number of characters which would fit into this field. For

SAP RFC: nuc_length vs uc_length

送分小仙女□ 提交于 2019-12-11 14:32:01
问题 My favorite search engine (ecosia) could not find the canonical docs from upstream (SAP) about the meaning of uc_length vs nuc_length . What is the difference between both? I get these parameters with a modified version of clientPrintDescription.py 回答1: I can't be sure what they do in the Python script, but based on my ABAP/SAP knowledge, I can easily say that: nuc_length : length of the parameter in a non-Unicode ABAP-based system, in number of bytes uc_length : length of the parameter in a