当我尝试从 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'])