cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

New Time Scale in Planning Board SAP APO

prateek_dhawan18
Participant
0 Likes
1,267

In planning board /SAPAPO/CDPS0 we have time scale to define the time series view. We have by default 2 scales provided by SAP. Is there any possibility of adding third scale in time scale editor ?

Accepted Solutions (1)

Accepted Solutions (1)

prateek_dhawan18
Participant

Hey

I know its late but still its better to have an answer than to wander.

yes , we can add new scale in DSPB and you will be amazed to know that we can add up to 6 scales but standard SAP has limited this to 2 scales.

You will have to create an enhancement implementation in include /SAPAPO/LCDPS_PRESENTATIONF02 , form ribbons_create . create an enhnacment at the end of this routine .

You can also default the scale .

Add the below code in your enhnacment.

PERFORM ribbon_line_create USING i_chart_id
                                     bc_const-week_unit
                                     g_ribbon_col_type_7_con
                                     g_ribbon_col_type_8_con
                                     g_ribbon_col_type_9_con.


  IF g_use_def_rvals_flg IS INITIAL.

    CALL FUNCTION '/SAPAPO/EINT_SETTINGS_GET'
      IMPORTING
        e_planning_table_prf          = l_plt_prof
      EXCEPTIONS
        no_current_profile            = 1
        planningtab_profile_not_found = 2
        OTHERS                        = 3.
    IF sy-subrc = 1
    OR sy-subrc = 2.
      MESSAGE i002.
      EXIT.
    ENDIF.


    PERFORM set_tbcr_attribs(saplbarc) USING g_screen_wa-winid
                                             l_plt_prof-pltpro_id
                                             l_plt_prof-help_id.


    endif.
raghavagarre
Explorer
0 Likes
Hi Prateek,

Thanks for sharing this solution. We implemented this solution, but the new time scale is defaulted to calendar week. Would you know what other changes should be done to default the new time scale to Week Day Name?


Thanks,

Raghava.

Answers (2)

Answers (2)

prateek_dhawan18
Participant
0 Likes

Hi Raghav

I believe you can default the calendar to week day by changing the parameter in below perform. In place of week_unit , use the relevant day_unit. Hope this helps.

PERFORM ribbon_line_create USING i_chart_id
                                     bc_const-week_day
prateek_dhawan18
Participant
0 Likes

We have achieved the requirement . thank you!