Showing posts with label SAP BASIS Tips and Tricks. Show all posts
Showing posts with label SAP BASIS Tips and Tricks. Show all posts

Many of our users are experiencing CALL_C_FUNCTION_NO_AUTHORITY ABAP dump. How can we resolve this issue?

The AUTHORITY_CHECK_C_FUNCTION is a function module which can be used to check the authorizations required to execute an ABAP program. This is mainly used by the ABAPers while coding programs that require critical authorizations to identify the access required by the users to execute the program.

The CALL_C_FUNCTION_NO_AUTHORITY ABAP dump occurs if there is an issue with the authorization. Verify the ABAP dump to identify the exact program and function module where the error is generated. Following is an example error:

The termination occurred in the ABAP/4 program "SAPLXTRK " in
"GET_APPLICATION_TIMEZONE".

How to find if SAP is able to connect to Database?

o find out the status of connectivity, you can use the R3TRANS.EXE program. From the command prompt, execute "R3Trans –d".

If you see a return code “000”, it means that the database connection for the application is good.

R3trans will create an output file called trans.log which can help to diagnose if the return code is any other value than 000.

How to find out if the client is able to reach the SAP server perfectly?

This can be diagnoised using NIPING.EXE command, which is available in Exe -> Run directory. To test the connectivity between SAP and front end computer, do the following:

First start the NIPING server on computer:

Nipping –s –I 0

Then start the same on the client. Use the following command:

Nipping –c –h

Dialog work process Multiplexing

Generally large number of users log into SAP sytem. The dialog work processes (wp) available to the users are limited due to performance & system limits. The objective of a dialog work process is to handle the user requests quickly and display the results. Dialog work process also takes large resources relatively to background processes for display purposes. So it is not wise to have a dialog work process running for each user logged in. A dialog work process is not assigned to a single user for longer time. When a dialog user fires a request, the dispatcher assigns a dialog WP to handle the request. When the request is processed, it relieves the work process from that user so that other users can use it. This helps in handling requests from a large no of users with small no of dialog work process and optimum use of resources.

Changing the Title of SAP Transaction

Sometimes, internal user or customer might request you to change the Title of the SAP Transaction code to a more meaningful one.

The steps are as follows:

Goto tcode SE63 . On the top left Menu of the screen - Click Translation ---> Short texts - --> Transactions

For example, assuming you want to change the title of the t-code su10 from user maintenance: Mass changes Initial Screen to Mass User changes . On the first screen, fill in the following information:

Transaction code - SU10

Source Language - English

Target Language - English

To change the Title, click the Edit button. On the second line (the one in dark yellow), type in the Title (For e.g. Mass User changes) you want for the transaction code. Click the Save button


Now, call up the transaction code /nSU10 again and you should be able to view the new Title.

Please note that it works for most of the Transaction codes. The t-code is available from from version 4.6x.


Can you manually switch and operation mode in sap

Yes! You can trigger an operation mode switch from a program that you have written yourself using a function module (RZL_PERFORM_BA_SWITCH).

How to move the favorites from one user to another

If you want to move the favorites menu from one user to another user, easiest way would be using function modules. They make your work easy. The steps to be followed are 1) goto transaction code SE37,
2) Enter the function module name MENU_FAVORITES_DOWNLOAD , test run the module,
3) The enter the source user name in the field that appears & execute. You will be prompted for a local path or directory to save the file. Just give the file name as some user_source.mnu and save the file
4) Now enter run a function module
MENU_FAVORITES_UPLOAD test run the modules
5) Enter the name username in which you want upload the menu favorites. It will prompt you for the file.
6) This operation
require user login details

How do you find the size of a client

Goto transaction SCCL
give the source client (which you have to find size)
and the target client
then check test run
at the end you will see the size of client

SAP Notes Assistant

SAP notes assistant is a tool with which you implement or import a sap note. Sap notes are released to correct known problems in SAP systems with a specific support package level. Some times they are also released to include added functionalities in the system. SAP notes include a description of the symptoms, the cause of the error, and the SAP Release and Support Package level in which the error occurs. SAP notes may also contain attached files which has ABAP programs. They can be imported into the system using TMS. Depending on the type of error, an SAP Note may also include descriptions of how to correct the source code which are called correction instructions.

Before implementing read the Pre-requisites of SAP notes carefully

The steps to be followed are

  1. Login to the SAP service market place and download the SAP notes containing correction instructions to the front-end.
  2. Upload the notes from the frontend to the system using SAP notes assistant (Transaction SNOTE)
  3. If you know the sap notes number you can download it by using assistant. Click on the button and enter the SAP notes number.
  4. Then the sap notes is implemented if its status is new ( click on button )

The uses of using note assistant are

  1. It keeps a track of the processing status of all the SAP notes in the system
  2. The notes can be de-implemented
  3. It check consistency of SAP notes with the release of SAP system
  4. It maintains the processing status of SAP notes

The notes assistant is an add-on. One has to import it from SAP service market place and install it in the system by using SAINT.

Note: When implemented SAP notes changes the ABAP code only. The ABAP dictionary objects are not changed. This has to be done manually before implementing SAP notes so that the pre-requisites are met.

How to send popup message to a specific user in sap

How do you do that? By running a function module!!
SM02 sends messages to all users, not a specific one
So use function module TH_POPUP
goto Transaction code SE37 enter the function module name & test run it
the the resulting screen is shown below, type the details and execute
The the user will see message like this ( System name is blurred for privacy reasons)


The user must be logged into the system to receive the message

How to find an Operation mode Switch

How do you find that an operation mode switch occurred? There are many ways

1) Go to sm50. If the no of dialog work processes or background work processes changes then a operation mode switch took place.

2) Go to transaction sm63. Here you can see the time when the operation mode is set. You can guess when the operation mode switch occurs.

3) Go to transaction RZ04, here you can see the list of operation modes and their time. You can guess that from here

4) Go to transaction rz03 , here you can see the current operation mode in which the server is running.


5)
Call transaction Code sm62. Then view system events. If there is an event called SAP_OPMODE_SWITCH then operation mode switch occurred at that time. If you click on activity log you can see the time and date when the event was triggered. It is time and date of operation mode switch

How to Reset Different Buffers in Sap

You can reset the buffers using following commands
Just run the following in SAP command field.
Note: Resetting of the buffers could change the performance of the entire system
/$DYNP - To reset the screen buffer of the application server
/$SYNC - This command resets the buffers of the application server
/$CUA - This resets the CUA buffer of the application server
/$TAB - This resets the TABLE buffers of the application server
/$NAM - To reset the nametab buffer of the application server

How to view recently accessed transactions by users

There are two ways to do that
1) Turn the audit log on by using SM19 and SM20 and analyze the audit logs.Put filters while setting up these logs so that you can see the specific data.

2) In ST03N / ST03, you can analyze the transactions run by users by selecting the "User Profile" under the "Analysis Views" section.

Note: ST03N keeps limited data

How the check the work process at os level in UNIX

Use these commands to check the work process and other SAP process at os level in unix

To check all the work processes:
ps -ef | grep | grep dw

To check the sap os collector
ps -ef | grep sapos

To check the message server
ps -ef | grep | grep ms


Updating SAP Kernel in UNIX

Here is the Procedure to Update your SAP Kernel

  • Stop all R/3 Processes and the Database
    % stopsap all ------\Hit Enter\
  • Stop SAPOSCOL process
    % saposcol -d ------ \Hit Enter\
    collector\>kill ------\Hit Enter\
  • Stop ListnerControl process by logging in as ora user
    %lsnrctrl stop ------\Hit Enter\
  • Download Kernel Patches
  • Copy Them to a directory on Central Instance
  • Backup Your Old Kernel (by renaming it or moving it)
  • uncar the downloaded files
  • After that restart your services in following order
    • Listner
    • SAPOSCOL
    • Database
    • R/3