Easy to use ABAP function __ function

Source: Internet
Author: User
Function Name Description
Sd_vbap_read_with_vbeln read the information in the table VBAP based on the sales order
Edit_lines the rows in the LINES returned by Read_text to the tdformat= "*" to Organize
View_maintenance_call Maintenance Table View

Function Name Description
Dy_get_focus Get screen Focus
Dy_get_set_field_value Gets or sets the value of the screen field

Function Name Description
F4if_int_table_value_request Display Search Help
Read_text Read Long text
Conversion_exit_cunit_output Unit conversion
SJIS_DBC_TO_SBC full angle Turn half angle
Sjis_sbc_to_dbc half angle to full angle
Co_r0_check_decimal_point the number of decimal places to check the data according to the unit
Postal_code_check Check ZIP code

Function Name Description
Conversion_exit_alpha_input full digit 0 in front
Conversion_exit_alpha_input is opposite to the above
Get_job_runtime_info get JOB-related information
Terminal_id_get Get End ID
Date_convert_to_factorydate the input date to the factory calendar date
Message_text_build the message into text

Function Name Description
Popup_to_confirm Pop-up Confirmation window

Function Name Description
Conversion_exit_matn1_input Item Number Conversion function
Conversion_exit_matn1_output to the contrary
Convert_to_local_currency Convert amount to the specified currency type according to the specified date rate
Ssf_function_module_name gets the corresponding function name (smartform) according to the form name

Function Name Description
Date_check_plausibility Date CHECK
Cl_gui_frontend_services=>gui_upload Upload to Server
Cl_gui_frontend_services=>gui_download Download to service local
Ssf_function_module_name smartforms output report, generate a function name, then call this name

Function Name Description
Popup_to_decide_list Pop-up for selection window
abap_docu_download– downloads the ABAP document in HTML format.
arfc_get_tid– returns the IP address of the terminal in 16 binary form.
Bal_*-Accommodates all the function modules of the SAP Application log.
bp_event_raise– triggers an event in the ABAP/4 program.
bp_joblog_read– gets the execution result of the job log.
cloi_put_sign_in_front– the minus sign forward, and SAP defaults the minus sign behind the number.
clpb_export– is imported from the inner table to the Clipboard.
clpb_import– imports the inner table from the Clipboard.
Commit_text-to load long TEXT into SAP.
Conversion_exit_alpha_input-Digital String front 0

Example
Input = 123
Output = 0000000000000 ... 000000000000123

conversion_exit_alpha_output– eliminates the number of 0 before the string
Example
input = 00000000000123
Output = 123

convert_otf– converts SAP documents (SAP SCRIPT) to other types.
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– returns the number of weeks in which a date is located.
date_check_plausibility– Check if a date is a valid format for SAP.
dynp_values_read– reads the value of the screen field, or it can be used to read the report selection screen.
Dynp_values_update-Updates the value of the screen field.
enque_sleep– waits for a specified time before proceeding with the process.
enqueue_esfunction– locks an ABAP program so that it cannot be executed:

Relid = ' ZZ '
SRTF2 = 0
sRTF = (your, name)

Be careful not to use Sy-repid to pass your report name, and when you pass sy-repid as an argument to a function module, the Sy-repid value has actually changed.
eps_get_file_attributes– get file properties.
eps_get_directory_listing– returns a list of files for a local or network directory.
F4_date-A pop-up window displays a calendar that allows the user to select a date.
F4if_shlp_exit_example–f4 interface module.
filename_get– a File selection dialog box pops up.

DATA out TYPE c.
Call FUNCTION ' Filename_get '
Exporting
filename = ' C:/1.txt '
title = ' Get FILENAME '
Importing
filename = out.

ftp_connect– open and log on to the FTP server connection.
ftp_command– executes a command on the FTP server.
ftp_disconnect– closes the connection to 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 with $ as a place holder, and Write_message does not accommodate that, It only replaces the ampersands (&) in the message.

get_global_symbols– Returns a program's tables, select options, texts, etc. It even contains the text definition of selection screen. The
get_includetab– gets a includes list of programs. The
gui_create_directory– creates a directory on the display server side. The
gui_delete_file– deletes a file on the display server side. The
gui_download– downloads the internal table from the application server to the display server. The
gui_exec– invokes a file or program, replacing Ws_execute. The
gui_get_desktop_info– obtains client desktop information, replacing Ws_query. &NBSP
gui_remove_directory– Deletes a directory from the display server.
gui_run– starts a file or program. The
gui_upload– uploads files from the display server to the application server, replacing Ws_upload. &NBSP
help_start– Displays Help for a field. Useful for doing at SELECTION screens on VALUE REQUEST for those fields, does not provide to the F4 level. The
holiday_get– provides a holiday table based on the factory calendar&/HOLIDAY Calendar. &NBSP
init_text– upload long text to SAP.
k_werks_of_bukrs_find– Returns all the factories of a specific company code. &NBSP
list_to_ascii– Converts the ABAP report from OTF form to ASCII form.
List_from_memory–retrieves The output of a MEMORY when the "the" is executed using SUBMIT ... Exporting LIST to MEMORY. Also write_list.

month_names_get– get all the months and names
ms_excel_ole_standard_ole– Create a file and start EXCEL automatically.
Convert_otfspooljob_2_pdf-converts a OTF spool to PDF (i. E. Sap script Document)
Convert_abapspooljob_2_pdf-convert ABAP spool output to PDF
popup_to_confirm_loss_of_data– A dialog box informs the user of the possibility of losing data and asks if the operation continues.
Popup_to_confirm_step-A dialog box pops up asking the user if the operation continues.
Popup_to_confirm_with_message can display a custom hint message with a confirmation window similar to Popup_to_confirm_step, just three lines of text error diagnostic hints.
Popup_to_confirm_with_value Use this function to create a dialog box that asks the user whether to perform a certain operation, which may lose data, and the user can choose Yes or cancel. The function can pass in a title, two lines of text (question), and an object value
Popup_to_decide displays a dialog box in which the user can either cancel or one of two actions. You can pass in three line hint text
Popup_to_decide_with_message similar to Popup_to_decide
Popup_to_display_text A window that displays multiple lines of information
popup_to_select_month– pops up a dialog box to select the 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– Get pricing conditions
Profile_get-read a record from the INI file
profile_set– write a record to INI file
read_text– Upload Long text
registry_get– reads a record from the registry
registry_set– set up a record in the registration list
rfc_abap_install_and_run– runs programs in the program table when the mode parameter value is ' F '.
rh_get_active_wf_plvar– to get active HR plan
rh_start_excel_with_data– start EXCEL and assign values to the file in the inner table
rh_struc_get– returns all relevant organization information
rp_calc_date_in_interval– Day and Month
Rp_last_day_of_months– got the last day of one months
rpy_dynpro_read– reading screen
rpy_transaction_read– a transaction code to obtain its program and screen, or given a program and screen to obtain the transaction code
rs_coverpage_selections– gets a list of selection parameters for a report.
rs_refresh_from_selectoptions– get the contents of the current selection screen
rs_send_mail_for_spoollist– send messages to SAP office in a program
rs_variant_contents– to get a variable content
rzl_sleep– suspend the current program
rzl_submit– Submit a remote report
rzl_read_dir_local– read the Application Server directory
rzl_read_dir– if the left part of the server name is empty, read the directory locally, otherwise read the directory of the remote server
rzl_read_file– The remote server file is read if the local file is read for the given server name.
Rzl_write_file_local-Saves the inner table to the display server (not PC). Authorization checking is avoided because the open dataset is not used.
sapgui_progress_indicator– Displays a progress bar
save_text– Upload Long text
scrolling_in_table– when writing a module pool, you can use it to process scrolling
sd_datetime_difference– Two date for difference
SO_NEW_DOCUMENT_ATT_SEND_API1-Send a document as part of a message
so_split_file_and_path– splits a full file name containing the path into a filename and path
so_spool_read– obtained printer SPOOL according to SPOOL number
so_wind_spool_list– Browse printer SPOOL based on user
sx_object_convert_otf_pdf– conversion from OTF to PDF (SAP script conversion)
sx_object_convert_otf_prt– conversion from OTF to printer format (SAP script conversion)
sx_object_convert_otf_raw– conversion from OTF to ASCII (SAP script conversion)
Sxpg_call_system-Check if the user has permission to execute a command
sxpg_command_list_get– gets a list of all the defined external OS commands.
sxpg_command_definition_get– read the definition of a single external OS command from the R/3 system database
Sxpg_command_check-Check if the user has permission to execute a command
Sxpg_command_execute-Check if the user has permission to execute a command, and then execute the command with authorization
terminal_id_get– return terminal ID
th_delete_user– eliminate a user, the effect of the same SM04
th_environment– Access to UNIX environment
th_popup– displays a system message on a specific user screen
th_remote_transaction– run transaction code on remote server
th_user_info– access to current user information (session, landing Workbench, etc.)
th_user_list– displays a list of users logged into the application server
unit_conversion_simple– Measurement Unit conversion
upload– upload file to display server
upload_files– upload one or more files
write_list– Displays a list object
ws_download– Download the inner table to the display server
ws_excel– Start EXCEL
ws_execute– executes a program
ws_file_delete– Delete a file
ws_filename_get– call File Selection dialog box
ws_msg– displays a dialog box showing online messages
ws_upload– upload files from display server to inner table
ws_volume_get– Obtain Terminal equipment label
www_list_to_html– after running a report, call this method to convert the list output to HTML
Sd_vbap_read_with_vbeln read the information in the table VBAP based on the sales order
Edit_lines the rows in the LINES returned by Read_text to the tdformat= "*" to Organize
View_maintenance_call Maintenance Table View
Dy_get_focus Get screen Focus
Dy_get_set_field_value Gets or sets the value of the screen field
F4if_int_table_value_request Display Search Help
Conversion_exit_cunit_output Unit conversion
SJIS_DBC_TO_SBC full angle Turn half angle
Sjis_sbc_to_dbc half angle to full angle
Co_r0_check_decimal_point the number of decimal places to check the data according to the unit
Postal_code_check Check zip code get_job_runtime_info get JOB-related information
Terminal_id_get Get Terminal
Iddate_convert_to_factorydate the input date to the factory calendar date
Message_text_build the message into text
Convert_to_local_currency Convert amount to the specified currency type according to the specified date rate
Ssf_function_module_name gets the corresponding function name (smartform) according to the form name
Date_check_plausibility Check Date legality
Checkcl_gui_frontend_services=>gui_upload Upload to Server
Cl_gui_frontend_services=>gui_download Download to Local
Ssf_function_module_name smartforms output report, generate a function name, then call this name   

Through this date is the day of the week
Day_in_week
to get the future/past date of the
Rp_calc_date_in_interval
date plus minus
Bkk_add_month_to_ DATE
A useful set of user interaction window functions
Popup_to_confirm_loss_of_data displays a yes/no pop-up window that prompts the user that unsaved data will be lost  
Popup_to_confirm_ The step prompts whether to confirm the Action's pop-up window  
Popup_to_confirm_with_message can display a confirmation window   the customized hint message;
Popup_to_confirm_with_value Displays a pop-up window that confirms the user's actions on a particular object  
popup_to_decide pop-up window that displays the option to be confirmed as a radio button  
Popup_to_decide_with_message Confirmation window with message  
Popup_to_display_text window   displaying multiline information;
Popup_to_select_month Month Selection window  
Popup_with_ Table_display a confirmation window with a Table object  
A set of functions that manipulate the client file system
Gui_create_directory set up a file directory on the PC
Gui_delete_file Delete files on the PC  
Gui_download File download function  
Gui_exec execute the program on the PC, or open the file  
Gui_get_desktop_info get system Information from the PC client. such as the operating system, such as  
Gui_remove_directory Delete pc directory  
Gui_run run PC program (ShellExecute)  
Gui_upload upload program from PC &NBSP
Determines whether a day is a holiday  
Holiday_check_and_get_info

Abap_docu_download
Download ABAP documentation in HTML format.

Get_current_year
Get the current fiscal year (fiscal years)
Look at the properties of a date, including the day of the week, the day (week 2=2), whether it is a public holiday, and the need to enter a national calendar.
Day_attributes_get

Return useful information about a day. 'll tell you the day of the week as a word (Tuesday), the "Day of the" week (2 would be tuedsay), whether the ' is ' a Holi Day, and more. (provided by Francois Henrotte)?

Reuse_alv_variant_default_get Read the default layout
Reuse_alv_variant_existence detects whether a specified layout exists
REUSE_ALV_VARIANT_F4 Display Layout Format Selection dialog window.
Specific reference to Balvst02_grid procedures.


Clpb_import: Import internal table from clipboard
Clpb_export: Entering from internal table to clipboard
Sample program: Grclpb_1

In the SE38 environment of the program name input field after the "demo*" press F4, you can find the SAP all DEMO sample program, will learn a lot of ABAP function implementation method, input ' bcalv* ' and press F4, you can find a lot of ALV sample program

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.