Beruflich Dokumente
Kultur Dokumente
Find Implemented APPL_LOG_DELETE With this function module you delete logs in the database according to specified
Enhancements (1) selection conditions
Implicit Enhancement (1) APPL_LOG_DISPLAY_INTERN 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.
InfoType (2)
Interactive/Drill down APPL_LOG_INIT This function module checks whether the specified object or sub-object exists and deletes
Report (1) all existing associated data in local memory.
Pop-up Help (1)
APPL_LOG_READ_DB With this function module you read the log data in the database for an object or sub-
Pricing (1)
object according to specified selection conditions.
READ_TEXT (1)
APPL_LOG_READ_INTERN With this function module you read all log data whose log class has at least the
SAP Factory Calander (1)
specified value, from local memory, for the specified object or sub-object.
SAP Icons on report (1)
Simple IDoc Program (1) APPL_LOG_SET_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
User Exit/BADI (3) memory or are output on the screen.
APPL_LOG_WRITE_DB 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.
APPL_LOG_WRITE_HEADER With this function module, you write the log header data in local memory.
APPL_LOG_WRITE_LOG_PARAMETERS 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.
APPL_LOG_WRITE_MESSAGE_PARAMS 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.
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 1 of 20
Find Implemented APPL_LOG_DELETE With this function module you delete logs in the database according to
Enhancements (1) selection conditions
Implicit Enhancement (1) APPL_LOG_DISPLAY_INTERN With this function module you can analyze logs in local mem
you have only collected log records at runtime and do not want to write to the
InfoType (2)
Interactive/Drill down APPL_LOG_INIT This function module checks whether the specified object or sub
Report (1) all existing associated data in local memory.
Pop-up Help (1)
APPL_LOG_READ_DB With this function module you read the log data in the database for a
Pricing (1)
object according to specified selection conditions.
READ_TEXT (1)
APPL_LOG_READ_INTERN With this function module you read all log data whose log class
SAP Factory Calander (1)
specified value, from local memory, for the specified object or sub-object.
SAP Icons on report (1)
Simple IDoc Program (1) APPL_LOG_SET_OBJECT With this function module, you create a new object or sub
memory. With a flag you can control whether the APPL_LOG_WRITE_... messages are
User Exit/BADI (3) memory or are output on the screen.
APPL_LOG_WRITE_DB With this function module you write all data for the specified object
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 2 of 20
local memory to the database. If the log for the object or sub-object in question is new, th
returned to the calling program.
APPL_LOG_WRITE_HEADER With this function module, you write the log header data in loc
BLOG ARCHIVE APPL_LOG_WRITE_MESSAGES With this function module you write one or more messages
parameters, in local memory.
▼ 2011 (33)
▼ July (33)
APPL_LOG_WRITE_SINGLE_MESSAGE With this function module you write a single messag
Classes parameters, in local memory. If no header entry has yet been written for the object or sub
SAP Icons on created. If you do not specify an object or sub-object with the call, the most recently used
report
ARFC_GET_TID will return the IP address of the terminal in hex.
SAP Factory
Calander
BAL_CNTL_CREATE Create Control for log display
Code for
READ_TEXT BAL_CNTL_FREE Release Control
Create Directory
BAL_DB_SAVE Save logs in the database
Check for holiday
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 3 of 20
ABAP
BAL_DSP_PROFILE_POPUP_GET Display without tree (popup)
Programming: HR -
ABAP
BAL_DSP_PROFILE_SINGLE_LOG_GET Standard profile (SLG1) for one log
Method 1 : Find
User Exit & BADI BAL_DSP_PROFILE_STANDARD_GET Standard profile (SLG1) for a lot of logs
HR ABAP ppt
BAL_GLB_AUTHORIZATION_GET Assign authorization
Info Type
Vinay
BAL_GLB_SEARCH_MSG Find messages in memory
Singh
BAL_LOG_CREATE Create log with header data
anil
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 4 of 20
Method 3 : Find
BP_JOBLOG_READ Fetch job log executions
User Exit & BADI
Method 2 : Find CHANGEDOCUMENT_READ_HEADERS Get the change document header for a sales docum
User Exit results in an internal table.
SAP Online Help in
PDFs( T-Z )
Example:
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 5 of 20
ABAP Performance
LOOP AT lt_cdhdr WHERE udate IN s_aedat.
Tuning
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
ABAP EXPORTING
Programming: HR - changenumber = lt_cdhdr-changenr
ABAP TABLES
Method 1 : Find editpos = lt_editpos.
User Exit & BADI
LOOP AT lt_editpos WHERE fname = 'LOEKZ'
HR ABAP ppt AND f_new = 'L'.
Info Type p_desc = text-r01. " Cancel Contract
ENDLOOP.
What is Pricing?
ENDLOOP.
ABAP Tips and links
ABAP Reports
CHANGEDOCUMENT_READ_POSITIONS Get the details of a change document, and store th
Company Code table. This will tell you whether a field was changed, deleted, or updated.
CLOI_PUT_SIGN_IN_FRONT Move the negative sign from the left hand side of a number, t
side of the number. Note that The result will be left justified (like all character fields), not
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 6 of 20
CLPB_IMPORT Import a Text Table from the Clipboard (on presentation server)
CONVERSION_EXIT_ALPHA_INPUT converts any number into a string fill with zeroes, with
the extreme right
Example:
input = 123
output = 0000000000000...000000000000123
Example:
input = 00000000000123
output = 123
Example:
DATE_CHECK_PLAUSIBILITY Check to see if a date is in a valid format for SAP. Works wel
dates being passed in from other systems.
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 7 of 20
DATE_COMPUTE_DAY Returns a number indicating what day of the week the date falls on.
returned as a 1, Tuesday as 2, etc.
DAY_ATTRIBUTES_GET Return useful information about a day. Will tell you the day of the
(Tuesday), the day of the week (2 would be Tuedsay), whether the day is a holiday, and m
Francois Henrotte)
DYNP_VALUES_READ Read the values from a dynpro. This function can be used to read th
report's selection screen too (Another example).
Example:
Please note that you should not use SY-REPID to pass your report name to the function. T
REPID will change as it is being passed to the function module, and will no longer hold the
calling report.
EPS_GET_FILE_ATTRIBUTES Pass in a filename and a path, and will return attributes for th
F4_DATE displays a calendar in a popup window and allows user to choose a date, or it can
read only.
Example:
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 8 of 20
data:
begin of t_values occurs 2,
value like kna1-begru,
end of t_values,
t_values = 'PAR*'.
append t_values.
t_values = 'UGG'.
append t_values.
if sy-subrc = 0.
read table t_return index 1.
o_begru-low = t_return-fieldval.
if o_begru-low = 'PAR*'.
o_begru-option = 'CP'.
else.
o_begru-option = 'EQ'.
endif.
o_begru-sign = 'I'.
F4IF_SHLP_EXIT_EXAMPLE documents the different reasons to use a search help exit, and
done.
F4IP_INT_TABLE_VALUE_REQUEST This function does not exist in 4.6 and above. Use
F4IF_INT_TABLE_VALUE_REQUEST instead.
FILENAME_GET popup to get a filename from a user, returns blank filename if user selects
FORMAT_MESSAGE Takes a message id and number, and puts it into a variable. Works be
WRITE_MESSAGE, since some messages use $ as a place holder, and WRITE_MESSAGE do
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 9 of 20
FTP_DISCONNECT Close the connection (and log off) the FTP server
FU CSAP_MAT_BOM_READ You can use this function module to display simple material BO
display BOM groups (for example, all variants of a variant BOM). as in transaction CS03. C
restrictions: You cannot display long texts. You cannot display sub-items. You cannot displ
data of BOM items for batches. You can only display one alternative or variant. You cannot
alternative for module CSAP_MAT_BOM_READ, so you always see alternative 01. The follo
came from a posting on the SAP-R3-L mailing list.
Example:
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 10 of 20
valid_from = '20.12.1996'
* valid_to
importing
fl_warning = flg_warning
tables
t_stko = tstk2
t_stpo = tstp2
t_dep_data = tdep_data
t_dep_descr = tdep_descr
t_dep_source = tdep_source
t_dep_order = tdep_order
t_dep_doc = tdep_doc
exceptions
error = 1.
Function Group GRAP is now obsolete. SAP recommends using functions in function group
Below is an overview of the changes.
Example:
GET_GLOBAL_SYMBOLS Returns a list of all tables, select options, texts, etc for a program
the text definitions for the selection screen
GET_JOB_RUNTIME_INFO Get the current job number from a program. Also returns other
the current job.
GUI_DOWNLOAD Replaces WS_DOWNLOAD. Download table from the app server to prese
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 11 of 20
GUI_UPLOAD Replaces WS_UPLOAD. Upoad file from presentation server to the app serve
HELP_START Display help for a field. Useful for doing AT SELECTION SCREEN ON VALUE R
fields that do not provide F4 help at the DDIC level.
Example:
tables: t001w.
ltab_fields-tabname = 'T001W'.
ltab_fields-fieldname = 'NAME1'.
ltab_fields-selectflag = space.
APPEND ltab_fields.
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 12 of 20
valuetab = ltab_values
EXCEPTIONS
field_not_in_ddic = 01
more_then_one_selectfield = 02
no_selectfield = 03.
Example:
if sy-subrc = 0 and
lc_holiday_found = 'X'.
write: / ld_date, 'is a holiday'.
else.
write: / ld_date, 'is not a holiday, or there was an error calling the function'.
endif.
HOLIDAY_GET Provides a table of all the holidays based upon a Factory Calendar &/ Holida
HR_DISPLAY_BASIC_LIST is an HR function, but can be used for any data. You pass it dat
headers, and it provides a table control with the ability to manipulate the data, and send it
Also see the additional documentation here.
HR_GET_LEAVE_DATA Get all leave information (includes leave entitlement, used holidays
holidays)
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 13 of 20
HR_PAYROLL_PERIODS_GET Get the payroll period for a particular date. (provided by Fran
Example:
W_BEGDA = '20010101'.
W_PERNR = '00000001'.
HR_TIME_RESULTS_GET Get the time results for a payroll period. (provided by Francois H
Example:
W_BEGDA = '20010101'.
W_PERNR = '00000001'.
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 14 of 20
get_begda = w_begda
TABLES
get_periods = it_t549q
EXCEPTIONS
no_period_found = 1
no_valid_permo = 2.
CHECK sy-subrc = 0.
LIST_FROM_MEMORY Retrieves the output of a report from memory when the report was
SUBMIT... EXPORTING LIST TO MEMORY. See also WRITE_LIST.
LIST_TO_ASCII convert an ABAP report (displayed on screen) from OTF to ASCII format
MBEW_EXTEND Get the stock position for the previous month. This displays the same info
MM03.
Example:
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 15 of 20
write: / new_date.
OTF_CONVERT wraps several other function modules. Will convert OTF to ASCII or
POPUP_TO_CONFIRM_STEP Create a dialog box in which you make a question whether the
perform the step.
POPUP_TO_DECIDE_WITH_MESSAGE Create a dialog box in which you inform the user abo
decision point via a diagnosis text.
POPUP_TO_DISPLAY_TEXT Create a dialog box in which you display a two line message
POPUP_WITH_TABLE_DISPLAY Provide a display of a table for user to select one, with the
line returned when selected.
PRICING Return pricing conditions in an internal table. Use structure TCOMK for paramete
and structure TCOMP for parameter COMM_ITEM_1, and set CALCULATION_TYPE to B. The
conditions will be returned in XOMV. You must fill TCOMP, and TCOMK with the appropriate
callling the function in order for it to work.
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 16 of 20
RH_START_EXCEL_WITH_DATA starts Excel with the contents of an internal table. This fun
in the desktop registry. It also uses a local PC working directory to save the file (that's wh
for data path flag does). Very transparent to user!
Example:
F4 = 'X'
PLVAR = '01'
OTYPE = 'O '
F4 = 'X'
PLVAR = '01'
OTYPE = 'P '
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 17 of 20
RZL_READ_DIR If the server name is left blank, it reads a directory from local presentation
otherwise it reads the directory of the remote server
RZL_READ_FILE Read a file from the presentation server if no server name is given, or rea
remote server. Very useful to avoid authority checks that occur doing an OPEN DATASET.
using a SAP C program to read the data.
RZL_WRITE_FILE_LOCAL Saves table to the presentation server (not PC). Does not use OP
it does not suffer from authority checks!
SAPGUI_PROGRESS_INDICATOR Display a progress bar on the SAP GUI, and give the use
what is happening
SCROLLING_IN_TABLE If you are coding a module pool and using a table control, you can
SCROLLING_IN_TABLE to handle any scrolling. (provided by Paul Kjaer)
SO_SPOOL_READ Fetch printer spool according to the spool number informed. See also
RSPO_RETURN_ABAP_SPOOLJOB
SXPG_CALL_SYSTEM you can check the user's authorization for the specified command an
command. The command runs on the host system on which the function module is execute
module is RFC capable. It can therefore be run on the host system at which a
on another designated host system at which an R/3 server is active.
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 18 of 20
TH_USER_INFO Give information about the current user (sessions, workstation logged in f
When a value other than * or *.* is used for the filter, you will not get any directories, unl
your wildcard filter. For example, if you entered *.png, then only files and directories that
returned by the function.
Example:
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 19 of 20
cntl_error = 1
others = 2.
UPLOAD_FILES Will load one or more files from app or presentation server
WEEK_GET_FIRST_DAY For a given week (YYYYMM format), this function returns the date
that week.
WRITE_LIST Useful for writing out the list contents that result from the function
WS_MSG Create a dialog box in which you display an one line message
WS_UPLOAD Load Files from the Presentation Server to Internal ABAP Tables
WWW_LIST_TO_HTML After running a report, call this function to convert the list output to
Posted by anil at 10:04 PM 0 comments
Email This BlogThis! Share to Twitter Share to Facebook
Recommend this on Google
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012
SAP ABAP ONLINE: ABAP Functions Page 20 of 20
http://www.sapabaponline.com/search/label/ABAP%20Functions 01.06.2012