Posts

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

INITCAP- First letter of the word Capital in SAP ABAP

In sap abap some times we need to capitalize starting word. In that case we need to use FM. Just use "FI_CONVERT_FIRSTCHARS_TOUPPER" and get the result. Sample: data: P_Sampby type string value 'RAJIB HOSSAIN'. CALL FUNCTION 'FI_CONVERT_FIRSTCHARS_TOUPPER' EXPORTING input_string = P_Sampby SEPARATORS = ' ' IMPORTING OUTPUT_STRING = P_Sampby . Output: Rajib Hossain

SAP S/4 Hana MM Sourcing & Procurement T-Code

  SAP S/4HANA Sourcing and Procurement t-code 1. ME21N: Create Purchase Order - Used to create a new purchase order. 2. ME22N: Change Purchase Order ️   make changes to an existing purchase order. 3. ME23N: Display Purchase Order - Used to view details of a purchase order.  4. ME51N: Create Purchase Requisition   - Used to create a new purchase requisition.  5. ME52N: Change Purchase Requisition   - Used to make changes to an existing purchase Requisition.  6. ME53N: Display Purchase Requisition   - Used to view details of a purchase requisition.  7. ME31K: Create Contract   - Used to create a procurement contract with a supplier. 8. ME32K: Change Contract   - Used to make changes to an existing procurement contract. 9. ME33K: Display Contract   - Used to view details of a procurement contract. 10. ME41: Create Re...

New commodity code create in SAP S/4 Hana

Image
Commodity codes are internationally recognized reference numbers. A code describes a specific product when importing or exporting goods. You will use this code on any customs declarations and can find them in the Trade Tariff tool. Before S/4 Hana we can create commodity code by using GUI but from S/4 Hana need to use fiori interface to create commodity code. Let's explore it.   T-Code: /UI2/FLP Launchpad is opening and then select Manage commodity codes Tile. After that need to provide No. Scheme contend and click Go button and then need to click add button. Give commodity code and Description with valid from date to valid To date. After that press save button. That's it, your commodity code is created and now need to assign it against material number. Check /SAPSLL/CLSNR table for commodity code added or not.  Check MARC table stawn field to confirm material level assigned or not.