04-22-2006 6:44 AM
Hello All,
I am new in SAP. I have been given the task of identifying BAPIs in BAPI Explorer for Basis Components for Computing Center Management System in SAP.
For example, the transaction code SM51 is for seeing the availability of application servers. Now my task is to find the BAPI for it so that from JAVA that BAPI can be invoked to monitor for availability of application servers.
Can anybody tell me how to find such BAPIs.
Thanks,
Rajeev Gupta
04-22-2006 7:09 AM
Hi,
I wish i could name the BAPI for you but i aint aware of one. But you can always find one using a bit of R&D.
Run SM51 in debugging mode and see the name of the function modules being called or used. The general naimg convention kind of remains same. For example, most of the BAPI for business partner would have "BUPA" in the BAPI name.
If you are able to find this common word, or some link then you can go to se37 and try combinations like BAPI(that cmmon word) F4.
This would lit out the BAPI available.
Regards,
Tanveer.
Please mark if found helpful.
04-22-2006 7:41 AM
Hi tanveer,
i debugged SM04 transaction(for users logged on) but i was not able to find a call function with BUPA in it.
so please tell me how to find a BAPI for SM04 transaction monitoring.
Thanks,
Rajeev Gupta
04-22-2006 7:10 AM
Hi,
It seems like you are new to SDN.
Welcome to SDN Rajeev.
Regards,
Tanveer.
04-22-2006 7:44 AM
Hey Rajeev,
I gave u an exampe of BUPA being in for business partner.
In this case you would not have BUPA not some word which is repeated in most of the functions.
Thats the word you are suppose to look out for.
Then go to se37 n do as i said earlier.
You would get a list of all BAPI.
I wish i could tell u the BAPI name, but currently i dont have SAP on my system.
Regards,
Tanveer.
Please mark helpful answers.
04-22-2006 9:13 AM
Hi Tanveer,
the problem is SM51 and SM04 both are using the program SAPLKKBL whose source code is LKKBLF00.
Both use this statement below:
perform user_command_new tables t_outtab
gt_dummy
using gt_stack.
So both are invoking the same code with different queries from database.
I even debugged this but the functions which were called were general functions i think.
So now tell how to find a BAPI for these transactions.
Thanks,
Rajeev Gupta
04-22-2006 9:19 AM
Rajeev,
I guess you are looking at external monitoring information. Take a look at the function modules starting from SXM*.
Also there is a document in service market place on external interface monitoring.
Regards,
Ravi
04-22-2006 12:51 PM
Hello Ravi,
As you said to see SXM* functions - I found the function SXMI_XMB_USER_LIST_READ for a RFC function module for transaction SM04. But when i executed it with parameters:
EXTERNAL_USER_NAME = login-id with which i entered sap
INTERNAL_RFC_DEST = name of RFC of SAP system as in SM59,
i found it gave an exception NOT_LOGGED_ON and the return table had no entries.
So can you tell me how to execute this SXMI_XMB_USER_LIST_READ function in SE37.
Thanks,
Rajeev Gupta
04-22-2006 9:31 AM
Hi,
As Ravi suggested , you can try '.SXM*' If in case you arent able to figure out the BADI n ur work is of urgent nature, create a customised function module as remotely enabled n use it as a wrapper to call the standard functions you found out during your debugging process.
Regards,
Tanveer.
04-24-2006 7:25 AM
Hi,
Apart from above suggestions u can also try Function Modules Starting with "TH*" for example,
TH_REMOTE_TRANSACTION
04-24-2006 2:51 PM
Hello All,
I found the function SXMI_XMB_USER_LIST_READ for a RFC function module for transaction SM04. But when i executed it with parameters:
EXTERNAL_USER_NAME = login-id with which i entered sap
INTERNAL_RFC_DEST = name of RFC of SAP system as in SM59,
i found it gave an exception NOT_LOGGED_ON and the return table had no entries.
So can you tell me how to execute this SXMI_XMB_USER_LIST_READ function in SE37.
Thanks,
Rajeev Gupta
05-02-2006 7:34 AM
Rajeev,
Check out if this doc can help you?
http://wwwcs.uni-paderborn.de/cs/heiss/lehre/pg/intern/docs/bc_xbp_45.pdf
regards,
Ravi
05-10-2006 8:25 AM
The SX* BAPIs (SXMI, SXMB, SXBP*) are all to be executed by remote monitoring tool.
There is a sessionid which is created by default when you login from remote tool. One need to follow as mentioned below:
Open RFC Session Authorization from SAP
Open XMI Session for XAL Identification of the XM
Call XAL Functions Identification of the Agents
Open XMI Session for XBP Identification of the XM
Call XBP Functions Identification of the Agents
Call XAL Functions Identification of the Agents
End XMI Session
End RFC Session
Regards
Madhu
P.S: Kindly award points if the answer/suggestion is useful.
05-10-2006 8:35 AM
Hai Rajeev
Check the following Code
Selection Text: P_TCODE: Transaction Code to Search
Text Symbols: 001 - Enter the Transaction Code that you want to search through for a User Exit
REPORT z_find_userexit NO STANDARD PAGE HEADING.
&----
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP User Exits exists.
*&
&----
&----
*& Tables
&----
TABLES : tstc, "SAP Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
&----
*& Variables
&----
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
&----
*& Selection Screen Parameters
&----
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
&----
*& Start of main program
&----
START-OF-SELECTION.
Validate Transaction Code
SELECT SINGLE * FROM tstc
WHERE tcode EQ p_tcode.
Find Repository Objects for transaction code
IF sy-subrc EQ 0.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'PROG'
AND obj_name = tstc-pgmna.
MOVE : tadir-devclass TO v_devclass.
IF sy-subrc NE 0.
SELECT SINGLE * FROM trdir
WHERE name = tstc-pgmna.
IF trdir-subc EQ 'F'.
SELECT SINGLE * FROM tfdir
WHERE pname = tstc-pgmna.
SELECT SINGLE * FROM enlfdir
WHERE funcname = tfdir-funcname.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'FUGR'
AND obj_name = enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
Find SAP Modifactions
SELECT * FROM tadir
INTO TABLE jtab
WHERE pgmid = 'R3TR'
AND object = 'SMOD'
AND devclass = v_devclass.
SELECT SINGLE * FROM tstct
WHERE sprsl EQ sy-langu
AND tcode EQ p_tcode.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
SKIP.
IF NOT jtab[] IS INITIAL.
WRITE:/(95) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
WRITE:/(95) sy-uline.
LOOP AT jtab.
SELECT SINGLE * FROM modsapt
WHERE sprsl = sy-langu AND
name = jtab-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 sy-vline,
2 jtab-obj_name HOTSPOT ON,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
ENDLOOP.
WRITE:/(95) sy-uline.
DESCRIBE TABLE jtab.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , sy-tfill.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
Take the user to SMOD for the Exit that was selected.
AT LINE-SELECTION.
GET CURSOR FIELD field1.
CHECK field1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
Thanks & regards
Sreenivasulu P