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

Adding New Input Fields to SAP Confirmations Screen (CO11N/COR6N) Without Coding

It is possible to add additional input fields in the SAP production order confirmation screen without coding. We can do this just adding fields to a structure which is included in AFRU table (Confirmation table). Process Steps Step 1:   Go to below customizing path. SIMG > Production > Shop Floor Control > Operations > Confirmation > Single Screen Entry > Define Single Screen Entry for Confirming Production Order Step 2:  Double click on the standard profile. Add "Customer Specific Fields of CI_AFRU" in the detail area. Step 3:  Go to default tab. Select an option from the "Customer Specific Fields" area. Then click on save button. Step 4:  Go to transaction code "SE11". Select database table and put "AFRU" and click on change button. Step 5:  Go to the include marked in the screenshot and double click on the data element of the include. Step 6:  Double click on "CI_AFRU". Step 7:  Click on "Yes" in the pop u...

SAP Production Order Confirmation Table List

SAP Production Order Confirmation is a process that enables companies to confirm the completion of production orders in the SAP system. The confirmation process allows companies to track and manage the progress of production orders, as well as record the actual quantities of materials used and the time taken to complete the production order. Production order confirmation tables are listed here. AFFW                     Goods Movements with Errors from Confirmation AFFWPRO           Log of deleted AFFW entries AFRC                     Incorrect cost calculations from confirmation AFRD                     Default values for collective confirmation AFRH                     Header information for confirmation pool AFRH_DEL ...

Display Traffic Light System in ALV Report

In the context of SAP ALV (ABAP List Viewer), a traffic light system is a visual representation used to indicate the status of certain data points. Typically, it uses color-coded indicators similar to traffic lights (red, yellow, green) to convey different states or conditions of the data. The traffic light system is used to quickly convey information at a glance, making it easier for users to understand the status of data without having to analyze detailed numbers or descriptions. Steps 1. ALV needs to be displayed using FM ''REUSE_ALV_GRID_DISPLAY" 2. One field needs to be included to hold traffic light value in the internal table structure (type C length      1). Value 1 will be assigned for red light, 2 will be assigned for yellow light and 3 will be assigned           for green light.             Example:                         ...