Add Search Help to Screen Field in SAP

Search Helps forms an integral part of Data Dictionary in SAP. We can attach Search Help in two ways:

1] STATIC HELP ATTACHMENT

2] DYNAMIC HELP ATTACHMENT

Continue Reading…

  • Share/Bookmark

ABAP code for saving Long Text in BDC

There has been requirements for recording BDC for screens involving Long Text (Free field for text entry). The part that is a bit tricky is, the TextEdit control (Long Text field) does not gets recorded in the BDC.

The following function module is used to save the data with respect to the screen (say, Sales Order Number in case recording ‘Description’ and ‘Created By’ using VA01).

Save Long Text

Continue Reading…

  • Share/Bookmark

ABAP Program to add Colors in ALV Grid

Normally, there are requirements to display set of rows differently based to certain conditions in ALV. To distinguish them easily, in a one go, we can add colors to the rows(based on condition of course).
The following program adds strokes of different color to your ALV Grid.

Add Color in ALV

Continue Reading…

  • Share/Bookmark

ABAP Program for Table Maintenance in SAP

It is a good sample of how to create dynamic table maintenance by utilized SAP function module “STC1_FULLSCREEN_TABLE_CONTROL”.

You can use it to replace funtion of SM30/SM31 with additional benefit.
1. Because it is written in as customer program we can add additional feature, for example change history.
2. There is no need to create screen maintenance for all table because screen will automatically generated.

Table View Maintenance Program

But, remember, this is only a demonstration of how to use STC1_FULLSCREEN_TABLE_CONTROL. Use it carefully and only for customer table (Z*).

Continue Reading…

  • Share/Bookmark

Displaying Icons in ALV Grid using ABAP

The following code adds an icon (exclamation) to the ALV grid/list. It also includes the code for adding hot-spot to ALV column.

icons_in_alv

Continue Reading…

  • Share/Bookmark
Page 1 of 11