无法从BAPI获取数据

时间:2018-09-26 08:10:25

标签: python-2.7 pyrfc

我正在尝试使用pyrfc通过BAPI从SAP系统获取数据。我收到以下错误BAPI implementation fileTree(dir: 'libs', include: ['*.jar']) implementation'com.android.support:support-v4:27.1.1' 被称为

BAPI_SYSTEM_MON_GETTREE

下面是我的代码

  File "C:/Users/anupk/Documents/Anup/Python27/TestProject/pgm_pyrfc.py", line 19, in login
    gettree=conn.call("BAPI_SYSTEM_MON_GETTREE", MONITOR_NAME={'MONI_NAME':'Filesystems','MS_NAME':'SAP CCMS Monitor Templates'},EXTERNAL_USER_NAME='anupk')
  File "_pyrfc.pyx", line 368, in pyrfc._pyrfc.Connection.call (pyrfc\_pyrfc.c:4006)
  File "_pyrfc.pyx", line 1837, in pyrfc._pyrfc.wrapResult (pyrfc\_pyrfc.c:19400)
  File "_pyrfc.pyx", line 1910, in pyrfc._pyrfc.wrapVariable (pyrfc\_pyrfc.c:19954)
  File "_pyrfc.pyx", line 1882, in pyrfc._pyrfc.wrapTable (pyrfc\_pyrfc.c:19732)
  File "_pyrfc.pyx", line 1855, in pyrfc._pyrfc.wrapStructure (pyrfc\_pyrfc.c:19609)
  File "_pyrfc.pyx", line 2013, in pyrfc._pyrfc.wrapVariable (pyrfc\_pyrfc.c:21282)
  File "C:\Python27\Lib\_strptime.py", line 332, in _strptime
    (data_string, format))
ValueError: time data '      ' does not match format '%H%M%S'

请帮助我如何从pyrfc调用BAPI

预先感谢

0 个答案:

没有答案