Skip to main content

Posts

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_RESE...

Sets in SAP

Transaction Codes: GS01        Create set GS02       Change Set GS03        Display Set GS04        Delete set GS07        Exports sets GS08        Import sets GS09        Copy sets from client Tables: SETHEADER SETHEADERT SETLEAF SETLINET SETNODE

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:                         ...

SAP Standard Production Planning Reports Transaction Code List

  Transaction Code Description CA51 Print Rtg/Ref.Op.Set, Fields Fixed CA70 PRT Where-Used Lists CA80 Use of Work Center in Task Lists CA90 Use of Ref. Op. Set in Routings CO09 Availability Overview CO24 MissingPartsInfoSyst CO46 Order progress report COOIS Production Order Information System CR05 Work Center List CR06 Work Center Assignment to Cost Ctr CR07 Work Center Capacities CR08 Work Center Hierarchy CR15 Capacity where-used CR60 Work center information system CS11 Display BOM Level by Level CS12 Multilevel BOM CS13 Summarized BOM CS14 BOM Comparison CS15 Single-Level Where-Used List MB53 Display Plant Stock Availability MC9C Reports for Flexible Planning MCP1 SFIS: Operation Analysis Selection MCP3 SFIS: Material Analysis Selection MCP5 SFIS: Material Analysis Selection MCP7 SFIS: Work Center Analysis Selection MCRE Material Usage Analysis: Selection MCRI Product Cost Analysis: Selection MD04 Display Stock/Requirements Situation MD05 Individual Display Of MRP List MD06 Coll...

Restrict Batches after Expiry Date in SAP

 Conditions for this process to work is as follows Material needs to be batch managed Recurring inspection type (09) needs to be activated for the materials Batch status needs to be activated in configuration (T code OMCT)-Optional SLED date needs to be maintained for material batches Unrestricted stock for the batch needs to be greater than zero Inspection interval in material master needs to be maintained if inspection lot needs to be created Process steps: Batch Status Activation (Optional) : Go to transaction code OMCT and activate the batch status. Recurring Inspection Type Activation: Go to transaction code MM02. Choose Quality Management View. Go to insp. setup. Activate 09 inspection type. Running Program for Triggering Recurring Inspections of Batches: Go to transaction QA07. Set necessary parameters and execute it. Scheduling Batch Job for QA07: Go to transaction QA05. Create variant and schedule it according to requirement. Important Notes: Next inspection date for the b...

How To Create User Specific Layout for Single Screen Confirmation Entry Screen (COR6N)

In SAP, COR6N is a transaction code used for creating a confirmation for a process order. It is typically used in the Production Planning module (PP) to record and confirm the completion of production operations. When you execute transaction code COR6N, you will be prompted to enter the production order number for which you want to create a confirmation. After entering the order number, you can proceed to confirm the production activities. The confirmation process in COR6N involves recording the actual quantities produced, the activities performed, and the resources consumed during production. You can enter information such as the actual start and end times, the quantities produced, the scrap or rework quantities, and any comments or remarks related to the production order. Confirming a production order using COR6N allows you to update the production order status and provides real-time information on the progress of the production activities. It also enables better visibility into the ...