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 Parameters: Specify the key fields that will be used for the lock. These are usually the primary key fields of the table. **Generate Lock Object: Once all the details are filled, save and activate the lock object. This will generate the function modules required to set and release locks. **Using the Lock Object: After creating the lock object, you can use it in your ABAP programs to set and release locks. Each lock object generates two function modules: one for setting the lock (ENQUEUE_) and one for releasing the lock (DEQUEUE_).

Comments

Popular posts from this blog

New commodity code create in SAP S/4 Hana

Convert First character to Upper case in SAP ABAP