Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Display Calendar using Smartforms

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

0 Kudos

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.

3 REPLIES 3

0 Kudos

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.

0 Kudos

thanks vinoth

Former Member
0 Kudos

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