Blog Archives

ABAP: How to create Transaction Code for reports

Use TCode: SE80 Open your program   Right click on your program Follow Create -> Transaction   Enter Transaction code, Short text and select start object type as below   Enter program name, set values as below and Save  

Posted in ABAP, SAP

ABAP: Interactive report using EKKO and EKPO

REPORT ZTEST0004. TYPE-POOLS : ZTG01. INITIALIZATION. DATA: IT_EKKO TYPE STANDARD TABLE OF ZTG01_TY_EKKO, WA_EKKO TYPE ZTG01_TY_EKKO. DATA: IT_EKPO TYPE STANDARD TABLE OF ZTG01_TY_EKPO, WA_EKPO TYPE ZTG01_TY_EKPO. SELECT-OPTIONS: S_EBELN FOR WA_EKKO-EBELN. START-OF-SELECTION. SELECT EBELN BUKRS STATU AEDAT FROM EKKO INTO TABLE

Posted in ABAP, SAP

ABAP: How to create “Type Group”

Use TCode SE11 Enter Type Group name and press “Create”   Enter some description and press “Save”   Save as “Local Object”   Type Group saved   Write some code, check syntax and activate.

Posted in ABAP, SAP

ABAP: How to change parameter label

Task is to change parameter label with meaning full name   Open report in ABAP editor by using TCode SE38 Use menu GoTo -> Text Elements -> Selection Texts   Enter parameter text, save and activate.   Now execute your

Posted in ABAP, SAP

ABAP: Display Product Description by passing Product number parameter

*&——————————————————* *& Report ZTEST0001 *& *&——————————————————* *& *& *&——————————————————* REPORT ZTEST0001. DATA : v_maktx TYPE maktx. PARAMETERS : p_matnr TYPE matnr. WRITE AT : /5 ‘Mat No’ , 50 ‘Mat Description’. uline. select maktx from makt into v_maktx where matnr

Posted in ABAP, SAP

Simple ABAP report from table

*&———————————————————————* *& Report ZAFG_SIMPLEREPORTFROMTABLE *&———————————————————————* REPORT ZAFG_SIMPLEREPORTFROMTABLE NO STANDARD PAGE HEADING. TYPES: BEGIN OF TY_KNA1,     KUNNR TYPE KUNNR,     LAND1 TYPE LAND1,     NAME1 TYPE NAME1,     ORT01 TYPE ORT01,     PSTLZ TYPE PSTLZ,     SPRAS TYPE SPRAS,     TELF1 TYPE TELF1,     END OF TY_KNA1. *

Posted in ABAP, SAP

My First ABAP Program: Compute

Login to ECC System Execute TCode: SE38 Enter program name and press “Create”   Enter title, select type=”Executable program” and press “Save”   Save to “local Object”   Program saved.   Now Start writing the compute program   Check the

Posted in ABAP, SAP