Useful Function Modules in ABAP-HR

Function modules are always helpful, specially when dealing a complex module like ABAP HR. Thanks to SAP that has provided strong Function Module support.

Here is the list of some useful ABAP HR function modules:

RS_PROGRAM_CHECK_NAME: To check program names if you are generating them.
RS_CORR_INSERT : To insert the correction request in the repository.
REPS_OBJECT_ACTIVATE: To activate repository objects, for example – to activate a newly generated program.
RS_DELETE_PROGRAM: To delete the program.
RS_ACCESS_PERMISSION: To lock or unlock a program.

Continue Reading…

  • Share/Bookmark

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…

  • 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

Type of Database Updates in SAP

There are three types of Updates that can occurs to the database, depending upon the priorty given to the work.

V1 – Synchronous update
V2 – Asynchronous update
V3 – Batch asynchronous update

Continue Reading…

  • Share/Bookmark
Page 1 of 11