2014 Aug 04 8:33 AM
Hey SAP Experts,
I have my project setup in JAVA .
I am getting R/3 Code: E;028;Not logged on in interface XBP(function BAPI_XBP_JOB_STATUS_GET) error while submitting multiple SAP jobs concurrently and job stays in UNKNOWN status for some time and later the job is processed and goes to completion state.
I am ensuring "BAPI_XMI_LOGON" and "BAPI_XMI_LOGOFF" are called prior BAPI_XBP_JOB_STATUS_GET function is invoked.
Is it something related to concurrency issue or race condition?
Could you help me out.
Regards,
Prajmi
2014 Aug 04 10:32 AM
Hi,
Err... shouldn't the BAPI_XMI_LOGOFF be called after BAPI_XBP_JOB_STATUS_GET?
There is also a limit on the number of OS processes allocated for background processing (jobs) in SAP R/3. If you are exceeding the limit, the jobs will have to wait for process to free up.
cheers
Jānis
2014 Aug 05 7:29 AM
Hi,
While debugging i observed that BAPI_XMI_LOGOFF /BAPI_XMI_LOGON is properly called before any BAPI function is invoked.But when I ran multiple jobs simultaneously i am getting this error.
It seems like there may be some problem while retrieving response(i.e. status ) of a particular request using getStructure(Structure_Name) method of JCoRecord class .
Could you please help me out.
Regards,
Prajmi
2014 Aug 05 9:49 PM
Hi,
The way I understand it, the sequence should be:
BAPI_XMI_LOGON
BAPI_XBP_... calls
BAPI_XMI_LOGOFF
I'd check what the BAPIs returns are; the message seems to indicate that the logon was not successful (before BAPI_XBP_JOB_STATUS_GET call). Maybe the logon expires after some time...? Sorry, I'm absolutely clueless about the Java connector stuff...
cheers
Jānis