Best way to Loop At ‘Standard’ Internal Table in ABAP

When it comes to looping thru a standard Internal Table, almost every ABAPer normally loops like this (I_COEP is already sorted)
(1) Loop at I_COEP where kokrs = i_cobk-kokrs
and belnr = i_cobk-belnr.
……
endloop.

And this the SLOWEST method to be adopted.

Continue Reading…

Add custom button onto ALV Grid in SAP

As an ABAPer, you must have thought of adding your custom button to the standard ALV Grid called in your custom program. Here are the steps for achieving this goal.

Custom button on ALV

Continue Reading…

ABAP Program to search specific words(string) in SAP Programs

This utility searches ABAP program source code listings for a particular string within the code or text elements of the program. 
This can be use:
1. To find out which program has generated a particular BDC session(Groupid in SM35), especially when the session name is maintainned in the text elements.
2. To serach administrative information maintened in the control section of program source code, like who created etc.
3. To search a particular piece which might be reusable and not easily comng on top of developers mind as to which program he or she coded it in.
4. Can be used to find out hard codings, especially offsets in date related hard coding which has to be replaced with more generic logic.
5. Can be used as a extended where used list functionality

Continue Reading…

ABAP Program to Break the Editor Lock

Some of you must had came across this simple problem when you want to modify a program that ‘ The program locked by previous programmer ‘ . So what we should do? We need to unlock the program. Here a simple program to lock/unlock a program.

Continue Reading…

ABAP Program to Send Mail through SAP

There are many posts like this to send external and internal emails from SAP. I thought to consolidate them. So, here is the code to send email from SAP with and with out attachments.

Continue Reading…

Page 19 of 21« First...1718192021