admin管理员组文章数量:1404332
I am facing an issue while fetching user data from the USR02 table using RFC_READ_TABLE in SAP using JCO library. The goal is to retrieve active users(exclude expired users), so I am applying the following filter in the OPTIONS
parameter:
GLTGB >= '20250311' OR GLTGB = '00000000'
I include GLTGB = '00000000'
because some users have this value (empty) in their GLTGB field.
I am getting the following error in one of our clients servers (S4HANA):
Caused by: com.sap.conn.jco.AbapException: (126) OPTION_NOT_VALID: OPTION_NOT_VALID Message 000 of class SAIS type E, Par[1]: DB_Error, Par[2]: USR02
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.execute(MiddlewareJavaRfc.java:1909)
However, the same query is working in some other ECC and S4HANA systems. Not sure about the client SAP version. Is there any other way to compare this value?
本文标签:
版权声明:本文标题:java - SAP RFC_READ_TABLE Error: OPTION_NOT_VALID When Filtering USR02 (GLTGB >= currentDate OR '00000000' 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744799310a2625767.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论