Tuesday, October 26, 2010

How can I format the time in the SAP Script?

Similar to SET DATE MASK for date fields we can use SET TIME MASK for formatting time fields.
Eg.:
/: SET TIME MASK = 'HH hrs MM min SS sec'
This displays the time as : 11 hrs 43 min 37 sec'

The following are the codes that can be used in the time mask:

HH

Hours

MM

Minutes

SS

Seconds

The time formatting can be reset to the default setting using:
/: SET TIME MASK = ' '

No comments:

Tutorials on SAP-ABAP

Adobe Interactive Forms Tutorials

Business Server Pages (BSP)

Userexits/BADIs

Web Dynpro for ABAP (Step by step procedure for web dynpro,Tutorials on Web Dynpro,)

ALV Tutorials

Blog Archive

goodsites