Useful Abap Function Modules

  • Uploaded by: Sonofspeed
  • 0
  • 0
  • March 2021
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Useful Abap Function Modules as PDF for free.

More details

  • Words: 1,027
  • Pages: 5
Loading documents preview...
1.ABAP Development Useful ABAP Function Modules Skip to end of metadata 

Created by Guest, last modified by Julie Plummer on Jun 18, 2018

Go to start of metadata This page is intended to maintain documentation of useful function modules. This is needed because indexing and search of information will be easier here (When compared to searching in SE37). When this page starts growing, this can be structured in an area wise list.

Function Modules for creating programs (Useful when you are generating programs) RS_PROGRAM_CHECK_NAME To check program names if you are generating them. To insert the correction request in the repository. RS_CORR_INSERT To activate repository objects, for example - to activate REPS_OBJECT_ACTIVATE a newly generated program. To delete the program. RS_DELETE_PROGRAM To lock or unlock a program. RS_ACCESS_PERMISSION Function Modules related to Date and Time Calculations Calculates the future date based on the input . Returns the Day for the entered date. DATE_TO_DAY Returns weekday for a date DATE_COMPUTE_DAY Returns week for a date DATE_GET_WEEK Add days / months to a date RP_CALC_DATE_IN_INTERVAL Returns attributes for a range of dates DAY_ATTRIBUTES_GET specified To get the number of months between the MONTHS_BETWEEN_TWO_DATES two dates. Determines the End of a Month. END_OF_MONTH_DETERMINE_2 Find the difference between two dates in HR_HK_DIFF_BT_2_DATES years, months and days. Find the difference between two dates in FIMA_DAYS_AND_MONTHS_AND_YEARS years, months and days. Get the names of the month MONTH_NAMES_GET Get the first day of the week WEEK_GET_FIRST_DAY Format the date in dd/mm/yyyy format HRGPBS_HESA_DATE_FORMAT CALCULATE_DATE

SD_CALC_DURATION_FROM_DATETIME L_MC_TIME_DIFFERENCE HR_99S_INTERVAL_BETWEEN_DATES LAST_DAY_OF_MONTHS DATE_CHECK_PLAUSIBILITY DATE_2D_TO_4D_CONVERSION DAY_IN_WEEK SD_DATETIME_DIFFERENCE

Find the difference between two date/time and report the difference in hours Find the time difference between two date/time Difference between two dates in days, weeks, months Returns the last day of the month Check for the invalid date. Year entry: 2-character to 4-character. Input date and will give the name of the day 1-monday,2-Tuesday.... Give the difference in Days and Time for 2 dates

Holidays and Factory Calendar Gives holidays for a country.It has two flags Freeday(for weekends)and Holiday(for public holidays). returns the calendar date for the factory date FACTORYDATE_CONVERT_TO_DATE and the factory calendar passed returns the factory date for the date and DATE_CONVERT_TO_FACTORYDATE factory calendar passed HOLIDAY_GET

Popup for dates Displays a popup dialog to choose date F4_DATE POPUP_TO_SELECT_MONTH Display a pop-up to select a month Function Modules related to (ALV) SAP LIST VIEWER ABAP List viewer (LIST DISPLAY) ALV GridControl full screen Create field catalog from dictionary structure REUSE_ALV_FIELDCATALOG_MERGE or internal table REUSE_ALV_LIST_DISPLAY REUSE_ALV_GRID_DISPLAY

Function Module related to Change Tracking CHANGEDOCUMENT_READ_HEADERS Read and format change documents read change document headers and items to CHANGEDOCUMENT_READ get the old and new values Function Modules Related To Formatting

Displays the negative sign in front of the numeral Wrap text into several lines RKD_WORD_WRAP CONVERSION_EXIT_ALPHA_INPUT Pad zeros to the number at the left CONVERSION_EXIT_ALPHA_OUTPUT Eliminate zeros to the number at the left Exchange Convertion READ_EXCHANGE_RATE Transforms numeric values into text SPELL_AMOUNT CLOI_PUT_SIGN_IN_FRONT

Function Modules Related To Dialog Prompts Displays a popup dialog with a user defined message for confirmation Displays a popup dialog requesting a value for a POPUP_TO_GET_VALUE particular table-fieldname Displays a progress bar with text to denote the SAPGUI_PROGRESS_INDICATOR percentage of completion and status Displays a popup dialog to get the presentation FILENAME_GET server filename Displays a popup dialog to choose date F4_DATE Display a pop-up to select a month POPUP_TO_SELECT_MONTH Printer parameters GET_PRINT_PARAMETERS F4 help also returning the value to be displayed F4IF_INT_TABLE_VALUE_REQUEST in internal table F4 help for fields that are only known at runtime F4IF_FIELD_VALUE_REQUEST POPUP_TO_CONFIRM

Function modules related to RFC communication RFC_CONNECTION_CLOSE Close a RFC connection RFC_GET_SYSTEM_INFO Give system's information of a remote system {+}Function modules related to reading/writing files on application server (named AS below) or Frontend + FILE_READ_AND_CONVERT_SAP_DATA SUBST_GET_FILE_LIST ALSM_EXCEL_TO_INTERNAL_TABLE WS_FILE_DELETE PFL_COPY_OS_FILE EPS_GET_DIRECTORY_LISTING FILENAME_GET GUI_UPLOAD GUI_DOWNLOAD

Uploads the file from either presentation or application server into an internal table To get the list of files from AS Legacy Data Transfer w/ Excel Delete files on AS server Copy AS files Returns all files from an AS directory Displays a popup dialog to get an AS filename (FILE transaction) Upload a file from the presentation server Downloads an Internal Table to the PC

Function Modules related to sending emails SO_NEW_DOCUMENT_ATT_SEND_API1 Sends emails with texts and attachments Sends emails with texts. SO_NEW_DOCUMENT_SEND_API1

Function Module to execute unauthorized transactions TRANSACTION_CALL_VIA_RFC To execute some unauthorized transactions. Function Modules related to data maintenance VIEW_MAINTENANCE_CALL To maintain data from a table or view (SM30) Amount and Currency Convert currency to IDOC format Move the negative sign from the left hand side of a number, to the right hand side of the number. Note that The result will be CLOI_PUT_SIGN_IN_FRONT left justified (like all character fields), not right justifed as numbers normally are. Convert local currency to foreign CONVERT_TO_FOREIGN_CURRENCY currency. Convert from foreign currency to local CONVERT_TO_LOCAL_CURRENCY currency Convert an amount from a currency to another (exchange rate taken from CONVERT_AMOUNT_TO_CURRENCY database tables) Convert an amount from a currency to another, according to the passed exchange CONVERT_CURRENCY_BY_RATE rate Conversion of Currency Amounts into BAPI_CURRENCY_CONV_TO_EXTERNAL External Data Format Conversion of Currency Amounts into BAPI_CURRENCY_CONV_TO_INTERNAL Internal Data Format CALCULATE_TAX_FROM_NET_AMOUNT to get Amount in words SPELL_AMOUNT Changes INR amount to words. HR_IN_CHG_INR_WRDS CURRENCY_AMOUNT_SAP_TO_IDOC

Function Modules related to FI, CO and SD Modules FOR_ALL_SKC1A VC_I_GET_CONFIGURATION SD_PRINT_TERMS_OF_PAYMENT

Account subtotal Sales Purchase details configuration Print terms for unique payment

SD_PRINT_TERMS_OF_PAYMENT_SPLI Print terms for some parcels payment Read NF details J_1B_NF_DOCUMENT_READ Read values from NF returned combined J_1B_NF_VALUE_DETERMINATION with J_1B_NF_DOCUMENT_READ using. Function Module related to HR-ABAP This function module is used to maintain master data for employees and applicants. This function module reads the data records of an HR infotype that exist for employees and HR_READ_INFOTYPE applicants. This function module is used to maintain HR_INFOTYPE_OPERATION employees and applicants data. This function module is used to read RGDIR CU_READ_RGDIR of cluster CU. This function module reads complete payroll result for all country versions, from file PCL2 PYXX_READ_PAYROLL_RESULT cluster. This function module is used to fetch the HR_GET_PAYROLL_RESULTS payroll results for employees . This function module is to maintain the HR_RELATION_MAINTAIN relation between employee and position. This function module is to create position or BAPI_HRMASTER_SAVE_REPL_MULT organizaion unit ect. HR_MAINTAIN_MASTERDATA

(https://wiki.scn.sap.com/wiki/display/ABAP/Useful+ABAP+Function+Modules)

Related Documents

Abap Material
March 2021 0
Synthesis Modules
January 2021 0
Function Bisect
February 2021 1
Abap (ita).pdf
February 2021 0

More Documents from ""