10-11-2012 6:48 AM
Hi All,
I want to design a layout with smartform. layout should be like calender( mon-sunday. and 1-30) so many cells(rows and columns) are needed.
one month may be start from monday and other one start from with another week.how to put the data in appropriate box(mon-sun).
Regards
Bharathi
10-11-2012 12:58 PM
Hi,
Use this FM : DAY_ATTRIBUTES_GET.
This will return entire Month details like begin day, on which day it fall on monday or tuesday etc...
The above screen shot was taken for July month where 1 day of the month starts on sunday.
10-11-2012 12:58 PM
Hi,
Use this FM : DAY_ATTRIBUTES_GET.
This will return entire Month details like begin day, on which day it fall on monday or tuesday etc...
The above screen shot was taken for July month where 1 day of the month starts on sunday.
10-12-2012 5:34 AM
10-23-2012 3:42 PM
hi.
you can create a structure with 7 fields(days of week) named it t_weekdays. after using DAY_ATTRIBUTES_GET
LOOP AT day_attributes.
CASE day_attributes-weekday_s.
WHEN 'MO'.
w_weekdays-monday = day_attributes-date+6(2).
WHEN 'TU'.
w_weekdays-tuesday = day_attributes-date+6(2).
.
.
.
.
.
.
.
WHEN 'SU'.
w_weekdays-sunday = day_attributes-date+6(2).
APPEND w_weekdays TO t_weekdays.
CLEAR w_weekdays.
ENDLOOP.
use the same table in smartforms.
Çağatay