Sap Reference
Sap Reference
Sap Reference
Production Planning
General Notes
BASIS/ABAP
Human Resources
SAP Office
FI Financial Management
MM configuration transactions
Config Related
BASIS/ABAP
Show the menu path to use to execute a given tcode. You
SEARCH_SAP_MENU can search by transaction code or menu text.
SE63 Translation
SE64 Terminology
View the system log, very useful when you get a short dump.
SM21 Provides much more info than short dump
Human Resources
PA03 Change Payroll control record
VA07 Comparison of sales order with PR and PO ,compares date ,quantity etc
SAP Office
SO00 send a note through SAP, can be sent to internet, X400, etc
FI Financial Management
FGRP Report Writer screen
FBME Banking
ME21-23 Create/change/display PO
MM configuration transactions
OLMB Inventory management/Physical Inventory
OLME MM Purchasing
Config Related
OLE OLE demo transaction
OLI0 C Plant Maintenance Master Data
OLQB C QM QM in Procurement
OLQI Analysis
OLSD Customizing: SD
General Notes
You can execute the following commands in the transaction code (tcode) field with Enter. You
will find some useful transaction codes below to work in tandem with the following commands:
To call a transaction - In the same session (window) Enter: /nxxxx (xxxx = transaction code). -
In an additional session, Enter: /oxxxx (xxxx = transaction code).
If you enter this function before any of the tcodes below, you are able to break out of your
current screen/business and begin a completely new session. Otherwise, the current business
process has to be terminated, and return to the initial user screen (the main menu) has to be
initiated before entering tcode spro). /o tcode saves you the effort of having to do this.
To end the current transaction Enter: /n. Caution: Unsaved changes are lost without warning
To delete the current session. Enter: /i.
To generate a session list Enter: /o.
To log off from the system Enter: /nend.
From John O'Meara
OSS Note 0026171 has additional information on OKCodes in SAP, and is a very useful read
SAP Reports
RGUGBR00 Substitution/Validation utility
Purchasing Tables
Finance Tables
Production Planning
System Tables
Purchasing Tables
A501 Plant/Material
T001W Plants/Branches
T356 Priorities
T357G Permits
Finance Tables
T087J Text
VTBFHA Transaction
PCL2 HR Cluster 2
PA0310 Superannuation NZ
PA0368 Rehabilitants
PA0426 Garnishment
PA0593 Rehabilitants
Production Planning
Thanks to Tymon Kerste for the PP table info.
MAST Material BOM
System Tables
T005 Countries
APPL_LOG_DELETE
APPL_LOG_DISPLAY
APPL_LOG_DISPLAY_INTERN
APPL_LOG_INIT
APPL_LOG_READ_DB
APPL_LOG_READ_INTERN
APPL_LOG_SET_OBJECT
APPL_LOG_WRITE_DB
APPL_LOG_WRITE_HEADER
APPL_LOG_WRITE_LOG_PARAMETERS
APPL_LOG_WRITE_MESSAGE_PARAMS
APPL_LOG_WRITE_MESSAGES
APPL_LOG_WRITE_SINGLE_MESSAGE
ARFC_GET_TID
BAL_CNTL_CREATE
BAL_CNTL_FREE
BAL_CNTL_REFRESH
BAL_DB_DELETE
BAL_DB_DEQUEUE
BAL_DB_ENQUEUE
BAL_DB_LOAD
BAL_DB_LOAD
BAL_DB_SAVE
BAL_DB_SAVE
BAL_DB_SAVE_PREPARE
BAL_DB_SEARCH
BAL_DSP_LOG_DISPLAY
BAL_DSP_LOG_DISPLAY
BAL_DSP_LOG_PARAMETERS
BAL_DSP_LOG_TECHNICAL_DATA
BAL_DSP_MSG_LONGTEXT
BAL_DSP_MSG_PARAMETERS
BAL_DSP_MSG_TECHNICAL_DATA
BAL_DSP_OUTPUT_FREE
BAL_DSP_OUTPUT_INIT
BAL_DSP_OUTPUT_SET_DATA
BAL_DSP_PROFILE_DETLEVEL_GET
BAL_DSP_PROFILE_NO_TREE_GET
BAL_DSP_PROFILE_POPUP_GET
BAL_DSP_PROFILE_SINGLE_LOG_GET
BAL_DSP_PROFILE_STANDARD_GET
BAL_GLB_AUTHORIZATION_GET
BAL_GLB_AUTHORIZATION_RESET
BAL_GLB_CONFIG_GET
BAL_GLB_CONFIG_SET
BAL_GLB_MEMORY_EXPORT
BAL_GLB_MEMORY_IMPORT
BAL_GLB_MEMORY_REFRESH
BAL_GLB_MEMORY_REFRESH
BAL_GLB_MSG_CURRENT_HANDLE_GET
BAL_GLB_MSG_DEFAULTS_GET
BAL_GLB_SEARCH_LOG
BAL_GLB_SEARCH_MSG
BAL_LOG_CREATE
BAL_LOG_CREATE
BAL_LOG_DELETE
BAL_LOG_EXIST
BAL_LOG_HDR_CHANGE
BAL_LOG_HDR_CHECK
BAL_LOG_HDR_READ
BAL_LOG_MSG_ADD
BAL_LOG_MSG_ADD
BAL_LOG_MSG_CHANGE
BAL_LOG_MSG_CHANGE
BAL_LOG_MSG_CHECK
BAL_LOG_MSG_CUMULATE
BAL_LOG_MSG_DELETE
BAL_LOG_MSG_DELETE
BAL_LOG_MSG_EXIST
BAL_LOG_MSG_READ
BAL_LOG_MSG_REPLACE
BAL_LOG_REFRESH
BAL_LOG_REFRESH
BAL_MSG_DISPLAY_ABAP
BAL_OBJECT_SELECT
BAL_OBJECT_SUBOBJECT
BAL_SUBOBJECT_SELECT
BP_EVENT_RAISE
BP_JOBLOG_READ
CLOI_PUT_SIGN_IN_FRONT
CLPB_EXPORT
CLPB_IMPORT
COMMIT_TEXT
CONVERSION_EXIT_ALPHA_INPUT
CONVERSION_EXIT_ALPHA_OUTPUT
CONVERT_ABAPSPOOLJOB_2_PDF
CONVERT_OTF
CONVERT_OTFSPOOLJOB_2_PDF
CONVERT_TO_FOREIGN_CURRENCY
CONVERT_TO_LOCAL_CURRENCY
DATE_CHECK_PLAUSIBILITY
DATE_COMPUTE_DAY
DATE_GET_WEEK
DATE_IN_FUTURE
DOWNLOAD
DYNP_VALUES_READ
DYNP_VALUES_UPDATE
ENQUE_SLEEP
ENQUEUE_ESFUNCTION
EPS_GET_DIRECTORY_LISTING
EPS_GET_FILE_ATTRIBUTES
F4_DATE
F4_IF_FIELD_VALUE_REQUEST
F4IF_INT_TABLE_VALUE_REQUEST
F4IF_SHLP_EXIT_EXAMPLE
F4IP_INT_TABLE_VALUE_REQUEST
FILENAME_GET
FORMAT_MESSAGE
FTP_COMMAND
FTP_CONNECT
FTP_DISCONNECT
FU CSAP_MAT_BOM_READ
G_SET_GET_ALL_VALUES
GET_CURRENT_YEAR
GET_GLOBAL_SYMBOLS
GET_INCLUDETAB
GUI_CREATE_DIRECTORY
GUI_DELETE_FILE
GUI_DOWNLOAD
GUI_EXEC
GUI_GET_DESKTOP_INFO
GUI_REMOVE_DIRECTORY
GUI_RUN
GUI_UPLOAD
HELP_START
HELP_VALUES_GET_WITH_TABLE
HOLIDAY_CHECK_AND_GET_INFO
HOLIDAY_GET
HR_DISPLAY_BASIC_LIST
HR_GET_LEAVE_DATA
INIT_TEXT
K_WERKS_OF_BUKRS_FIND
LIST_FROM_MEMORY
LIST_TO_ASCII
MONTH_NAMES_GET
MONTH_PLUS_DETERMINE
MS_EXCEL_OLE_STANDARD_OLE
OTF_CONVERT
POPUP_TO_CONFIRM_LOSS_OF_DATA
POPUP_TO_CONFIRM_STEP
POPUP_TO_CONFIRM_WITH_MESSAGE
POPUP_TO_CONFIRM_WITH_VALUE
POPUP_TO_DECIDE
POPUP_TO_DECIDE_WITH_MESSAGE
POPUP_TO_DISPLAY_TEXT
POPUP_TO_SELECT_MONTH
POPUP_WITH_TABLE_DISPLAY
PRICING
PROFILE_GET
PROFILE_SET
READ_TEXT
REGISTRY_GET
REGISTRY_SET
RFC_ABAP_INSTALL_AND_RUN
RH_GET_ACTIVE_WF_PLVAR
RH_GET_DATE_DAYNAME
RH_START_EXCEL_WITH_DATA
RH_STRUC_GET
RP_CALC_DATE_IN_INTERVAL
RP_LAST_DAY_OF_MONTHS
RPY_DYNPRO_READ
RPY_TRANSACTION_READ
RS_COVERPAGE_SELECTIONS
RS_REFRESH_FROM_SELECTOPTIONS
RS_SEND_MAIL_FOR_SPOOLLIST
RS_VARIANT_CONTENTS
RSPO_DOWNLOAD_SPOOLJOB
RZL_READ_DIR
RZL_READ_DIR_LOCAL
RZL_READ_FILE
RZL_SLEEP
RZL_SUBMIT
RZL_WRITE_FILE_LOCAL
SAPGUI_PROGRESS_INDICATOR
SAVE_TEXT
SCROLLING_IN_TABLE
SD_DATETIME_DIFFERENCE
SO_NEW_DOCUMENT_ATT_SEND_API1
SO_SPLIT_FILE_AND_PATH
SO_SPOOL_READ
SO_WIND_SPOOL_LIST
SX_OBJECT_CONVERT_OTF_PDF
SX_OBJECT_CONVERT_OTF_PRT
SX_OBJECT_CONVERT_OTF_RAW
SXPG_CALL_SYSTEM
SXPG_COMMAND_CHECK
SXPG_COMMAND_DEFINITION_GET
SXPG_COMMAND_EXECUTE
SXPG_COMMAND_LIST_GET
TERMINAL_ID_GET
TH_DELETE_USER
TH_ENVIRONMENT
TH_POPUP
TH_REMOTE_TRANSACTION
TH_USER_INFO
TH_USER_LIST
TMP_GUI_DIRECTORY_LIST_FILES
UNIT_CONVERSION_SIMPLE
UPLOAD
UPLOAD_FILES
WEEK_GET_FIRST_DAY
WRITE_LIST
WS_DOWNLOAD
WS_EXCEL
WS_EXECUTE
WS_FILE_DELETE
WS_FILENAME_GET
WS_MSG
WS_UPLOAD
WS_VOLUME_GET
WWW_LIST_TO_HTML
REUSE_ALV_LIST_DISPLAY
DD_SHLP_CALL_FROM_DYNP
HELP_VALUES_GET_NO_DD_NAME
Download ABAP documentation in HTML format.
With this function module you delete logs in the database according to specified selection
conditions
With this function module you can analyze logs in the database.
With this function module you can analyze logs in local memory, e.g. when you have only
collected log records at runtime and do not want to write to the database.
This function module checks whether the specified object or sub-object exists and deletes all
existing associated data in local memory.
With this function module you read the log data in the database for an object or sub-object
according to specified selection conditions.
With this function module you read all log data whose log class has at least the specified value,
from local memory, for the specified object or sub-object.
With this function module, you create a new object or sub-object for writing in local memory. With
a flag you can control whether the APPL_LOG_WRITE_... messages are written in local memory
or are output on the screen.
With this function module you write all data for the specified object or sub-object in local memory
to the database. If the log for the object or sub-object in question is new, the log number is
returned to the calling program.
With this function module, you write the log header data in local memory.
With this function module, you write the name of the log parameters and the associated values for
the specified object or sub-object in local memory. If this function module is called repeatedly for
the same object or sub-object, the existing parameters are updated accordingly. If you do not
specify an object or sub-object with the call, the most recently used is assumed.
With this function module you write a single message, with parameters, in local memory.
Otherwise the function module works like APPL_LOG_WRITE_SINGLE_MESSAGE.
With this function module you write one or more messages, without parameters, in local memory.
With this function module you write a single message, without parameters, in local memory. If no
header entry has yet been written for the object or sub-object, it is created. If you do not specify
an object or sub-object with the call, the most recently used is assumed.
Unlock log
Lock log
Load log(s)
Save log(s)
Prepare save
Display Log
Either output extended long text or call a callback routine (based on the data in BAL_S_LOG-
PARAMS)
Either output extended long text or call a callback routine (based on the data in BAL_S_MSG-
PARAMS)
Output technical data of a message such as work area, error number, etc.
End output
Initialize output
Assign authorization
Reset authorization
Read configuration
Set configuration
Change message
Change message
Delete message
Delete message
Check whether object and subobject exist and the combination is allowed
Move the negative sign from the left hand side of a number, to the right hand side of the number.
Note that The result will be left justified (like all character fields), not right justifed as numbers
normally are.
converts any number into a string fill with zeroes, with the number at the extreme right
Returns a number indicating what day of the week the date falls on. Monday is returned as a 1,
Tuesday as 2, etc.
Read the values from a dynpro. This function can be used to read the values from a report's
selection screen too (Another example).
Similar to DYNP_VALUES_READ, this function will allow the updating of fields on a dynpro. Very
useful when you want to change a field based on the value entered for another field.
Lock an abap program so that it cannot be executed. Please note that you should not use SY-
REPID to pass your report name to the function. The value of SY-REPID will change as it is being
passed to the function module, and will no longer hold the value of the calling report.
Pass in a filename and a path, and will return attributes for the file
displays a calendar in a popup window and allows user to choose a date, or it can be displayed
read only.
Use values from a DDIC table to provide a list of possible values. TABNAME and FIELDNAME
are required fields, and when MULTIPLE_CHOICE is selected, more than one value can be
returned.
F4 help that returns the values selected in an internal table. Very handy when programming your
very own F4 help for a field.
documents the different reasons to use a search help exit, and shows how it is done.
This function does not exist in 4.6 and above. Use F4IF_INT_TABLE_VALUE_REQUEST instead.
popup to get a filename from a user, returns blank filename if user selects cancel
Takes a message id and number, and puts it into a variable. Works better than
WRITE_MESSAGE, since some messages use $ as a place holder, and WRITE_MESSAGE
does not accommadate that, it only replaces the ampersands (&) in the message.
Execute a command on the FTP server
You can use this function module to display simple material BOMs. You cannot display BOM
groups (for example, all variants of a variant BOM). as in transaction CS03. Current restrictions:
You cannot display long texts. You cannot display sub-items. You cannot display classification
data of BOM items for batches. You can only display one alternative or variant. You cannot enter
an alternative for module CSAP_MAT_BOM_READ, so you always see alternative 01. The
following example came from a posting on the SAP-R3-L mailing list.
SAP recommends using functions in function group SFES instead. Below is an overview of the
changes.
Returns a list of all tables, select options, texts, etc for a program. Even includes the text
definitions for the selection screen
Replaces WS_DOWNLOAD. Download table from the app server to presentation server
Replaces WS_UPLOAD. Upoad file from presentation server to the app server
Display help for a field. Useful for doing AT SELECTION SCREEN ON VALUE REQUEST for
those fields that do not provide F4 help at the DDIC level.
Show a list of possible values for F4 popup help on selection screens. This function module pops
up a screen that is just like all the other F4 helps, so it looks like the rest of the SAP system. Very
useful for providing dropdowns on fields that do not have them predefined.
Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday
calendar, and you can determine if the date is a holiday by checking the parameter
HOLIDAY_FOUND.
Provides a table of all the holidays based upon a Factory Calendar &/ Holiday Calendar.
is an HR function, but can be used for any data. You pass it data, and column headers, and it
provides a table control with the ability to manipulate the data, and send it to Word or Excel. Also
see the additional documentation here.
Get all leave information (includes leave entitlement, used holidays/paid out holidays)
Retrieves the output of a report from memory when the report was executed using SUBMIT...
EXPORTING LIST TO MEMORY. See also WRITE_LIST.
Add or subtract months from a date. To subtract a month, enter a negative value for the 'months'
parameter.
wraps several other function modules. Will convert OTF to ASCII or PDF
Create a dialog box in which you make a question whether the user wishes to perform a
processing step with loss of data.
Create a dialog box in which you make a question whether the user wishes to perform the step.
Create a dialog box in which you inform the user about a specific decision point during an action.
Create a dialog box in which you make a question whether the user wishes to perform a
processing step with a particular object.
Create a dialog box in which you inform the user about a specific decision point via a diagnosis
text.
Provide a display of a table for user to select one, with the value of the table line returned when
selected.
Return pricing conditions in an internal table. Use structure TCOMK for parameter
COMM_HEAD_1, and structure TCOMP for parameter COMM_ITEM_1, and set
CALCULATION_TYPE to B. The pricing conditions will be returned in XOMV. You must fill
TCOMP, and TCOMK with the appropriate values before callling the function in order for it to work.
Runs an ABAP program that is stored in the table PROGRAM when the MODE = 'F'. Table
WRITES contains the ouput of the program. Allows you to run a program without having the
source code in the target system.
starts Excel with the contents of an internal table. This function finds Excel in the desktop registry.
It also uses a local PC working directory to save the file (that's what the 'W' value for data path
flag does). Very transparent to user!
Given a transaction, return the program and screen or given a program and screen, return the
transactions that use the program and screen.
Returns an internal table that contains a formatted list of all the selection parameters entered for a
report. Table is ready to print out.
Read a file from the presentation server if no server name is given, or read file from remote
server. Very useful to avoid authority checks that occur doing an OPEN DATASET. This function
using a SAP C program to read the data.
Saves table to the presentation server (not PC). Does not use OPEN DATASET, so it does not
suffer from authority checks!
Display a progress bar on the SAP GUI, and give the user some idea of what is happening
If you are coding a module pool and using a table control, you can use this function
SCROLLING_IN_TABLE to handle any scrolling. (provided by Paul Kjaer)
Send a document as part of an email. The documentation is better than normal for this function,
so please read it.
you can check the user's authorization for the specified command and run the command. The
command runs on the host system on which the function module is executed. The function
module is RFC capable. It can therefore be run on the host system at which a user happens to be
active or on another designated host system at which an R/3 server is active.
Check whether the user is authorized to execute the specified command on the target host
system with the specified arguments.
Read the definition of a single external OS command from the R/3 System's database.
Check a user's authorization to use a command, as in SXPG_COMMAND_CHECK. If the
authorization check is successful, then execute the command on the target host system.
Run a transaction on a remote server. Optionally provide BDC data to be used in the transaction
Give information about the current user (sessions, workstation logged in from, etc)
Retrieve all of the files and subdirectories on the Presentation Server (PC) for a given directory.
When a value other than * or *.* is used for the filter, you will not get any directories, unless they
match your wildcard filter. For example, if you entered *.png, then only files and directories that
end in png will be returned by the function
For a given week (YYYYMM format), this function returns the date of the Monday of that week.
Useful for writing out the list contents that result from the function LIST_FROM_MEMORY.
After running a report, call this function to convert the list output to HTML.
This function prints the report output in the same fashion as in SE16 output. Events like top of
page ,Bottom of page ,end of list etc can be triggered by this function by passing the events in an
internal table to the parameter IT_EVENTS.Fields to be displayed can be selected.At User
command can be implemented using this function.