Posts

Showing posts with the label Blog Post

BAPI for material storage location Add

 We can add material storage location plant wise using third party app or web. BAPI names : BAPI_MATERIAL_MAINTAINDATA_RT Import parameters: HEADDATA: Material Tables: STORAGELOCATIONDATA: Material: Plant: STGE_LOC:   STORAGELOCATIONDATAX: Material: Plant: STGE_LOC:   use below code after completing steps. CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.        

Lock object in SAP

Lock objects in DDIC. In ABAP, Data Dictionary (DDIC) lock objects are used to synchronize access to the same data by different programs or users to ensure data consistency. Lock objects are defined in the Data Dictionary to manage the locking mechanism. Here is an overview of how to work with lock objects in DDIC: ->Creating a Lock Object ->Transaction Code: SE11 ->Open the ABAP Dictionary initial screen by using the -> transaction code SE11. -> Define Lock Object: -> Select the "Lock Object" radio button. -> Enter a name for the lock object (e.g., EZS_ , where EZS is the standard prefix for custom lock objects) and click "Create." *Lock Object Definition:In the definition screen, you need to fill in the following fields: *Short Text: A brief description of the lock object. *Primary Table: The main table that will be locked. You can add additional tables if needed. *Lock Mode: Defines the type of lock (read lock, write lock, etc.). **Lock P...

Event in SAP ABAP

In SAP ABAP we use various type of events to trigger the specific codes in a pre-define sequence. Events are: 1. INITIALIZATION 2. AT SELECTION-SCREEN 3. START-OF-SELECTION 4. TOP-OF-PAGE 5. TOP-OF-PAGE DURING LINE SELECTION 6. END-OF-PAGE 7. END-OF-SELECTION 8. GET 9. GET LATE Initialization: Used whenever we need to initialize any variable or any field in our program. AT SELECTION-SCREEN events: The event AT SELECTION-SCREEN get trigger while the selection screen is being processed. Following are the AT SELECTION-SCREEN events- 1. AT SELECTION-SCREEN OUTPUT 2. AT SELECTION-SCREEN ON 'field' 3. AT SELECTION-SCREEN ON END OF sel 4. AT SELECTION-SCREEN ON VALUE-REQUEST FOR psel_low_high 5. AT SELECTION-SCREEN ON HELP-REQUEST FOR psel_low_high 6. AT SELECTION-SCREEN ON RADIOBUTTON GROUP radi 7. AT SELECTION-SCREEN ON BLOCK block ...