ABAP Programs

  • ALV with user defined menu

  • ALV Tree

  • ABAP Program using Dynamic Selection Screen

    ABAP Program using Dynamic Selection Screen

    ABAP Program consists of the selection screen, which changes based on the user click on a radio button. The entire selection screen is changed. The F8 button is disabled…

  • ALV Drag and Drop

    ALV Drag and Drop

  • ALV Programs

    ALV Programs

    ALV Programs Explained ALV (ABAP List Viewer) Programs are very easy to write when you know few basic facts about them. There are many Functions modules provided by SAP…

  • ALV hierarchical list display

  • More ALV Reports

  • SAP Utility Programs

    SAP Utility Programs Gentran IDoc Data Definition File Generation Tool – Gentran’s mapping tool maps 1 structure to another structure. Typically, 1 structure is an EDI standard which is…

  • Dynamic ALV Generation

    * AS : Dynamic ALV generation with data * stored in a table,DB table as input. * Author : Swarna.S. REPORT Z_DYNALV . *Type pools declaration for ALV TYPE-POOLS:…

  • Simple ALV Report – Details of Y or Z Objects

    *&———————————————————————* *& Report Z_OBJECT_TRACKER * *& Author :Swarna.S. *&———————————————————————* *& *& AS: *& Simple ALV report — Details of Y or Z objects *& showing lists of all the…

  • List of Infotypes configured in the SAP system – Simple ALV report

    *&———————————————————————————————————————–* *& Report ZINFOTYPE * *& Author : Swarna.S * *&———————————————————————————————————————–* *& * *& AS: This program lists all the infotypes maintained in SAP system * *&———————————————————————————————————————–* REPORT zinfotype…

  • ABAP Program: Sample program for OLE Automation

    REPORT ZSOURCE2801. * Including OLE types INCLUDE OLE2INCL. * Tables and variables for later use TABLES: CUSTOMERS. DATA: APPLICATION TYPE OLE2_OBJECT, WORKBOOK TYPE OLE2_OBJECT, SHEET TYPE OLE2_OBJECT, CELLS TYPE…

  • ABAP Program:Transferring data to a file (presentation server)

    REPORT ZSOURCE2603. * Data declarations for later use PARAMETERS FILENAME(128) DEFAULT ‘c:\users\default\testfile.dat’ LOWER CASE. TABLES CUSTOMERS. DATA ALL_CUSTOMERS LIKE CUSTOMERS OCCURS 100 WITH HEADER LINE. * Get data for…

  • ABAP Program:Reading data from a file

    ABAP Program:Reading data from a file

    REPORT ZSOURCE2602. * Data declarations for later use TABLES CUSTOMERS. PARAMETERS FILENAME(128) DEFAULT ‘/usr/tmp/testfile.dat’ LOWER CASE. DATA: MSG_TEXT(50), ALL_CUSTOMER_NAMES LIKE CUSTOMERS-NAME OCCURS 100 WITH HEADER LINE. * Opening the…

  • ABAP Programs :Using Field Symbols for variable parts of fields

    ABAP Programs :Using Field Symbols for variable parts of fields

    REPORT ZSOURCE2402. DATA: EXTERNAL_RECORD(4000), POSITION TYPE I, LENGTH TYPE N. FIELD-SYMBOLS < ENTRY>. EXTERNAL_RECORD = ‘0005Smith0007Edwards0005Young’. DO. LENGTH = EXTERNAL_RECORD+POSITION(4). IF LENGTH = 0. EXIT. ENDIF. ADD 4 TO…

  • ABAP Program: Dynamic external perform (call back form)

    Here the two programs which are calling dynamically. REPORT ZSOURCE2309. PERFORM EXTFORM IN PROGRAM ZSOURCE2310 USING ‘CALL_BACK_FORM’ SY-CPROG. FORM CALL_BACK_FORM. WRITE / ‘I am the call back form in…

  • ABAP FAQs – Series:1

    ABAP FAQs Q: Is ABAP program client dependent or independent? A: Independent. Q: What is the diffference between modifications and enhancements? A: Modification, we are modifying which is already…

  • Send email to many users

      REPORT Z_SEND_EMAIL_to_Users. TABLES: USR02. DATA: C(15). DATA: SENT LIKE SONV-FLAG. DATA: EMAIL_ID LIKE SOFOLENTI1-OBJECT_ID. DATA: BEGIN OF EMAIL_DATA. INCLUDE STRUCTURE SODOCCHGI1. DATA: END OF EMAIL_DATA. DATA: BEGIN OF…

  • ABAP program to connect to FTP server

    ABAP program to connect to FTP server

    This ABAP program will let you connect to a FTP host. This is done by using the function module FTP_CONNECT and you need to pass the user credentials in…

  • How to generate a long date like "2 januari 2007" from "20070102".

    How to generate a long date like "2 januari 2007" from "20070102".

    DATA my_date TYPE DATUM. my_date = ‘20070502’. DATA wa_dates LIKE TABLE OF T247 WITH HEADER LINE. DATA wa_date LIKE TABLE OF T247 WITH HEADER LINE. DATA long_date TYPE STRING.…