USEFUL FUNCTION MODULES
ABAP_DOCU_DOWNLOAD - Download ABAP documentation in HTML format.
ARFC_GET_TID - will return the IP address of the terminal
in hex.
BAL_* - All function modules used for SAP's
application logging can be found here.
CONVERSION_EXIT_ALPHA_INPUT - converts any number into a string fill
with zeroes-right
example:
input = 123
output = 0000000000000...000000000000123
CONVERSION_EXIT_ALPHA_OUTPUT -
converts any number with zeroes-right into a simple integer
example:
input = 00000000000123
output = 123
example:
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
IMPORTING
BIN_FILESIZE = FILE_LEN
TABLES
OTF = OTFDATA
LINES = PDFDATA
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
DATE_GET_WEEK - will
return the week that a date is in.
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.
DOWNLOAD - download a file to the presentation
server (PC)
F4IF_SHLP_EXIT_EXAMPLE - documents the different reasons to use a
search help exit, and shows how it is done.
FILENAME_GET - popup to get a filename from a user,
returns blank filename if user selects cancel
FTP_CONNECT - Open a connection (and log in) to an FTP
server
FTP_COMMAND - Execute a command on the FTP server
FTP_DISCONNECT - Close the connection (and log off) the FTP
server
FORMAT_MESSAGE - 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.
GUI_CREATE_DIRECTORY - Create a directory on the presentation
server
GUI_DELETE_FILE - Replaces WS_FILE_DELETE.
Delete a file on the presentation server
GUI_DOWNLOAD - Replaces WS_DOWNLOAD. Download table from the app
server to presentation server
HELP_START - 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.
HOLIDAY_GET - Provides a table of all the holidays
based upon a Factory Calendar &/ Holiday Calendar.
HR_DISPLAY_BASIC_LIST - 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.
HR_GET_LEAVE_DATA - Get all leave information (includes leave
entitlement, used holidays/paid out holidays)
INIT_TEXT - To load long text into SAP
K_WERKS_OF_BUKRS_FIND - Return a list of all plants for a given
company code.
POPUP_TO_CONFIRM_STEP - Create a dialog box in which you make a
question whether the user wishes to perform the step.
POPUP_TO_CONFIRM_WITH_MESSAGE - Create a dialog box in which you inform
the user about a specific decision point during an action.
POPUP_TO_CONFIRM_WITH_VALUE - Create a dialog box in which you make a
question whether the user wishes to perform a processing step with a particular
object.
POPUP_TO_DECIDE - Provide user with several choices as
radio buttons
POPUP_TO_DECIDE_WITH_MESSAGE -
Create a dialog box in which you inform the user about a specific decision
point via a diagnosis text.
POPUP_TO_DISPLAY_TEXT - Create a dialog box in which you display
a two-line message.
POPUP_TO_SELECT_MONTH - Popup to choose a month
POPUP_WITH_TABLE_DISPLAY - Provide a display of a table for user to
select one, with the value of the table line returned when selected.
PRICING - 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.
PROFILE_GET - Read an Entry in an INI File on the frontend
PROFILE_SET - Write an Entry in an INI File on the
frontend
READ_TEXT - To load long text into SAP
SAPGUI_PROGRESS_INDICATOR - Display a progress bar on the SAP GUI, and
give the user some idea of what is happening
SAVE_TEXT - To load long text into SAP
SD_DATETIME_DIFFERENCE - Give the difference in Days and Time for
2 dates
SO_NEW_DOCUMENT_ATT_SEND_API1 - Send a document as part of an email. The
documentation is better than normal for this function, so please read it.
No comments:
Post a Comment