Fetching single record from database


Steps.


  1. Go to transaction code SE38.
  2. Enter the program name Z or Y<program name>
  3. Select attribute type as Executable program.
  4. Click on Save.

Source Code

DATA WA_MAKT TYPE MAKT.

PARAMETERS P_MATNR TYPE MAKT-MATNR.

SELECT SINGLE FROM MAKT INTO WA_MAKT WHERE MATNR P_MATNR.


WRITE / WA_MAKT-MATNR ,WA_MAKT-SPRAS WA_MAKT-MAKTXWA_MAKT-MAKTX.




Input

Output

Comments

Popular posts from this blog

FOR ALL ENTRIES (FAE) -4 TABLES USING ALV_GRID_DISPLAY

RADIO-BUTTONS IN BASIC REPORT

MODULE POOL -TABLE CONTROL_1: