We can use the report “ SWNC_CONFIG_TIMEPROFILE “ to configure/change the time profile in ST03n . We can get either cumulated for the time blocks 21:00 to 24:00 and 00:00 to 06:00. or hourly time profile . The configuration of the time profile applies equally to all instances of a system. This is Valid for release 700 and above for previous release refer sap note : 17750
To EXECUTE this report
Goto : SE38/SA38 Put the program name “SWNC_CONFIG_TIMEPROFILE “
Then click on execute or press f8 these are the options you will get and you can choose one among these three
1 > display current configuration
2 > Total night hours : time blocks 21:00 to 24:00 and 00:00 to 06:00
this is default selection as well
3 > Calculate all hours separately
Source code : SWNC_CONFIG_TIMEPROFILE
For night hours
wa-systemid = sy-sysid.
wa-paramname = 'ST03_TIMEPROFILE_START_OF_PERIOD'.
wa-paramtype = 'C'.
wa-par_chrval = '000000000000060708091011121314151617181920212121'.
APPEND wa TO parameter_table.
wa-systemid = sy-sysid.
wa-paramname = 'ST03_TIMEPROFILE_END_OF_PERIOD'.
wa-paramtype = 'C'.
wa-par_chrval = '060606060606070809101112131415161718192021242424'.
APPEND wa TO parameter_table.
For calculating each hour separately
wa-systemid = sy-sysid.
wa-paramname = 'ST03_TIMEPROFILE_START_OF_PERIOD'.
wa-paramtype = 'C'.
wa-par_chrval = '000102030405060708091011121314151617181920212223'.
APPEND wa TO parameter_table.
wa-systemid = sy-sysid.
wa-paramname = 'ST03_TIMEPROFILE_END_OF_PERIOD'.
wa-paramtype = 'C'.
wa-par_chrval = '010203040506070809101112131415161718192021222324'.
APPEND wa TO parameter_table.