(1) Application Log Maintenance
BAL_LOG_CREATE Open a log
BAL_LOG_MSG_ADD Put a message in the log
BAL_DSP_LOG_DISPLAY Display log
(2) Batch Jobs
BP_JOBVARIANT_SCHEDULE – Schedule a simple background job from an ABAP program. This function module can be used to maintain only one step jobs.
BP_EVENT_RAISE – Raises an event for triggering background job. These events are not related to the ‘Workflow’ events.
BP_JOB_READ – Reads the status of a batch job
JOB_OPEN, JOB_SUBMIT,JOB_CLOSE – Full control job scheduling via an ABAP program
GET_PRINT_PARAMETERS –Prepare print parameters for spool output. This can work in dialog mode where user enters the parameters or in background mode where all the details are supplied as parameters to the function module.
(3) Business Warehouse
RSAX_BIW_GET_DATA_SIMPLE – Template for FM used to get data for a DataSource that was created using generic data extraction (transaction RSO2).
Calender
DATE_COMPUTE_DAY -This function module returns the day of the week for the date passed.
Calender
DATE_GET_WEEK
This function module returns the week for the date passed.
(4)Calender
WEEK_GET_FIRST_DAY
This function module returns the first day of the week passed. (This is always a Monday, regardless of whether it is a working day or a holiday.)
FACTORYDATE_CONVERT_TO_DATE
This function module returns the calendar date for the factory date and the factory calendar passed.
DATE_CONVERT_TO_FACTORYDATE
This function module returns the factory date for the date and factory calendar passed. You can specify with a parameter whether the next or the previous working day is returned if the day is not a working day.
RP_CALC_DATE_IN_INTERVAL
Add/subtract years/months/days from a date
SD_DATETIME_DIFFERENCE
Give the difference in Days and Time for 2 dates
MONTH_PLUS_DETERMINE
Add or subtract months from a date. To subtract a month, enter a negative value for the ‘months’ parameter.
DATE_CHECK_PLAUSIBILITY
Check to see if a date is in a valid format for SAP. Works well when validating dates being passed in from other systems.
DATE_CONV_EXT_TO_INT
Conversion of dates to SAP internal format e.g. ‘28.03.2000’ -> 20000328
DATUMSAUFBEREITUNG
Format date as the user settings
MONTH_NAMES_GET
It returns all the month and names in repective language.
DATE_IN_FUTURE
Calculate a date N days in the future.
95) Change documents
CHANGEDOCUMENT_READ_HEADERS
This function module reads the change document numbers, with the associated header information, for a particular change document object. The search can be restricted by various parameters (changed by, date, time).You can use this function module in the database and in the archive.
CHANGEDOCUMENT_READ_POSITIONS
This function module reads the change document items for a given change document object number, and formats the old and new values according to their type.You can use this function module in the database and in the archive.
PLANNED_CHANGES_READ_HEADERS
With this function module, you find the document headers of planned changes for a given change document object. The search can be restricted by various parameters (changed by, date, time, change number).
PLANNED_CHANGES_READ_POSITIONS
This function module reads the change document items for a given change document number, and formats the old and new values according to their type.
CHANGEDOCUMENT_DELETE
This function module deletes the change documents for a given change document object. The deletion can be restricted to a given change document number and/or a change date.An authorization check is made before the deletion.
PLANNED_CHANGES_DELETE
With this function module, you delete planned changes. The deletion can be restricted to a given change document object, a change document number, or specified change numbers.
(6) File
WS_UPLOAD/ WS_DOWNLOAD
Upload or download a file from the frontend PC into anABAP program; the filename is passed as a parameter to the module, does not prompt for the file name
UPLOAD/DOWNLOAD
Same as WS_UPLOAD/DOWNLOAD but does prompt for the file name from within the function module
FILE_GET_NAME
Used to get the physical file name from the logical file name.
TMP_GUI_GET_FILE_EXIST
Checks if the file exists or not
WS_FILENAME_GET
Gives a popup to the user to choose the file name from the frontend machine(valid upto 4.6c)
CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
Gives a popup to the user to choose the file name from the frontend machine(should be used in 4.7)
FTP_CONNECT
Connects to the Destination where you need to FTP. This requires user, password, host and path.
FTP_COMMAND
This will actually FTP the files from app server to destination. This takes the UNIX command as input (eg. put l_server_path l_ftp_path)
FTP_DISCONNECT
Disconnects connection to destination.
WS_FILE_COPY
Copy files on the frontend machine
(7) Idoc
MASTER_IDOC_DISTRIBUTE
This outbound processing path must be selected for R/3 components which are not linked to the Message Control module. Otherwise it is usually used in ALE scenarios, in which, for example, master data is to be distributed among different R/3 Systems. The function modules checks the control record data passed to it and calls COMMUNICATION_IDOC_CREATE which creates the actual communication Idocs
ALE_MODEL_DETERMINE_IF_TO_SEND
Checks if an Idoc is to be created by reading the distribution model
UNIT_OF_MEASURE_SAP_TO_ISO
Convert unit of measures to ISO codes if an Idoc is being sent to a non SAP application
CURRENCY_CODE_SAP_TO_ISO
Convert currencies to ISO codes if an Idoc is being sent to a non SAP application
IDOC_SERIALIZATION_CHECK
To check the time stamps in the serialization field of the IDoc header.
IDOC_SERIAL_POST
Updates the serialization table.
(8) Messaging
SAPGUI_PROGRESS_INDICATOR
Shows a status text or percentage completion of the program to the user
MESSAGE_PREPARE
Prepares a message from the message id , numbers and message variables
SO_NEW_DOCUMENT_ATT_SEND_API1
This function module enables the sending of a new mail, including any attachments. The document and attachments are placed in common tables, and are created during the send process and can also be placed in the sender’s outbox.
(9) Miscellaneous
POPUP_TO_CONFIRM
User gets 3 lines of text and 3 options to choose from (YES/NO/CANCEL).
POPUP_TO_DECIDE_WITH_MESSAGE
User gets 6 lines of message to be displayed on the screen with 3 option button same as above
POPUP_TO_GET_ONE_VALUE
using this function module user can pass on any string value to the program with 3 lines of text and 2 options.
POPUP_TO_GET_VALUE
This function can be used in a program to return some value to user through a popup on the screen.
POPUP_TO_CONFIRM_STEP
This function gives 2 lines of text and 2 option buttons for confirmation.
POPUP_TO_CONFIRM_DATA_LOSS
Can be used to warn user of data loss before exiting a transaction without saving