0

当我尝试从 python 获取数据到 SAP 表时,我试图有多个选项。如下所示,唯一的选择是LGNUM = '376'. 我怎样才能在这里有更多选择?谢谢!

table = 'LTAP'
**options = [{ 'TEXT': "LGNUM = '376'"}]**
fields = ['TANUM','VLTYP','VLPLA','NLTYP','NLPLA','QDATU','QNAME']
pp = PrettyPrinter(indent=4)
rowskips = 0

print("----Begin of Batch---")
result = conn.call("RFC_READ_TABLE",
QUERY_TABLE = table, 
DELIMITER='|',
FIELDS = fields,\
OPTIONS = options,
ROWSKIPS = rowskips, 
ROWCOUNT = 10, )
pp.pprint(result['DATA'])
4

1 回答 1

0

选项 = [{ 'TEXT': "LGNUM = '376'"}, {'TEXT':"BUDAT = '2022'}]

于 2022-02-18T22:56:03.843 回答