Posts

Showing posts from December, 2023

Disable Icons in SAP ALV Toolbar

Image
  * Disable Icons in SAP ALV Toolbar. * To hide filter option and sum option in alv. * To find the f-code execute any report program. * Execute /h for debugger on, click on button you want to hide  i clicked on filter button and pass value sy-ucomm in right side tab and enter it gives &ILT. Report program     REPORT YRP_DISABLE_ICONS_ALV .      tables: zst_det .      types: begin of ty_stu,                        zst_id type zst_det-ZST_ID,                        zst_name type zst_det-ZST_NAME,                        zst_dept type zst_det-ZST_DEPT,                        zst_fee type zst_det-ZST_FEE,                end of ty_stu.  ...

Display Traffic lights ALV

Image
  * If student id < 5 display red color. *  If student id = 5 display yellow color.  * If student id > 5 display green color. Report program      REPORT YRP_ALV_TRAFIC_LIGHTS .      TABLES: ZST_DET .      TYPES: BEGIN OF TY_STU ,                  ZST_ID   TYPE ZST_DET-ZST_ID,                  ZST_NAME TYPE ZST_DET-ZST_NAME,                  ZST_DEPT TYPE ZST_DET-ZST_DEPT,                  ZST_FEE TYPE ZST_DET-ZST_FEE,                  ICON TYPE C,                END OF TY_STU .      DATA: IT_STU TYPE TABLE OF TY_STU,                      WA_STU TYPE TY_STU,   ...

Enhancements in abap

 Enhancements     *  Will enhance the sap functionality in customer name space.     *  Customer  name space-> (z or y) Modifications      *  Will enhance the sap functionality in sap name space.     *  Name  should not start with z or y. Types      1. Implicit and Explicit enhancements { enhancements }      2. Customer exit. { enhancements }      3. Badi { enhancements }      4. User exit { modification } Implicit      *  Implicit point is available at the starting or at the last of program.     *  Subroutines, function  modules  etc. Explicit        *  Explicit point & section are available at any line.     *  Point  - It will not give default implementation .                    ...

Reading data from a file on application server

Image
  Reading data from a file on application server Code      REPORT  ZAJAY_FILE_APLSER_READ .      TABLES : zajay_zstu .      TYPES :  BEGIN  OF  ty_zstu ,              zst_id  TYPE  string ,              zst_name  TYPE  zajay_zstu - zst_name ,              zst_dept  TYPE  zajay_zstu - zst_dept ,          zst_fee   TYPE  string ,             END  OF  ty_zstu .      DATA :  it_zstu  TYPE  TABLE  OF  ty_zstu ,           wa_zstu  TYPE  ty_zstu .      DATA :  lf_student ( 25 )  TYPE...

Write data to a file on Application server

Image
       * AL11 - T-code for SAP Directories.     Write data to a file on Application server. Code      REPORT  zajay_file_aplser_write .      TABLES : zajay_zstu .      TYPES :  BEGIN  OF  ty_zstu ,              zst_id    TYPE  zajay_zstu - zst_id ,              zst_name  TYPE  zajay_zstu - zst_name ,              zst_dept  TYPE  zajay_zstu - zst_dept ,              zst_fee   TYPE  zajay_zstu - zst_fee ,             END  OF  ty_zstu .      DATA :  it_zstu  TYPE  TABLE  OF  ty_zstu ,     ...