on 04-22-2006 7:10 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
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
...download FREE Marketplace Manager at: http://www.gazum.com/products
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.