2012 Feb 06 8:09 AM
Hi All,
Is there any standard function module or report which gives all sap memory details occupied by user level?
Like extented memory, roll area , heap , paging memeory
for that currentlly i'm using
call 'ThUsrInfo' id 'OPCODE' field opcode_long_blk_info in a Zfunction but i need a standard one for this.
Regards,
Anuj jain
2012 Feb 06 9:56 AM
Try this monitoring function
/SDF/MON_USER_MEMORY
This gives the required details sorted for each user's handle
2012 Feb 06 9:56 AM
Try this monitoring function
/SDF/MON_USER_MEMORY
This gives the required details sorted for each user's handle
2012 Feb 06 10:10 AM
Check transaction st02 , it calls the report program RSTUNE50. You get details about Roll area , Page area ,Extended memory &
Heap memory. Click the detailed analysis menu and SAP memory Button for more details. If required the click the Current parameters button and copy the names and pass to tableTPFYPROPTY-objname to get the min & Max values.
For user wise details
Goto Sm04 - select user->Menu Goto->Memory, again if you need a session wise split, then do the same from selecting the menu Memory List(Session Details).
For reference:[Monitoring the Memory Management System|http://help.sap.com/saphelp_nw04/helpdata/en/02/96263e538111d1891b0000e8322f96/content.htm]
2012 Feb 06 11:46 AM
Thanks Ncvajja ,
RFC mentioned by you provides all the memory details consumed by user but as i have a specific requirement in which i have provide session level details of a user so that if same user a multiple session then i need also to differentiate them which is not possible by the this FM.
As per my research we can differentiate them on TID(Terminal id) level so is there any fm which provide these inputs with tid also.
@ structure UBLKS contains TID.
Rg,
Anuj
2012 Feb 06 12:06 PM
2012 Feb 06 12:24 PM
TH_USER_LIST nt usefull... as need FM which give memory details(roll area, extended,heap) along with terminal id or some unique value fields.
Rg,
Anuj
2012 Feb 06 12:30 PM
hi,
How can terminal id differentiate if the same user had done multiple login from the same terminal ? The function provided above has the field TERMINAL & IP ( which can used to differentiate from different terminals ) & the field handle is also unique. For example open 5 sessions and then execute the FM.
2012 Feb 06 12:55 PM
Try and analyse Tcode /SDF/04 the report generated has terminal ID, user and all the memory details as you wanted....
The name of the report is /sdf/sm04
Hope thats useful...
Edited by: Ncvajja on Feb 6, 2012 1:56 PM
2012 Feb 06 1:34 PM
Terminal ID / Session
The terminal ID is the number of the terminal in the list of all the clients logged on to the dispatcher. The session number is the current external session.
This information is used to determine RFC dependencies in the analysis of RFC connections.
The combination TID/session defines the context belonging to a conversation ID either as a client or as a server. The TID/session is used to determine which RFCs are still coming from this context (client). The TID / session information on the server side is used to check whether this also appears again as a client, and hence is part of an RFC chain that is accessible iteratively.
we check in sap report RSM04000_ALV put a break point on line 1542 and check table USR_BTABL here we will get a unique TID whether user has multiple login .
Regards,
Anuj jain
2012 Feb 07 6:31 AM
2015 Aug 03 6:50 AM
I checked the origianl code of RSTUNE50 (ST02).
function module saptune_get_summary_statistic will get consumption information of extended memory.
import parameters: DESTINATION: NONE
export parameters - EXTENDED_MEMORY_USAGE
the fields: ALLOCATED/TOTAL.