Highlights of ABAP common functions

Source: Internet
Author: User

Dynp_values_read-the value of the screen field. It can also be used to read the selection screen report.

Dynp_values_update-update the screen field value.

Get_global_symbols-return the tables, select options, texts, etc of a program. It even contains the text definition of selection screen.

Rpy_dynpro_read-read screen

Dy_get_set_field_value-obtains or sets the value of the screen field.

Rs_refresh_from_selectoptions-get the content of the current selected screen

Dy_get_focus-obtain the screen focus

Bp_joblog_read-obtains the execution result of the job log.

Get_job_runtime_info-get job-related information

Clpb_export-import from the inner table to the clipboard.

Clpb_import-import a table from the clipboard.

Convert_otf-converts an SAP document (SAP script) to another type.

Abap_docu_download-download the ABAP document in HTML format.

Arfc_get_tid-returns the terminal IP address in hexadecimal format.

Bal _ *-contains all function modules of SAP application logs.

Bp_event_raise-triggers an event in the ABAP/4 program.

F4if_shlp_exit_example-F4 interface module.

Ftp_connect-the connection to open and log on to the FTP server.

Ftp_command-execute a command on the FTP server.

Ftp_disconnect-close the connection to the FTP server.

Get_includetab-obtains the list of DES of a program.

Gui_exec-replaces ws_execute by calling a file or program.

Gui_get_desktop_info-obtains the desktop information of the client, replacing ws_query.

Gui_run-start a file or program.

Help_start-displays help for a field.

K_werks_of_bukrs_find-returns all the factories of a specific company code.

Popup_to_confirm_loss_of_data-a dialog box is displayed to inform the user that data may be lost and whether the operation continues.

Popup_to_confirm_step-a dialog box is displayed asking whether the operation continues.

Popup_to_confirm_with_message

Popup_to_confirm_with_value

Popup_to_decide

Popup_to_decide_with_message

Popup_to_display_text

Popup_to_select_month-a dialog box is displayed to select 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.

Conversion_exit_cunit_output unit conversion

Cloi_put_sign_in_front places the minus sign in front, and SAP places the minus sign after the number by default.

Conversion_exit_alpha_input

Conversion_exit_alpha_output eliminates the 0 before the number string

Bapi_currency_conv_to_external: Convert the amount to an external data format.

Bapi_currency_conv_to_internal converts the amount to an internal data format

Unit_conversion_simple unit conversion

Sjis_dbc_to_sbc full-angle to half-Angle

Sjis_sbc_to_dbc halfwidth to fullwidth

Text_split string segmentation

Convert_to_local_currency converts the amount to the specified currency type based on the specified date exchange rate

Convert_otfspooljob_2_pdf convert otf spool to PDF

Convert_abapspooljob_2_pdf convert ABAP spool to PDF

Pricing gets pricing conditions

Profile_get reads a record from the INI File

Profile_set write a record to the INI File

Read_text read long text

Save_text upload long text

Registry_get reads a record from the Registry

Registry_set set a record in the Registry

Rfc_abap_install_and_run run the program in the program table when the mode parameter value is 'F '.

Rh_get_active_wf_plvar get activated HR plan

Rh_start_excel_with_data start Excel and assign a value to the file in the internal table

Rh_struc_get returns information about all relevant organizations.

Rp_calc_date_in_interval plus or minus

Date_check_plausibility date validity check

Sd_datetime_difference two-date difference

Date_convert_to_factorydate: Convert the input date to the factory calendar date.

Month_names_get get all months and names

In the f4_date pop-up window, a calendar is displayed, allowing users to select a date.

Rp_last_day_of_months gets the last day of the month

First_day_in_period_get

Last_day_in_period_get

Date_get_week returns the number of weeks of a date.

Holiday_get provides a day table based on the factory calendar or holiday calendar.

Rs_variant_contents-Get Program Variant Information

Rs_change_created_variant-modify the program variant Information

Rzl_sleep-suspends the current program

Enque_sleep-Wait for a specified time before processing.

Enqueue_esfunction-lock an ABAP program so that it cannot be executed:

Be sure not to use the SY-REPID to pass your report name. When the SY-REPID is passed as a parameter to the function module, the value of the SY-REPID has actually changed.

Rzl_submit-Submit a remote report

Gui_upload: upload files to the server

Gui_download

File_get_name: Obtain the physical file path and file name from the logical file name.

Filename_get a file selection dialog box is displayed.

So_split_file_and_path Splits a full file name containing a path into a file name and path.

Eps_get_file_attributes obtains the file attributes.

Rzl_read_dir_local reads the directory of the Application Server

Gui_create_directory: create a directory on the display server.

Gui_delete_file: delete an object on the display server.

Upload_files upload one or more files

Ms_excel_ole_standard_ole creates a file and starts Excel automatically.

Gui_remove_directory: delete a directory from the display server.

Eps_get_directory_listing returns a list of files in a local or network directory.

Rzl_read_dir if the left part of the server name is blank, read the local directory; otherwise, read the remote server directory.

Rzl_read_file: if the server name is specified, the local file is read; otherwise, the Remote Server File is read.

Rzl_write_file_local saves the internal table to the Display Server (not PC). Authorization check is avoided because open dataset is not used.

Sapgui_progress_indicator-displays a progress bar

Rpy_transaction_read-given a transaction code, get its program and screen; or given a program and screen to get the transaction code

Scrolling_in_table-you can use it to process scrolling when writing a module pool.

So_new_document_att_send_api1-send a document as part of the email

So_spool_read-obtain the printer spool Based on the spool number.

So_wind_spool_list-view the printer spool number based on the user

List_to_ascii-converts an ABAP report from the OTF form to the ASCII form.

Sx_object_convert_otf_pdf-converting from OTF to PDF (SAP script conversion)

Sx_object_convert_otf_prt-convert from OTF to printer format (SAP script conversion)

Sx_object_convert_otf_raw-convert from OTF to ASCII (SAP script conversion)

Sxpg_call_system-check whether the user has the permission to execute a command

Sxpg_command_list_get-obtains a list Of all defined external OS commands.

Sxpg_command_definition_get-Definition of reading a single external OS command from the R/3 System Database

Sxpg_command_check-check whether the user has the permission to execute a command

Sxpg_command_execute-check whether the user has the permission to execute a command. if the user has the permission to execute a command, execute the command.

Terminal_id_get-return terminal ID

Th_delete_user-remove a user, with the same effect as sm04

Th_environment-obtain the Unix environment

Th_popup-display a system message on the screen of a specific user

Th_remote_transaction-run the transaction code on the remote server

Th_user_info-get the information of the current user (Session, login workbench, etc)

Th_user_list-display the list of users logging on to the Application Server

Write_list displays a list object

Ws_excel start Excel

Ws_volume_get get terminal device tags

After www_list_to_html runs a report, call this method to convert the list output to HTML

Sd_vbap_read_with_vbeln reads the information in table vbap according to the sales order

Co_r0_check_decimal_point checks the decimal places of data based on the unit

Postal_code_check check zip code

View_maintenance_call: Maintain the table View

F4if_int_table_value_request display retrieval help

Terminal_id_get get terminal ID

Message_text_build converts messages to text

Ssf_function_module_name obtains the corresponding function name (smartform) based on the form name)

When ssf_function_module_name smartforms outputs the report, a function name is generated and the name is called.

Rs_coverpage_selections gets a list of select parameters for a report.

Rslg_write_syslog_entry writes a record to syslog.

Rspo_sx_output_textdata: output data from the internal table to spool

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.