SAP Focused Run LMDB is a great source of technical information. Especially with the new graphical view.
In SAP Focused Run LMDB is now part of Landscape Management.
LMDB administration (up to FRUN5.0)
With the LMDB administration page you can see the LMDB status:
Green is ok:
If not green, check the status for needed actions.
LMDB object maintenance
The LMDB Object Maintenance tile can be used to maintain a single LMDB entry:
Now select the system on the LMDB search screen:
And then push the button Display to go to the details:
On the left side you can choose a specific view on the system, like software, database, technical instances etc. If you click on the left side, the right side will show the details.
LMDB tools and graphical overview
The LMDB tools offer a graphical overview. First open the LDMB tools FIORI tile:
In Focused Run 5.0 there is a new tile for this:
Then select the technical system (in Focused Run 5.0 the main overview opens, and you need to select the technical systems on the left):
Now press the blue Hierarchy button to go to the graphical overview (in FRUN 5.0 simply click on the blue system name):
On the left is the graphical decomposition. On the right the details per object selected on the left side.
FRUN 5.0 landscape management
In Focused Run 5.0 there is a new tile replacing the LMDB and called Landscape Management:
The start page is an overview of all your systems and its status:
The other LMDB functions are still present on the left side of the screen.
API for LMDB
The SAP Focused Run LMDB has an API. For more details, read this blog.
This blog will explain how to archive customer and vendor master data via objects FI_ACCRECV and FI_ACCPAYB. Generic technical setup must have been executed already, and is explained in this blog.
Most use of this archiving is when customers and vendors are created wrongly, to get them deleted from the system.
The below is mainly focusing on traditional ECC system. In S4HANA system both customers and vendors are integrated as business partners. For archiving sections of business partners for customer and / or vendors, read OSS note 3321585 – Archiving for Business Partner and Customer / Suppliers.
If you also want to archive/delete the LFC1 and KNC1 tables, also implement the FI_TF_DEB and FI_TF_CRE archiving objects.
Object FI_ACCRECV (customers)
Go to transaction SARA and select object FI_ACCRECV (customers).
Dependency schedule:
A lot of dependencies. Everywhere a customer number is used in an object. This makes it almost impossible to archive a customer master record. But still: it can be done to delete wrongly created master data if no transaction data is created yet.
Main tables that are archived:
KNA1: General customer master data
KNB1: Company code specific customer master data
Object FI_ACCPAYB (vendors)
Go to transaction SARA and select object FI_ACCPAYB (vendors).
Dependency schedule:
Quite some dependencies. Everywhere a customer number is used in an object. This makes it almost impossible to archive a vendor master record. But still: it can be done to delete wrongly created master data if no transaction data is created yet.
There is no application specific customizing for customer and vendor archiving. You can use XD06 for customer master deletion flag setting and XK06 for vendor master deletion flag setting.
Executing the write run and delete run Customers
For customers: in transaction FI_ACCRECV select the write run:
Important is the consideration of the validation links and the deletion indicator. Customer deletion indicator flag can be set with transaction XD06.
Select your data, save the variant and start the archiving write run.
Make sure snapshot monitoring is active (read this blog on activation)
Running the tool
To start the tool go to transaction SE38 and start program /SDF/RSLOADANALYSIS.
Selection screen:
Select the date range you want to analyze. The delta factor is normally 10 but bit too low. Increase it for more realistic result. This is factor to conclude if balancing is ok or not. Only 10% difference from average is too idealistic.
The second part is the work process analysis part.
Here you can see how load is distributed over the application servers using the snapshot monitoring statistics. The central instance can be excluded from the load balancing and hence show as ‘not balanced’.
The third part is host machine data.
Here you can see if the servers are having equal CPU power and memory. If no data for a sever: check in ST06 if it is configured properly.
It can be that CPU and memory are identical, but that older infrastructure was used. Then the CPU and mem look the same, but there can still be significant difference in CPU speed and memory speed. To rule this out, run the ABAPMETER tool.
Sometimes SAP users are far away from the server. There is much latency. For a global SAP system this is unavoidable. In some cases there might be a remote location you need to support which has a slow and/or low bandwidth connection.
In that case you best setup the SAP GUI to use
Default is as above. For low speed users, ask them to select the Low Speed Connection.
Before /SDF/SMON_DISPALY is working, you have to set a link to the plotly library. You can do this for all users, or for your personal user by setting a SU3 parameter:
Using /SDF/SMON_DISPLAY
Simply start transaction /SDF/SMON_DISPLAY:
Fill out the measurements you want to see. And the last n minutes. Automatically the results are shown in a separate window:
On table level: Check the table ICFSERVLOC. All active services are marked with an “X” flag.
Checking SICF security settings
Don’t use the old program RSICFCHK (see OSS note 3300857 – Report RSICFCHK shows incomplete result). Use the new SECSTORE transaction. At the start of transaction SECSTORE choose in the check entries section “ICF Service”:
Now hit execute and check the results:
Mass processing
SICF mass processing is done via program RS_ICF_SERV_MASS_PROCESSING.
Logging of SICF changes
To enable logging of SICF changes: switch on table logging for table ICFSERVLOC.
SAP Focused Run offers some nice API’s that you can use and re-use.
API’s available:
LMDB API
Work mode management API
Guided procedure API
Advanced analytics API
LMDB API
The LMDB now has a REST API available to read data in structured way. You can search for hosts, technical systems, software components, installed product versions and instances.
The full specification for this API can be found on this link.
Ad hoc work mode creation via function module
Via function module FM_START_ADHOC_WORKMODE you can create an ad-hoc work mode to stop monitoring for a system. You can start monitoring again by stopping the work mode by calling function module FM_STOP_ADHOC_WORKMODE.
Function module FM_EXTRN_GP_EXEC can be used to call a guided procedure. Unfortunately, you need to pass the GUID of the guided procedure to the function module.
In some cases you need to debug the session of another user. This can be needed for example when you need to solve an issue in ABAP for a FIORI app. The end user is doing his work until the break point is reached. Then you take over the session using the normal debugging tools. The basic principle is explained in OSS note 1919888 – Debugging the applications of another user, and in this SAP help file.
Follow the steps explained in this blog to set up a new custom check. We will use these steps to set up an extra SCI class to check if the AUTHORITY-CHECK statement is added in ABAP code or not.
New SCI check coding
Step 1: create the ZCL_CI_SCAN_AUTH class
In SE24 copy class CL_CI_TEST_FREE_SEARCH to ZCL_CI_SCAN_AUTH. In the attributes of the copied class set C_MY_NAME as variable to ‘ZCL_CI_SCAN_AUTH’. Also set the error code MCODE_0001 to ‘Z001’.
Step 2: redo the CONSTRUCTOR
Goto the constructor of the new class and overwrite the existing code with this code snippit: