Macros in ABAP-HR Programming – I

The macros will be used to get the data from the various clusters based on the cluster ID.For Buffering purpose we use macros.

For example, when we want to read the data from the cluster RU, we have to pass the cluster ID “RU” and Rx-KEY to the particular macro. By using the Rx-key the macro will fetch the data from the cluster RU.

Basically we use the macros to IMPORT/EXPORT the data to or from the clusters.

Continue Reading…

ABAP HR Program to list maintained Infotypes in SAP

Following ABAP HR program is used to display a list of all the Infotype structures maintaine in the SAP. The program generates an ALV Grid which lists all the infotypes in the system.

list_of_infotype_structure

Continue Reading…

Date formatting for Display in ABAP Program

Function module FORMAT_DATE_4_OUTPUT comes in handy in case we need simple formatting on date. Formatting which involves change in position day, month and year, changing the separator we can achieve with this function module. Following sample code shows how we can manipulate date directly to different formats.

Date Formats

  Continue Reading…

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…

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…

Page 3 of 612345...Last »