Я пытаюсь получить данные из системы SAP через BAPI, используя pyrfc.Я получаю сообщение об ошибке ниже BAPI 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'
Ниже мой код
from pyrfc import Connection
def login():
conn = Connection(user='xxxx', passwd='xxxxx', ashost='xxxx', sysnr='00', client='100')
f = conn.call('BAPI_XMI_LOGON', EXTCOMPANY= 'Test',EXTPRODUCT= 'Test Agent',INTERFACE='XAL',VERSION='1.0')
gettree=conn.call("BAPI_SYSTEM_MON_GETTREE", MONITOR_NAME={'MONI_NAME':'Filesystems','MS_NAME':'SAP CCMS Monitor Templates'},EXTERNAL_USER_NAME='anupk')
print gettree
conn.close()
login()
Пожалуйста, помогите мне, как вызвать BAPI из pyrfc
Заранее спасибо