Sunday, August 1, 2010

Few SAP tips

Joyjit Ghosh, Kolkata

1. Maintain single table entry at a time without coding or debugging

Steps:

  • Go to SE16 transaction
  • Give any table name and press Enter , Ex: MARA
  • Now execute (F8) this screen
  • Choose the record you want to manipulate and display (F7)
  • Go to Debug mode (/H) and press ‘Enter’ 2 times
  • Change the value of the variable ‘CODE’. By default, it is 'SHOW'
  • Change the code value as 'EDIT' for modifications, 'INSR' for insert and 'DELE' for delete.

2. Maintain multiple table entries at a time without coding or debugging

Steps:

  • Goto transaction SE16N
  • Give the table name
  • In command box write ‘&sap_edit’ then press ‘Enter’
  • Press execute button

3. Debugging background job

Steps:

  • Goto transaction SM37
  • Select any job that you want to debug
  • Enter 'jdbg' as okcode in command box
  • Press ‘Enter’

Note: You can do the same from transaction SM50 as well

4. Environmental analysis of a program

Steps:

  • Goto Transaction SE38 and key in the program name for which you want to Environmental analysis
  • Press ‘SHIFT+F4’. 'Environment Analysis' pop-up-window opens.
  • Check the required information and press ‘Enter’

Aslo check the programs RSINCL00, RSDEPEND.

5. Start debugging from a popup window

Alernative 1:

Steps:

  • Create a short cut for any transaction from the SAPGUI.
  • Change transaction type to ‘system command’.
  • Enter command as ‘/h’
  • Save this on the desktop.
  • On any screen just drag and drop this shortcut
  • You are all set to debug now

Alternative 2 :

Steps:

  • Create a text file with following commands

*********************

[FUNCTION]

Command=/H

Title=Debugger

Type=SystemCommand

*********************

  • On any screen just drag and drop this shortcut
  • You are all set to debug now

6. Retrieving the deleted program

Steps:

  • Create a program with the same name as earlier (which is deleted)
  • Click on "Utilities" --> "Versions" --> "Version Management"
  • Select the version of your earlier program and click on display.
  • Your earlier program is displayed here.

7. Sending message to other user from SAP

Steps:

  • Go to transaction SE37
  • Execute the FM ‘TH_POPUP’ by mentioning the client , user name and the message text

8. Display icon in selection screen

Steps:

  • Find the hex code of the icon. Hex codes of all the icons are available in type-pool ‘ICON’ or available through the program ‘’ .
  • Now you have to create text-elements using that hex codes.

Ex: @6A@ Click