You are on page 1of 64

Workstation:

Function group name Function group Function module name descripti on Function module Description description

DOWNLOAD

WS_DOWNLOAD

UPLOAD

WS_UPLOAD

WS_FILENAME_GET

WS_EXECUTE Calling up graphics / File transfer WS_MSG

GRAP

WS_EXCEL

Store Calls WS_QUERY, Internal WS_FILENAME_G Table with ET, Dialog as WS_DOWNLOAD. File on the Dialog like se38 Presentation "Download..." Server Save Internal Table as File on the Presentation Server Load Data from the Calls WS_QUERY, Presentation WS_FILENAME_G Server into ET, WS_UPLOAD. an Internal Dialog like se38 Table / "Upload..." Dialog Load File from the Presentation Server into Internal Table Browse and get file Call file name of the chosen Selector type Execute an External Program on the Presentation Server Issue the Note. Only I, E and Presentation A types. Does not Server style affect events flow message logic. Download internal table into file and start Excel for it [and upload changed file into the internal table]. See also FTBU_START_EX

Functional Group GRAP is obsolete in SAP 4.6. Use instead the SFES Function Group (Function Modules like GUI_*). IBIP: F4 for Batch filename / Uses current dynpro Input/Cal Filemanager value, calls IBIP F4_FILENAME l support to WS_FILENAME_G transactio locate file in ET n: PM a directory Browse and get file name of the chosen Diverse Call file KDUT KD_GET_FILENAME_ON_F4 type. Allows also utilities Selector File Mask (e.g. C:\Work\abc*.*)

SFES

TYPE= -1(SAP dir) -2(SAP sys dir) 1(computer name) 2(Win dir) 3(Sys Delivers dir) 4(tmp dir) Information 5(user name) 6(Win GUI_GET_DESKTOP_INFO About the OS) 7(Win build Desktop No) 8(Win ver) (client) 9(SAP GUI program name) 10(SAP GUI program path) 11(SAP current dir) 12(desktop dir) Version, language, GUI_GET_FILE_INFO single-character flag, size Like previous, but GUI_GET_FILELIST_INFO for list of files GUI_HAS_OBJECTS OBJECT_MODEL= ACTX | JBEAN | GUI_HAS_ACTIVEX OLE | SAP | HTML GUI_HAS_JAVABEANS Returns 'X' if model GUI_IS_ITS supported. Calls GUI_HAS_OBJEC TS with OBJECT_MODEL= ACTX Calls SAPGUI GUI_HAS_OBJEC object Frontend TS with models services OBJECT_MODEL= GUI_GET_OBJECT_MODEL JBEAN S Calls GUI_HAS_OBJEC TS with OBJECT_MODEL= HTML (ITS Internet Transaction Server) Returns table within all models supported GUI_DELETE_FILE GUI_CREATE_DIRECTORY

Business BDS_TOO Documen BDS_GET_GUI_TYPE LS t Service Tools TMP_GUI_CREATE_DIRECT ORY TMP_GUI_REMOVE_DIREC TORY TMP_GUI_DELETE_FILE TMP_GUI_GET_FILE_EXIST TMP_GUI_READ_DIRECTO RY TMP_GUI_BROWSE_FOR_F OLDER TMP_GUI_FILE_OPEN_DIAL KEN: OG Info SelfSI72 Object TMP_GUI_DIRECTORY_LIS explanatory editor names T_FILES link TMP_GUI_GET_SYSTEMDIR TMP_GUI_GET_COMPUTER NAME

Returns WIN_GUI | WEB_GUI | JAVA_GUI No-flush and flush allowed

TMP_GUI_GET_TEMPPATH

File or directory. For file returns also filelength. Imports: directory name, extension (space for all). Returns list of file names. Imports: window title, initial folder. Returns folder name. Multiselection allowed Imports: directory (ended with '\'), filter (default '*.*'). Returns: list of files, list of subdirectories.

C0PC

PC_CHECK_DRIVE PC_CHECK_PATH PC_CHECK_FILENAME PC_CHECK_EXTENSION PC interface PC_CHECK_PATH_WITH_D SelfRIVE (file explanatory PC_CHECK_FILENAME_WI names name checks) TH_EXT PC_BUILD_COMPLETE_FIL ENAME PC_SPLIT_COMPLETE_FIL ENAME

Checks for correctness only, not existence (can be checked for DOS also)

Application Server:
Functio n group name Function group Function module name descriptio n Repository Switch SUBST_GET_FILE_LIST Tools Function module description Description

Return table with file list for the SAUS given directory (pattern allowed) Popup to select one file from the given application server directory (pattern allowed). (Can be used also for selecting file on presentation server: calls File DX_FIL F4_DXFILENAME_TOPRECUR WS_FILENAME_GET) Manageme E SION Parameters: nt I_LOCATION_FLAG={A|P| space}; if I_LOCATION_FLAG is blank then popup to choose Appl./Present.; if I_SERVER='?' then popup to select appl.server.

TH_SYSTEMWIDE_WPINFO

Returns table with Work Processes Inf.

THFB

STXU

TH_SYSTEMWIDE_USER_LIS Returns table with Users Inf. T Task TH_REMOTE_USER_LIST Returns table with Users on the handler given Application server. TH_USER_LIST functions Returns list of application TH_SERVER_LIST servers. Popup to select one of available TH_SELECT_SERVER application servers. Returns: - System Codepage (static sys cp from app server's profile SAPscript SYSTEM_CODEPAGE parameter) utilities - Dynamic Codepage (dynamically changing sys cp due to SET LOCALE)

Date and Time:


Funct Functio ion n group group Function module name descrip name tion Functio n module Description descrip tion

Returns Calculates and returns factory factory calendar date for a date (if DATE_CONVERT_TO_FA calenda CorrectOption = '+'); CTORYDATE r date Checks if the date is work day (if for a CorrectOption = '-'). date Returns Import : YYYYMMDD; Export : week in DATE_GET_WEEK YYYYNN, where NN is # of which a week. date lies Calenda Calenda r SCAL r functio functio ns n: Import week in format YYYYNN WEEK_GET_FIRST_DAY Return where NN is # of week. first day for a week Returns day of Import : YYYYMMDD; Export : DATE_COMPUTE_DAY week 1-Monday, ... for a date Time Sheet: CAPP DAY_IN_WEEK Approv al Import : YYYYMMDD; Export : GET_WEEK_INFO_BASE YYYYNN - week # for the date, Monday D_ON_DATE and Sunday of the week. Import : YYYYNN (week #); Export : LAST_WEEK YYYYNN - previous week #, Monday and C Calcula Sunday of the previous week. ADA te Date Import : YYYYNN (week #); Export : NEXT_WEEK YYYYNN - next week #, Monday and Sunday of the next week. Import : YYYYMMDD; Export : weekday DATE_TO_DAY (as word).

DATE_GET_FIRST_DAY_ OF_WEEK Date format ZDAT convers ion

CONVERT_DATE_TO_AL PHA_NUMERIC

CONVERT_DATE_TO_EX Date: TERNAL SCA1 Conver CONVERT_DATE_TO_IN sion TERNAL

Returns week Import : YYYYMMDD; Export : within YYYYMMDD - Monday in the which a week. date lies Convert s internal Import : YYYYMMDD, date to Language; Export : DD Mon YY. DD Mon YY Convert s Import/Export : YYYYMMDD; internal Export/Import : user specific date date to string. Can be for import either user- without or within delimiters, but specific for export only without delimiters. format See field DATFM in the USR01 string table. Can be set up via System -> and User Profile -> User Defaults or vice using su50. versa.

Import : country specific date| period string (External Date), External or Internal Periods; Export : YYYYMMDD (Internal Date - concrete date or first day of Input period), Internal Period; convers Int.Perio Ext.Peri Int.Date| PERIOD_AND_DATE_CO ion for d od Period, e.g. NVERT_INPUT a date MM/DD/YYY with 1 D Y period. 2 W WW/YYYY 3 M MM/YYYY 4 P ? 5 K ? Date V convers DAT ion Import : YYYYMMDD (Internal Date), Language, Country, Internal Period; Export : country specific date| period string (External Date), Conver External Period, External Period sion of Text. a date Int.Pe Ext.Pe Ext.Date, Ext.Per. with riod riod e.g. Text PERIOD_AND_DATE_CO period NVERT_OUTPUT MM/DD/ specific 1 D YYYY ation WW/YY with 2 W Week YY output. MM/YY 3 M Month YY 4 P ? space 5 K ? space Calndr Import: date in current external format for user; number of days. Export: calculated date in future in external format mm/dd/yyyy

Test tool Functio BCAT DATE_IN_FUTURE n module s

RS_VARI_V_1_ACTUAL_ MONTH RS_VARI_V_1_LAST_MO Returns first day of the actual/last/next NTH month. RS_VARI_V_1_NEXT_MO NTH RS_VARI_V_ACTUAL_M Returns selection range for the actual/last ONTH month. RS_VARI_V_LAST_MONT Output: 1st line in table P_DATETAB H Returns selection range from today-a_days to today+b_days. RS_VARI_V_DAYS_UP_T Input: 1st line in P_INTRANGE O_NOW (a=P_INTRANGE-LOW, b=P_INTRANGE-HIGH); Output: 1st line in table P_DATETAB Returns selection range from todaya_work_days to today+b_work_days. Input: a=P_INTRANGE-LOW, RS_VARI_V_WDAYS_UP_ b=P_INTRANGE-HIGH (if TO_NOW P_INTRANGE-SIGN <> 'C'); Fact.Calendar Id = P_INTRANGEOPTION (if P_INTRANGE-SIGN = 'C') Output: 1st line in table P_DATETAB Returns selection range for the actual Variabl month [-a_months +b_months]. e date RS_VARI_V_MONTH_XX Input: 1st line in P_INTRANGE fields in X_YYY (a=P_INTRANGE-LOW, variants b=P_INTRANGE-HIGH); SVAV Output: 1st line in table P_DATETAB Note. RS_VARI_V_L_LAST_MO Returns last day of last month. Local NTH time for Returns selection range for the actual user RS_VARI_V_MONTH_UP_ month up to now. TO_NOW Output: 1st line in table P_DATETAB RS_VARI_V_QUARTER1X XXX Returns selection range for the Quarter of RS_VARI_V_QUARTER2X the given year. XXX Input: 1st line in P_INTRANGE RS_VARI_V_QUARTER3X (Year=P_INTRANGE-LOW); XXX Output: 1st line in table P_DATETAB RS_VARI_V_QUARTER4X XXX RS_VARI_V_TODAY Today Returns Today + P_INTRANGE-LOW

D Date ATD format

Archivi C ng CMC functio n group

Country specific Examples of output: MM/YY, date DATUMSAUFBEREITUN MM/YYYY, DD.MM, formatti G M/D/YYYY, DD/MM/YYYY, ng for WW/YY, WW/YYYY. the current user. Module to go Funny module: 03/31/2002 - 1 back CCM_GO_BACK_MONTH specifie S d number month = 02/31/2002 of months DMM_OPER can be '+', '-' or '='. if '=', then

HR-PT: HR-PT: Add or Get HR_PT_ADD_MONTH_TO subtract RPP3 levels, _DATE months rates, to a etc date

DMM_POS = 'BEG' return 1st day of the DMM_COUNT month of the same year. Use MM format (e.g. 02) otherwise you can get date like '2 /12/2002' for February

DMM_POS = 'END' returns the (DMM_COUNT month + 1), (day - 1) for the input date DMM_DATIN. Bug: try DMM_DATIN = MM/31/YYYY, DMM_COUNT = 1 .

RE instalm F RE_ADD_MONTH_TO_DA This module really can add/subtract ent VOZ TE months to/from date. paymen ts R HR-D: RP_LAST_DAY_OF_MON HR-D:

Payroll PDD German THS y FIMA DAYS_BETWEEN_TWO_ auxiliar DATES FV02 y functio MONTHS_BETWEEN_TW O_DATES ns Functio PRICING_DETERMINE_D V61A ns for ATES Pricing Real Estate financia MONTHS_BETWEEN_TW FVVI l assets O_DATES_NEW manage ment MONTH_NAMES_GET DAY_NAMES_GET FACTORY_CALENDAR_G ET Calenda HOLIDAY_CALENDAR_G r: ET Additio FACTORY_CALENDAR_A SCA5 nal TTRIBUTE_GET functio ns HOLIDAY_GET

Determi ne last day of month

Integer number Returns Days/Weeks/Months/Years between two dates (float values) Most universal FM to determine months (both integer and float values) Returns list of months (for a language) Returns list of days (for a language) Returns list of factory calendars (for a language) Returns list of holiday calendars (for a language) Returns attributes of the factory calendar Input: Factory calendar; Holiday calendar; Date range Returns: list of all holidays in the date range Input: Factory calendar; Holiday calendar; Date range Returns: list of all days with attributes in the date range

DAY_ATTRIBUTES_GET

Currency:
Functi Functio Function module name on n group Functio Description n

group descript name ion

module descript ion

Currenc y FWOS_CURRENCY_DECIM FWOS translati ALS_READ on for flows CONVERT_TO_LOCAL_CU RRENCY

Translati on of Currenc SCUR y CONVERT_TO_FOREIGN_ Amount CURRENCY s etc.

All the currency amounts are stored in SAP tables as CURR(n,2) (the same as DEC(n,2)). So before any arithmetic operation value should be adjusted using the real decimals number for the given currency (stored in TCURX). Conversion Rates by type and date are stored in TCURR (+factors). Standard type is M. Date is stored in inverted format (the most recent date has the numerically smallest value). ABAP code to convert dates: o convert date p_date into inverted-date w_date. o convert inverted-date w_date into date p_date. the only difference between CONVERT_TO_LOCA L_CURRENCY and CONVERT_TO_FORE IGN_CURRENCY seems to be the following: o Foreign currency is TCURRFCURR (From Currency) o Local Currency is TCURRTCURR (To Currency) So result will be

Both CONVERT_TO_LOCAL_CURRENCY and CONVERT_TO_FOREIGN_CURRENCY use complicated logic considering contents of the TCURX (Decimal Places in Currencies), TCURR (Exchange Rates), TCURF (Conversion Factors) and other tables, conversion rules etc. Often functions return error message if information in the tables is inconsistent or not maintained. To simple currency conversion can be used direct calculation based on the tables TCURR and TCURX. See also BAPIs:

Currency (since 4.0A) - to get currencies and decimals ExchangeRate (since 4.5A) - to get exchange rates and factors for a date 1. convert an amount into words 2. convert a number into words (CURRENCY=space) 3. set decimal point in an amount and return number of decimals for the currency (LANGUAGE=space)

F017

Convers ion of amounts SPELL_AMOUNT to words utility

Convert numbers and figures in words

Address:
Functio n group name Function group Function module name descriptio n ADDR_GET Central address manageme nt (w/o ADDR_COMM_GET dialog) Function module Description descriptio n Get address data by address number Get communication data for address number. Possible TABLE_TYPE: ADTEL, ADFAX, ADTTX, ADTLX, ADSMTP, ADRML, ADX400, ADRFC, ADPRT, ADSSF, ADURI, ADPAG

SZA0

Address see FM documentation. format Note. It's enough to ADDRESS_INTO_PRINTFO according import two RM to Post parameters: Office guidelines ADDRESS_TYPE Address SADR formatting = 1 (Firm or Organization, SAP Address) ADDRESS_SHOW_PRINTF ORM ADDRESS_NUM BER see tables:

ADRC - Addresses (central address admin.)

Units of measure (UOM):


Functi on group name Function module Description descriptio n Measurem ent unit conversio CONVERSION_FACTOR_GE n: Get T measurem ent unit conversio n factor Not for Dimensionless Units of Measure Measurem Measurem ent units: ent unit SCV0 Conversio conversio UNIT_CONVERSION_SIMPL n n by table E T006, with rounding UNIT_OF_MEASURE_SAP_T O_ISO UNIT_OF_MEASURE_ISO_T O_SAP MAME Mat. MATERIAL_UNIT_CONVER Material For Dimensionless Units Function group Function module name descriptio n

Master: Determine SION Units of Measure

CONVERSION_EXIT_CUNIT _INPUT CONVERSION_EXIT_CUNIT _OUTPUT CONVERSION_EXIT_LUNIT _INPUT Measurem CONVERSION_EXIT_LUNIT ent units: _OUTPUT SCVU Conversio n, F4 help UNIT_OF_MEASUREMENT_ HELP

quantity of Measure (Each, Piece, conversio Box etc.) conversion n from depends on the given Base Unit Material (see table of MARM). For other Units Measure of Measure (Length, to Weigth etc.) conversion Alternativ can be calculated from the e Unit of T006 table or via Measure CONVERSION_FACTO and vice R_GET. versa. Conversion exit for commercial (3char) measurement unit INPUT Conversion exit for commercial (3char) measurement unit OUTPUT Conversion exit for technical (6char) measurement unit INPUT Conversion exit for technical (6char) measurement unit OUTPUT Input help Allows to browse/select for an internal/external UOM measurem from commercial(3ent units char)/technical(6-char) of a UOMs, possible with predefined predefined dimension (see dimension FM documentation). (F4 help)

BDC:
Function Function Function group group Function module name module description name description BDC_OPEN_GROUP SBDC Batch input BDC_CLOSE_GROUP BDC_INSERT Description Open batch input session Close batch input session Add data to batch input session

Popup Windows:
Functi Functio on n group Function module name group descript name ion Function module description Description Displays an internal table and returns index of chosen line. Good also for F4 (on valuerequest) function.

Global POPUP_WITH_TABLE_DIS Popup to display internal KYSY function PLAY table data s

HELP_VALUES_GET

Help function SHL3 s for external use

HELP_VALUES_GET_NO_D D_NAME

TRANSFER_NAMES_TO_FI ELDS

F4IF_INT_TABLE_VALUE_ F4 REQUEST interface module SDHI for external F4IF_FIELD_VALUE_REQU appl. EST

Does the same as default F4 (on valuerequest) function. Can be used, for example, if Popup to display default F4 selected help values for a table field value should be used for immediate update another screen fields. Example. Standard popup to display F4 help values for a table field as internal table with additional columns (all fields should be active Data Dictionary table fields). Example Allow selection for each column. (obsolete since 4.0) Prepare formatted internal table to use as parameter of HELP_VALUES_GET_NO _DD_NAME. Should be F4 help also returning the used as value to be displayed in standard internal table since 4.0. Example Standard F4 help for a F4 help for fields that are Data only known at runtime Dictionary help

Dialog box for SPO1 save prompts

General SHI5 Functio ns

Returns 'J' Popup a question (two lines POPUP_TO_CONFIRM_STE for Yes, 'N' of text) with buttons Yes, No P for No, 'A' [,Cancel] for Cancel. Popup a diagnostic message Returns 'J' (two lines of text) and a POPUP_TO_CONFIRM_WI for Yes, 'N' question (two lines of text) TH_MESSAGE for No, 'A' with buttons Yes, No for Cancel. [,Cancel] Returns '1' Popup a question with two and '2' for POPUP_TO_CONFIRM customized buttons (e.g. 1st and 2nd Yes, No) and [Cancel] buttons, 'A' for Cancel. Popup a 'Data will be lost' POPUP_TO_CONFIRM_LOS and question (two lines of Returns 'J' S_OF_DATA text) with buttons Yes and or 'N'. No Calls POPUP_TO_CONFIRM_DAT POPUP_TO_CONFIRM_S A_LOSS TEP with 'Changed data will be lost. Save?' Returns Answer='J'( Yes) and 'A'(Cancel).

Reposit ory Info System Popup a question (two lines SEUO POPUP_TO_DECIDE_INFO of text). backgro und Popup a question (three lines of text) with two customized buttons and [Cancel]

Returns '1' and '2' for POPUP_TO_DECIDE 1st and 2nd buttons, 'A' Dialog for Cancel. box for SPO2 deciding Popup a message (three Returns '1' ages lines of text) and a question and '2' for POPUP_TO_DECIDE_WITH (three lines of text) with two 1st and 2nd _MESSAGE customized buttons and buttons, 'A' [Cancel] for Cancel.

Dialog box for SPO3 entering data

Dialog box for SPO4 display and request

Returns Answer=' ' Popup to request for a field POPUP_TO_GET_VALUE if the value of the given dictionary table. changed, 'C' if not. Returns Answer='J' POPUP_TO_GET_ONE_VAL Popup to request for a string if the value UE value. entered, 'A' if not. Dialog box for the display POPUP_GET_VALUES and request of values, without check Dialog box for requesting One or POPUP_GET_VALUES_DB_ values, check against the more DB CHECKED DB table/view table/view Dialog box for requesting fields values, check by user exit (Medium POPUP_GET_VALUES_USE (import parameters field label R_CHECKED FORMNAME and for data PROGRAMNAME) element Dialog box for requesting used as prompt values, call of user exits text). (import parameters Returncode FORMNAME and =' ' if the POPUP_GET_VALUES_USE PROGRAMNAME) and value R_HELP help (import parameters entered, 'A' F1_FORMNAME and if cancel. F1_PROGRAMNAME, F4_FORMNAME and Example F4_PROGRAMNAME) Dialog box for requesting POPUP_GET_VALUES_USE values and offering user R_BUTTONS pushbuttons

POPUP_TO_MODIFY_TEXT Text field has length 45. FI-LC: Currenc POPUP_CONTINUE_YES_N O y GLU2 translati on customi zing LC_POPUP_RADIO_5

Returns Answer='J' if modified, 'A' if not (and empty field). Returns 'J' or 'N'. Like this:
Value 1 Value 2 Value 3 Value 4 Value 5

Returns No of line or 'A' if cancelled. Like this: Dialog box for Displays internal table as SPO5 selectin POPUP_TO_DECIDE_LIST radiobuttons. g from lists Shift Plannin g: POPUP_TO_DISPLAY_TEX RHRD Rqmnts T Definiti on Maint. Monitor STMO ing POPUP_TO_INFORM statistics List processi ng POPUP_DISPLAY_MESSAG SLST addition E al function s ALDB Logical COMPLEX_SELECTIONS_
Value 1 Value 2 Value 3 Value 4

Returns No of line or 'A' if cancelled.

Displays two lines of text like (I) message.

Displays four long lines of text.

Displays 'Action not possible' string and formatted message (input: Message Id, Number and parameters).

External Call 'Multiple

Displays

standard 'Multiple Selection' window (like after pressing database s in DIALOG ABAP/4 Selection' button on selection screen) for a range or selectoption (table parameter RANGE).

See also:

F4 popup screen for Units of Measure (UOM).

Lists (Reports):
Functio Function n group Function module name group descripti name on Function module Description descriptio n Builds nice ready to print table within Report Id, variant, date/time and selected parameters / Logical selection options. databases Receives Report Id (syALDB PRINT_SELECTIONS in cprog), variant (sy-slset). ABAP/4 Note. Parameter MODE is not used. Returns internal table (parameter INFOTABLE). Example. SVAP Variant RS_COVERPAGE_SELECTI Internal Called from maintenan ONS use: PRINT_SELECTIONS ce Generate table for printing cover

sheet FIFM: FM_SELECTION_CRITERIA FMRE Reporting _PRINT Just prints selection criteria for the report (sycprog). Example.

SPRI

Read, determine Read, , change determine, spool change Only correct way to print spool print modify a print or archive GET_PRINT_PARAMETERS parameter parameters parameter record (see FM s and and documentation). archive archive parameter parameters s

LIST_FROM_MEMORY

Prepared list import from memory

report report01. ... data listtab like listobject occurs 1. ... * Either other report * has exported the list to memory, or submit report02... exporting list to memory and return. call function 'LIST_FROM_MEMORY' tables listobject = listtab. * process listtab (see below)

SLST

LIST_TO_MEMORY List processin LIST_FREE_MEMORY gadditional functions WRITE_LIST

DISPLAY_LIST

SAVE_LIST LIST_TO_ASCI LIST_TO_TXT

Exports list of SY-LSIND to memory Refreshes list saved in memory [and listobject table] Writes list (e.g. imported from memory), not Display a encapsulated in a CALL (saved) list SCREEN. Can be used object after or before WRITE statement to add list data to the current screen List object Displays list (e.g. display imported from memory) (ABAPLI in full screen or dialog ST) box. Saves list of SY-LSIND as Save list internal table Saves list of SY-LSIND as text internal table (without line breaks, icons, colors etc)

SYSF

Like List->Save->Local file. METHOD = RTF | ABAP list LIST_DOWNLOAD DAT | HTML | NOCO(no download conversion) | space(selection dialog) Download list in ASCI format (called DOWNLOAD_LIST from LIST_DOWNLOAD when METHOD = NOCO) Download list in HTML format LIST_DOWNLOAD_HTML (called from LIST_DOWNLOAD Internal when METHOD = HTML) system E.g. to place an functions interactively-selected line (lists) (SY-LILLI) directly after Scroll List the page header: Display: call function LIST_SCROLL_LINE_TOPM Selected 'LIST_SCROLL_LINE_TOP MOST' OST Line exporting Becomes list_line = sy-lilli. First Line See FM documentation. See also SCROLL statement. LIST_SCAN Calls standard Find window.

Programs:
Functio n group name Function group Function module name descriptio n Function module Description descriptio n

SVAR

SLDB

Allows submit another report Current with RS_REFRESH_FROM_SELECTOPTI contents of parameters ONS selection entered for the screen current report. Example. Input: report/variant; RS_VARIANT_CONTENTS Output: variant contents Copy all variants from one RS_COPY_SELECTION_SETS report to another report Returns list of selection screen parameters and RS_REPORTSELECTIONS_INFO select-options, including Variant default values maintenanc Returns list of variants for e RS_VARIANT_INFO report(s), additional selection criteria allowed RS_VARIANT_TEXT Returns variant short text Assigns the variant values RS_SUPPORT_SELECTIONS to a loaded report RS_VARIANT_EXISTS R_C = 0 if variant exists Standard pop-up window RS_VARIANT_CATALOG to select a variant for the report Maintain report variants: STATUS=LIST to RS_VARIANT_LIST Display|Delete|Print STATUS=LIS1 to Choose is report Gives sel.screen informatio FMs for processing n about the logical RS_SUBMIT_INFO under run|print| mode of databases variant maint| the current submit via job SUBMIT etc.?

SAPscript:
Functio Function Function module name n group Function Description module

group name

descriptio n

descripti on

OPEN_FORM

SAPscript : Open form printing

to only preview the form: optionstdpreview ='X' (optionstdnoprint forbids print even from preview) to get OTF data instead of printing: optionstdgetotf=' X' to output OTF data to memory buffer instead of printing: device='O TF_MEM' spool #: resulttdspoolid OTF data: otfdata (when optionstdgetotf=' X' in OPEN_FO RM)

STXC

SAPscript composer

Example SAPscript : End layout set printing

CLOSE_FORM

WRITE_FORM

SAPscript : Output text element in form window

OTF STXW screen output

Write OTF SAVE_OTF_TO_MEMORY format to export|import memory OTF internal table to|from Read OTF memory id ... READ_OTF_FROM_MEMORY from memory print OTF from PRINT_OTF internal table Display an OTF DISPLAY_OTF table on the screen Display a tables postscript postscript DISPLAY_POSTSCRIPT table on structure the screen itcps Convert OTF format to CONVERT_OTF various ASCII or PDF formats (TLINE table) Convert OTF to PDF (TLINE table). OTF can be CONVERT_OTF_2_PDF filled used archivelink. Calls CONVERT_OTF. Convert OTF to PDF (TLINE table). Calls CONVERT_OTF. Looks CONVERT_OTF_2_PDF_ARCHIV like the function names for ELINK these two functions are mixed up CONVERT_OTF_AND_FAX CONVERT_OTF_AND_MAIL Input: spool # (SAPscript: CONVERT_OTFSPOOLJOB_2_PD tsp01-rqdoctype='OTF'); F Output: PDF as internal table (TLINE) Example Input: spool # (ABAP listing: tsp01CONVERT_ABAPSPOOLJOB_2_P rqdoctype='LIST'); Output:

Messages:
Function Function group group name description Function module name Function module Description description Import: Read T100 Language; message and Message Id, # format and variables; message with Export: parameters formatted message text. Import: Message Id, # and variables; Set up a message with parameter Export: formatted message text. Since 4.x can be replaced by: MESSAGE

SLG9

Application log: Auxiliary functions

MESSAGE_PREPARE

V12B

RV Condition Generation General

MESSAGE_TEXT_BUILD

... INTO f.

BATG

New in 4.5a. Import: Message Id, BAPIs for Read long #, variables Reading BAPI_MESSAGE_GETDETAIL text of error and formats; Documentation message Export: formatted message text and long text.

Data Dictionary and Data Processing:


Function group name Functio n group Function module name descript ion Function module Description descripti on

MGF2

SDEX

Checks if a fixed Accesses CHECK_DOMAIN_VALUES value is for valid for Generato domain r & For. Read out Key fixed Checks GET_DOMAIN_VALUES values of a domain External ABAP/4 interface Dict.: for official reading DD_DOMVALUES_GET ext. the interface domain s fixed values

Exceptions: WRONG_VALUE, DOM_NOT_FOUN D With text descriptions: Example1 Example2 Called from GET_DOMAIN_VA LUES. Allows use of any Language for text descriptions.

DDIF_FIELDINFO_GET

DDIF_TABL_GET

SDIF

Interface s for the DDIF_NAMETAB_GET ABAP/4 Dictiona ry

DDIF_DTEL_GET

DDIF_DOMA_GET

SDD3

Dictiona GET_FIELDTAB ry interface

DD: Interface Length, Texts etc. for Example - print retrieving current values of the informati system fields (SY-...) on about DD field DD: Interface to Read a Table Length, Texts etc. from the ABAP Dictionar y DD: Interface to Read a Runtime Length etc., but not Object Texts (called from from the GET_FIELDTAB). ABAP Dictionar y DD: Interface to Read a Lengths, Domain etc. Data for the Data Element Element (see also table from the DD04V) ABAP Dictionar y DD: Interface to Read a Lengths etc. for the Domain Domain (see also from the table DD01V) ABAP Dictionar y Read Obsolete. Length, fields of a Texts etc. Example table in

the format DFIES

Check Authorization Objects Check S_TABU_DIS (for authority whole table class VIEW_AUTHORITY_CHEC for according to the table K table/vie TDDAT) and Editing w. S_TABU_CLI (if SVIX tabular client-independent data table). Lock/Unl ock data Whole table or VIEW_ENQUEUE in selection table/vie w. ENQUEUE_E_TABLEE Whole table or /1BCDWBEN/ DEQUEUE_E_TABLEE selection (called SENQ ENQUEUE_E_TABLES Lock/Unl from DEQUEUE_E_TABLES ock data VIEW_ENQUEUE) in table. Exclusive | Shared /1BCDWBEN/ ENQUEUE_E_TABLE Whole table or SEN4 DEQUEUE_E_TABLE selection LOI: Data CLOI_PUT_SIGN_IN_FRON Put sign LOIK And condense result Conversi T in front. on Returns output length for the Maintain table field or for the ABAP type KCD_SFELD_OUTPUT_LEN KCD0 Data (C,N,D,T,P). GTH_GET Transfer Note. Add 1 if P (FM doesn't provide place for sign +/-)

Screens:
Function group name Function group Function module name description Function module Description description

SHL2

Help functions

SLDB

FMs for logical databases

ICON

General functions for graphical elements

Reads a screen field Example. Updates a DYNP_VALUES_UPDATE screen field Powerful function Make use module to control of SELECT-OPTIONS SELECT- (see FM SELECT_OPTIONS_RESTRIC OPTIONS documentation). T easier on E.g. fully forbids the intervals in selection SELECTscreen OPTIONS: Example. Combines into one character field: icon, text, additional text that will appear Transfer on mouse over Icon Name event. This field can ICON_CREATE and Text to be used for screen a Screen field or for list Field output field as well. Example: DYNP_VALUES_READ

SVSM

Value Request Manager

SLDB

FMs for logical databases

Populates listbox parameter (like ) VRM_SET_VALUES with values for selection. Example Can be called while Sets own INITIALIZATION RS_SET_SELSCREEN_STATU GUI status to set needed PFS on selection STATUS before screens selection screen output.

Transfer values to listbox parameter

SAPGUI, RFC:
Functio Function Function module name n group group descriptio Function Description module descripti

name

on SAPGUI ver. 4.0B: Set 'Progress SAPGUI_PROGRESS_INDI Indicator' SAPGUI ver. 4.6D: CATOR in Current Window If destination = 'SAPGUI" then returns: Returns - SAP character set; System - SAPGUI version; Informati - Frontend computer Name, on. Operating System and IPaddress etc. Example. Returns IP address, computer name, User sessions. Example1 (3.1), Informati Example2 (4.6). on. Returns User Sessions Information. The message will appear in SAPGUI popup window. Send The user can be in other message mandant (parameter to a SAP CLIENT) or SAP system user. (call ... destination DEST ...)

SGUI

SAPgui interface

RFC SRFC administrat RFC_SYSTEM_INFO ion

TH_USER_INFO TH_LONG_USR_INFO

TH_POPUP Task THFB handler functions

Call transaction [using bdctab]. TH_REM_TRANSACTION Remotely if call ... destination


DEST ...

Login and Call transaction [using TH_REMOTE_TRANSACT bdctab] on remoted system (parameter ION DEST). Login and Call transaction [using bdctab] on remoted system (call ... TH_SAP_LOGIN destination DEST ...). Called from TH_REMOTE_TRANSACTION SAPphone: Returns IP-address and PHOH Help TERMINAL_ID_GET Terminal(Computer) Id for the functions particular SAP User. SDTX Desktop RFC_READ_TABLE External As of 4.6c, not Released to

Access

access to R/3 tables Customers via RFC

OLE, Excel:
Functio Function n group group Function module name descript name ion RPPC Functio n module Description descript ion HR/PC Just calls EXCEL_OLE_STANDARD_ interfac MS_EXCEL_OLE_STANDA DAT e RD_DAT OLE Downloads internal table and PC MS_EXCEL_OLE_STANDA opens it in MS Excel. interfac RD_DAT Example. e Uploads an *.xls file to internal table (max cell length = 32). Example. This function uses a range selection and copy-paste technique, Data transfer KCD_EXCEL_OLE_TO_IN from PC T_CONVERT files therefore it quite fast.

SLPC

KCDE

There is another Example 2 that reads data from Excel file cell by cell.

FI-AA Legacy the same as Data ALSM_EXCEL_TO_INTER KCD_EXCEL_OLE_TO_INT ALSMEX Transfer NAL_TABLE _CONVERT but max cell w/ length = 50 Excel General just [download internal table FTBU_C conversi FTBU_START_EXCEL to file and] start Excel (w/o ONV on OLE). See also WS_EXCEL The TXXL function group uses the DLLs and other files installed with SAPGUI in directory: ...\Program Files\SAP\FrontEnd\SAPgui\xxl\ Can work both with Excel and Lotus 1-2-3:

XXL_FULL_API

Output Excel list viewer list

SAP examples:

XXL_SIMPLE_API TXXL EXCEL - list viewer interfac e

Output list viewer list with reduced function s

(XXL Test Environment / XXL_FULL_API Example) XXLTTEST (XXL Interface: Test Program for Formats and Types (also XXL_FULL_API))
XXLFTEST XXLSTEST

XXL_CHECK_API

(XXL Test Environment / XXL_SIMPLE_API Example) Examble of use in customer reports: if question = 'STARTABLE' and return_code <> 0 then "Download to Excel" button has to be excluded from a pf-status

In fact, the return_code is always set to 0 in the FM source code .

Jobs:
Function Function group group Function module name name description Function module description Description

GET_JOB_RUNTIME_INFO Open Job Scheduling Without Dialog (Including COMMIT WORK) Insert Background Task in Background Request with COMMIT WORK Close Background Request With COMMIT WORK Trigger Background Event

Job, Step, Event etc. Open background job and obtain the job Id (JOBCOUNT)

JOB_OPEN

BTCH

Background JOB_SUBMIT processing

Add step to the opened job

JOB_CLOSE

Release the job

BP_EVENT_RAISE

Ofter used to submit background job by event

Spools:
Function group name Function group Function module name descripti on Function module Description descripti on

Displays RSPO_RID_SPOOLREQ_DIS spool(s) Input: Spool ID list. P contents on screen Input: Spool ID Spool Output: Spool Info RSPO_ISELECT_TSP01 Informati (Structure on TSP01SYS) The raw data contains format codes and therefore Input: Collection cannot be used in Spool SPOOL_SP0 for New WRITE statement Info 1R SP01 (in some cases). To (Structure (Remote) display ABAP spool TSP01SY can be used two S) RSPO_IRETURN_RAW_DAT function modules Output: A below (Example). Raw data How to write table (text SAPscript spool with example can be some found in SAP utility format FM codes) RSPO_ROUTPUT_ JOB, which prints spool(s). Should be called before RSPO_SPOOLDATA_WRITE using _INIT next Spool: function SPOC Conversio module ns Just write line. RSPO_SPOOLDATA_WRITE Input: Raw data table line

SPOX

Return spool data in text [or PDF format]: Input: Spool #; Desired Type RSPO_RETURN_SPOOLJOB for output (RAW - text data ready to be printed, PDF - can be used only for OTF spools) Output: text table (line length = 255), [table for PDF data] Spooler RSPO_DISPLAY_SPOOLJOB Output: text table eXtended RSPO_RETURN_ABAP_SPO ready to be printed functions OLJOB RSPO_DISPLAY_ABAP_SPO Input: Spool # OLJOB RSPO_GET_TYPE_SPOOLJ OB

Output: IS_OTF='X'|' ' Input: Spool # and File name. RSPO_DOWNLOAD_SPOOL Just calls consecutively JOB RSPO_RETURN_SPOOLJO B and WS_DOWNLOAD How to convert SAPscript|ABAP spool to PDF

Users and Authorizations:


Functio Function n group Function module name group descripti name on Function module Description descriptio n

USER_EXISTS PROFILE_EXISTS OBJECT_EXISTS SUSR_SHOW_USER_DETAILS

returns result in exeptions

SUSE

returns user details (can display them in popup window) returns defaults for the users in SUSR_GET_USER_DEFAULTS table parameter Function modules AUTHORITY_CHECK_TCODE check user via CALL for ext. authorizati 'AUTH_CHECK_TC usage on for a ODE' SUSR_AUTHORITY_CHECK_S_ tcode via AUTHORITYusing TCODE different CHECK OBJECT procedures 'S_TCODE' Display authorizations (for a SUSR_USER_AUTH_FOR_OBJ_ specified object) belonging to a GET user

System and Transports:


Functi on group name Function module Description descripti on Create request IW_C_CREATE_TRANSPORT_ (Workbench, Transport REQUEST etc.), assigning next request # w/o dialog Add objects to request KEN: (Workbench, Transport Transport SI23 etc.) If all objects are Info unlocked, then dialog to Objects IW_C_APPEND_OBJECTS_TO_ choose request. If one REQUEST of objects is locked in a request, then remaining objects added to the same request SVRY Version SVRS_AFTER_CHANGED_ONL Generate new Managem INE_NEW version. Only ent: for the objects External that: Function group Function module name descriptio n

Interfaces

versionable exist in TADIR locked or local

SEDA

Program parsing

RS_GET_ALL_INCLUDES RS_GET_MAINPROGRAMS

Import: function group Get name. Function Export: table of RS_FUNCTION_POOL_CONTE Modules function modules Interfaces NTS in a (function module name to Function SEUF <->ABAP program Function Group name) Builder Get function module information FUNC_GET_OBJECT (main program, include number, parameters and source code.

Depending on the import parameter, returns the following data:

FUNCTION_INCLUDE_SPLIT

Get Function Modules and Includes Belongin g to a Function Group

PROGRAM namespace, function group COMPLETE_A REA namespace, function group Example: find main program for function group. INCLUDE o namespa ce, function group o include (without namespa ce) o include number (for function module includes) o 3character suffix,
o

SUNI

Function Library program interface

function module name (for function module includes, and if SUPPRE SS_SEL ECT=sp

See also tables:


TLIBG - Person responsible for function class (list of all function groups) TFDIR - Function Module ENLFDIR - Additional Attributes for Function Modules FUPARAREF - Parameters of function modules

Application Log:
Functio Function n group module Description name descrip tion Returns Log(s) header and Read messages into internal Applicati Applica tables. on Log APPL_LOG_READ_DB_W tion E.g. all the messages for an SLG1 (old): ITH_LOGNO Log by IDoc # can be read from Read Log application log if the Number EDIDS-APPL_LOG contains the log number. Display Applicati Applica on Log APPL_LOG_DISPLAY_WI tion Displays Log(s) like SLG3 (old): TH_LOGNO Log by transaction SLG1. Display Log Number Functional Groups SLG* exist since 3.0. New more flexible function modules exist since 4.6 (Function Groups SBAL_*, Function Modules like BAL_*). Read New in 4.5a. Details Import: Log Numbers / BAPIs for of [Message Numbers]; Reading BAPI_APPLICATIONLOG Entries BATG Export: formatted messages. Document _GETDETAIL in (calls ation Applica APPL_LOG_DISPLAY_WI tion TH_LOGNO) Log Function group Function module name descripti on

Applica tion Log: Log: BAL_LOG_CREATE Create with Applicati header on Log: SBAL data Collect Messages Applica tion Created log can be referred Log: by Log Handle. (log handle BAL_LOG_MSG_ADD Log: can be skipped if the Messag program itself created and is e: Add using the log). Applica Example. tion Log: Applicati Fullscre SBAL_DIS on Log: en log BAL_DSP_LOG_DISPLAY PLAY Display output Log (like transact ion SLG1) Logs in memory and in the database are referred to in the new Application Log by the log handle (LOG_HANDLE), but the previous LOGNUMBER, which is assigned from number range interval 01 of number range object APPL_LOG when you save, still exists. A lot of applications have a reference to this LOGNUMBER in their structures, so it is still supported. The LOGNUMBER is also more understandable for users than the LOG_HANDLE. There is a 1:1 relationship between LOG_HANDLE and LOGNUMBER.

ALE, EDI, IDocs:


Funct Functio ion n group group Function module name descrip name tion Functio n module Description descrip tion

I. Opening Idoc to process: EDI interfac Initiates the generation of an IDoc. EDI_DOCUMENT_OPEN_F e: Open <-- IDENTIFIER - temporary Id OR_CREATE IDoc for referring in following FMs for (multiprocessing allowed) create EDI interfac e: Open If the IDoc EDI_DOCUMENT_OPEN_FOR_ EDI_DOCUMENT_OPEN_F for CREATE failed but the IDoc must OR_FORCE create be passed to the database with (multiprocessing allowed) few/no checks EDI interfac Simulates the creation of an IDoc. EDI_DOCUMENT_OPEN_F e: Open No number specification and OR_TRACE IDoc database operations for (multiprocessing allowed). trace EDI_DOCUMENT_OPEN_F open in edit mode with locking of OR_EDIT the IDoc Open IDoc To change status records and EDI_DOCUMENT_OPEN_F for control record (multiprocessing OR_PROCESS processi allowed) ng EDI interfac status of the IDoc cannot be EDI_DOCUMENT_OPEN_F e: Open changed (multiprocessing OR_READ IDoc allowed) for reading II. Processing Idoc (after step I): EDI interfac e: Sequent EDI_SEGMENT_GET_NEX ial T accesse s to data record

Display EDI: last display status data, EDI_DOCUMENT_STATUS EDI5 record like in WE02 status, _DISPLAY for ctrl current record IDoc Calls in order: Writes one or ALE: more IDoc IDOC_STATUS_WRITE_TO BD15 status functio _DATABASE records ns (3.0) for an IDoc

EDI_DOCUMENT_OPEN _FOR_PROCESS IDOC_STATUS_CONVE RT EDI_STATUS_ADD_BLO CK EDI_DOCUMENT_CLOS E_PROCESS

XML:
Functio Function n group Function module name group descripti name on Function module Description descripti on Convert SAP data SDIXML_DATA_TO_D (elementary/structured OM /table types) into DOM (XML) Convert DOM (XML) Example (Since into string of bytes SDIXM 4.6D, in SDIXML_DOM_TO_X that can be ML L 4.6C downloaded to PC or beta) application server SDIXML_DOM_TO_SC Display DOM (XML) REEN SDIXML_DOM_TO_DA TA All this can be made using the objects except of SDIXML_DOM_TO_DATA and SDIXML_DATA_TO_DOM (ABAP OO-versions will be soon). Example in OO-style.

EDIN

standard program for inbound IDoc: processing that imports an XML Inbound IDOC_XML_FROM_FI file from the file system, processin LE converts it into IDoc format, and g passes it to ALE layer.

Miscellaneous:
Functio n group name SAL2 Function group Function module name descriptio n Access routines RZL_SLEEP for RZL storage ENQUEU E utilities ENQUE_SLEEP and test Function module Description descriptio n Sleep Up to 5 seconds Without restrictions

SENT

Sleep

QF05_RANDOM Random number generators QF05_RANDOM_INTEGER

QF05

Returns Random random number number generator between 0 and 1 Returns random Random integer (whole) number number between min and max

ALFA

Conversion Used exit especially with CONVERSION_EXIT_ALPHA_INPU ALPHA, account T external- numbers. >internal Numeric fields (only numbers, can ALPHA be spaces conversion Conversion before and exit after them): CONVERSION_EXIT_ALPHA_OUTP ALPHA, " 1234 " UT internal- -> >external "0000001234"
"0000001234" -> "1234 "

Miscellaneous: Static Methods of ABAP Objects:


Class cl_abap_math Static Class method Static method Comments description descriptio n ABAP: round_f_to_15_decs round Sometimes Math variable of type F (float) Library type f to is used to 15 represent decimals exact data (Amounts, Quantities):

if values are to big to be represented as Packed (> 31 decimals) to significally improve performance of calculations, e.g. in statistical

reports This method helps to round float data correctly: Example Called automatically by SAP to free Utilities for memory for objects ABAP Execute cl_abap_memory_utilit do_garbage_collecti created by Memory Garbage ies on CREATE OBJECT . Manageme Collection .. and nt CREATE DATA ... statements since 4.6

SD:
Functio Function n group Function module name group descripti name on Function module Description descripti on Example Don't forget also check Reads direct reference documents sales document for the both starting flow of document # and preceding/following sales document document types that you are searching for (For after delivery example, if you search delivery for the given SO, and billing check also LIPS-VGBEL and LIPS-VGPOS, if it's possible with regard to performance).

V05C

RV SD Documen RV_ORDER_FLOW_INFOR t Flow MATION Cumulati ve Qties

SD_SALES_DOCUMENT_RE AD

SD_SALES_DOCUMENT_RE AD_POS SD_DOCUMENT_PARTNER_ READ

SD_DETERMINE_CONTRAC SD T_TYPE Functions for V45A copy Copying Sales Documen Doc into ts new one with the required SD_SALES_DOCUMENT_CO Sales PY Doc Type (VBAKAUART) Example - create for subsequent document further creating. create Sales SD_SALES_DOCUMENT_SA Doc from VE the copied document Sales Order SD_SALES_DOCUMENT_EN to dequeue use V45K Processin QUEUE DEQUEUE_EVVBAKE g Functions SD Index all the partners information V05I SD_PARTNER_READ Update and addresses

Reads sales document header and business data: tables VBAK, VBKD and VBPA (Sold-to (AG), Payer (RG) and Ship-to (WE) parties) Reads sales document header and item material: tables VBAK, VBAPMATNR partner information including address. Calls SD_PARTNER_READ In: at least VBAK-VBELN Exceptions: NO CONTRACT | SERVICE_CONTRACT | QUANTITY_CONTRACT

Data provision RV_DELIVERY_PRINT_VIE for W delivery SD Data note Collectio printing V05O n for Dlv SD_PACKING_PRINT_VIEW Note called from Printing Data RV_DELIVERY_PRINT_ collection SD_DELIVERY_VIEW VIEW, for SD_PACKING_PRINT_VI printing EW Data SD Data Provision Collectio for V05N n for Bill RV_BILLING_PRINT_VIEW Billing Doc Documen Printing t Print RV_PRICE_PRINT_HEAD To be used in print program to get pricing data on header [and item] level.

Input: structures KOMK (fields


mandt,kalsm,waerk,knumv, vbtyp to be taken from

Functions V61A for Pricing RV_PRICE_PRINT_ITEM

VBDKR, kappl='V'). [and KOMP (field kposn to be taken from VBDPR, field mglme (quantity) can be changed to calculate price accordingly].

Output: pricing data in tables TKOMV [and TKOMVD].

MM:
Functio Function n group group description name Function module name Function module Description descriptio n

Material number CONVERSION_EXIT_MATN1_ E.g. 00001234 -> conversion OUTPUT 1234 (OUTPUT Material ) OMCV Number Conversion Material E.g. 1234 -> CONVERSION_EXIT_MATN1_ number 000000000000001 INPUT conversion 234 (INPUT) For material numbers conversion, in contrast to simple ALFA conversion, more complicated logic is used including customer exit MGA00003 (see transaction SMOD).

Very

useful function module to create new material master data or to Create and change existing BAPIs for Change material master 1001UE Creating/Chan BAPI_MATERIAL_SAVEDATA Material data, although it is B ging Matl Master not used directly Data Data as method in any BAPI object, and therefore cannot be found via transaction BAPI. See Function Module Documentation MGDS Screen SELECTION_VIEWS_FIND Determine Sequence Views for One of Control: View Material Selection functional Master or View modules for those Configurat who still has to ion use BDC for Material Master transactions (MM01 and MM02). Allows to determine line number for desired view in

the "Select View(s)" window, to prepare BDC for the view access. See skeleton as complete example. EINR Read Purchasing Document Read History of ME_READ_HISTORY Purchasing Example Document Will be called: I_EDIT='X' => ME22 I_DISPLAY_ONLY='X' or default => ME23 ME_DISPLAY_PURCHASE_DO I_ENJOY='X' => new CUMENT transactions: ME23N / ME22N I_PREVIEW='X' => screen preview for default output type

Display MESHO Purchasing W Documents

MEWP

BAPIs BAPI_PO_CREATE Purchase order

Both BAPIs create an PO, but BAPI_PO _CREATE 1:

2012

BAPI in the Enjoy Purchase Order

BAPI_PO_CREATE1

Create purchase order

allows much more things: entering conditions, test mode, hold uncomplet e POs etc. not listen in BAPI transaction (4.6C), because this method of 2012 business object is not released

MRP:
Functi Functio on n group Function module name group descript name ion Functio n module Description descript ion

CS_BOM_EXPLOSION_MAT CS_BOM_EXPL_MAT_V2

old version (before 3.0) Explode BOM for Production. Mostly necessary input parameters:

CAPID (Application Id): 'PP01' (Production - general) DATUV (Validity date) MTNRV (Material) WERKS (Plant)

BOM CSS4 explosio ns

CS_BOM_EXPL_KND_V1

BOM explosio Example: Explode assembly n for (including phantom material assemblies up to last level) Explode BOM for Sales and Distribution. Additional input parameters:

CAPID (Application Id): 'SD01' (Sales and Distribution) VBELN (Sales order number)

CS_BOM_EXPLOSION

VBPOS (Item in sales order) Internal function module, General called by all FMs from BOM function group CSS4 (for explosio material as well as for n equipment, Project Position, Document etc.)

BOMs: CS_WHERE_USED_MAT whereused list Bills of material CS_WHERE_USED_MAT_VIA ; where- returns BOM##, parent _CLA used list materials and other BOMs: via information for component. CSS5 whereclasses Additional criterias: valid used list Bills of dates, item category and BOM material usage, plant (can be '*' to ; where- select all plants). CS_WHERE_USED_MAT_AN used list Y as material or class item In SAP 4.6C this function group is used in report RCS15001 (Material Where-Used List), which called from transaction CS15 (Single-Level Where-Used List) BOM API New and simplified function APIs for Bills of module. Input: only CSEP_MAT_BOM_SELECT_ CSEP Enterpri Material component name (material WHERE_USED se : Select number). Return the same as Portal BOM(s) function modules above. Returns internal table within Docume materials and documents for DOCUMENTS_TO_CHANGE_ nts for the engineering change NUMBER Change number AENR-AENNR (just Number select * from the DRAW General table). DMS CVIN Check Functio use of ns Raises NO_USAGE if not change DOCUMENTS_CHANGE_NU used. Calls number MBER_USAGE DOCUMENTS_TO_CHANG for E_NUMBER to check usage docume nts Read MRP Table data. Input: MRP Table # and Aggregated MRP list flag M61R DISPOBELEG_LESEN (MDKP-DTNUM and MDKP-CFLAG). Output: MRP Table data (~ MDTB data)

FI:
Function module Description descriptio n Posting Business period Object BAPI_GL_ACC_GETPERIODBALAN balances 3006 General CES for each Ledger G/L Account account FI_CHART_OF_ACCOUNT_DETER MINE FI_COMPANY_CODE_CHECK FACSCOR Self-explaining E FI_COMPANY_CODE_DATA FI_COUNTRY_CHECK FI_COUNTRY_DATA FI_GL_ACCOUNT_CHECK FI_GL_ACCOUNT_DATA FI Services FI_VENDOR_CHECK FACS Self-explaining for FI/CO FI_VENDOR_DATA Interface FI_CUSTOMER_CHECK FI_CUSTOMER_DATA Function group name Function group Function module name descriptio n

FI-CO:
Functio Function n group Function module name group descriptio name n Function module Description descripti on

Good for F4 (on valuerequest) function. Imports a field name and returns chosen Group name for the field: Searchin g for costobject groups via a pop-up window
Cost RACC Account KSATR element T group group PRZNR Busines Cost s KSTR object process G group group

K_GROUP_SELECT CO Reporting KAB2 : General Functions

Cost AUFN Order KOSTL center R group group Statistical Activit STAG key LSTAR y type R figure group group SKOST Sender Sender cost SLSTA activity center group group

PRCTR Profit Network VORN RPRCT center activity R R group group POSID

Example. CO: searches a document also good for F4 number according to certain criteria

K_DOCUMENT_SELECT

K_F4_STANDARD_HIERARCHY Displays hierarchy tree for the _VALUE given SETCLASS and Valuation Area (requested in separate dialog window), returns selected value | node. Import parameter SETCLASS: values see in GSETC type-pool. Group Following standard hierarchies KKHI Maintena K_F4_STANDARD_HIERARCHY allowed in the FMs: nce _NODE

0101 - Cost Center 0106 - Profit Center 0107 - Business Process

Example

FI-SL Sets:
Functio Function n group Function module name group descripti name on Function module Description descriptio n Imports a set Id and table name and returns an internal table filled with elements of SETS: Read All the set. Generatin G_SET_GET_ALL_VALU Values in 3.1H Example (set Id = 0H + GSGE g and ES a Set Group name). reading Hierarchy 4.6C Example (retrieve set Id sets using G_SET_GET_ID_FROM_N AME).

Imports a set Id and table name and returns two internal tables filled with 1. elements of the set; 2. hierarchy tree of the set.

G_SET_TREE_IMPORT

3.1H Example (set Id = 0H + Group name). 4.6C Example (retrieve set Id using SETS: G_SET_GET_ID_FROM_N GSAC access to AME). set tables Derives the internal set Id from the name that appears on Determini the user interface, e.g. in ng a Set order then to import the set ID from (see the function group and G_SET_GET_ID_FROM_ the Set function module NAME Name and documentation). To take in Other account changes in SET Informatio concept in 4.6C: see examples n to G_SET_GET_ALL_VALUES and G_SET_TREE_IMPORT. SETS: GSSM SetManager See also example reports:

Importing a Set Hierarchy

RGSEX001 - Read-only access with G_SET_TREE_IMPORT RGSEX000, RGSEX010, RGSEX020 - Access with modules from the function group GSSM RGSEX030 - Create a set Tables:

T800S - FI-SL Set Table (before Release 4.0)

Classification and Characteristics:


Function Function Function module name Function Description

group name

group descriptio n

CUCB

CBase

module descriptio n Receives configuration number (and, optionally, business object and timestamp of configuration version). CUCB_GET_VALUES_FROM_INSTAN Returns table of CE characteristic values. Example (get and print characteristics and their values for the sales order item).

See also:

Main Page.
ABAP/4 compendium. SAP R/3 system fields. ABAP/4 functions. ABAP/4 obsolete statements and functions. ABAP/4 skeletons. ABAP in SAP R/3 ver 4.6 - Object Oriented Language. Object Oriented ABAP - Features and Restrictions. Object Oriented ABAP - Demos. ABAP/4 UNIX browser. ABAP Utilities. Main Page.

You might also like