ABAP Programs

  • Working with Internal Tables in SAP ABAP

    Working with Internal Tables in SAP ABAP

    While working with Internal tables you need to consider the following cases: You want to reorganize the contents of table. You want to modify few details of table and…

  • How to Create a Program in SAP ABAP

    How to Create a Program in SAP ABAP

    You can navigate to the ABAP Editor through the Menu. You can also create favorites for certain transactions and put it into your custom menu. You can type SE38…

  • Working with BADI’s in SAP ABAP

    Working with BADI’s in SAP ABAP

    What is BADI? BADI stands for Business Add-in. BADI’s are an enhancement concept which uses ABAP objects. Totally an object-oriented method to enhance classes, interfaces, methods. You need to…

  • ABAP: How to create a dynamic internal table and work area

    ABAP: How to create a dynamic internal table and work area

    FIELD-SYMBOLS:<fs_table> TYPE STANDARD TABLE, <fs_table_wa> TYPE ANY. DATA: table_ref TYPE REF TO data, wa_ref TYPE REF TO data. DATA: l_structure TYPE dd02l-tabname value ‘VBAP’. CREATE DATA table_ref TYPE STANDARD…

  • Generate Temporary ABAP Program

    Ever had a need to create a temporary program during the run time. Here is a simple program which will allow you to learn that. REPORT ZSOURCE2501. * Internal…

  • ABAP Program to Send Mail with Attachment

    ABAP Program to Send Mail with Attachment

    Here are two ABAP Programs to send mail with and without attachment. ABAP Program to send mail with Attachment This ABAP program uses the function module ‘SO_NEW_DOCUMENT_ATT_SEND_API1’ to send…

  • Create Toolbar in Selection Screen

    Create Toolbar in Selection Screen

    How to create a toolbar in the selection screen, similar to the one below. Refer the sample code TABLES: sscrfields. SELECTION-SCREEN FUNCTION KEY 1. INITIALIZATION. sscrfields-functxt_01 = ‘Tool bar…

  • How to Display OO ALV in Popup

    How to Display OO ALV in Popup

    Use the factory method to display the ALV in Popup. DATA: gr_table TYPE REF TO cl_salv_table, *<< Your Custom table, Populate data in it gr_master TYPE STANDARD TABLE OF…

  • Refresh Table Display Moves Cursor to First Line

    Refresh Table Display Moves Cursor to First Line

    If you are making some changes in the ALV Output and refresh the ALV display using the method “REFRESH_TABLE_DISPLAY” the chances are it will go to the first line…

  • Create OO ALV without Container

    Create OO ALV without Container

    A container acts as an onscreen control location which accommodates all the other possible controls for user interface and navigation. These controls can hold anything, it can be a…

  • ABAP Sample Codes

    Download a huge collection of  on: ABAP Code Sample Business Scenario For PerFormance Issues Of HR Positions Holders ABAP Code Sample CAPTCHA For BSP Application s ABAP Code Sample…

  • Get Previous N Working days

    Get Previous N Working days

    Sample program which will provide you with previous n working days. Any calendar id can be specified in the “called”, you can check the list of configured calendars in…

  • Rules for Better SQL Programming # Tip 5

    Tip #5. Remove the load from the database. Check if the table meets the criteria for table buffering. When applying the table buffering check if the table is frequently…

  • Rules for Better SQL Programming # Tip 3

    Tip #3: Keep the number of round trips between the database and the application server small. Use high-speed array operations with UPDATE, INSERT, DELETE, MODIFY. Wrong LOOP AT itab…

  • Rules for Better SQL Programming # Tip 2

    Tip #2 : Minimize the Amount of Transferred Data Minimize the amount of data transferred between the database and the application server. Wrong SELECT * FROM sflight INTO xflight…

  • Rules for Better SQL Programming # Tip 1

    Always try to keep the hit list small by using the where clause were ever required or by describing the full search condition in the where clause. Select Query…

  • Assign Output Types

    Assign the output types to represent the following conditions. These output types then result in the creation of IDocs – EDI 870. Change in Delivery date Delivery drop Post…

  • ABAP Program to create Splitter control and Graphs

    ABAP Program to create Splitter control and Graphs

    *&———————————————————————- *& Report Z_SPLIT_GRAPH *& Author: Swarna.S.(Tata Consultancy Services) *&———————————————————————- *& AS : Sample code for creating a splitter screen and graph. *& The screen is divided into two…

  • ICON in Selection-Screen

    ICON in Selection-Screen

    How to write the ICON in the selection screen. In the selection screen definition add the below code selection-screen comment 40(20) icon1. Now in event of at selection-screen output…

  • ABAP Programs for Beginners

    Here is the list of available ABAP Programs. Click this to download the PDF document. How to define types and data objects A Few Simple Examples Working with database…

  • ABAP Programs Weekend Roundup – 08/01/08

    ALV Report Header – ALV Report Header is a simple program which will tell you as to how to create a Header in the ALV report. Display Extensions –…

  • ABAP Programs – Weekend roundup – 06/27/2008

    ABAP Programs This Week Creating SAP shortcut at run time The following function module can be used to create a shortcut for any SAP transaction. Further, certain values available…

  • ABAP Programs Weekend Roundup – 06/13/2008

    ABAP Programs this week – 06/13/2008 Program to Generate 3d Graph ALV Tree Refresh ALV – Capture all the User selected rows Creating your first local class Check Program…