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…

ABAP program to create Formatted Excel File using XML

From release 620, ABAP has provided us a way to transform our data using the XML transformation. We can very use the XML to generate the formatted Excel File.

The advantages of the XML technique over the OLE:

  • Using XML technique, File can be generated in Background processing. It would not be possible with OLE technique to generate the Formatted excel file because it needs the active connection with the windows.
  • Using XML we can send the fancy generated file as an Email Attachment.
  • We can create formatted excel file using the XML technique from the Web applications generated using Web Dynpro or BSP.
  • It’s faster when compared to OLE technique.

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 6 of 15« First...45678...Last »