cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Not logged on in interface XAL(function BAPI_SYSTEM_MS_GETLIST)

Former Member
0 Kudos

Hello All,

When I opened BAPI explorer, then Basis Components, then Computing Center Management System, then SystemMonitorSet, then I executed the BAPI GetList for single test by giving EXTERNAL_USER_NAME by which I logged in SAP, then i got the following error:

<b>Error: Not logged on in interface XAL(function BAPI_SYSTEM_MS_GETLIST)</b>

Can anybody tell how to remove this error.

Thanks,

Rajeev Gupta

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Rajeev:

Yes, you need to create an executable ABAP program; to accomplish this, execute transaction SE38 and create a program in the customer namespace (starting with "Y" or "Z") then in the code you need to write first the Logon function and then the BAPI_SYSTEM_MS_GETLIST.

See the following example:

-


  • Declarations:

DATA:

IT_MON_SET LIKE BAPIMSNAME OCCURS 0 WITH HEADER LINE,

  • Start XMI Session - XAL Interface

CALL FUNCTION 'BAPI_XMI_LOGON'

EXPORTING

EXTCOMPANY = '<some stuff>'

EXTPRODUCT = '<some stuff>'

INTERFACE = 'XAL'

VERSION = '1.0'.

  • Get List of Monitor Sets

CALL FUNCTION 'BAPI_SYSTEM_MS_GETLIST'

EXPORTING

EXTERNAL_USER_NAME = '<username>'

TABLES

MONITOR_SETS = IT_MON_SET.

-


Hope this helps!

Regards,

Federico

Former Member
0 Kudos

Hi,

It really helped. Thanks a lot.

A tip For non-abap programmers -> Like me :

1. Create a remote function and add a parameter MONITOR_SETS in the table's section

2. Use the same code from Frederico post -> just update the last sentence with the "MONITOR_SETS" parameter:

MONITOR_SETS = MONITOR_SETS.

Gr8 thanks to Frederico,

Boris

_____________________________

Per aspera ad astra!

Former Member
0 Kudos

Hi Rajeev:

Yes, you need to logon/logoff to the external interface first in order to call a BAPI; otherwise, the system will raise the exception message "Not logged on in interface XAL"

Do the following in your code prior to calling the XAL BAPI:

  • Start XMI Session - XAL Interface

CALL FUNCTION 'BAPI_XMI_LOGON'

EXPORTING

EXTCOMPANY = '<Your Company Name or so>'

EXTPRODUCT = '<Your Product Name or so>'

INTERFACE = 'XAL'

VERSION = '1.0'.

Best Regards,

Federico G. Babelis

NetWeaver Certified Consultant

GAZUM Technologies S.A.

Consulting Services and Software Solutions

http://www.gazum.com

...download FREE Marketplace Manager at: http://www.gazum.com/products

Former Member
0 Kudos

Hi Fedrico,

I am using SAP-GUI for all my SAP work.

So as you said i started the XMI session from BAPI explorer - Basis components - CCMS -Logon bapi by executing it in test mode. I gave the interface as XAL and its version as 1.0 . On executing it, I got a session-id. So this means I started the XAL session.

Then in Bapi explorer, I executed the bapi function BAPI_SYSTEM_MS_GETLIST in test mode by giving the EXTERNAL_USER_NAME as the username with which i entered SAP, then i again received the same error message:

<b>Error: Not logged on in interface XAL</b>

So please tell how to execute this bapi. If i have to execute this bapi from some ABAP code then where should i write that ABAP code and how to execute it. I am new in SAP, so please explain me in detail how to execute this BAPI - I will be very thankful to you.

Regards,

Rajeev Gupta