Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

R/3 Code: E;028;Not logged on in interface XBP(function BAPI_XBP_JOB_STATUS_GET) error

Former Member
0 Kudos
1,468

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

3 REPLIES 3

Private_Member_7726
Active Contributor
0 Kudos
271

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

0 Kudos
271

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

0 Kudos
271

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