Skip to main content

List of Useful Function Modules/BAPIs in SAP ABAP

In SAP and ABAP, a function module refers to a self-contained unit of code that performs a specific task or function. These modules are designed to be reusable and can be called from other parts of the program or from different programs altogether. Function modules are used to encapsulate business logic or perform specific operations within an SAP system.

Some useful function modules are listed below.

FICO:

  • FTI_FISCAL_YEAR_MONTH_GET (To get Fiscal Year and Month)
  • GET_CURRENT_YEAR(Getting current fiscal year)

MM:

  • /SPE/READ_CLASSIFICATION_DATA (Getting Batch Characteristics)
PP: 
  • BAPI_PROCORD_CREATE (Process Order Creation)
  • BAPI_REQIREMENTS_CREATE (PIR Creation)
  • BAPI_REQUIREMENTS_CHANGE (PIR Change)
  • CO_XT_COMPONENT_CHANGE (PP Order Component Change)
  • CSAP_MAT_BOM_READ (BOM Read)
  • AIP9_STATUS_READ (Order Status Read, OBJNR = OR + order) 
HCM:
  • RKE_SELECT_FACTDAYS_FOR_PERIOD (Calculating Working Days)
ABAP:
  • ALSM_EXCEL_TO_INTERNAL_TABLE (Excel to Internal Table)
  • RRBA_NUMBER_RANGE_RESET (Number Range Reset)
  • F4IF_INT_TABLE_VALUE_REQUEST (F4 Help)
  • MOVE_CHAR_TO_NUM (Converting CHAR to Number)

 

Comments

Popular posts from this blog

Creating a Search Help and Assigning it to Another Table in SE11

In SAP ABAP, a search help is a feature that provides a user interface for searching and selecting data values from a list. A search help is essentially a dialog box that displays a list of possible values for a particular field or selection criterion. Once a search help is defined and assigned to a data element or domain, it can be used in various SAP applications, such as data entry screens, reports, and dialog programs. To use a search help in a program or report, you can call the function module "F4_HELP" or "F4IF_INT_TABLE_VALUE_REQUEST" to display the search help dialog box and retrieve the selected values. You can also customize the search help behavior and appearance using various parameters and options. There are two types of search help available in SAP ABAP: elementary search help and collective search help. Elementary search help is used to display a list of possible values for a single input field. It is used when the user needs to select a single valu...

Transporting Data Migration Cockpit Project between Clients

SAP Data Migration Cockpit (DMC) is a tool provided by SAP to assist in the process of migrating data from legacy systems or external sources into an SAP system. The DMC offers a user-friendly interface for designing, executing, and monitoring data migration activities. Steps to Transport Data Migration Cockpit Project There are two ways to transport data migration cockpit project between clients. They are Export/import method Transport request generation method Export/Import Method Process steps for export/import method are Exporting the Project Go to transaction code "LTMOM" Then go to "Go to>Export/Import Project". If this functionality is not available in this t-code, go to transaction code "SE38" and run the report "/LTB/MC_PROJ_Q2P" Select the "Export Project" radio button and provide "Mass Transfer ID". Then click on execute. Show the location on your PC and click on save. Project will be exported. Importing the Proj...

Adding New Button in ALV Grid (Example: Refresh Button)

 Steps to add a refresh button in ALV grid display. 1. Copying status "STANDARD" from program "SAPLKKBL". Go to transaction code SE41 and follow the screenshot to copy the status. 2. Assign refresh button in the status. Go to SE41. Put the custom program and status name we have just copied. Click on the "Change" button. Add the refresh button with function code and icon. 3. Set PF STATUS in the program just before the "REUSE_ALV_GRID_DISPLAY" function module. 4. Enable  i_callback_user_command and  i_callback_pf_status_set  in the "REUSE_ALV_GRID_DISPLAY" function module 5. Write the subroutine for get data which will populate the internal table after click on refresh button. 6. Write the subroutine for "USER_COMMAND_LOG". FORM  user_command_log  USING  u_ucomm      TYPE  sy - ucomm                        ...