Hello experts,
I'm developing Agentry app according to hwto guide, I've created mobile app, data model, BAPI, Agentry client.
When Agentry server is started following error occurs:
execute::::I025305::before BAPI execute: /SYCLO/CORE_MDW_SESSION1_DEL
Session timer for user: I025305 ending.
logException::log level = 5
logException::begin
logException::Exception: com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Invalid value in OPTION field of value table for IN itab operator. operator.: Invalid value in OPTION field of value table for IN itab operator. operator.
logException::COM.SAP.MW.JCO.JCO$EXCEPTION: (104) RFC_ERROR_SYSTEM_FAILURE: INVALID VALUE IN OPTION FIELD OF VALUE TABLE FOR IN ITAB OPERATOR. OPERATOR.
AT COM.SAP.MW.JCO.RFC.MIDDLEWARERFC$CLIENT.NATIVEEXECUTE(NATIVE METHOD)
AT COM.SAP.MW.JCO.RFC.MIDDLEWARERFC$CLIENT.EXECUTE(MIDDLEWARERFC.JAVA:1244)
AT COM.SAP.MW.JCO.JCO$CLIENT.EXECUTE(JCO.JAVA:3842)
AT COM.SAP.MW.JCO.JCO$CLIENT.EXECUTE(JCO.JAVA:3287)
AT COM.SYCLO.SAP.BAPI.BAPI.EXECUTE(BAPI.JAVA:293)
AT COM.SYCLO.SAP.BAPI.BAPI.RUN(BAPI.JAVA:183)
AT COM.SYCLO.SAP.SESSIONMANAGER.DELETEREMOTEUSER(SESSIONMANAGER.JAVA:102)
AT COM.SYCLO.SAP.SESSIONMANAGER.CLOSESESSION(SESSIONMANAGER.JAVA:84)
AT COM.SYCLO.SAP.USER.CLOSESESSION(USER.JAVA:747)
AT COM.SYCLO.SAP.USER.LOGGEDOUT(USER.JAVA:952)
AT COM.SYCLO.SAP.SERVER.LOADSAPPROPERTIES(SERVER.JAVA:580)
AT COM.SYCLO.SAP.SERVER.INITSERVER(SERVER.JAVA:165)
AT COM.SYCLO.SAP.SERVER.<INIT>(SERVER.JAVA:147)
AT COM.SYCLO.SAP.CURRENCY.SERVER.SERVER.<INIT>(SERVER.JAVA:11)
Java Back End: Java Back End AJAPI version 5.0, release 6.0.38.1
After debugging ABAP code I've found that error is caused by following SELECT statement:
SELECT session_guid FROM /syclo/mdw01 APPENDING TABLE lt_session_guid | ||
WHERE user_guid IN lr_user_guid | ||
AND close_ts = 0. | "< |
and it caused by structure "lr_used_guid" that should contain a select-option structure BUT both fields "SIGN" and "OPTION" are empty, so it causes dump.
The error occurs in method "/SYCLO/IF_CORE_DO_HANDLER~DELETE" of standard class "/SYCLO/CL_CORE_MDW_SESSION_DO"
How can it be solved? Does it depends on client java code or my BAPI?
Following my JavaBE.ini:
[SERVICE_LOGON]
ENABLED=true
UID=syclo_user
UPASSWORD=syclo
UPASSWORDENCODED=false
SERVERSERIALNUM=AVKNN@NILKGGBTLD
[CLIENT_NUM]
CLIENT=900
[SYSTEM_NUM]
SYSNUM=01
[LANGUAGE]
LANG=EN
[LOGGING]
;1=Fatal, 2=Error, 3=Warning, 4=Info, 5=debug, 6=trace
Level=5
[LOGON_METHOD]
; USER_AUTH if standard UID/Password authentication is used
; USER_AUTH_GLOBAL if pooled connections using single UID/Password is used
; USER_AUTH_GROUP if UID/Password authentication with SAP Message Server
; (load balancing) is used
LOGON_METHOD=USER_AUTH
[GLOBAL_LOGON]
; referenced when LOGON_METHOD=USER_AUTH_GLOBAL
; uses a pool of connections to the SAP backend all utilizing a single
; UID/password
UID=
UPASSWORD=
SHAREDCONNECTION=100
[GROUP_LOGON]
; referenced when LOGON_METHOD=USER_AUTH_GROUP
; individual user authentication using an SAP Message Server which distributes
; client connections among a "group" of SAP application servers based on load
; balancing criteria
;
; host name or IP address of SAP Message Server
MESSAGE_SERVER=
GROUP_NAME=
SYSTEM_ID=
CLIENT=
[REQUIRED_BAPI_WRAPPER]
com.syclo.sap.bapi.LoginCheckBAPI=/SYCLO/CORE_SUSR_LOGIN_CHECK
com.syclo.sap.bapi.RemoteUserCreateBAPI=/SYCLO/CORE_MDW_SESSION1_CRT
com.syclo.sap.bapi.RemoteParameterGetBAPI=/SYCLO/CORE_MDW_PARAMETER_GET
com.syclo.sap.bapi.SystemInfoBAPI=/SYCLO/CORE_SYSTINFO_GET
com.syclo.sap.bapi.ChangePasswordBAPI=/SYCLO/CORE_SUSR_CHANGE_PASSWD
com.syclo.sap.bapi.CTConfirmationBAPI=/SYCLO/CORE_OUTB_MSG_STAT_UPD
com.syclo.sap.bapi.DTBAPI=/SYCLO/CORE_DT_GET
com.syclo.sap.bapi.GetEmployeeDataBAPI=/SYCLO/HR_EMPLOYEE_DATA_GET
com.syclo.sap.bapi.GetUserDetailBAPI=/SYCLO/CORE_USER_GET_DETAIL
com.syclo.sap.bapi.GetUserProfileDataBAPI=/SYCLO/CORE_USER_PROFILE_GET
com.syclo.sap.bapi.PushStatusUpdateBAPI=/SYCLO/CORE_PUSH_STAT_UPD
com.syclo.sap.bapi.RemoteObjectCreateBAPI=/SYCLO/CORE_MDW_USR_OBJ_CRT
com.syclo.sap.bapi.RemoteObjectDeleteBAPI=/SYCLO/CORE_MDW_USR_OBJ_DEL
com.syclo.sap.bapi.RemoteObjectGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
com.syclo.sap.bapi.RemoteObjectUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.RemoteReferenceCreateBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_CRT
com.syclo.sap.bapi.RemoteReferenceDeleteBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_DEL
com.syclo.sap.bapi.RemoteReferenceGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
com.syclo.sap.bapi.RemoteReferenceUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.RemoteSessionDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
com.syclo.sap.bapi.RemoteUserDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
com.syclo.sap.bapi.RemoteUserUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.TransactionCommitBAPI=WFD_TRANSACTION_COMMIT
com.syclo.sap.bapi.SignatureCaptureBAPI=/SYCLO/CS_DOBDSDOCUMENT_CRT
Many thanks
BR
Massimiliano
Tags edited by: Michael Appleby