ABAP Basic FM
ABAP Basic FM
SAP
ABAPer
Important Function
Modules
Sonu Jangir Abap Developer
1
PREPARED BY SONU JANGIR +91 9729751248
[email protected]
THE BEST RUN SAP
All ABAPer developer, mastering key function modules
is crucial for e icient programming and e ective
solution design. Below are some essential function
modules that every ABAPer should be familiar with,
categorized for di erent purposes:
1. General Purpose Function Modules
RFC_PING: Verifies the connection to an SAP system
(Remote Function Call).
DATE_GET_INFO: Returns information about a date
(e.g., weekday, month, year).
STRING_SPLIT: Splits a string into parts based on a
delimiter.
SYST: Provides system information such as current
date, time, and system status.
2. Database Interaction
SELECT_SINGLE: Performs a single record selection
from a database table (often used in internal
processing).
BAPI_TRANSACTION_COMMIT: Commits a
transaction to the database after successful
execution of business logic.
BAPI_TRANSACTION_ROLLBACK: Rolls back the
current transaction in case of an error.
FETCH: Allows fetching data into an internal table.
2
PREPARED BY SONU JANGIR +91 9729751248
[email protected]
THE BEST RUN SAP
UPDATE / INSERT / DELETE: These are not function
modules, but ABAP provides optimized standard ways
for database interaction, typically using UPDATE,
INSERT, and DELETE SQL operations directly.
3. File Operations
GUI_UPLOAD: Used to upload files (e.g., Excel, CSV)
into an internal table.
GUI_DOWNLOAD: Downloads data from an internal
table into a file (e.g., for saving an Excel file).
CLOP_FILE_TRANSFER: For transferring files
between application server and presentation server.
4. Performance and Optimization
ST22: Allows ABAPers to analyze dump information
and find performance bottlenecks.
CL_ABAP_CODEPAGE: Converts strings between
di erent code pages.
ABAP_SORT: Standardized sorting of internal tables.
5. Error Handling and Logging
BAPI_TRANSACTION_ROLLBACK: Used for rolling
back transactions in case of errors.
MESSAGE: Used to handle messages (errors,
warnings, or success messages).
LOG_LOG: Writes entries to a custom log.
3
PREPARED BY SONU JANGIR +91 9729751248
[email protected]
THE BEST RUN SAP
BAL_LOG_MSG_ADD: Adds messages to SAP’s
standard application log for easier troubleshooting.
6. Date and Time Manipulation
GET_DATE: Retrieves current date and time.
DATE_CONVERSION: Converts a date from one
format to another.
DAYINWEEK: Returns the day of the week from a
given date.
7. Data Conversion
NUMBER_GET_INFO: Retrieves information about
numbers (e.g., decimal places, group separators).
CONVERSION_EXIT_ALPHA_INPUT: Converts input
data to the internal SAP format (especially for
handling key fields like material numbers).
CONVERSION_EXIT_ALPHA_OUTPUT: Converts data
from the internal SAP format to the external display
format.
8. ALV (ABAP List Viewer)
REUSE_ALV_GRID_DISPLAY: Displays a list in a grid
format with ALV functionalities like sorting, filtering,
and exporting.
REUSE_ALV_LIST_DISPLAY: Displays lists in ALV
format but without a grid.
4
PREPARED BY SONU JANGIR +91 9729751248
[email protected]
THE BEST RUN SAP
9. BAPIs (Business Application Programming
Interfaces)
BAPI_MATERIAL_GET_DETAIL: Retrieves detailed
information about a material.
BAPI_SALESORDER_CREATEFROMDAT2: Used to
create sales orders from external systems.
BAPI_GOODSMVT_CREATE: For goods movement
creation in inventory management.
BAPI_PO_CREATE1: Creates purchase orders in the
SAP system.
10. Communication (RFC)
RFC_PING: Pings a remote system for checking
connectivity.
RFC_READ_TABLE: Reads table contents remotely
via RFC, often used for fetching data from remote
systems.
11. Business Workflow
SWW_WI_CREATE_VIA_EVENT: Creates a work item
based on an event trigger.
SWW_WI_EXECUTE: Executes a work item, usually
part of SAP workflow processing.
SWW_WI_AGAIN: Allows re-processing of a work
item.
12. User and Authorization Management
5
PREPARED BY SONU JANGIR +91 9729751248
[email protected]
THE BEST RUN SAP
S_USER_AUTH: Checks user authorization for a
specific action or object.
BAPI_USER_GET_DETAIL: Retrieves user details,
such as roles and groups assigned to the user.
S_USER_PROFILE: Reads user profile information,
including parameters and settings.
13. Text Handling
READ_TEXT: Retrieves the text from SAP text objects
(such as sales order texts, purchase order texts).
SAVE_TEXT: Saves text for a specific object in the SAP
system.
TEXT_POOL_INSERT: Inserts text into the text pool for
long text management.
14. SAP Gateway and OData
SICF (service functions): Functions for configuring
and managing the SAP Gateway.
OData function modules: For integration between
SAP and external applications through OData
services (used heavily in SAP Fiori applications).
15. SAPscript and Smart Forms
OPEN_FORM: Opens a Smart Form or SAPscript for
printing.
WRITE_FORM: Writes data to the form.
6
PREPARED BY SONU JANGIR +91 9729751248
[email protected]
THE BEST RUN SAP
CLOSE_FORM: Closes the form after printing is
complete.
7
PREPARED BY SONU JANGIR +91 9729751248
[email protected]